Cannot call swap function on 10KSwap contract

I am trying to swap tokens on 10KSwap contract using starknetjs, but without success.
I am constantly getting error that path argument is not an array(see below).
Path that I am passing is for instance:
const path = ['0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7',
    '0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac']

I tried to debug this, but I couldn't pin breakpoint.
contract that I am calling is: https://starkscan.co/contract/0x07a6f98c03379b9513ca84cca1373ff452a7462a3b61598f0af5bb27ad7f76d1
I am not sure is this problem on my side not understanding library and types that I should pass to function or there is some bug in library??
Below is my function:
async swapExactTokensForTokens(
        signer: Account,
        _amount: BigNumberish,
        _minAmountOut: BigNumberish,
        pathLen: number,
        path: Array<string>
    ) {
        this.contract.connect(signer)
        const amount = uint256.bnToUint256(_amount)
        const minAmountOut = uint256.bnToUint256(_minAmountOut)
        const deadline = this.getDeadline5min()
        const tx = await this.contract.swapExactTokensForTokens(
            amount,
            minAmountOut,
            pathLen,
            path,
            signer.address,
            deadline
        )
        console.log(`swapExactTokensForTokens txhash: ${tx.transaction_hash}`)
        await this.contract.providerOrAccount.waitForTransaction(tx.transaction_hash)
    }

And the error:
/Users/tomasz/WebstormProjects/starknet/node_modules/minimalistic-assert/index.js:5
    throw new Error(msg || 'Assertion failed');
          ^
Error: arg path should be an Array
    at assert (/Users/tomasz/WebstormProjects/starknet/node_modules/minimalistic-assert/index.js:5:11)
    at /Users/tomasz/WebstormProjects/starknet/node_modules/starknet/src/utils/calldata.ts:111:9
    at Array.forEach (<anonymous>)
    at CheckCallData.validateMethodAndArgs (/Users/tomasz/WebstormProjects/starknet/node_modules/starknet/src/utils/calldata.ts:82:22)
    at Contract.invoke (/Users/tomasz/WebstormProjects/starknet/node_modules/starknet/src/contract/default.ts:271:24)
    at Contract.swapExactTokensForTokens (/Users/tomasz/WebstormProjects/starknet/node_modules/starknet/src/contract/default.ts:68:21)
    at _10KSwap.<anonymous> (/Users/tomasz/WebstormProjects/starknet/typescript/contracts/10KSwap.ts:16:40)
    at Generator.next (<anonymous>)
    at /Users/tomasz/WebstormProjects/starknet/typescript/contracts/10KSwap.ts:8:71
    at new Promise (<anonymous>)

Hello @tomasz90, thank you for reposting.
As the bug template is ignored, I need to ask you questions to reproduce this:
In what env do you run this? If Node then what version?
What version of starknet.js do you use?
Regarding provided code:
How did you create the Contract class, can you provide an example?
this.contract

It looks like the parameters are not matching, I'll try to test this but I need starknetjs version you use.

Contract is beeing created via provider:
await provider.getClassAt(address)
I figured out what was going on, but don't understand why this works that way.
I I removed pathLen paramater from:
const tx = await this.contract.swapExactTokensForTokens(
            amount,
            minAmountOut,
            pathLen,
            path,
            signer.address,
            deadline
        )

Then I was able to make transaction. But on cairo file I see that path lenght is included. Unfortunately I couldnt find any info in docs that length of arrays should not be included.

you don't need to pass pathLen,so it should be
const tx = await this.contract.swapExactTokensForTokens(
amount,
minAmountOut,
path,
signer.address,
deadline
)

Issue resolved.
@thecotne Please consider contributing to the documentation so we can have it better.
Thank you.


Hashing error when setting random seed for vllm model

It seems vllm engine uses an initialization seed to determine its randomness in sampling. I am using this feature to generate multiple different completions with scores by running the same evaluation code multiple times. However, it errored when I trying to set the seed in the command.
E.g., command:
python -m oe_eval.run_eval --task '{"task_name": "gsm8k", "generation_kwargs": {"repeats": 1, "temperature": 0.7, "top_p": 1.0, "max_gen_toks": 4096, "do_sample": true, "truncate_context": true}, "limit": 1000, "random_subsample_seed": 42, "use_chat_format": true}' --batch-size 1000 --output-dir output/oe-eval-bon-candidates-new/tulu-2-13b-n-16/gsm8k/run-1 --save-raw-requests true --model allenai/tulu-2-13b --model-args '{"model_path": "allenai/tulu-2-13b", "seed": 14609, "max_length": 8192, "model_type": "vllm"}'
Error message:
Traceback (most recent call last):
  File "/net/nfs.cirrascale/allennlp/yizhongw/miniconda3/envs/oe-eval/lib/python3.10/runpy.py", line 196, in _run_module_as_main                                                                           return _run_code(code, main_globals, None,
  File "/net/nfs.cirrascale/allennlp/yizhongw/miniconda3/envs/oe-eval/lib/python3.10/runpy.py", line 86, in _run_code                                                                                exec(code, run_globals)                                                                                File "/net/nfs.cirrascale/allennlp/yizhongw/open-instruct-public/oe-eval-internal/oe_eval/run_eval.py", line 758, in <module>
    run_eval(args_dict)                                                                                File "/net/nfs.cirrascale/allennlp/yizhongw/open-instruct-public/oe-eval-internal/oe_eval/run_eval.py", line 407, in run_eval                                                                            model_hash = hash_dict(model_config, MODEL_DEFAULTS)
  File "/net/nfs.cirrascale/allennlp/yizhongw/open-instruct-public/oe-eval-internal/oe_eval/utils.py", line 136, in hash_dict                                                                              raise ValueError(f"Hashing error! Key {k} not in defaults!")
ValueError: Hashing error! Key seed not in defaults!

This is due to seed not set in the default configs. I am not sure if it should be set there as huggingface model class doesn't seem to use this argument. Another workaround is to ignore seed in the hashing here, but I am not sure if it should be ignored as well.

Hi! Looks like you're using a (private) fork. seed should work on main :)


How to build for a crate not at the project root.

I am trying to use this to create CI for a crate not at the root of the github repository. This is causing the build to fail as there is no Cargo.toml at the root of the project. I have tried passing a working directory into the github job but this doesn't affect this action causing the build to still fail. Is there any way for me to do this?

See #23, you need to pass working-directory to this action because the global working-directory only works for run.


[bug]: Installation problem

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
8
What happened?
I have tried to install the bat file and setup it up but I always get this issue.
It always happens when I wait for everything to install and when it gets to the point of downloading the files at 20kb - 50kb when I have 50MBps internet.
Screenshots

Additional context
It happens at different times but only when download this file.
Contact Details
No response

The other problem that I am getting now.


Create template config files

Rollup - rollup.config.js
NPM - package.json
Travis - .travis.yml

Templates with stuff needed for setting up batr for your project

Look at batr-example

Just juse batr-example for now.


Fix typo

Questions
Answers

Description?
Fix typo. See below what it looks like today

Type?
bug fix

BC breaks?
no

Deprecations?
no

Fixed ticket?

Sponsor company

How to test?
Open the module configuration page and register a new hook. Before the PR you can see the wrong word "Successfuly" in the notice message. After the PR it has been fixed to "Successfully"

Screenshot of the wrong message


better state synchronization required between client and server

closed (more or less) by #70 and #69


73 show new messages feature

This is the show new messages feature pull request, this feature allows users to see the most recent message from the selected room.

Experimental: Try making widgets and make the room element float for a more better look

Experimental: Try making widgets and make the room element float for a more better look

Na, it does not match with the other stuff so it's being scraped


Attempting rebalance while bitcoind is resyncing/reindexing spams logs

Background
I am reindexing bitcoind for reasons beyond the scope of this report; there are still about 100k blocks to go.
Meanwhile, I attempted a circular rebalance expecting LND might "hold" it until chain tip was back.
Instead, it spams the logs with thousands of failed payment attempts.
Your environment
ubuntu@lnd:~$ lnd --version
lnd version 0.14.1-beta commit=v0.14.1-beta
ubuntu@lnd:~$ uname -a
Linux lnd 5.13.0-21-generic #21-Ubuntu SMP Tue Oct 19 08:59:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

ubuntu@bitcoind:~$ bitcoind --version
Bitcoin Core version v22.0.0

Steps to reproduce
Start with functioning bitcoind and LND. Restart bitcoind with txindex=1 and reindex=1
Next, before bitcoind has completed indexing blocks, attempt a circular rebalance (I imagine this might happen with any initiated keysend payment)
Expected behaviour
I expected it to fail once, or hold it for laterr
Actual behaviour
Fails thousands of times, presumably until a timeout limit (I don't know what the default payment timeout is; I don't see that in the sample lnd.conf).
Below is the entire sequence/group (AFAICT) for attempt number 5,003
2022-01-17 22:19:53.238 [WRN] HSWC: ChannelLink(<id>:1): htlc(2d
1a286b83199836b7b83c21d2f9db53cba6e716124566a5d08623877df55441) has an expiry that's too soon: outgoing_expiry=227, best_hei
ght=719193
2022-01-17 22:19:53.238 [ERR] HSWC: Link XXXXXX:YYYY:1 policy for local forward not satisfied
2022-01-17 22:19:53.239 [ERR] CRTR: Failed sending attempt 5003 for payment 2d1a286b83199836b7b83c21d2f9db53cba6e716124566a5
d08623877df55441 to switch: ExpiryTooSoon(update=(lnwire.ChannelUpdate) {
 Signature: (lnwire.Sig) (len=64 cap=64) {
  00000000  a2 98 c9 a3 cc de d1 74  46 cd ae 6b f2 e1 c2 6b  |.......tF..k...k|
  00000010  89 e2 74 18 1d 56 54 7f  24 1a ad 69 da 73 6b 9a  |..t..VT.$..i.sk.|
  00000020  3a 5b 0a 94 2b 78 39 d7  29 c2 df 98 e6 90 a2 0f  |:[..+x9.).......|
  00000030  09 17 fe 5e 12 c4 b7 f2  1b 3b e0 80 0e c0 ae 3b  |...^.....;.....;|
 },
 ChainHash: (chainhash.Hash) (len=32 cap=32)<PHONE_NUMBER>19d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f,
 ShortChannelID: (lnwire.ShortChannelID) XXXXXX:YYYY:1,
 Timestamp: (uint32)<PHONE_NUMBER>,
 MessageFlags: (lnwire.ChanUpdateMsgFlags) 00000001,
 ChannelFlags: (lnwire.ChanUpdateChanFlags) 00000000,
 TimeLockDelta: (uint16) 40,
 HtlcMinimumMsat: (lnwire.MilliSatoshi) 1000 mSAT,
 BaseFee: (uint32) 0,
 FeeRate: (uint32) 100,
 HtlcMaximumMsat: (lnwire.MilliSatoshi)<PHONE_NUMBER> mSAT,
 ExtraOpaqueData: (lnwire.ExtraOpaqueData) {
 }
}

2022-01-17 22:19:53.239 [WRN] CRTR: Attempt 5003 for payment 2d1a286b83199836b7b83c21d2f9db53cba6e716124566a5d08623877df5544
1 failed: ExpiryTooSoon(update=(lnwire.ChannelUpdate) {
 Signature: (lnwire.Sig) (len=64 cap=64) {
  00000000  a2 98 c9 a3 cc de d1 74  46 cd ae 6b f2 e1 c2 6b  |.......tF..k...k|
  00000010  89 e2 74 18 1d 56 54 7f  24 1a ad 69 da 73 6b 9a  |..t..VT.$..i.sk.|
  00000020  3a 5b 0a 94 2b 78 39 d7  29 c2 df 98 e6 90 a2 0f  |:[..+x9.).......|
  00000030  09 17 fe 5e 12 c4 b7 f2  1b 3b e0 80 0e c0 ae 3b  |...^.....;.....;|
 },
 ChainHash: (chainhash.Hash) (len=32 cap=32)<PHONE_NUMBER>19d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f,
 ShortChannelID: (lnwire.ShortChannelID) XXXXXX:YYYY:1,
 Timestamp: (uint32)<PHONE_NUMBER>,
 MessageFlags: (lnwire.ChanUpdateMsgFlags) 00000001,
 ChannelFlags: (lnwire.ChanUpdateChanFlags) 00000000,
 TimeLockDelta: (uint16) 40,
 HtlcMinimumMsat: (lnwire.MilliSatoshi) 1000 mSAT,
 BaseFee: (uint32) 0,
 FeeRate: (uint32) 100,
 HtlcMaximumMsat: (lnwire.MilliSatoshi)<PHONE_NUMBER> mSAT,
 ExtraOpaqueData: (lnwire.ExtraOpaqueData) {
 }
}

2022-01-17 22:19:53.254 [ERR] CRTR: Channel update of ourselves received
2022-01-17 22:19:53.254 [WRN] CRTR: Routing failure for local channel <id> occurred
2022-01-17 22:19:53.270 [INF] RPCS: [DeletePayment] payment_identifier=2d1a286b83199836b7b83c21d2f9db53cba6e716124566a5d08623877df55441, failed_htlcs_only=false

Incidentally, upon stopping and re-starting LND, it does correctly report:
2022-01-17 22:52:56.621 [INF] LTND: Waiting for chain backend to finish sync, start_height=0

This is expected: your node fell out of sync, so payments started failing since it doesn't know what the actual block height is. If you want to re-index your node, to be safe, you should shut down lnd as well, as otherwise it doesn't have a clean view of the network.
The pause upon restart is expected, as it knows that at that point its wallet and the full node aren't in sync.

This is expected

@Roasbeef I am not surprised at the failure -- only that it reattempts infinitely (?), polluting the logs with hundreds of failures per second.
Could there be a circuit breaker?


Where is conv2d implemented?

I have been looking for the code of tf.nn.conv2d(...), so I looked in the directory tensorflow/python/ops/nn.py and the only things I found is
"depthwise_conv2d"
AND
"separable_conv2d"
Can someone point me to the location of conv2d?

Look for something like this
REGISTER_KERNEL_BUILDER(Name("Conv2D")
.Device(DEVICE_CPU)
.TypeConstraint("T"),
Conv2DOp<CPUDevice, float>);
hence, search for "Conv2DOp" to see the implementation

Found it, thank you very much.


sample_text_to_3d jupyter notebook issue

Hello,
I've installed shap-e on two computer now and I can't seem to get past the 4th code block on the notebook.
I haven't changed the code at all. It gets stuck on " 0% [insert empty progress bar here] 0/64 [00:00<?, ?it/s]". I had it running for over an hour and it didn't do anything.
How long is it supposed to take on average? Am I being impatient or is something wrong with my computers?
PS. I'm on Windows 11

Once I added this issues the code started working. Sorry

I experience the same thing on my installation. Doesn't give me any errors but my progress bar looks like yours and I have been letting it run for 120 minutes with nothing happening, so I'm assuming that it doesn't work, but I might be wrong. I'm on Windows 10 with an i9-9900K and 64GB DDR4, which makes me think that if it would work it would have moved atleast 1% in that time. What did you do to solve it?

Once I added this issues the code started working. Sorry

@michaelstrefeler What do you mean? Did you restart or just let it run for longer?

Once I added this issues the code started working. Sorry

@michaelstrefeler What do you mean? Did you restart or just let it run for longer?

I ran it again without any changes and it worked

I experience the same thing on my installation. Doesn't give me any errors but my progress bar looks like yours and I have been letting it run for 120 minutes with nothing happening, so I'm assuming that it doesn't work, but I might be wrong. I'm on Windows 10 with an i9-9900K and 64GB DDR4, which makes me think that if it would work it would have moved atleast 1% in that time. What did you do to solve it?

Restarting the kernel might fix it. Restarting your computer could also help

@Nojahhh I think you run it on CPU. For me, computation on CPU takes ~37h (i7 11gen) but on Google colab GPUs - around 2 minutes.


chore: release main

:robot: I have created a release beep boop
package-a: 3.1.0
3.1.0 (2024-02-04)
Features

adding new feature (7a1958a)

package-b: 3.0.1
3.0.1 (2024-02-04)
Bug Fixes

fix vulnerability issue (c6c7b64)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/hung-cybo/demo-monorepo-release-please/releases/tag/package-a%403.1.0 :sunflower:

:robot: Release is at https://github.com/hung-cybo/demo-monorepo-release-please/releases/tag/package-b%403.0.1 :sunflower:


Checks github API if homepage 404s

[X] Have you followed the guidelines in our Contributing document?
[X] Have you checked to ensure there aren't other open Pull Requests for the same change?
[X] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

Fixes #13789

🙏 Thanks again for the review! Please lmk if there's anything else that needs to change

Of course! I'm poking through the other help_wanted issues to see if there's others I can pick up. Has been fun!
Anything I should change on my end for the codecov/project check? Looks like a bunch of unrelated coverage % change in codecov: https://github.com/Homebrew/brew/pull/13907/checks?check_run_id=8472344053


Error checking when using kubeconfig is wrong

The function getK8sNetwork returns an error. After commit 7066439e38ce3e442699b40c4bbe3485a2409fd7
it was changed so that the error checking is done on the type of the returned error, instead of the string value. In cmdAdd a check is done for the type '*NoK8sNetworkError', but the function returns NoK8sNetworkError (no star), so the statement will never be true. What will happend is that the else will be taken, and if there is a default net in the delegates list, the pod will be started without any anotated nets, just with the default network, this is wrong if you wnated the pod to have annotated networks, and made an error in the config.
Also the cmdDel does not even check for the type of error, but for the string value, that is not returned anymore, since the update of getK8sNetwork.
Attaching a git diff for an example fix.
multus-error.patch.tar.gz
Fixes 1
Signed-off-by<EMAIL_ADDRESS>

Hi Anders. I will check the issue and try to fix it with your patch.

Great!!!

Also put the .patch into a gist here @ https://gist.github.com/dougbtv/c58c08c9498070c2cdb9fd10dbc801e4

Fixed in #60


v3: use latest Go releases

In CI, specify only a minor version, so GitHub Actions will use the latest in
that minor version series.
In go.mod, require a version of Go with the Certificate.Verify panic patched.

Lgtm conceptually but tests failing


Unknown block type backup_retention_settings

Prerequisites

[x] Ensure you have latest version of plugin installed
[x] Search for possible issue duplicates

Installation details

[x] IDE version

IntelliJ IDEA 2021.1.3 (Ultimate Edition)
Build #IU-211.7628.21, built on June 30, 2021
Licensed to Sven Schliesing
Subscription is active until February 8, 2022.
Runtime version: 11.0.11+9-b1341.60 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.2.3
GC: ParNew, ConcurrentMarkSweep
Memory: 3987M
Cores: 16
Non-Bundled Plugins: com.databricks (1.1), org.intellij.plugins.hcl (0.7.10), name.kropp.intellij.makefile (211.7628.1), org.toml.lang (<IP_ADDRESS>68-211), org.jetbrains.kotlin (211-1.5.21-release-317-IJ7442.40), zielu.gittoolbox (203.5.10), Pythonid (211.7628.24), org.jetbrains.plugins.go (211.7628.1), com.google.gct.core (21.6.1)
Kotlin: 211-1.5.21-release-317-IJ7442.40

[x] intellij-hcl plugin version: 0.7.10
[x] Terraform version

Terraform v0.15.5
on darwin_amd64
+ provider registry.terraform.io/hashicorp/google v3.75.0
+ provider registry.terraform.io/hashicorp/google-beta v3.75.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.3.2
+ provider registry.terraform.io/hashicorp/random v3.1.0

Terraform Configuration Files
resource "google_sql_database_instance" "sophora" {
  project = var.project
  name    = var.instance_name
  region  = "europe-west3"

  database_version = "MYSQL_8_0"
  settings {
    tier            = var.tier
    disk_autoresize = true
    ip_configuration {
      ipv4_enabled    = false
      private_network = var.network
    }

    backup_configuration {
      enabled                        = true
      transaction_log_retention_days = 7
      start_time                     = "09:00" // local TZ
      binary_log_enabled             = true
      backup_retention_settings {
        retained_backups = 7
      }
    }

    maintenance_window {
      day = "2" // Thursday
      hour = "7" // UTC
      update_track = "stable"
    }
  }
}

Expected Behavior
No error message for sub-block "backup_retention_settings". Documentation shows that the block is correct, also terraform apply runs without problem.
Actual Behavior
Error message for sub-block "backup_retention_settings".

Steps to Reproduce
Please list the steps required to reproduce the issue, for example:

Place cursor over block "backup_retention_settings"

Fixed in 0.7.11


ModuleNotFoundError: Module langchain_community.document_loaders not found. Please install langchain-community to access this module. You can install it using pip install -U langchain-community

langchain-community needs to be added to requirements.txt

Thank you. We updated "requirements.txt".

You are welcome :)


invalid asset amount in market_submit_bid

Also, as a related issue, when this bug occurs, the balance reported by the GUI diverges from the balance reported from the console for the account (presumably the GUI keeps its own balance value and decrements it without verifying the order was successfully placed).

Possibly still happening: https://bitsharestalk.org/index.php/topic,15900.msg204140.html#msg204140

Still happening in some cases: https://bitsharestalk.org/index.php/topic,15900.msg205125.html#msg205125


blaze template

I try to use this package with angular-meteor : 255kb:meteor-status
It has a template to import called meteorStatus
So what I did is this :
meteor add urigo:angular-blaze-template
<blaze-template name="meteorStatus"></blaze-template>
Here is the error I got :
ReferenceError: Template is not defined     at link (http://localhost:3000/packages/urigo_angular-blaze-template.js?e5e45916605fdaac59a14f9b3c10470a66e725ca:36:13)

You should use angular-with-blaze package instead of the angular package in case you want to work also with Blaze templates

Ok but then you can't use angular template. I thought it was possible sometimes to combine both..

It is possible, that's why it's called angular-with-blaze...

@ThomsC you can.
All you need to do is save angular templates with .ng.html and blaze templates with .html.
This way angular and blaze won't collide.

But that what I did. And I got the problem above

@ThomsC can you share your repo?

Ok not sure how to do that yet but I will

https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

Closing until you will provide a reproduction

Here is the repo : https://github.com/ThomsC/angular-with-blaze.git,
the template with blaze is in client/index.ng.html

@ThomsCass You should update packages. It's working with latest releases

great.
@ThomsCass feel free to re-open is that's not the case


lima tag definitions

Hi,
I can't find definitions for tags added by lima. Can you please provide definitions for these?
qs
qe
bc
bq
cx
bl
bt
ql
qt
bx

https://pacbiofileformats.readthedocs.io/en/10.0/BAM.html

Thanks, but some tags are not listed there:
bl, bt, ql, qt
Additionally, lima is adding non-zero qs and qe tags, which shouldn't be there. I am running lima after ccs, and according to PacBio formats page, qs and qe should be absent in CCS BAM files.

We'll add those in the next round.
The spec says CCS BAM files don't include them. The spec doesn't state anything demultiplexed CCS BAM files ;) Feel free to ignore them.


Backports BaggagePropagation to 2.2.x

This allows integrations of Sleuth to use the same approach for 2.2.x as 3.x:
If you have a custom base propagation format, override the BaggagePropagation.Factory
bean instead of ExtraFieldsPropagation.Factory
Note: one subtle difference 2.2.x to 3.x is the change in the primary inject format.
2.2.x is
return BaggagePropagation.newFactoryBuilder(B3Propagation.newFactoryBuilder()
                         .injectFormat(B3Propagation.Format.MULTI).build());

3.0 is
return BaggagePropagation.newFactoryBuilder(B3Propagation.newFactoryBuilder()
                         .injectFormat(B3Propagation.Format.SINGLE_NO_PARENT).build());

per #1607
See https://github.com/spring-cloud/spring-cloud-gcp/issues/2268

cc @meltsufin  @saturnism


Transform cards don't have flavorText field

All cards in the sets jsons with layout: "transform" don't have flavorText fields, regardless of if the face has ft or not. This isn't a problem on the meld layout cards. Easiest way to see this is V17.json, but they're missing from the comprehensive jsons as well.

That's a big problem. Thanks for bringing this up. I'll work on this hopefully next week.


Page not found - npm homepage

The Homepage link on https://www.npmjs.com/package/vss-web-extension-sdk page leads to a VisualStudio related page https://www.visualstudio.com/integrate/extensions/overview which does not exist.

There is a redirect now


Release hal-0.6

Should be merged after #3336 and be the last PR before we publish everything.

Bors r+

On Aug 15, 2020, at 13:42, monocodus[bot]<EMAIL_ADDRESS>wrote:

@monocodus[bot] approved this pull request.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

bors r+


bobclarke autodeploy001

Added new Github Actions workflow for deployment (initially to staging with other environments to be added)

Raised in error


Installation in Google Colab

What is the specific installation in colab? pip install glove_python isn't working

Should I edit in the documentation that it is pip install  glove-python-binary

I want to contribute to this one.

@Kipkurui-mutai It would be helpful if could try pip install glove-python-binary and let me know if it works.
It should work for python 3.6 or 3.7 on Windows or Linux.

It works

After install sucess glove-python-binary i can't import glove


[APR-212] add support for MRF-specific endpoint scheme

What does this PR do?
Adds support to the new endpoint URL scheme when operating in MRF mode.
This specifically affects where metadata, metrics, and logs (classic logs + EvP-based product-specific "logs") are sent for MRF-only forwarders.
Motivation
This was borne out of the desire to have MRF-specific endpoints to keep regular and MRF traffic separate.
Additional Notes
I've collapsed some of the flexibility in the related methods since it required having to stick in specific configuration key names in places that shouldn't ever need to care about it.
Possible Drawbacks / Trade-offs
N/A
Describe how to test/QA your changes

Update your development Agent configuration (dev/dist/datadog.yaml) to enable MRF:

logs_enabled: true
multi_region_failover:
  enabled: true
  site: <valid Datadog site>
  api_key: <valid Datadog API key for the site>
remote_configuration:
  enabled: true

Build the Agent as you normally would (inv agent.build)
Run the Agent (bin/agent/agent -c bin/agent/dist run)
Query the Agent status and check that you have MRF-specific URLs being used for metrics and logs (bin/agent/agent -c bin/agent/dist status | grep mrf)

# Example output based on `us3.datadoghq.com` for `multi_region_failover.site`
toby@local:~# bin/agent/agent -c bin/agent/dist status | grep mrf
  https://app.mrf.us3.datadoghq.com - API Key ending with:
    Reliable: Sending compressed logs in HTTPS to agent-http-intake.logs.mrf.us3.datadoghq.com on port 443

Specifically, we're looking to see that we have a general infrastructure-specific entry (app.mrf.us3.datadoghq.com) and a logs-specific entry (agent-http-intake.logs.mrf.us3.datadoghq.com) with just a basic site value (us3.datadoghq.com) for the MRF site.

/merge

/merge

/merge


Downloading some types of PNGs fails with ZnEasy

ImageReadWriter fails to parse some PNGs.
An example is the feenk logo from twitter.

This will trigger an error:
ImageReadWriter gtFormFromFileReference: 'mHfdxh8Q.png' asFileReference

This means that using ZnEasy to download PNGs can fail.
ZnEasy getPng: 'https://pbs.twimg.com/profile_images/1141217914055536640/mHfdxh8Q.png'.

triggers an error:

We should introduce an extension method to ZnEasy class>>gtGetPng: that would use SkiaImage to convert the bytes of the png to a form and avoid ImageReadWriter.

The png in question seems to have some errors when using pngcheck, however it is downloaded directly from Twitter and more PNGs seems to have this issue.
pngcheck -v mHfdxh8Q.png
File: mHfdxh8Q.png (18136 bytes)
  chunk IHDR at offset 0x0000c, length 13
    512 x 512 image, 32-bit RGB+alpha, non-interlaced
  chunk IDAT at offset 0x00025, length 8192
    zlib: deflated, 32K window, fast compression
  chunk IDAT at offset 0x02031, length 8192
  chunk IDAT at offset 0x0403d, length 827
  chunk IEND at offset 0x04384, length 0
  additional data after IEND chunk
ERRORS DETECTED in mHfdxh8Q.png

We now have ZnEasy class>>gtGetPng:that avoids the issue by using SkiaImage to create a Form object

Related enhancement request: https://github.com/pharo-project/pharo/issues/12261


Crash when obtaining fief on the random daily tick with CalculateProsperityChangeInternal_Patch2 method

Can someone from a Dev team of the CommunityPatch confirm, that this crash have nothing to do with it? Pretty please, just in case. Because, I believe, that I don't have any other mod, that do something with this method.
Steps -

Obtain a Castle/Town,
Start to upgrade it, (maybe irrelevant)
Just play the game normally,
It will crash on a random day tick.

1.4 Beta
CommunityPatch-rc5 (but it was happened before rc5, with rc2 too)
The crash is constant. You can't get pass it by disable some or all mods when you get it. Basically, you're save is doomed from that point.
Source: TaleWorlds.CampaignSystem
Object reference not set to an instance of an object.

at DMD?24490699::CalculateProsperityChangeInternal_Patch2>(DefaultSettlementProsperityModel this, Town fortification, StatExplainer explanation)
   at TaleWorlds.CampaignSystem.Town.DailyTick()
   at TaleWorlds.CampaignSystem.Campaign.DailyTickSettlement(Settlement settlement)
   at TaleWorlds.CampaignSystem.MbEvent`1.InvokeList(EventHandlerRec`1 list, T t)
   at TaleWorlds.CampaignSystem.CampaignEvents.DailyTickSettlement(Settlement settlement)
   at TaleWorlds.CampaignSystem.CampaignEventDispatcher.DailyTickSettlement(Settlement settlement)
   at TaleWorlds.CampaignSystem.PeriodicTicker`1.PeriodicTickSome(Single timeUnitsElaped)
   at TaleWorlds.CampaignSystem.Campaign.Tick(Single dt)
   at TaleWorlds.CampaignSystem.Campaign.RealTick(Single realDt)
   at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
   at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
   at TaleWorlds.Core.Game.OnTick(Single dt)
   at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
   at DMD?66083951::OnApplicationTick_Patch1>(Module this, Single dt)

After disabling CommunityPatch, crash log are a little different for some reason -
Source: TaleWorlds.CampaignSystem
Object reference not set to an instance of an object.

 at TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultSettlementProsperityModel.CalculateProsperityChangeInternal(Town fortification, StatExplainer explanation)
   at TaleWorlds.CampaignSystem.Town.DailyTick()
   at TaleWorlds.CampaignSystem.Campaign.DailyTickSettlement(Settlement settlement)
   at TaleWorlds.CampaignSystem.MbEvent`1.InvokeList(EventHandlerRec`1 list, T t)
   at TaleWorlds.CampaignSystem.CampaignEvents.DailyTickSettlement(Settlement settlement)
   at TaleWorlds.CampaignSystem.CampaignEventDispatcher.DailyTickSettlement(Settlement settlement)
   at TaleWorlds.CampaignSystem.PeriodicTicker`1.PeriodicTickSome(Single timeUnitsElaped)
   at TaleWorlds.CampaignSystem.Campaign.Tick(Single dt)
   at TaleWorlds.CampaignSystem.Campaign.RealTick(Single realDt)
   at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
   at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
   at TaleWorlds.Core.Game.OnTick(Single dt)
   at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
   at DMD?66083951::OnApplicationTick_Patch1>(Module this, Single dt)

Need a save that's trimmed down on mods to quickly reproduce for debugging.

Reopening for discussion

Bug in game; somehow possible for a Town to not have a CurrentBuilding (by way of not having a CurrentDefaultBuilding).
Added a fallback to CurrentDefaultBuilding that will just pick a random daily default if it would otherwise be null.
Should be solved.

This patch solves my problem with this save. (and perhaps, many others, that was doomed with this crash)
Once again, thanks to magician @Tyler-IN fordebugging and overall much appreciated help in a time of need. I hope, this fix gonna save someone much need nerve cells and most importantly - TIME.
Closing it for now.


Dreamboth wouldnt detect custom model version

Hi, i keep having this issue:

Yesterday it worked fine providing civitai downloading link, but i dont know what happened, i also tried to use gdrive path, or previous session, but nothing fixed it.
I appreciate your suggestion

what is the link of the model ?

what is the link of the model ?

I thing the issue was due of lack of gpu units, anyways link model is https://civitai.com/api/download/models/84576

without a GPU it will fail the detection

without a GPU it will fail the detection

Oh ok, thanks. I have another question, if i already trained a model for X subject with 10 img, how should i proceed for train the same model again but with other differents 10 img of the same X subject? its that recommended? i feel it isnt propperly trained

it's not recommended, one subject/model

it's not recommended, one subject per model

I mean, how to improve the model for the same subject? should i re train it with more img?

you resume the unet training until you get good results


Fix html tag mismatch in action text readme

It looks like the tags are mismatched here.

lol, this was actually merged into rails main


Fusion integration stoped working

FusionSolar integration in Home Assistant stoped working after Site upgrade that had finished on 30 december.
Kiosk site work but no info is visible in Home Assistant.
Tried generating a new Kiosk link but that didn't help.

It looks like they have changed to region02eu5.fusionsolar.huawei.com instead of eu5.fusionsolar.huawei.com for the kiosk site. As a temporary solution, you can change this in the file /config/custom_components/fusion_solar_kiosk/sensor.py (with the File editor Add-on for example) and then restart HA.

Thanks @tobber72  this workaround works.

Thanks @tobber72  this workaround works.

Hello tobber72. Since the update of the Huawei site, I lost the data in HA.
I tried to replace the address in the line 36 of the file /config/custom_components/fusion_solar_kiosk/sensor.py and restarting HA but in my case, it doesn't work. I thank you in advance for your help.
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
    async def async_update_data():
        """Fetch data"""
        api = FusionSolarKioksApi('https://region01eu5.fusionsolar.huawei.com')
        data = {}
        for kiosk in config[CONF_KIOSKS]:
            data[kiosk['id']] = {
                ATTR_DATA_REALKPI: await hass.async_add_executor_job(api.getRealTimeKpi, kiosk['id'])
            }

Best wishes for 2022.

Strange, can you verify that the following endpoint returns json-data if you try it out in your regular web browser:
https://region03eu5.fusionsolar.huawei.com/rest/pvms/web/kiosk/v1/station-kiosk-file?kk=ReplaceWithYourKioskKey
If it returns 'null' or similar I think it is the wrong kiosk site or key for your plant address.

Thank you
https://region01eu5.fusionsolar.huawei.com/rest/pvms/web/kiosk/v1/station-kiosk-file?kk=XXXXX returns json data :like this
{"data":"{"powerCurve":{"xAxis":["00:00","00:05","00:10","00:15","00:20","00:25","00:30","00:35","00:40","00:45","00:50","00:55","01:00","01:05","01:10","01:15","01:20","01:25","01:30","01:35","01:40","01:45","01:50","01:55","02:00","02:05","02:10","02:15","02:20","02:25","02:30","02:35","02:40","02:45","02:50","02:55","03:00","03:05","03:10","03:15","03:20","03:25","03:30","03:35","03:40","03:45","03:50","03:55","04:00","04:05","04:10","04:15","04:20","04:25","04:30","04:35","04:40","04:45","04:50","04:55","05:00","05:05","05:10","05:15","05:20","05:25","05:30","05:35","05:40","05:45","05:50","05:55","06:00","06:05","06:10","06:15","06:20","06:25","06:30","06:35","06:40","06:45","06:50","06:55","07:00","07:05","07:10","07:15","07:20","07:25","07:30","07:35","07:40","07:45","07:50","07:55","08:00","08:05","08:10","08:15","08:20","08:25","08:30","08:35","08:40","08:45","08:50","08:55","09:00","09:05","09:10","09:15","09:20","09:25","09:30","09:35","09:40","09:45","09:50","09:55","10:00","10:05","10:10","10:15","10:20","10:25","10:30","10:35","10:40","10:45","10:50","10:55","11:00","11:05","11:10","11:15","11:20","11:25","11:30","11:35","11:40","11:45","11:50","11:55","12:00","12:05","12:10","12:15","12:20","12:25","12:30","12:35","12:40","12:45","12:50","12:55","13:00","13:05","13:10","13:15","13:20","13:25","13:30","13:35","13:40","13:45","13:50","13:55","14:00","14:05","14:10","14:15","14:20","14:25","14:30","14:35","14:40","14:45","14:50","14:55","15:00","15:05","15:10","15:15","15:20","15:25","15:30","15:35","15:40","15:45","15:50","15:55","16:00","16:05","16:10","16:15","16:20","16:25","16:30","16:35","16:40","16:45","16:50","16:55","17:00","17:05","17:10","17:15","17:20","17:25","17:30","17:35","17:40","17:45","17:50","17:55","18:00","18:05","18:10","18:15","18:20","18:25","18:30","18:35","18:40","18:45","18:50","18:55","19:00","19:05","19:10","19:15","19:20","19:25","19:30","19:35","19:40","19:45","19:50","19:55","20:00","20:05","20:10","20:15","20:20","20:25","20:30","20:35","20:40","20:45","20:50","20:55","21:00","21:05","21:10","21:15","21:20","21:25","21:30","21:35","21:40","21:45","21:50","21:55","22:00","22:05","22:10","22:15","22:20","22:25","22:30","22:35","22:40","22:45","22:50","22:55","23:00","23:05","23:10","23:15","23:20","23:25","23:30","23:35","23:40","23:45","23:50","23:55"],"currentPower":"0.00","activePower":["-","-","-","-","-","-","-","-","-","-...

But the developments tools in HA shows :

I tried with  api = FusionSolarKioksApi('https://region01eu5.fusionsolar.huawei.com/rest/pvms/web/kiosk/v1')in the line 36
but I get then the following error in the log of HA :
Cette erreur provient d'une intégration personnalisée

Logger: custom_components.fusion_solar_kiosk.sensor
Source: custom_components/fusion_solar_kiosk/fusion_solar_kiosk_api.py:32
Integration: FusionSolar Kiosk (documentation, issues)
First occurred: 21:37:55 (1 occurrences)
Last logged: 21:37:55

Unexpected error fetching FusionSolarKiosk data: Expecting value: line 6 column 1 (char 5)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/fusion_solar_kiosk/sensor.py", line 40, in async_update_data
    ATTR_DATA_REALKPI: await hass.async_add_executor_job(api.getRealTimeKpi, kiosk['id'])
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/fusion_solar_kiosk/fusion_solar_kiosk_api.py", line 32, in getRealTimeKpi
    jsonData = response.json()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 6 column 1 (char 5)

I tried with api = FusionSolarKioksApi('https://region01eu5.fusionsolar.huawei.com/rest/pvms/web/kiosk/v1')in the line 36 but I get then the following error in the log of HA :

You shall only have the host part of the url (https://region01eu5.fusionsolar.huawei.com) in the sensor.py file. The rest of the url (/rest/pvms/web/kiosk/v1 and so on) is added in the fusion_solar_kiosk_api.py file.
Maybe you can try enabling more logging in the configuration.yaml file and see if you get any clue why it does not work for you.
logger:
  default: info
  logs:
    custom_components.fusion_solar_kiosk: debug

By the way, do you have the latest version (v2.1.0) of "Home-Assisant-FusionSolar-Kiosk" installed via HACS? :-)

I confirm. V2.1.0. installed via HACS.
I have this in the log "core" :
2022-01-03 10:45:20 DEBUG (MainThread) [custom_components.fusion_solar_kiosk.sensor] Finished fetching FusionSolarKiosk data in 0.182 seconds (success: True)

I had the same issue, running v2.1.0 via HACS and HA Home Assistant 2021.11.2 (core).
There are 2 files where you need to make changes:

homeassistant/custom_components/fusion_solar_kiosk/sensor.py, line 36
replace <api = FusionSolarKioksApi('https://eu5.fusionsolar.huawei.com')>
with <api = FusionSolarKioksApi('https://region5eu5.fusionsolar.huawei.com')>

homeassistant/custom_components/fusion_solar_kiosk/fusion_solar_kiosk_api.py, line 22
replace <url = self._host + '/rest/pvms/web/kiosk/v1/station-kiosk-file?kk=' + id>
with <url = self._host + '/pvmswebsite/nologin/assets/build/index.html#/kiosk?kk=' + id>

Ignore the "<" & ">" characters, just used them to enclose the code.  After these changes and restarting my HA, all works fine.

Hello, I did it but I have now the following error message in the log :
Cette erreur provient d'une intégration personnalisée

Logger: custom_components.fusion_solar_kiosk.sensor
Source: custom_components/fusion_solar_kiosk/fusion_solar_kiosk_api.py:32
Integration: FusionSolar Kiosk (documentation, issues)
First occurred: 00:38:24 (113 occurrences)
Last logged: 09:58:24

Unexpected error fetching FusionSolarKiosk data: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/fusion_solar_kiosk/sensor.py", line 40, in async_update_data
    ATTR_DATA_REALKPI: await hass.async_add_executor_job(api.getRealTimeKpi, kiosk['id'])
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/fusion_solar_kiosk/fusion_solar_kiosk_api.py", line 32, in getRealTimeKpi
    jsonData = response.json()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I also trie to remove then to reinstall Fusion Solar always through HACS but I have the same issue.
Pascal

I also tried to change the language of the kiosk file in Fusion Solar to English but it doesn't change anything.

I also tried to change the language of the kiosk file in Fusion Solar to English but it doesn't change anything.

At the moment I unfortunately have run out of ideas to solve this problem for you but I wish you all the best and that you find a solution so you can use the integration again and if I come up with something I will try to get in touch :-)

@tobber72 of @NickBootOne can someone confirm? If it is not working I suspect that I need to make the url of the kiosk configurable, because everybody can get another zone.
If possible could you share your full kiosk url with me please?

You have changed the URL in the sensor.py file, but my kiosk URL is like "https://region03eu5.fusionsolar.huawei.com", in your file it's "https://region04eu5.fusionsolar.huawei.com" so it's not working for me.
Also in the fusion_solar_kiosk_api.py file, the URL is in the old format.

Ok, thx.
If I find the time later this week/next week I will try to make the url configurable.

Hello Tijs,
I tried to use the new version by changing the sensor.py and the fusion_solar_kiosk_api.py files but without success.
My api begins with :
https://region01eu5.fusionsolar.huawei.com/pvmswebsite/nologin/assets/build/index.html#/kiosk?kk=
I of course also changed my configuration.yaml with the correct code (end of the api).
Thank you for your support.
Pascal

Done by email.

Done by email too.

For me it is region02, so it is differen

Confirm - it's working now.  Thank you for your efforts!

Thank you !

Thank you for your efforts with the new version @tijsverkoyen !

No problem!


Add OAuth (UAA) manifest for AWS and GCP

Fixes for AWS Ingress

Codecov Report

Merging #94 into master will decrease coverage by 0.22%.
The diff coverage is 14.28%.

@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
- Coverage   35.23%   35.01%   -0.23%
==========================================
  Files          18       18
  Lines         491      497       +6
==========================================
+ Hits          173      174       +1
- Misses        318      323       +5

Impacted Files
Coverage Δ

tpl/aws/deployments/ingress/ingress.yml.erb
0% <ø> (ø)
:arrow_up:

lib/kite/render.rb
80.88% <14.28%> (-7.65%)
:arrow_down:

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 5f801e6...4288474. Read the comment docs.


Vim command line key-binding eats subsequent key presses

I use the space bar instead of : for ergonomics. Since the key binding .json file does not appear to support opening the vim command line, I have added the following to my config:
"experimental.viml": [
    "nnoremap <Space> :",
    "vnoremap <Space> :"
]

The issue is that after pressing space there is a very short period where any key-presses that follow it are lost. This means that a quick :w (by typing <Space>w), which is well ingrained in my muscle memory, will almost always fail unless I consciously type it slowly.

Thanks for the details @mfish38  - can reproduce as well. Working on a fix in #3053

Thanks for the details @mfish38  - can reproduce as well. Working on a fix in #3053


How to draw the visualization map?

Hi,
Does the porject provide the code to draw the visualization map from Figure 3 as the paper shown?

Kind regards,
Qiming

You can draw a similar figure by using matplotlib's colorbar.


Remove the warning for setState on unmounted components

Consistent with upstream React, we should remove the error message when you setState on an unmounted component.
In summary, while it can warn on potential memory leaks, false positives is common and can push people to undesirable workarounds:
function TestComponent:didMount()
    testPromise():andThen(function(newState)
        -- Component might unmount before our promise resolves
        self:setState(newState)
    end)
end

For the full reasoning behind removing the warning, see Dan Abramov's PR: facebook/react#22114
Checklist before submitting:

[x] Added entry to CHANGELOG.md
[x] Added/updated relevant tests
[x] Added/updated documentation

Coverage increased (+0.004%) to 94.806% when pulling f0e84b4766b5e116fc395b7bc06a57548b0a1780 on chriscerie:remove-setstate-warning into f889158a024b1c4d1cf1c6e96af860250c931eaa on Roblox:master.


Sometimes rendering the admin change_list page chokes (not sure what leads to it) because of attempted use of negative indexing

Uses len(children)-1 in place of -1, as children is/can be a QuerySet, which doesn't support negative indexing
This fixes the issue, but I am really stabbing in the dark as to the purpose and proper solution here.

NO.
https://github.com/divio/django-cms/issues/1099
This workaround will completely nuke your database with queries.
Please downgrade to django-mptt 0.5.1 instead.


add block header storage and sync

add block header storage and sync

Codecov Report

Merging #157 into dev will increase coverage by 0.37%.
The diff coverage is 24.56%.

@@             Coverage Diff              @@
##                dev     #157      +/-   ##
============================================
+ Coverage     13.64%   14.02%   +0.37%
- Complexity      145      149       +4
============================================
  Files            98      101       +3
  Lines          2696     2788      +92
  Branches        201      204       +3
============================================
+ Hits            368      391      +23
- Misses         2301     2368      +67
- Partials         27       29       +2

Impacted Files
Coverage Δ
Complexity Δ

...om/webank/wecross/config/NettyBootstrapConfig.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...in/java/com/webank/wecross/config/ZonesConfig.java
6.15% <0%> (-0.2%)
2 <0> (ø)

...ross/storage/RocksDBBlockHeaderStorageFactory.java
0% <0%> (ø)
0 <0> (?)

...ank/wecross/storage/RocksDBBlockHeaderStorage.java
0% <0%> (ø)
0 <0> (?)

...ecross/config/RocksDBBlockHeaderFactoryConfig.java
0% <0%> (ø)
0 <0> (?)

...main/java/com/webank/wecross/config/P2PConfig.java
0% <0%> (ø)
0 <0> (?)

.../com/webank/wecross/config/ConfigReaderConfig.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...a/com/webank/wecross/p2p/netty/NettyBootstrap.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...om/webank/wecross/config/AccountManagerConfig.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

src/main/java/com/webank/wecross/zone/Chain.java
33.84% <27.02%> (-1.64%)
7 <3> (+3)

... and 4 more

Continue to review full report at Codecov.

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


onSubmit is being called before preSubmit

I am on v3.5.1 and I am experiencing this weird behavior where the preSubmit is called after onSubmit. You can see this in action in this codesandbox: https://codesandbox.io/s/6n2vnyj2q3
Enter a value in the text field and hit submit. Check the console. You will see that the log statement from onSubmit is printed before the one from preSubmit. Also, onSubmit receives the original value, not the one that is returned from preSubmit. Am I missing something? I am pretty sure that it was working correctly a few versions ago, specifically in v3.4.4

Also confirmed that is not working as expected on v3.5.3.

This is fixed in latest release

Thanks a lot @joepuzzo . Now preSubmit is called before onSubmit which is correct. But onSubmit still gets the original values and not the ones returned from preSubmit. No?

Can confirm preSubmit is called AFTER onSubmit.


Possible to discard the time part from a parsed results?

Hi folks!
Really enjoying using dateparser.
Currently, I have the following requirement -
25/12/2018 8:13:39 PM should be parsed as 2018-12-25 and NOT as 2018-12-25 20:13:39. Is there anything I could specify to the settings parameter while parsing the strings?

Have you tried any of the format and date order settings?

Have you tried any of the format and date order settings?

Possible to provide a sample that I could refer to?

Possible to provide a sample that I could refer to?

You should start by checking out https://dateparser.readthedocs.io/en/latest/settings.html

You should start by checking out https://dateparser.readthedocs.io/en/latest/settings.html

I did try to explore a few settings. But I am not sure which exact ones I could tweak to make it work.

I did try to explore a few settings. But I am not sure which exact ones I could tweak to make it work.

Hi @sayakpaul!
You don't need to use any settings to get this result. dateparser.parse() returns a python datetime object:
>>> dateparser.parse('25/12/2018 8:13:39 PM')
datetime(2018, 12, 25, 20, 13, 39)

So, if you just want the date you can execute .date() over the datetime object:
>>> date_obj = dateparser.parse('25/12/2018 8:13:39 PM')
>>> date_obj.date()
datetime.date(2018, 12, 25)

or just
>>> dateparser.parse('25/12/2018 8:13:39 PM').date()
datetime.date(2018, 12, 25)

Just take into account that dateparser.parse() can return a datetime or None so it's safer to do something like:
>>> def parse_date(date_string):
...    date_obj = dateparser.parse(date_string)
...    if date_obj:
...        return date_obj.date()

>>> parse_date('25/12/2018 8:13:39 PM')
datetime.date(2018, 12, 25)

Let me know if this works for you :)

Hi @sayakpaul!
You don't need to use any settings to get this result. dateparser.parse() returns a python datetime object:
>>> dateparser.parse('25/12/2018 8:13:39 PM')
datetime(2018, 12, 25, 20, 13, 39)

So, if you just want the date you can execute .date() over the datetime object:
>>> date_obj = dateparser.parse('25/12/2018 8:13:39 PM')
>>> date_obj.date()
datetime.date(2018, 12, 25)

or just
>>> dateparser.parse('25/12/2018 8:13:39 PM').date()
datetime.date(2018, 12, 25)

Just take into account that dateparser.parse() can return a datetime or None so it's safer to do something like:
>>> def parse_date(date_string):
...    date_obj = dateparser.parse(date_string)
...    if date_obj:
...        return date_obj.date()

>>> parse_date('25/12/2018 8:13:39 PM')
datetime.date(2018, 12, 25)

Let me know if this works for you :)

Perfect. Thank you so much. Perhaps including one of these examples in the official documentation would be helpful. I apologize in advance if I missed it out. :)

Perfect. Thank you so much. Perhaps including one of these examples in the official documentation would be helpful. I apologize in advance if I missed it out. :)


Added the article for Armstrong Number

Have you read the Contributing Guidelines on Pull Requests?
Yes.
Description
Add the article for Armstrong Number. The basic layout for the article should be:
What is Armstrong Number?
Explanation for Armstrong Number
Algorithmic Steps
Code (Use C++/Java and Python; At least two languages should be present and pick up code from NeoAlgo with apt credits to author)
Sample I/O
Time & Space Complexity
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[ ] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Issue: Content: Armstrong Number #25

@HarshCasper I have added the article for Armstrong Number. Please review and let me know of the changes, if any. Thank you :)

@HarshCasper Have made all the changes. Please review them. Thank you :)

Great Work @deeptea22 :clap:


Add a state request to get the block hash, height, and transaction index from the transaction ID

Motivation
I don't think we need to store the block height or hash in the scanner storage. Using the transaction hash, we can get the block height and hash from the state, so there's no need to store it in the scanner as well.
Suggested Design
Here's how we could do that state request:
We can use the transaction hash to look up tx_loc_by_hash, which gives us a TransactionLocation containing the block height (and transaction index). And we can get the block hash from the height. We have read::find methods for some of this already.
There are similar methods in the non-finalized state. This method should be for any chain, but prefer the best chain.
https://github.com/ZcashFoundation/zebra/blob/main/book/src/dev/state-db-upgrades.md#current-state-database-format
https://github.com/ZcashFoundation/zebra/blob/main/zebra-state/src/service/read/find.rs#L129
Originally posted by @teor2345 in https://github.com/ZcashFoundation/zebra/pull/7942#discussion_r1393416374

I think this is optional initially but feel free to remove the label.

We won't be doing any more work on the scanner


Reduce complexity in osbs.build.build_request

The build_request.py module has some pretty large render() methods. This pull requests breaks them up into manageable chunks so the overall process is easier to read and understand.

This is very nice! (and also hard to review -- I vote for merging if tests pass)

What I've done is move plugin-specific configuration out into separate methods with names including the plugin they are for, as well as moving out other related config updates such as resource limits.
This means the main render() method becomes much easier to read, as you can see very quickly which plugins are configured, and how that relates to other config changes.
I'll re-based it.

Nice, merged!

Thanks!

What I've done is move plugin-specific configuration out into separate methods

Very well done. This was totally needed.


[stable/nginx-ingress] Expose TCP and UCP service as hostPorts in daemonsets.

When controller.daemonset.useHostPort is enabled

What this PR does / why we need it:
When controller.daemonset.useHostPort is enabled, TCP and UDP services configured via tcp-udp configmap should be exposed also as hostPorts.
Which issue this PR fixes

fixes #14170

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

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

/assign jackzampolin

/assign @jackzampolin

/assign
/ok-to-test

This pr will also fixes #11917

/lgtm

Thanks for the PR!

/lgtm


how could i build config from str?

in the pre version it has method config_from_str. but i could not find that now how could i init config from str?

You can use serde to deserialize the str to a RawConfig, and then build a configuration using that.
We should provide some explicit documentation/make this easier though!


⚠ Mitsubishi has degraded performance

In 20a8a33, Mitsubishi (https://mitsubishimotorsid-mobileapp.com/app/login) experienced degraded performance:

HTTP code: 200
Response time: 16606 ms

Resolved: Mitsubishi performance has improved in 89a1592 after .


deps: Bump arrow 53, tonic 0.12

Let's make it happen 🚀🚀🚀🚀

There are some SIGABR after upgrading, I'm working on this now.

After the bisect, I discovered that PyO3 was broken following the commit: https://github.com/PyO3/pyo3/commit/1c64a03ea084852572872c0d6b5fd029f116c807.
I'm afraid we can't upgrade pyo3 in our current way. I will discuss with the upstream first.

Shall we publish a new version to unblock https://github.com/risingwavelabs/risingwave/pull/18682?

I’m on vacation. Maybe @stdrc want to do it
On Wed, 9 Oct 2024 at 09:30, Xuanwo @.***> wrote:

Shall we publish a new version to unblock risingwavelabs/risingwave#18682
https://github.com/risingwavelabs/risingwave/pull/18682?
Yes, let's do this. @xxchan https://github.com/xxchan Would you like to
help bump versions?
—
Reply to this email directly, view it on GitHub
https://github.com/arrow-udf/arrow-udf/pull/70#issuecomment-2401424723,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJBQZNPGFRDG5VWL5GDAY5LZ2TEQVAVCNFSM6AAAAABOPNP5EKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGQZDINZSGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

IIUC, we need to bump and publish new minor version for arrow-udf-flight, arrow-udf-python and arrow-udf, right?

IIUC, we need to bump and publish new minor version for arrow-udf-flight, arrow-udf-python and arrow-udf, right?

arrow-udf-flight seems to be the only one depending on tonic?

IIUC, we need to bump and publish new minor version for arrow-udf-flight, arrow-udf-python and arrow-udf, right?

arrow-udf-flight seems to be the only one depending on tonic?

Never mind, just bumped them all https://github.com/arrow-udf/arrow-udf/pull/76.


Preserve newline from stdout and stderr

Node Version: v16.15.0
ShellJS: v0.8.5
OS: Mac
I can't seem to have the same output when it comes to newlines.
Running the command npx hardhat starknet-deploy
Output of from bash
Error in plugin Starknet: No starknet-network or gateway-url provided.

For more info run Hardhat with --show-stack-traces

Output from shelljs
Error in plugin Starknet: No starknet-network or gateway-url provided.
For more info run Hardhat with --show-stack-traces

Example ShellJS command to reproduce the error:
exec('npx hardhat starknet-deploy');

What is starknet-deploy?
Are you able to reproduce this with a simpler command, like echo foo or echo -e "foo\nbar"?

Also: what is the output of npx hardhat starknet-deploy > file.txt; cat file.txt? Sometimes commands behave differently if they're printing to console (TTY). Redirecting the output into a file and then displaying the contents of the file would rule out this possibility.


[Question] How do I not show links in excerpts?

How do I not show links in excerpts?

If this isn't the right place to ask for support, sorry about that. Please direct me to the right channel for that.

You don't have to use the first paragraph as an excerpt, you can write an explicit excerpt using excerpt: in the front-matter, so you can copy/paste your desired text and remove the links in the excerpt.

thanks @travisdowns , that's good but I'd rather not specify an explicit excerpt for each post that I published. Is there a way I can set minima so links are shown as plain text (not hyperlinks) in the excerpt?

@p2635 - well there doesn't seem to be any built-in way, but you could override the home.html layout and change the {{ post.excerpt }} to soemthing like {{ post.excerpt | markdownify | strip_html }}.

thanks I'll try that and close this down @travisdowns


gist list fails with unicode gist names (probably)

fiatjaf@spooner ~> gist list
Traceback (most recent call last):
  File "/usr/local/bin/gist", line 222, in <module>
    main()
  File "/usr/local/bin/gist", line 164, in main
    line = '{} {} {}'.format( info.id, public, info.desc)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 8: ordinal not in range(128)

Thanks! That should be fixed now.


Change Configuration Directories

Currently sudo perms are required for installation because configuration files live in /etc/proxpn/. This could make it harder to distribute via package managers that prefer to avoid using root perms like homebrew. It probably makes sense to utilize /usr/local/etc or better yet ~/.proxpn.
Version 3 here we come. :fireworks:

How about ~/.config/proxpn?

Yep, that works for me


crash when importing game folder

Hi,
Factorio is located in C:\Program Files\Factorio(folder of bin, data, etc)
ModMyFactory is located in C:\Users\Miki\Documents\ModMyFactory_1.8.6(folder of ModMyFactory.exe, etc)
When I use "version manager" -> "add from folder" it start copying Factorio then crash.
from the error-log.txt it seems that there is a bug on the automatic build of the path, it will add Factorio sub-folder two times:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Miki\AppData\Roaming\ModMyFactory\Factorio\Factorio'.
Btw, in C:\Users\Miki\AppData\Roaming\ModMyFactory there is the copied "Factorio" folder and an empty "mods" folder

Fixed in the next release.


NIFI-7424: PutSQL updated, commit and rollback allowed only if autocommit set false for the connection

Enables PutSQL processor to route flow-files to the relationships when AUTO_COMMIT set TRUE; fixes bug NIFI-7424.

ci-workflow / Ubuntu - JDK 1.8 FR (pull_request) Failed, because of the following error
[ERROR] COMPILATION ERROR :
[ERROR] error: error reading /home/runner/.m2/repository/org/apache/sis/core/sis-utility/1.0/sis-utility-1.0.jar; error in opening zip file
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project nifi-media-processors: Compilation failure
[ERROR] error: error reading /home/runner/.m2/repository/org/apache/sis/core/sis-utility/1.0/sis-utility-1.0.jar; error in opening zip file
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :nifi-media-processors
##[error]Process completed with exit code 1.

After inspecting Check Maven Org Cache the following errors with warning was identified-
gzip: stdin: unexpected end of file
/bin/tar: Unexpected EOF in archive
/bin/tar: Unexpected EOF in archive
/bin/tar: Error is not recoverable: exiting now
[warning]Tar failed with error: The process '/bin/tar' failed with exit code 2

It seems like an issue with loading repository. And the code changes also doesn't relatewith this issue.

Please suggest how may I get the pull request merged into the master, since the failure of the workflow is not related to the code change.

Please suggest how may I get the pull request merged into the master, since the failure of the workflow is not related to the code change.

You can commit anything again for this PR recheck. Sometimes it's checks are not successful, but try again, checks will be successful

As long as most checks are successful and the failures are intermittent (download-related), we can proceed with the review. However our default branch is main not master, please rebase against main and force-push this branch again, thanks!

Thanks for closing the pull request @mattyb149 and resolving the issue NIFI-7503 (consequently NIFI-7424 as well).


Feature Request: multiple cursor support

Draft.js is a great product, it is here to stay and certainly change our text editing habits forever.
I was wondering if is there a way to make Draft.js multi cursor compliant. Some point in time there will be use cases but I am afraid at that time community will be too large and with so many people depending on it, changing API will be almost impossible.
Multi cursor editing is very common especilly in code editing. New and very practical use cases, such as real time collaborative editing over internet, is emerging. Some examples could be:

https://togetherjs.com
https://floobits.com
http://etherpad.org

One can add many features by extending the API but having multiple cursors is not one of them. Please can you consider it, it will open windows to many possibilities.

Some point in time there will be use cases but I am afraid at that time community will be too large and with so many people depending on it, changing API will be almost impossible.

I guess we have reached that point! I don't think adding multiple cursor support is feasible & will be a pain to add to the API in a compatible way.


Added extra overload to createArray in case 250 arguments are needed

The ArrayUtil class is supposed to be removed in the future. So unless this fixes a bug I would not accept the change. If it fixes a bug we need a test case and the ticket number. If they do not exist yet, they need to be created

oh

In any case, PRs should be submitted to the current active repo at:
https://github.com/apache/groovy


Interview with Meekail Zain

closes: #146
@reshamas
Please let me know in case of improvements and fixes or change the text in the poster.
I've tested the blog locally as well.
Thanks!

@SangamSwadiK Thanks for the PR!  It looks very good.
@Micky774 Would you like to review one last time before I merge in?
Unfortunately, we don't have Netlify set up for this blog, so we can't see the preview in full.
It's a very nice interview!

@SangamSwadiK Thanks for the PR! It looks very good.
@Micky774 Would you like to review one last time before I merge in? Unfortunately, we don't have Netlify set up for this blog, so we can't see the preview in full. It's a very nice interview!

Looks good from what I can see, thanks! Just to make sure though, is the numbering meant to be all 1. rather than 1, 2, 3...? But content wise everything is good :)

@Micky774 Would you like to review one last time before I merge in? Unfortunately, we don't have Netlify set up for this blog, so we can't see the preview in full. It's a very nice interview!

Looks good from what I can see, thanks! Just to make sure though, is the numbering meant to be all 1. rather than 1, 2, 3...? But content wise everything is good :)

@Micky774 The hope is that it will automatically number itself (as Markdown), but sometimes it gets finicky.  For example, if we insert an image in the middle of the text, it will reset the numbering to 1.  Let's see how it goes.

@Micky774
Here it is.  If you find there need to be any updates, we can submit an updated PR:
https://blog.scikit-learn.org/team/meekail-zain-interview/
@SangamSwadiK Thanks for the PR!

@reshamas Actually I think the answer to the second question is someone elses, and not mine. Sorry I failed to catch that earlier


The hex input text should be prefixed with a pound sign

Ok so actually I'm not sure about this one.  Sometimes it's annoying to copy + paste text from a hex input and have the pound sign copied when you don't want it.  But then again, the user could always selectively copy the text after the pound sign in that box.

Dear Mr. Fernandes,
Thank you for your suggestion. After belaboured consideration, your valuable input was interpreted and transformed into a commit that may be found at https://github.com/lrvolle/ColourPicker/commit/0f5844430078156e23968bb47a707bc81739798b. I hope such a change satisfies your request.
Best,
Lucas


goe2e is busted due to auth location change...

@jlowdermilk
More fall-out from #4034
F0204 05꞉38꞉09.718673   31235 util.go꞉151] Error loading auth꞉ stat /var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kubernetes_auth꞉ no such file or directory

That fixed it. There is currently a failure in pods.go but that seems to be unrelated.


Remove coreos.com links in documentation

RedHat has removed the website and links are no longer accessible.

/skip-all

/skip-all


Ci tweaks

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

v4.3.2
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Write demo code ahead of time

To save some time during live demos, it would be helpful to write the some of actual code ahead of time for safe-keeping! This way we can directly copy/paste in during live demos. This will be only helpful for initial versions of scripts, i.e. not for modifying an already-existing script. We may want to break this up into multiple issues, but for now...

[x] ~git basics demo: Histogram script without optparse~

Edit: Free check box since this was part of the pre-workshop setup 🙃

[x] working with branches demo: Filter to 2008 penguins
[x] working with branches demo: Filter to Adelie penguins
[x] working with branches demo: Count penguin species
[x] working with branches demo: Summarize mass across penguin species
[x] stacking demo: Function to perform regression and return tidy output
[x] stacking demo: Run regression and export tidy result
[x] stacking demo: Function to make scatterplot
[x] stacking demo: Run scatterplot function and export PNG

Of course, I promptly thought of this after we templatized the demo repo next door, but it's not too difficult to do that again if it might be better for re-use to add this content to .live-demo-content/. CC @jaclyn-taroni, thoughts?

I've added that, plus a little information in the README.md to the template repo: https://github.com/AlexsLemonade/git-code-review-live-demo
If you want to add more docs, @sjspielman, you will need to file a PR as I've now protected main.

I think we're done here!


'Open in browser' opens a wrong link with api.rule34.xxx domain

Bug description
'Open in browser' opens a wrong link with api.rule34.xxx domain instead of just rule34.xxx. So it shows an empty page.

Steps to reproduce

Set source to 'api.rule34.xxx'
Perform searching
Perform right mouse click on any image
Select 'Open in browser'

Expected behavior
Browser opens a link with 'rule34.xxx' domain (i.e. https://rule34.xxx/index.php?page=post&s=view&id=5464703 )
Context

main.log main.log
settings.ini settings.zip

Screenshots

System information

OS: Linux 5.10.84-1-MANJARO
Grabber version: imgbrd-grabber-git v7.6.2.r128.46db5730-1 (git version from AUR )

Additional context
It may be connected with this commit https://github.com/Bionus/imgbrd-grabber/commit/f7ce172382079559b457fd8b470af75bf9b97923

Yes it's definitely related to that change. I made a hotfix for now. 👍


[PKG-2497] mizani 0.9.2

Changelog: https://github.com/has2k1/mizani/releases
License: https://github.com/has2k1/mizani/blob/v0.9.2/LICENSE
Requirements: https://github.com/has2k1/mizani/blob/v0.9.2/pyproject.toml
Actions:

Clean up the recipe:

Remove unused jinja2 variables, just KISS
Remove noarch python
Skip py<38
Add flags --no-deps --no-build-isolation to script
Add missing wheel to host
Fix python in host and run

Add selectors for backports.zoneinfo
Do not use the [win] selector for tzdata as it's not built for this platform however the compiled package can be used on Windows https://github.com/AnacondaRecipes/tzdata-feedstock/blob/07c7f5de102ca5bf9e793838170f26fadd0c3a6b/recipe/meta.yaml#L19
Fix source_files
Remove debug commands from test/requires and fix the pytest command
Update summary
Add description

Notes:

plotnine 0.12.1 requires mizani >=0.9.0, see https://github.com/has2k1/plotnine/blob/v0.12.1/pyproject.toml#L27

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_fbb01n3wj9/clone/recipe/meta.yaml:46: missing_pip_check: For pypi packages, pip check should be present in the test commands
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_cf1nn3tjvb/clone/recipe/meta.yaml:27: version_constraints_missing_whitespace: Packages and their version constraints must be space separated
ERROR: /tmp/abs_cf1nn3tjvb/clone/recipe/meta.yaml:46: missing_pip_check: For pypi packages, pip check should be present in the test commands
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_b5v2c6jvhe/clone/recipe/meta.yaml:27: version_constraints_missing_whitespace: Packages and their version constraints must be space separated
ERROR: /tmp/abs_b5v2c6jvhe/clone/recipe/meta.yaml:47: missing_pip_check: For pypi packages, pip check should be present in the test commands
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_47zkohe8vm/clone/recipe/meta.yaml:27: version_constraints_missing_whitespace: Packages and their version constraints must be space separated
ERROR: /tmp/abs_47zkohe8vm/clone/recipe/meta.yaml:47: missing_pip_check: For pypi packages, pip check should be present in the test commands
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_c3oyazro9m/clone/recipe/meta.yaml:47: missing_pip_check: For pypi packages, pip check should be present in the test commands
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_2by8_75y2_/clone/recipe/meta.yaml:47: missing_pip_check: For pypi packages, pip check should be present in the test commands
Errors were found


Unexpected type mismatches in correct programs

I've stumbled upon two occasions where a program does not typecheck despite being typed correctly.
First, the shorter one:
A (t: Type) : Type
A.new <t: Type> (x: t) : (A t)

Fn <t: Type> (x: (A (A t))) : (A (A t))
Fn t1 (A.new t (A.new t2 x)) = (A.new (A.new x))

Gives the error:
Type mismatch.
- Expected: (A (A t1))
- Detected: (A (A t2))
Context:
- t1 : Type
- t  : Type
- t  = (A t1)
- t  = (A t2)
- t2 : Type
- x  : t2
On 'test.kind2':
   5 | Fn t1 (A.new t (A.new t2 x)) = *(A.new (A.new x))*

It doesn't understand that t1 and t2 must be the same.
Changing the last line to Fn t1 (A.new (A t) (A.new t2 x)) = (A.new (A.new x)), matching with (A t) instead of t, the type checker then works as expected.
The second example is:
Nat : Type
Nat = (n: Type) (n -> n) -> n -> n

Zero : Nat
Zero = @n @s @z z

Suc (a: Nat): Nat
Suc a = @n @s @z (s (a n s z))

Vec (a: Type) (n: Nat) : Type
Vec a n =
  (v: Nat -> Type)
  (s: (n_: Nat) a -> (v n_) -> (v (Suc n_)))
  (z: (v Zero))
  (v n)

Which gives the error:
Type mismatch.
- Expected: (n: Type) ((n -> n) -> (n -> n))
- Detected: Nat
Context:
- a  : Type
- n  : (n: Type) ((n -> n) -> (n -> n))
- v  : (Nat -> Type)
- n_ : Nat
- _  : a
- _  : (v n_)
On 'bench/asymptotics_vec.kind2':
  14 |   (s: (n_: Nat) a -> (v n_) -> (v (Suc *n_*)))

It fails to understand that Nat is defined as (n: Type) ((n -> n) -> (n -> n)).
Changing the last rule of the code to the following, it checks as expected:
Nat : Type
Nat = (n: Type) (n -> n) -> n -> n

Zero : Nat
Zero = @n @s @z z

Suc (a: Nat): Nat
Suc a = @n @s @z (s (a n s z))

Vec (a: Type) (n: Nat) : Type
Vec a n =
  let nat = Nat
  (v: nat -> Type)
  (s: (n_: nat) a -> (v n_) -> (v (Suc n_)))
  (z: (v Zero))
  (v n)

Adding the let expression fixes the program somehow.
The first error seems to have always happened.
The second one started at commit 748a97, where it crashed instead of checking, and after 44a289 it gave the type error above.

The first problem is not a bug, just an incomplete proof. To accept that kind of program, and due to some type-checker optimizations, which are part of the reason it is so fast, Kind's type-checker needs some additional proof-work that wouldn't be needed in Agda. Let me explain. In your first program, suppose you write:
A (t: Type) : Type
A.new <t: Type> (x: t) : (A t)

Fn <t: Type> (x: (A (A t))) : (A (A t))
Fn t (A.new t1 (A.new t2 x)) =
  let a = (A.new x)
  ?

Here, you have the following context:
Type mismatch.
- Expected: (A (A t))
- Detected: ?
Context:
- t  : Type
- t1 : Type
- t1 = (A t)
- t1 = (A t2)
- t2 : Type
- x  : t2
- a  : (A t2)
- a  = (A.new t2 x)
On 'bad.kind2':
   7 |   ?

Notice that our goal is (A (A t)), and we have, in context, a : (A t2). What you did is: you constructed (A.new a), which has type (A (A t2)), and returned it. But that is not the type of our goal, which is (A (A t)). Here, t and t2 are different variables. In some languages like Agda, the type-checker will keep track of all variables that can be identified, and accept this answer via unification. Kind2 does not do that automatically. Instead, it just tracks all the possible values that a variable can have on the context, and allows the programmer to explicitly perform the required up-casts to construct the desired type. Notice the following lines of the context above:
- t1 = (A t)
- t1 = (A t2)

That means that, as far as equality is concerned, the compiler is able to identify t1 with (A t), and t1 with (A t2). But it is not able to identify (A t) with (A t2), because the following line isn't present:
- (A t) = (A t2)

In other words, this is an instance where Agda's unification will "complete the proof" for you, but Kind demands some additional reasoning. It is not hard, though. To complete this proof, you just need to notice the following:
if a : (A t2), then a : t1, due to the first equality above
if a : (A t1), then a : (A t), due to the second equality above

In other words, we are allowed to do this:
Fn <t: Type> (x: (A (A t))) : (A (A t))
Fn t (A.new t1 (A.new t2 x)) =
  let a = ((A.new x) :: t1) :: (A t)
  ?

Which results in the following context:
Type mismatch.
- Expected: (A (A t))
- Detected: ?
Context:
- t  : Type
- t1 : Type
- t1 = (A t)
- t1 = (A t2)
- t2 : Type
- x  : t2
- a  : (A t)
- a  = (A.new t2 x)
On 'bad.kind2':
   7 |   ?

Notice that the type of a changed from (A t2) to (A t). That allows us to construct (A.new a) : (A (A t)), completing the proof:
Fn <t: Type> (x: (A (A t))) : (A (A t))
Fn t (A.new t1 (A.new t2 x)) =
  let a = ((A.new x) :: t1) :: (A t)
  (A.new a)

In this case, though, casting twice was overkill. We can remove the second annotation:
Fn <t: Type> (x: (A (A t))) : (A (A t))
Fn t (A.new t1 (A.new t2 x)) =
  let a = (A.new x) :: t1
  (A.new a)

When we do that, the returned value will have type (A t1) instead of (A (A t)), which is the goal. But in this case, it is fine, because we have t1 = (A t) in context, so Kind can perform the reduction.
In short...
Whenever you see:
- t = u
- t = v

In context, it means Kind is capable of reducing t to both u and v, for equality purposes. But it is not able to reduce u to v, or v to u. Because of that, if you have some val : u, and you want to cast it to val : v, you must first cast it to val : t (which works because t = u), and then cast it to val : v (which works, because t = v). Hope this part is cleared up! I'll cover the next problem in a moment.


Create gh-pages branch to host/index this chart

I would like to use this chart and would prefer if it was in gh-pages  and  artifact hub im happy to do a PR for this if you think it is a good idea.

@bradmccoydev we have a github page repo that hosts our web site. Is it something you can use?

I am very interested in this too.
As I would like to use the "upstream" helm chart instead of my local copy-paste.
@rootfs yes @bradmccoydev is suggesting to use the github pages to distribute the helm chart updated using github actions.
This is an example https://github.com/stefanprodan/helm-gh-pages
To move this forward could @bradmccoydev make your PR?
Thanks

Yes if everyone agrees, im happy to make a PR, This is a blog i did a while ago on the process: https://blog.bradmccoy.io/linking-helm-charts-in-github-pages-to-artifacthub-46e02e19abfe

And yes @rootfs we can have a gh-pages branch on this repo and i can make an action to release it when there is a change. Sorry for the late response i was at KubeCon

@bradmccoydev @yellowhat sounds good! I am creating branch helm-gh-pages. If you need additional repo config, please let me know.

The action will create the branch by itself, maybe we might need some secret to write on the repo, if I remember correctly @bradmccoydev ?

is it possible to just use gh-pages @rootfs I prefer that. yes @yellowhat you just use the
${{ secrets.GITHUB_TOKEN }}

and for the gh action
jobs:
  release:
    permissions:
      contents: write # needed to write releases

I will test tomorrow using helm-gh-pages for the branch as i haven't used that before i don't think it matters as it will find it through here: https://sustainable-computing-io.github.io/kepler-helm-chart/
Thanks all

Hello, I have done the code for this but confirm that i actually need the gh-pages branch. If you look at your recommendation you will see at https://github.com/stefanprodan/helm-gh-pages that he actually has a gh-pages branch on there. Please remove helm-gh-pages branch and make gh-pages then i can raise the PR. Thanks.

also when making this branch i recommend to checkout the code from the earliest commit, and then make the branch and push it upstream. This is mean that it doesnt include lots of files we dont need.

@bradmccoydev here is the branch, it is based on the initial-helm-chart branch

Hello @yellowhat @rootfs I have now made the changes in this PR: https://github.com/sustainable-computing-io/kepler-helm-chart/pull/15


Vendor: Upgrade to jwt-go 3.0.0

This is essentially the same that have been done at fosite issue 76.
Basically the new version of jwt-go have better support for claims, and right now hydra won't build when using the head of fosite due to versioning clashes.
I will start fixing this tomorrow and supply a PR tomorrow evening.

@arekkas I think i have successfully updated jwt-go in hydra now as well to 3.0.0. All tests in the oauth2 package pass.  Thus, i cannot verify the changes i've made and i really think you should take a look at what that commit does to hydra.

ok, will do, thanks for the effort so far

yeah that commit is faulty

I think it actually accepts more or less all scopes right now...

no i think it works fine, the test cases seem ok:
	scopes = []string{"hydra", "openid", "offline"}
	assert.False(t, strategy(scopes, "foo.bar"))
	assert.False(t, strategy(scopes, "foo"))
	assert.True(t, strategy(scopes, "hydra"))
	assert.True(t, strategy(scopes, "hydra.bar"))
	assert.True(t, strategy(scopes, "openid"))
	assert.True(t, strategy(scopes, "openid.baz.bar"))
	assert.True(t, strategy(scopes, "offline"))
	assert.True(t, strategy(scopes, "offline.baz.bar.baz"))

could you open a PR with your changes so i know which branch to look at?

On its way! Keep in mind that tests might/will fail. I cannot guarantee anything ;)

that's ok

resolved

@arekkas @leetal I was a in a hurry with this commit: https://github.com/ory-am/fosite/commit/7faee6bbd53ee762ddfe194fb2ea5e7d0205e46d
I realized after I pushed that it can be simplified to this:
if current != needle {
    break
}

Ah yes, if you want, create a PR


Integrate Airbus D&S Code into TiGL

The code of airbus d&s must be integrated into TiGL.

First part (wing structure) is merged. Will close this issue and make a new, if we get more code.


Add SQS-Batch Processing for failed messages

Links for further reference:

https://github.com/awslabs/aws-lambda-powertools-python/issues/2180#issuecomment-1529600981
https://awslabs.github.io/aws-lambda-powertools-python/2.14.1/utilities/batch/#processing-messages-from-sqs
https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-event-sources-readme.html#sqs

Now solved with PR: #5


small gonial bone

Add:
small gonial bone (child of abnormal gonial bone morphology MP:0008380)
DEF: reduced size of the investing bone that lies on the surface of the malleus
SYN: small gonium
SYN: reduced gonial bone size
SYN: decreased gonial bone size
SYN: reduced gonium size
SYN: decreased gonium size
Anna

small gonial bone MP:0030125


No rule to make target '/home/ai002/tensorflow_Cpp/add0/tensorflow_cpp2/tensorflow-1.11.0/tensorflow/contrib/makefile/gen/proto/tensorflow/core/util/test_log.pb.cc', needed by '/home/ai002/tensorflow_Cpp/add0/tensorflow_cpp2/tensorflow-1.11.0/tensorflow/contrib/makefile/gen/obj/tensorflow/contrib/boosted_trees/proto/learner.pb.o'.  Stop.

tensorflow 1.11.0
bazel 0.18.0
When i run sudo ./tensorflow/contrib/makefile/build_all_linux.sh...... help me ! thank you hardly!!!
No rule to make target '/home/ai002/tensorflow_Cpp/add0/tensorflow_cpp2/tensorflow-1.11.0/tensorflow/contrib/makefile/gen/proto/tensorflow/core/util/test_log.pb.cc', needed by '/home/ai002/tensorflow_Cpp/add0/tensorflow_cpp2/tensorflow-1.11.0/tensorflow/contrib/makefile/gen/obj/tensorflow/contrib/boosted_trees/proto/learner.pb.o'.  Stop.

@BlackDeal ,
Provide the exact sequence of commands / steps that you executed before running into the problem.Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


[Feature Request]: 'Uncertainty cone' in tropical storm wind buffers should be ignored during an analysis

Provide a clear and concise description of what the problem is.
When I run an exposure analysis or run an analysis on tropical storms, the 'uncertainty cone' vector seems to cause issues with the calculation. This value isn't necessary anyway and can be ignored
Provide a clear and concise description of what you want to happen.
Do not include 'uncertainty cone' in the analysis and do not include it in the summary of column values for a storm analysis
Is there anything else you can add about the proposal? You might want to link to related issues here, if you haven't already.
No response

Addressed here https://github.com/WFP-VAM/prism-app/pull/834/commits/77d63457e28c3662a380802ce2510862d9515573


⚠ Bofrost.be has degraded performance

In a11b85c, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1637 ms

Resolved: Bofrost.be performance has improved in 048ef20 after 6 minutes.


image rotation should be anchored top not bottom

rotating portrait image to landscape takes it off the screen (firefox 45.0.2 / Mac OSX 10.11.4, also Safari Version 9.1 (116<IP_ADDRESS>))
e.g. http://catalog.paradisec.org.au/test-viewer/#/LB2/92PIX01

Zooming still takes the image down to the right rather than keeping it in frame

This is turning out to be incredibly complex so the version I'm about to push to production keeps the rotation and scaling happening around the center of the image but if you navigate to another image - center and scale are reset back to original settings.
I need to think about this some more....

this is still an issue can the anchor be top left, not centre?


Upgrade protobuf version to remediate a leak.

Fixes: #28246

cc: @damccorm

Run Python_Coverage PreCommit