Adding conditional fields to a Nova resource which are NOT fields in the DB.

We have a voucher model, which has percentage and fixed discount fields.
I have a conditional dropdown to show and hide these fields using your packag e.g.
Select::make('Type', 'type')
            ->options([
                1 => 'Fixed Amount',
                2 => 'Percentage',
            ]),

However, there is no need to save this 'type' in the database.
The problem is that when we save this resource - it complains that 'type' is not a field in the database.
Is there any way to make Nova ignore certain fields like this?

It's not possible, because even if you pass the form step on the form view the package would require to know which option you choose in order to show the correct fields on the details / index view..

@PaulLawton227 I hav not tried it with this field, but this technique might work for you.
This example shows how you can remove properties from the model before saving the model to the DB. It works by hooking in to the "saving" event and removing the type. When the model is fetched you set the type based on your other fields.
class ExampleModel extends Model
{
    protected static function boot()
    {
        parent::boot();

        self::saving(function ($model) {
            /*
             * Remove type from saved data because there is no real field.
             */
            unset($model->type);
        });

        self::retrieved(function (License $license) {
            /*
             * Set the type property so its present when loading the model
             */
            $license->type = INSERT LOGIC TO DETERMINE YOUR TYPE
        });
    }

Dose this work for you?
//Tim

Thank you Tim - that worked a treat.


NIFI-6078: Create PostSlack processor

Processor for sending messages on Slack and optionally upload and attach
the FlowFile content (e.g. an image) to the message.
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Is your initial contribution a single, squashed commit?

For code changes:

[x] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[x] Have you written or updated unit tests to verify your changes?
[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[x] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[x] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

+1 LGTM, tried various combinations of property values, verified documentation and processor validity checks all look good. Thanks for the contribution! Merging to master


Question : Credit decreasing

Hello, I have one question.
My credit is decreasing rapidly during these 2-3 hours.
Finally, my "minimum_credit_test" fall down to "false".
If you have any information source, that would help me.
Although some sever error in TNT network is happening, my node is on right setting.

I have the same issue.
And I tried restart the service and it turns out I got this error
"TNT address {MyEtherAddress} cannot be registered, it is already registered and in use with an existing HMAC key"
This is weird.

Hello, additional comment.
Maybe, we need some information about Credit comsumption.
Approximate comsumption rate by date, week, and month etc.
We need to keep credit balance appropriately for server maintenance.
Some people doesn't know that fact, and that information would be good in future of Tierion Network.

I have the same issue. Its like 1 credit decreasing per second.

Is there an economic penalty for a malicious actor who spams the node with useless hashes?

Is there an economic penalty for a malicious actor who spams the node with useless hashes?

As far as I know there is none. Because anybody can download and use the CLI client, send hashes to the nodes without paying anything in order to do this.

This is not a software bug. Please see the pinned message in the Telegram group and the README for this repository. The need to submit TNT for credits has been temporarily suspended. Your account will automatically be topped up with credits every day while we work on a more permanent resolution.


fixes #4104

Contains
Added new prop "overrideChildEnabledProp" to AbstractWidget to avoid overriding of child enabled property during initialization (In this exact case - by UIBox), modified UIFormat to process enabled field after Layout content initialization, disabled Identity Service Login features in UI
Fixes #4104
How to test
Brief description of how to test / confirm this PR before merging
Outstanding before merging
If anything. You can use neat checkboxes! Feel free to delete if not needed

[ ] Need to consider use case x
[ ] Still have to adjust the wiki doc
[ ] Will need translation work

Thanks for the PR @Ankhell ! I hope you don't mind hanging on for just a bit, we're in the middle of extracting our UI system this weekend (and maybe a bit longer) which might mean this change would have to be replicated / moved to its new repo https://github.com/MovingBlocks/TeraNUI and specifically its v1.x branch.
Will get to this as soon as otherwise able :-)

Alright, TeraNUI is officially live! #4017 has been merged.
@Ankhell would you be up for replicating this change in a PR made against https://github.com/MovingBlocks/TeraNUI/tree/release/v1.x ? It should be about the same code.
You can re-embed the TeraNUI source into a game engine workspace with groovyw lib get TeraNUI which should place the source under libs/TeraNUI (you may then have to check out the release/v1.x branch for the library) - you should find the exact same classes in there, you would then just push it to a fork of TeraNUI you'd make and create a new PR there. Testing the game should work the same after you've retrieved the library code :-)
If any questions feel free to hop on Discord for live chat sometime!

@Cervator Sure thing I would do that as soon as I would have some spare time (:

the relevant code for this has been moved to this module: @Ankhell https://github.com/MovingBlocks/TeraNUI

Hi @Ankhell, quickly checking in: What do you think when you'll find "some spare time"? :upside_down_face: More like this week / this month / next month / before the end of the year?
And please don't mistake this for putting pressure on you, I'm just interested in the topic ;)

Hi @Ankhell, quickly checking in: What do you think when you'll find "some spare time"? 🙃 More like this week / this month / next month / before the end of the year?
And please don't mistake this for putting pressure on you, I'm just interested in the topic ;)

I'm terribly sorry for being lost, moved AbstactWidget part to TeraNUI https://github.com/MovingBlocks/TeraNUI/pull/28 and left everything else here, hope that's what I was supposed to do

@Ankhell Thanks for the update and the PR on TeraNUI!
Ideally, these changes should go against release/v1.x as that's the TeraNUI release Terasology works with atm.
Probably it's okay, though, to do it against master and cherry-pick the change to release/v1.x afterwards, right @Cervator / @skaldarnar ?

@jdrueckert moved PR to the correct branch https://github.com/MovingBlocks/TeraNUI/pull/29

All good with the new branch, thanks @Ankhell 👍
@jdrueckert I don't know cherry pick well enough to really have an idea if it'll work well in both directions. I get the feeling Git will probably be able to recognize the same commits, but am less sure how much hassle it would be for us to catch all the commits to cherry pick. No worries on this change for now at least :-)

So I finally got to try this out (naturally in combination with https://github.com/MovingBlocks/TeraNUI/pull/29). However, I found that the main menu UI still shows elements related to the identity storage service:

@Ankhell Did I misunderstand the intended effect of the PR? I thought these UI features were to be removed by your PR? Please correct me if I'm wrong :sweat_smile:

@jdrueckert According to the name of this issue https://github.com/MovingBlocks/Terasology/issues/4104  it was necessary to disable that part of UI, not to remove it, am I right, @skaldarnar ?

@Ankhell As skal is currently sitting behind the wheel (at 200 km/h ^^) let me answer this: The identity Server currently doesn't work. That's why we don't want it to be visible to the users at the moment, that includes removing it the two elements I mentioned above from the UI.
The settings UI elements can stay though as we hope to get it to work again in the short- to midterm future. However, disabling any related buttons (I'm currently on the phone and not sure at the moment how exactly this looks like in the settings) would make sense.

Hi @Ankhell any news yet? Did you find some time to take out the UI parts or do you need explicit confirmation by @skaldarnar :sweat_smile:


listener: add grpc status filter for outbound http connection manager

Currently gRPC status filter is only added for inbound connection manager. This PR adds to outbound connection manager as well
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ X] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@ramaraochavali: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-operator-controller-tests_istio
dde8773e665b5951b7e08d063a12125e5849500f
link
/test integ-operator-controller-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-operator-controller-tests_istio

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-operator-controller-tests_istio
dde8773e665b5951b7e08d063a12125e5849500f
link
/test integ-operator-controller-tests_istio

integ-security-k8s-tests_istio
dde8773e665b5951b7e08d063a12125e5849500f
link
/test integ-security-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-k8s-tests_istio


Constructor misspelling

public class StockAnalyzer
{
private IStockFeed stockFeed;
public Analyzer(IStockFeed feed)  // Should be StockAnalyzer?
{
stockFeed = feed;
}
...
}

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

ID: 1834a8fa-cc25-bacf-1379-b6691051cf39
Version Independent ID: 56f3b218-56c5-6135-0593-41e83370a813
Content
Content Source
Service: unspecified

@marlonfsolis thanks for the heads up, I will fix this. Or if you'd like to fix it, you can click the Edit button near the top right of the page.


Syslink parameter acks broken Crazyflie 2

Appears to be introduced by the fix for #6005, the parameter setting on the crazyflie 2's NRF are not reported correctly (they always report success, though the address appears to never be set). The immediately obvious problem is in "https://github.com/PX4/Firmware/blob/master/src/modules/syslink/syslink_main.h", where line 70 should be replaced by int is_good(int i) { return _params_ack[i] != 0; }. Less obvious is why setting this parameter fails.

Thanks for reporting! @dennisss Any chance you could look into this and cross-test?

@hamishwillee We probably should make sure the Crazyflie 2 support is documented in the user guide: https://www.bitcraze.io/crazyflie-2/ It's a really nice platform. @dennisss Can probably help.

I'll take a look later today and see if I can replicate it. I do remember that I think I've had this issue with address (or channel) where old versions of the NRF firmware didn't have this parameter defined and an update of the Bitcraze firmware was needed to get it working.

Hi Denis -- sure, thanks. Note that the diagnostic function will now always return "good", even if the params fail (the index i is never used in the function is_good).

@hamishwillee We probably should make sure the Crazyflie 2 support is documented in the user guide: https://www.bitcraze.io/crazyflie-2/ It's a really nice platform. @dennisss Can probably help.

@LorenzMeier I suggest we add it to the airframes on px4.io. Should we also add bebop there? (as an aside, shouldn't bebop be in airframes section rather than debugging/advanced topics?)
I've created https://github.com/PX4/px4_user_guide/issues/19 to track adding this to the user guide. It is a little complicated because there currently isn't a good "place" for this sort of thing.

@markwmuller I see what you mean now. Your correction to line 70 there is definitely correct.
But, with latest master and latest NRF firmware (flashed using a crazyradio and the cfloader flash cf2_nrf-2016.11.bin nrf51-fw command in crazyflie-lib-python) I am able to change all three channels and connect externally via the radio. So it seems to be possibly a version issue. Otherwise, with the line patch, are you just getting a fail now in syslink status or is it succeeding still and it is failing to connect externally?

@dennisss Yup, thanks! Updating NRF firmware now makes param set OK.


do not consider # as comment

Unable to load data that starts with #.
Better not to consider parser's default comment symbol as comment symbol.

Would this be better as an option?  something like
--comment "#"
with a default to nothing?

I made these changes.


unecpected error when using blank identifier

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.8.3 darwin/amd64
Also tried on tip:
go version devel +b488073d51 Tue Jun 13 18:36:04 2017 +0000 darwin/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/pierrecurto/sandbox"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/bw/wf4p9qr50pg23qb4py4028140000gp/T/go-build444531641=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
https://play.golang.org/p/JFd-JYI86D
What did you expect to see?
No error.
What did you see instead?
main.go:10: cannot use _ as value
Note that if you replace the anonymous function with a declared one it compiles fine.
It also works fine if the blank identifier is replaced with a non blank one.

Closing as duplicate of #15481.


Update redeploy-to-new-node-windows.md

I've added more information so readers know what will happen after redeployment, and that they know which disk is temporary and which one remains persistent.
"After you redeploy a VM, the original VM, including all the data that you saved on the temporary disk (such as drive D) and Ephemeral disk are deleted. However, the data stored on drive C and attached disks remains persisted. The configurations and associated resources are transferred to a new VM of the same size on a new host. The dynamic IP addresses associated with virtual network interface are updated."
Pull request guidance
Thank you for submitting your contribution to our support content! Our team works closely with subject matter experts in CSS and PMs in the product group to review all content requests to ensure technical accuracy and the best customer experience. This process can sometimes take one or more days, so we greatly appreciate your patience.
We also need your help in order to process your request as soon as possible:

We won't act on your pull request (PR) until you type "#sign-off" in a new comment in your pull request (PR) to indicate that your changes are complete.

After you sign off in your PR, the article will be tech reviewed by the PM or SME if it has more than minor changes. Once the article is approved, it will undergo a final editing pass before being merged.

#sign-off

@azarboon Since we have had no comment on this PR from reviewers, I closed this PR.


[QUESTION/REQUEST] Distinction Between Favorites/Likes and Normal Tweets/Retweets

Issue Template
Please use this template!
Initial Check

If the issue is a request please specify that it is a request in the title (Example: [REQUEST] more features). If this is a question regarding 'twint' please specify that it's a question in the title (Example: [QUESTION] What is x?). Please only submit issues related to 'twint'. Thanks.

Make sure you've checked the following:

[x] Python version is 3.5 or higher.
[x] Using the latest version of Twint.
[x] I have searched the issues and there are no duplicates of this issue/question/request.

Command Ran
python3.6 Twint.py -u liamcs98 --database databaseName.db --favorites
Description of Issue
When using the --favorites tab, the user's "liked" posts get added to the tweets table, but there is no way to distinguish the difference between the posts that the user liked and what the user has retweeted or posted. Is there a field / flag that can distinguish between the types of tweets inserted? Can a "favorites" db table be created, thus separating favorited posts and "regular" posts?
Environment Details
Tried in Linux and MacOS

@haccer may help

Open the database and print the tables

Print the id of the tweets that user liked

Print a specific tweet from the tweets table given the liked id


Automatic PR from RestAPI-PR1709

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/1709

 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.:x: AutorestCI sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Codecov Report

Merging #1479 into master will decrease coverage by 0.04%.
The diff coverage is 34.31%.

@@            Coverage Diff            @@
##           master   #1479      +/-   ##
=========================================
- Coverage   55.14%   55.1%   -0.05%
=========================================
  Files        3432    3437       +5
  Lines       83826   83990     +164
=========================================
+ Hits        46227   46280      +53
- Misses      37599   37710     +111

Impacted Files
Coverage Δ

...thub/azure/mgmt/eventhub/models/operation_paged.py
80% <ø> (ø)
:arrow_up:

...e/mgmt/eventhub/models/authorization_rule_paged.py
80% <ø> (ø)
:arrow_up:

...nthub/azure/mgmt/eventhub/models/eventhub_paged.py
80% <ø> (ø)
:arrow_up:

...b/azure/mgmt/eventhub/models/eh_namespace_paged.py
100% <ø> (ø)
:arrow_up:

...azure/mgmt/eventhub/models/consumer_group_paged.py
80% <ø> (ø)
:arrow_up:

...eventhub/azure/mgmt/eventhub/models/access_keys.py
41.66% <0%> (-8.34%)
:arrow_down:

...mt-eventhub/azure/mgmt/eventhub/models/eventhub.py
100% <100%> (ø)
:arrow_up:

...nthub/azure/mgmt/eventhub/operations/operations.py
37.93% <100%> (ø)
:arrow_up:

.../mgmt/eventhub/operations/namespaces_operations.py
38.68% <100%> (ø)
:arrow_up:

...azure/mgmt/eventhub/event_hub_management_client.py
100% <100%> (ø)
:arrow_up:

... and 15 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 7d4f872...c8a598c. Read the comment docs.


ility: NVDA is not reciting the suggestions in the Command Palette edit box.

VS Code Version: 1.6.1
OS Version:1607
NVDA version:-2016.2.1
Steps to Reproduce:
Prerequisite: NVDA need to be opened.
1.Open Visual studio code editor.
2.Open the command Pallet by pressing "F1" key and type "Theme"
3.Using Down arrow key select "Preference color Theme" and press enter key to select.
4.Using "Up/Down" arrow key select different available theme.
Expected Result:
NVDA should recite the lookup options available for theme in the Command Palette edit box.
Actual Result:

NVDA is not reciting the suggestions available in the Command Palette edit box.
Note:-This issue is observed for the all the options available in the command palette.

User Impact:
Screen Reader user doesn't get to know the options available in the command pallet and without knowing they can't proceed further.

This works in 1.8.

@WiproPSAccTest please verify using 1.8 at least.

@bpasero This issue is not reproducing in code editor 1.8.1. Issue has been fixed.

Title has been changed to a common format to perform data population.


Enhance example for HPU performance

Type of Change
example
Description
Enhance example for HPU performance

co-work with https://github.com/intel/neural-compressor/pull/2044

For llama2-7b, wikitext dataset, we suggest using batch_size=1

/azp run Model-Test-3x


Binaries not at correct location?

Hey 👋,
I just wanted to compile the project after a fresh clone. The quickstart guide suggested running cargo run --bin rustflags but that doesn't work for me, as Cargo is not able to find the binaries. I checked the docs on this and I think the binaries are in an incorrect location. According to the docs it should be in src/bin or defined in the Cargo.toml. Am I doing something wrong here?

Recently, there were some changes to the way librustcdriver.so is linked against the codegen, which prevented me from using anything in src/bin.
I have ported most of my utilities to use cargo scripts, but rustflags was not ported yet - it is now. The docs should also reflect this change now.

Thanks, that makes it clear, but the script doesn't seem to work for me:
❯ ./bin/rustflags.rs
warning: `package.edition` is unspecified, defaulting to `2021`
   Compiling rustflags v0.0.0 (/home/piet/projects/rustc_codegen_clr/bin)
error[E0583]: file not found for module `build_backend`
 --> rustflags.rs:2:1
  |
2 | mod build_backend;
  | ^^^^^^^^^^^^^^^^^^
  |
  = help: to create the module `build_backend`, create file "build_backend.rs" or "build_backend/mod.rs"
  = note: if there is a `mod build_backend` elsewhere in the crate already, import it with `use crate::...` instead

error[E0432]: unresolved import `crate::build_backend::ilasm_check`
 --> rustflags.rs:3:5
  |
3 | use crate::build_backend::ilasm_check;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ilasm_check` in `build_backend`

error[E0425]: cannot find function `cargo_build_env` in module `crate::build_backend`
 --> rustflags.rs:5:43
  |
5 |     let build_env = crate::build_backend::cargo_build_env();
  |                                           ^^^^^^^^^^^^^^^ not found in `crate::build_backend`

Some errors have detailed explanations: E0425, E0432, E0583.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `rustflags` (bin "rustflags") due to 3 previous errors

Thanks, that makes it clear, but the script doesn't seem to work for me:
❯ ./bin/rustflags.rs
warning: `package.edition` is unspecified, defaulting to `2021`
   Compiling rustflags v0.0.0 (/home/piet/projects/rustc_codegen_clr/bin)
error[E0583]: file not found for module `build_backend`
 --> rustflags.rs:2:1
  |
2 | mod build_backend;
  | ^^^^^^^^^^^^^^^^^^
  |
  = help: to create the module `build_backend`, create file "build_backend.rs" or "build_backend/mod.rs"
  = note: if there is a `mod build_backend` elsewhere in the crate already, import it with `use crate::...` instead

error[E0432]: unresolved import `crate::build_backend::ilasm_check`
 --> rustflags.rs:3:5
  |
3 | use crate::build_backend::ilasm_check;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ilasm_check` in `build_backend`

error[E0425]: cannot find function `cargo_build_env` in module `crate::build_backend`
 --> rustflags.rs:5:43
  |
5 |     let build_env = crate::build_backend::cargo_build_env();
  |                                           ^^^^^^^^^^^^^^^ not found in `crate::build_backend`

Some errors have detailed explanations: E0425, E0432, E0583.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `rustflags` (bin "rustflags") due to 3 previous errors

I forgot to include one of the files(build_backend.rs). Should be fixed now.

Running the script inside bin works now fine for me, but it seems your script depends where you run it, so running it in root doesn't work:
❯ ./bin/rustflags.rs
warning: `package.edition` is unspecified, defaulting to `2021`
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
     Running `/home/piet/.cargo/target/3e/587f9e7664f3c4/debug/rustflags`
thread 'main' panicked at build_backend.rs:194:10:
could not build the backend: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Woops bumped into this just now as well, thanks for the hint :)

Ok, looks like there's some platform specific problems with the way you're using https://doc.rust-lang.org/std/process/struct.Command.html#method.current_dir
I got it to build cilly by changing it to this:
    let current_dir = std::env::current_dir().unwrap();
    let _out = std::process::Command::new("cargo")
        .current_dir(current_dir.join("cilly"))
        .args(["build", "--bin", "linker"])

But there's more issues, I'll see if I can get it to work.

Looks like there's been a big renaming of things recently that breaks the dependence on nightly. I got the build to work by pinning the channel in the rust-toolchain.toml file like this: channel = "nightly-2024-11-14"


How to regrid fx files

I would like to regrid an fx file - sftlf - onto a 5x5 grid. I need this as input to an existing python package which is expecting tas, tos, siconc and sftlf in NetCDF files on a 5x5 grid, to produce masked and blended GMST. I can regrid tas, tos and siconc onto a 5x5 grid using the regrid preprocessor, by adding this to the recipe like this:
preprocessors:

  regrid_5_5:
    regrid:
      target_grid: 5x5
      scheme: linear

diagnostics:

  fig_test_attribute:
    description: Test of masked and blended surface temperature.
    variables:
      tas:
        preprocessor: regrid_5_5
        mip: Amon
        field: T2Ms
        project: CMIP6
        exp: historical
        grid: gr
        start_year: 1850
        end_year: 2014
    additional_datasets:
      - {dataset: CNRM-CM6-1, ensemble: r1i1p1f2}

This works OK. But if I try to do the same for sftlf by adding this:
      sftlf:
        preprocessor: regrid_5_5
        mip: fx
        field: F2Ms
        project: CMIP6
        exp: historical
        grid: gr

Then I get this:
esmvaltool._recipe_checks.RecipeError: Missing keys {'end_year', 'start_year'} from variable sftlf in diagnostic fig_test_attribute
and the recipe does not run.
If I add a dummy start year and end year, then I get:
  raise RecipeError("No input files found for variable {}".format(var))
esmvaltool._recipe_checks.RecipeError: No input files found for variable {'preprocessor': 'regrid_5_5', 'mip': 'fx', 'field': 'F2Ms', 'project': 'CMIP6', 'exp': 'historical', 'grid': 'gr', 'start_year': 1850, 'end_year': 2014, 'variable_group': 'sftlf', 'short_name': 'sftlf', 'diagnostic': 'fig_test_attribute', 'dataset': 'CNRM-CM6-1', 'ensemble': 'r1i1p1f2', 'recipe_dataset_index': 0, 'cmor_table': 'CMIP6', 'institute': ['CNRM-CERFACS'], 'standard_name': 'land_area_fraction', 'long_name': 'Land Area Fraction', 'units': '%', 'modeling_realm': ['atmos'], 'frequency': 'fx', 'filename': '/scratch/b/b380746/esmvaltool_output/test_attribute_20190307_231334/preproc/fig_test_attribute/sftlf/CMIP6_CNRM-CM6-1_fx_historical_r1i1p1f2_F2Ms_sftlf_1850-2014.nc'}

and again the recipe doesn't run.
I thought that specifying the field F2Ms should mean that years are not required, but this doesn't seem to be implemented. I don't actually want to mask the tas, tos, or siconc with sftlf at this point, I just want the regridded sftlf file. (The masking a blending code for example uses tas over sea ice, so masking tas with sftlf would not be helpful).
Thanks very much!

I think you should be able to regrid the fx file inside the diagnostic script, using the regrid preprocessor function.
Just add the fx files you need to the variable in the recipe and the paths will be passed on to the diagnostic script:
diagnostics:

  fig_test_attribute:
    description: Test of masked and blended surface temperature.
    variables:
      tas:
        preprocessor: regrid_5_5
        mip: Amon
        field: T2Ms
        project: CMIP6
        exp: historical
        grid: gr
        start_year: 1850
        end_year: 2014
        fx_files: [sftlf]

Indeed as @bouweandela says regridding any file inside the diagnostic should work fine using the preproc module regrid, have a look at eg https://github.com/ESMValGroup/ESMValTool/blob/version2_development/esmvaltool/diag_scripts/autoassess/land_surface_surfrad/surfrad.py - my question here is why not apply the fx mask in the preprocessor and then work with your already fx-masked data?

@bouweandela @valeriupredoi Thanks very much for the advice. What I would like here is a the sftlf file regridded onto a 5 degree x 5 degree grid - I don't want to apply the mask to the input data. (The reason is that I'm passing regridded variables and masks to an existing python package that combines tas over land and ice with tos over oceans. It takes in the regridded land mask and combines it with the regridded sea ice coverage, and that uses that to mask regridded tas.)
If I add the fx files to the variables in the recipe, the recipe passes the path to the original fx file to the script, but as far as I can tell it does not regrid the fx file. Perhaps I just have to do the regridding in my python script?

Yes, regridding the fx file in your diagnostic sounds like the avenue to
take here. See the example I linked in a previous post for a pointer on how
to import the regrid module and call the regrid function. Let us know of
any troubles!
Dr Valeriu Predoi.
Computational scientist
NCAS-CMS
University of Reading
Department of Meteorology
Reading RG6 6BB
United Kingdom
On Mon, 11 Mar 2019, 19:00 npgillett<EMAIL_ADDRESS>wrote:

@bouweandela https://github.com/bouweandela @valeriupredoi
https://github.com/valeriupredoi Thanks very much for the advice. What
I would like here is a the sftlf file regridded onto a 5 degree x 5
degree grid - I don't want to apply the mask to the input data. (The reason
is that I'm passing regridded variables and masks to an existing python
package that combines tas over land and ice with tos over oceans. It
takes in the regridded land mask and combines it with the regridded sea ice
coverage, and that uses that to mask regridded tas.)
If I add the fx files to the variables in the recipe, the recipe passes
the path to the original fx file to the script, but as far as I can tell
it does not regrid the fx file. Perhaps I just have to do the regridding
in my python script?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ESMValGroup/ESMValTool/issues/947#issuecomment-471676460,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AbpCo0feKo9mgLux1THg5mcOL6EWAxuhks5vVqe5gaJpZM4bkUQe
.

OK - thanks - I'll try this.

hows stuff going in here @npgillett :beer:

I understand that I can pass the filename of the sftlf file to my script and regrid myself there, by masking one of the other input variables. I'm not sure how to do this without masking one of the input variables (I don't want to mask these). What I really want is to regrid in the preprocessor.

I understand that I can pass the filename of the sftlf file to my script and regrid myself there, by masking one of the other input variables.

If you do as recommended here https://github.com/ESMValGroup/ESMValTool/issues/947#issuecomment-470883790, no input variables will be masked, this will only provide you with the paths to the fx files.

@npgillett did the above suggestion solve your problem?
If yes, please close.
Thanks!


View 3.0 Documentation link is broken

The link leads to 404 page

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

ID: ef9aa16f-9c7a-089a-8249-24a3902906e6
Version Independent ID: 886ef069-4001-3544-31ba-e4ef13fb62af
Content: Microsoft Translator Text API - Migrate to V3
Content Source: articles/cognitive-services/Translator/migrate-to-v3.md
Service: cognitive-services
GitHub Login: @Jann-Skotdal
Microsoft Alias: v-jansko

@achekh Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.
@Jann-Skotdal Hi, this is a issue about doc-bug, can you please check the View 3.0 Documentation link on the bottom? Thanks a lot!

@achekh Thanks! The broken link has been corrected

Now it's much better!


cannot get the editor to affect the game at all

I've followed the instructions, changed some settings, ran GENERATE.BAT.. everything looks good, but when I go in game there seems to be no change whatsoever. Preloading or not I load into a sv_pure 0 listen server and have all default viewmodels.
Sorry in advance if I'm missing something obvious.

Are there any errors when installing? Also check your custom folder for a file named __Horsie'sViewmodelEditor.vpk. If it's there try sending it to me so I can take a look.

No errors. Yeah, installed until it shows the final screen to press any key to quit.
here's the file it generated

The files generated do seem to be the default viewmodels with no changes, yeah. Pretty weird. I'm gonna need more information to figure this out, can you do a screen recording of you starting generate and installing? Maybe I can spot something.
Could also first just send me a zip with the settings files you were trying to apply, maybe there's something there.

https://streamable.com/djbbv5
settings.zip
I did try with preloading enabled but it conflicted with my config - I already goto tr_walkway when launching TF2. it didnt work with preloading on anyway.

Alright, everything seems to be fine both in the settings and generating.
Your issue, I think, is that you didn't set Hidden to Y. It needs to be enabled for the "Keep_X_visible" sub settings to work.

Just let me know if everything works after changing so I can close the issue.

Yes its working now. thanks


[INTERNAL][FIX] incorporate remaining Travis errors

Fixes: https://github.com/SAP/openui5/issues/2644

Forwarded to dev team for a check #1980358961

This change is no longer required as it's already contained in the fix https://github.com/SAP/openui5/commit/b8866c2586319c3b37fa8768575ed1ba543a003b


does mmdnn/pytorch support RNN like models?

does mmdnn/pytorch support RNN like models?
and i wonder if there is any chat group for mmdnn outside user||developer?
brgds
thx

Hi Joejiong, right now mmdnn hasn't supported the recurrent models. But, probably it will be supported in the near future.

Hi Joejiong, right now mmdnn hasn't supported the recurrent models. But, probably it will be supported in the near future.

May I know how do you guys handle problems like RNN op especially pytorch2tf?
Do you have any reference doc for me, I also wanna contribute our dygraph to you guys.
because there are so many details in doing such commit.haha
thx
best regards

yeah, sounds great! any thoughts from @linmajia @XiaoXYe ?

Hi @Joejiong ,that sounds great! actually there is a simple RNN process to convert GRU and LSTM in tensorflow parsermmdnn/conversion/tensorflow/tensorflow_parser.py
in line 319 : process_graph(self.tf_graph, self.ckpt_data)
GRURewriter and LSTMRewriter we used are inplement in mmdnn/conversion/tensorflow/rewriter/

thx


feat: environment variables inside stream maps

Feature scope
Configuration (settings parsing, validation, etc.)
Description
Feature:
I want to use environment variables inside stream maps, and I am unable to find a way to get them through.
One example use case is using a predefined "run_id=date + time today":
    - name: add-run-no
      config:
        stream_maps:
          customers:
            run_id: config['run_id']
            __alias__: customers_v8
        stream_map_config:
          run_id: ${RUN_ID} # export RUN_ID=$(printf '%(%Y-%m-%d-%H-%M-%S)T\n' -1);

I'd then run the above with export RUN_ID=$(printf '%(%Y-%m-%d-%H-%M-%S)T\n' -1);   meltano run tap-csv add-run-no target-sqlite3.
The output here is:
@sbalnojan ➜ /workspaces/meltano-map-transform/examples (main) $ sqlite3 -markdown output/tap_csv.db 'select * from customers_v8 limit 20'
|           email            | env_run_id | first_name | id |   ip_address    | last_name  |  run_id   |        __loaded_at         |
|----------------------------|------------|------------|----|-----------------|------------|-----------|----------------------------|
|<EMAIL_ADDRESS>       |            | Ethe       | 1  | <IP_ADDRESS>   | Book       | ${RUN_ID} | 2023-03-27 11:56:41.716255 |
|<EMAIL_ADDRESS>      |            | Myranda    | 2  | <IP_ADDRESS>  | Tire       | ${RUN_ID} | 2023-03-27 11:56:41.716444 |
|<EMAIL_ADDRESS>     |            | Remus      | 3  | <IP_ADDRESS>  | Dorian     | ${RUN_ID} | 2023-03-27 11:56:41.716584 |

I've tried one workaround:
    - name: add-run-no
      config:
        stream_maps:
          customers:
            #768 run_id: config['run_id']
            env_run_id: os.getenv('RUN_ID')
            __alias__: customers_v8
        stream_map_config:
          run_id: ${RUN_ID} # export RUN_ID=$(printf '%(%Y-%m-%d-%H-%M-%S)T\n' -1);

. That code with the above run command gives me the (obv.) error:
singer_sdk.helpers._simpleeval.NameNotDefined: 'os' is not defined for expression 'os.getenv('RUN_ID')'
as the os package isn't accessible via simpleeval.
@aaronsteers @edgarrmondragon.

@sbalnojan - The primary limiting factor here is code security. Since we can assume there will almost always be sensitive env vars in the execution context, like AWS_SECRET_ACCESS_KEY, we cannot simply allow stream maps to leverage any env var.
However, the Meltano config is a good place to send these values through explicitly.
For your use case, how about declaring in meltano.yml the exact env var you want to use within the config block?
Something like:
config:
  stream_map_config:
    run_id: $RUN_ID

And then your stream map functions will have direct access to that value during execution?

Still relevant

I'm actually closing this since https://github.com/meltano/meltano/issues/3171 has been addressed. Feel free to comment if you think this is still needed.


[FEATURE REQUEST] Example Project

Hello, i wonder if someone can share their example project on how to use this project..
i tried to install on my own, but always got so many error, inside this project varible or else..

Hey @Ceater let me know if this repo helps you

Hi @mateusjunges , your repo help a lot. Since this is my 1st time using laravel and kafka i don't know what to do with your project.
but i wonder, if you can guide me more from installing to using the kafka..
here is what I know.

How to use and run your project on cloud.
changing consumer and producer

and here is what i want to know more.

Is there any delay between consumer and producer? i tried to change the debug logging using string but when i call the producer, i wont consume immediately. So i had to restart serve, kafka, and re-tail the log. But after few mins i can use it. So i wonder if your C and P have delay if i change the script.
How to implement your project in clean laravel or running laravel project? i always got error that my rdkafka version is 6.0 and your project req version 4.0 or 5.0 so i have to ignore req to bypass that problem.
Even if i successfully install via compose, i get error from RDKafka like this

because i new to laravel, i don't know what to do with that kind of error. maybe i forget to put certain php file to certain place. or else. So i wonder if you have time to guide me on how to use it for begginer.
thx

To be honest with you i can't really take time to help you to set up this package, but i can give you some hints:

As kafka is async, you cannot assume that there is no delay between the time when it was published and it being consumed. Kafka is often used for communication in microservices architecture, so one service do not expect a synchronous response from another. If you change the code of your consumer you must always restart it in order to the changes to take effect, and yes, there can be some time until it start consuming messages again, at least in my tests in local environments.
To install this package in a fresh laravel installation you can simply follow the readme documentation for installation instructions. About the requirements of ext-rdkafka on version 5.0 and 4.0, it is because on the time i created this package, these were the only versions available and compatible. Ext-rdkafka 6.0 was released on 2022-01-07, and i will add it as a supported version as soon as i have time available to do that.
The exception you are getting: No such configuration property: "key" occurs because you just copied the readme code and tried to pusblish messages using it. The key on ->withConfigOptions(['key' => 'value']) means the kafka configuration key you want to set using that method, so its just a generic example. You can find all available  kafka consumer/producer configuration options here

after few tries, i manage to run your project by manually add your composer to new project compose and run composer install..
then everything run fine till now, thx.
your example project help a lot


Issue from website page Get Started: Test Drive

From URL: https://flutter.io/get-started/test-drive/
Current documentation is misleading.
It appears as if we can leave Flutter SDK empty snd click Finish for SDK to start getting downloaded automatically. However this is not the case and we have to click on install SDK link first to provide the path where SDK will be installed.
documentation can be improved.

A very good point, @newthings4learning. I've fixed this on the new branch.


changed gallery photo description to caption

Pending ordering addition

:+1: looks good whenever tests pass

:+1:


Include license in pom

Fixes #754
This PR does a bit more than I originally planned to do, but I had several problems building this library. The main change is the switch to the standard maven-publish plugin, which correctly inserts the licensing metadata in the pom file.

Upgrad to Gradle 6.3. I had problems with Gradle and JRE 13, upgrading solved that.
Add android.useAndroidX. This was removed some time ago, but it is necessary for building with any androidx modules.
Switch to standard maven-publish plugin, since com.github.dcendents.android-maven is abandoned.
License title was changed from The Apache Software License, Version 2.0 to The Apache License, Version 2.0, which is the official title.

Two things, I'm not really sure about:

The version property in the original gradle.properties was set to 1.2.4, but the latest released version is 2.3.0
The group ID was set to com.github.chrisbanes.photoview, but the released versions have com.github.chrisbanes

Any updates/suggestions on this PR?

Thanks for doing all this!


Failing CMake build with HDF5 1.10.9 on Travis CI

After enabling Travis CI again, the CMake build with HDF5 1.10.9 fails: https://app.travis-ci.com/github/tbeu/matio/jobs/584041829#L777
This is the corresponding configuration:
https://github.com/tbeu/matio/blob/5dcaccc19d2c79348ce5a86ea97875787dddc546/.travis.yml#L159-L166
@MaartenBent @nim65s could you please have a look at it? Thank you!

Looks like the location of the CMake files inside the HDF5 package has changed.
Older versions used CMake-hdf5-1.10.8/HDF5-1.10.8-Linux/HDF_Group/HDF5/1.10.8/share/cmake
For new versions it is located in CMake-hdf5-1.10.9/HDF5-1.10.9-Linux/HDF_Group/HDF5/1.10.9/cmake
Probably got broken when HDF5 was updated to 1.10.9.
Removing share in this path should fix it.
https://github.com/tbeu/matio/blob/5dcaccc19d2c79348ce5a86ea97875787dddc546/.ci/travis_before_script.sh#L26
If you want to keep support for older HDF5 versions in the ci scripts, you can also add two paths to CMAKE_PREFIX_PATH (" seems to be required):
CMAKE_PREFIX_PATH=-DCMAKE_PREFIX_PATH=\"$HDF5_DIR/share/cmake;$HDF5_DIR/cmake\"

Thank you for figuring it out. Fixed by 2f7c9cc. Only your first proposal worked out though.


[RFC] AD-Visualizations Integration

The purpose of this RFC (request for comments) is to gather community feedback on a new proposal for integrating AD with core Dashboards' Visualizations. Doc: see here.
Pasting doc details here so it can be discussed:
RFC - Integration with Visualizations
Problem
Oftentimes users may start out by viewing their ingested data through an OpenSearch Dashboards Visualization (viz), and then grouping multiple together to create a Dashboard. This is helpful to initially be able to understand the data, find patterns, and monitor / observe data as it’s ingested into an OpenSearch cluster. But, after users create these, there’s no clear path for them to take next steps if they want to look further into their data, such as setting up anomaly detection (AD). Some of the challenges of setting up AD include:

learning new AD-specific terms and ideas (anomaly detector, historical analysis, feature, interval, etc.)
detailed and lengthy setup with lots of user-required fields
lots of duplicate work (selecting source data, metrics to analyze) if the user has already created a viz
AD lives in a standalone plugin and not visible on Dashboards overview or home pages - must be accessed from list of plugins in sidebar

Solution
Overview
To help address this disconnect between Visualizations and AD, we propose an integrated solution that allows users to quickly create, run and view anomaly results from a Visualization. For certain Visualizations, users can utilize the effort they've already provided to visualize the data they’re interested in (source data, metrics to analyze), and create an anomaly detector on that same data with just a few extra clicks. The diagram shows the overall user workflow:

AD is only intended for use with streaming time series data (real-time or historical). Because of this, we focus on the following Visualization types frequently used for time series data: (1) Line, (2) Area, (3) Vertical bar, and (4) Time Series Visual Builder (TSVB).
Generating the detector configuration
Using inputs from a Visualization, the config fields for a detector can be automatically populated with suggested values. In a perfect scenario, no user input is needed to create a detector, and every field can be populated. The most common cases where user info would be needed is the complex fields like features and filter query. These can be partially auto-filled, with some extra user input needed (e.g., auto-filling the feature field, but needing user input to provide a valid aggregation).
We list the logic for generating each default detector field value below (tentative):

Detector field
Logic

name
Some simple pattern, e.g. "<viz>-detector"

description
Some simple pattern, e.g. "A detector based off of <viz>"

time_field
Time field used in viz

indices
Selected index pattern of viz (if Search type is selected, then extract index pattern from that)

features
Corresponds to metrics section in viz. May need user input if invalid aggs are selected

filter_query
Combine any custom filters set in viz

interval
Use some default value (10 mins), or from length of bucket, if date histogram option is selected

window_delay
Use some default value (1 min)

category_field
Default to empty. If user has x-axis terms subaggregation set, could auto-fill with that field

result_index
Use some default value (none)

shingle_size
Use some default value (8)

real-time / historical jobs?
Default to real-time enabled, historical disabled

Invalid inputs
Because Visualizations allow for much more complex ways to display data on a chart compared to AD, it is possible that the configuration will not all be valid when trying to set up an anomaly detector. Some examples include:

user selects a metric aggregation available in a viz that is not available in AD (e.g. pipeline aggregation)
user has more metrics than allowed features in AD (currently 5)
user configures non-date-related x-axis or no x-axis at all

These cases could be handled in a few different ways:

Make AD creation invalid or unavailable until all constraints are met, and provide messaging as to why it's invalid.
Allow user to create by changing the detector config to meet constraints, but warn that the results may be based on different metrics than what's shown on the viz.

Note that x-axis issues won't necessarily affect the AD configuration, but would affect how any anomaly results would be displayed on the chart. Providing some warning indicating this may suffice.
Also note that AD supports custom aggregations when generating features. Future investigation needs to be done to see if all available viz aggregations could be converted appropriately.
UX
Creation workflow
Creating a viz is very simple and only involves selecting a viz type and a source. The rest of the details (metrics, x-axis, all other settings) are set after it’s created. We can follow this strategy for AD by having a button in the viz details to create a detector, which could open some modal/flyout/etc. Depending on how much of the viz is populated/valid, we will autofill as many fields as possible following logic listed in the table above. When everything is valid, user can create the detector and start any real-time or historical detection jobs. The creation will then be disabled, and can instead have a link to the detector details in AD plugin.
Viewing results
Detector results could be displayed in a few different places. On the viz details page, results could be overlaid or annotated on the chart indicating when anomalies occurred. On a Dashboard containing an AD-enabled viz, we could link the detector or detector results within the viz panel, provide options to show AD results within the panel, or show as a separate component altogether. Additionally, for eligible viz’s that don’t have AD enabled, could have an option or a button to configure one, which could link to the AD creation section on the specified viz's details page, or possibly create directly from the existing page.
Request for comments
We would like comments and feedback on the proposal of integrating AD and Visualizations here. Some specific questions we’re seeking feedback include

How do you use Visualizations today?
Would you be more inclined to use AD if it was available to create within a Visualization?
Are there any additional visualization aggregations not provided by AD, that are important for your use case? The current AD-supported aggregations can be found here.
Do you envision viewing the anomalies in a different way than overlaid on Visualization charts?
Would historical anomalies be useful, or are you only interested in real-time / future anomalies?
Would you prefer auto-suggested fields to be hidden by default, or easily available to edit when creating?
Besides integration with Visualizations, would you want a non-UI integration offering directly through APIs?
Do you have any other suggestions for how to handle invalid inputs? Would you prefer a more or less restrictive approach?

Another point of concern not mentioned above - the x-axis must be configured in a very specific way such that the bucket ranges are static. In other words, it must be configured as a Date Histogram aggregation, and must have a non-auto minimum interval - auto will adjust the interval as the time range changes automatically. Even then, the viz may upscale the interval if the range is too big - for example, 30m interval is upscaled to 1h in a 7d range, due to "too many buckets to show in the selected time range":

Because of this, will need to add some mechanism to keep a static interval, such that zooming in or out will not change the interval and produce more or less granular results.
This is all under the assumption that we want a 1:1 mapping of a metric result to a feature result - in other words, the input data to a detector perfectly aligns with the exact data shown in the viz. Perhaps this isn't necessary, and the detector input can be some static interval (e.g., 10 mins), but the chart can show the results in a dynamically aggregated way like it currently does (scaling up or down to show x number of buckets on the chart at once).
Pros/cons of 1:1 mapping

more visibility into the metrics derived for finding the anomaly
requires stricter viewing options from viz perspective - would need to warn if user changes date range, zooms in, etc., or remove those functionalities entirely
requires new logic for creating a static bucket range and viewing results on the viz

Pros/cons of dynamic mapping (having separate interval compared to viz bucket range)

maintain existing viz result viewing experience (dynamically changing histogram bucket size, etc.)
more flexible and available to create AD from different viz's
likely maintains a more desirable interval number - for example, data coming in at 1m intervals defaults to a bucket range of 1h on viz (because default time range is 7d). But, 5m/10m is sufficient for an interval, and helps detector finish initialization and start running much sooner than a 1h interval
less visibility into the metrics derived for finding the anomaly - for example, bucket range on viz may be at a low level of granularity such that it looks like no spike happened, but is showing an anomaly (could still see the feature results by visiting dedicated AD results page)

Are there reasons why community members would not want this turned on by default or would only want a subset of users to use the functionality?

UX progress can be found in the design proposal.


medusa support

System Info
text-generation-inference 1.3.0
python 3.10
Information

[ ] Docker
[ ] The CLI directly

Tasks

[ ] An officially supported command
[ ] My own modifications

Reproduction
I want to know if the tgi 1.3.0 support the medusa decoding? Thanks a lot.
Expected behavior
medusa support

Yes it does.


Speed up graph_from_arraylike

inspect is rather slow so it's not a good idea to trigger it multiple times like it was done with has_keyword.

[ ] Closes #xxxx
[ ] Tests added / passed
[ ] Passes pre-commit run --all-files

Thanks, @jrbourbeau for the quick feedback.
Ok here's some background. I've been trying to improve performance over at xarray, https://github.com/pydata/xarray/pull/7824 as it is quite slow for my use case of concatenating files with 2000+ dask arrays per file.
Because it's a lot of arrays initialization time starts to become important for me.
Here's a xarray example I've been playing around with:
import numpy as np
import xarray as xr

t_size = 8000
t = np.arange(t_size)
var = xr.Variable(dims=("T",), data=np.random.randn(t_size)).chunk()

data_vars = {f"long_name_{v}": ("T", var) for v in range(500)}

dsA0 = xr.Dataset(data_vars, coords={"T": t})
dsA1 = xr.Dataset(data_vars, coords={"T": t + t_size})

datasets = [dsA0, dsA1]

xr.combine_by_coords(datasets)

Doing some profiling you start to notice trends like this:

Looks like low hanging performance fruits, right?
Comparing the implementations:
import inspect
from typing import Callable

def has_keyword(func, keyword):
    try:
        return keyword in inspect.signature(func).parameters
    except Exception:
        return False

def has_keywords(func: Callable, keywords: tuple[str, ...]) -> bool:
    try:
        prms = inspect.signature(func).parameters
        return all(k in prms for k in keywords)
    except Exception:
        return False

def test(a, b, c=2):
    pass

%timeit has_keyword(test, "c") and has_keyword(test, "d")
50.4 µs ± 1.04 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)

%timeit has_keywords(test, ("c", "d"))
26.4 µs ± 745 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)

I'm thinking instead of allowing str | tuple[str, ...] just replace all the old has_keyword with has_keywords instead, granted it's non-public. When I quickly checked it didn't look like checking several keywords was that common so I'm reluctant to add a bunch of isinstance checks to make sure whether it's iterable or not.
I've put this as a draft PR for now because I want to dig around for a while longer, I can ping you again when I've tried some more stuff.


"WARNING    gmusic/all_access unknown config key"

Badly I'm not able to get to work the all_access function. I'm getting the warning:
"WARNING    gmusic/all_access unknown config key."
My "/etc/mopidy/mopidy.conf"-file looks like this:
[gmusic]
username = daniel********
password = ********
deviceid = 315*******
all_access = true
Am I'm doing something wrong, or is it a known problem? (PS: I have a german google all access account)

See #58

I'm getting this error as well, even after following the instructions from #58


bugs in 4_write_omop.py or possibly the extracted data.

Hi again, I am wondering how long this script (4_write_omop.py) would take to run (took me more than 24 hours) and it resulted into the following error after 24 hours appreciate any feedbacks to avoid rerunning the script and get it running from where it left off.
What would chunk X/100 mean here. Is it normal that I got 1890 out of 100 chunks?

Chunk 1890/100
collecting weight
collecting heart_rate
collecting invasive_systolic_blood_pressure
collecting invasive_diastolic_blood_pressure
collecting invasive_mean_blood_pressure
collecting noninvasive_systolic_blood_pressure
collecting noninvasive_diastolic_blood_pressure
collecting noninvasive_mean_blood_pressure
collecting O2_saturation
collecting lactate
collecting blood_glucose
collecting magnesium
collecting sodium
collecting creatinine
collecting calcium
collecting temperature
collecting FiO2
collecting hemoglobin
collecting chloride
collecting pH
collecting paO2
collecting paCO2
collecting plateau_pressure
collecting respiratory_rate_setting
collecting tidal_volume_setting
collecting potassium
collecting PTT
collecting bilirubine
collecting alanine_aminotransferase
collecting aspartate_aminotransferase
collecting respiratory_rate
collecting albumin
collecting blood_urea_nitrogen
collecting expiratory_tidal_volume
collecting white_blood_cells
collecting platelets
collecting phosphate
collecting bicarbonate
collecting alkaline_phosphatase
collecting PEEP
collecting urine_output
collecting glasgow_coma_score
collecting glasgow_coma_score_eye
Traceback (most recent call last):
File "BlendedICU/4_write_omop.py", line 14, in <module>
  c.measurement_table()
  File "BlendedICU/blended_preprocessing/omop_conversion.py", line 331, in measurement_table
  self.measurement = self._add_measurement(varname,
  File "BlendedICU/blended_preprocessing/omop_conversion.py", line 270, in _add_measurement
  vals = timeseries.loc[:, ['time', 'patient', varname]]
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexing.py", line 1147, in __getitem__
  return self._getitem_tuple(key)
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexing.py", line 1339, in _getitem_tuple
  return self._getitem_tuple_same_dim(tup)
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexing.py", line 994, in _getitem_tuple_same_dim
  retval = getattr(retval, self.name)._getitem_axis(key, axis=i)
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexing.py", line 1382, in _getitem_axis
  return self._getitem_iterable(key, axis=axis)
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexing.py", line 1322, in _getitem_iterable
  keyarr, indexer = self._get_listlike_indexer(key, axis)
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexing.py", line 1520, in _get_listlike_indexer
  keyarr, indexer = ax._get_indexer_strict(key, axis_name)
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 6114, in _get_indexer_strict
  self._raise_if_missing(keyarr, indexer, axis_name)
  File ".conda/envs/blended/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 6178, in _raise_if_missing
raise KeyError(f"{not_found} not in index")
KeyError: "['glasgow_coma_score_eye'] not in index"

Hi, I need to check this, I haven't used the OMOP formatted data lately. It should take a long time, but not that long.
In the meantime, the BlendedICU data can be used in its original form with medications and timeseries as patient-level parquet files located in blended_data/formatted_medications/ and blended_data/formatted_timeseries/ and labels/flat data in blended_data/preprocessed_labels.parquet and blended_data/preprocessed_flat.parquet.
Thanks again for the feedback, getting back to you soon.

Hi,
could you please tell me if this is normal that I am getting 1890 out of 100 chunks? what X refers to in X/100 chunks print out line.
Thanks,

Hi,
There were several issues introduced by "quick changes" made during reviewing process. I'm done fixing them and now this step runs in ~10hours. I will push the changes tomorrow.

1890 out of 100 was a printing error... there was a confusion between the number of patients per chunk and the number of chunks. Now there actually are 100 chunks of ~3200 patients and not the opposite.
Measurement data was mostly filled with NaNs because this step initially assumed that timeseries were resampled to hourly data, which is not the case anymore. This was fixed, and the data is a LOT smaller.
The KeyError that you had was fixed : if a variable cannot be found (ie if a batch of patients did not have this variable), it is skipped and will not appear in the corresponding measurement chunk.

Thank you for your patience,
Getting back to you (very) soon

Many thanks.


No onRegionIsChanging callback when flinging position

If one flings the map via the default fling gesture, no onRegionIsChanging is called on the MapChangeListener while the view is being animated to the new position.
Seen in tangram 0.12.
Related to #2129

This is why is stumbled across this, I am implementing this:
https://youtu.be/ss_-qWN4E4Y

Can I help here? Is this fixable on the Java-side? I'd love to be able to release the feature I mentioned but with no callback on flinging it's not good.

Thanks for the offer to help ❤ but unfortunately I don't think that this can be fixed on just the Java side. Movement after a fling gesture is handled in the C++ core and it currently doesn't invoke callbacks the way that it does for scripted camera animations. I do at least have an idea for how to fix this now: the movement of the camera after a fling can be calculated as a closed-form function, which means it could be implemented as a camera animation and treated mostly the same as 'updateCamera' and 'flyTo' animations. There are some subtleties to the exact series of events that should be emitted: for example if a fling is considered a camera animation should we call onRegionWillChange(animated) or is it a continuation of the preceding pan gesture?
I hope to get some time for this later in the week, or this upcoming weekend.

Ok it took me a while to re-acquaint myself with this code, thanks for your patience.
The events sent to the listener are a little different from what you expected but should still enable you to implement your feature. When a user moves the map with a gesture that ends with a fling, the callbacks look like:
OnRegionWillChange:animated=false    < Very beginning of the gesture (finger down)
OnRegionIsChanging                   < Repeats while the gesture is in progress (finger remains down)
...
OnRegionIsChanging
OnRegionDidChange:animated=false     < End of gesture (finger comes up)
OnRegionWillChange:animated=true     < Start of fling animation
OnRegionDidChange:animated=true      < End of fling animation

So the fling animation is treated a little separately from the gesture itself, but you still receive events for it. When you get a OnRegionWillChange your app can assume that the map will be moving in some way until you get a corresponding OnRegionDidChange. I should definitely add some more detailed documentation for this in MapChangeListener, both for other users and for myself 😅
This is a little different from the way callbacks work in the Google Maps API. It basically mimics the behavior of the equivalent callbacks in MapKit (https://developer.apple.com/documentation/mapkit/mkmapviewdelegate#topics). It was easier for us at the time to pick one callback pattern to implement, but it may be nicer for Android developers to stick closer to the "native" API patterns.

Ah I understand, yes that'd work. Thank you for the documentation update!


Sepolicy for power-stats and power hal

Add sepolicy for vendor power and power
stats implementation.
Tracked-On: OAM-126029

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket  is present.


How to backtest local data

Dear Catalyst Maintainers,
How can I backtest local data.   is it possiable it do not connect ccxt?   I know how to backtest by build panel data in zipline. is it same in catalyst?
Before I tell you about my issue, let me describe my environment:
Environment

Operating System: (Windows Version or $ uname --all)
Python Version: $ python --version
Python Bitness: $ python -c 'import math, sys;print(int(math.log(sys.maxsize + 1, 2) + 1))'
How did you install Catalyst: (pip, conda, or other (please explain))
Python packages: $ pip freeze or $ conda list

Now that you know a little about me, let me tell you about the issue I am
having:
Description of Issue

What did you expect to happen?
What happened instead?

Here is how you can reproduce this issue on your machine:
Reproduction Steps

...
What steps have you taken to resolve this already?
...
Anything else?
...
Sincerely,
$ whoami

I have backtest the local data successfully, While, I have questions that , whether catalyst backtest supports futures backtest.  It will automatically understand the short and open ?

Hi @studyquant ,
Currently shorting/margin trading is not supported by catalyst, we have an open issue for it already -#415.
I am closing this. Feel free to reopen if you feel otherwise.
Thanks,
Lena

Hello, backtest local data failed.  can u tell me that how to backtest local data？
I have create a  panel data and run_algorithm by following code.  While， it backtested from ingested data not my local data.   How to solve that ?
perf = run_algorithm(
capital_base=1000,
data_frequency='minute',#
data = panel,
initialize=initialize,
handle_data=handle_data,
analyze=analyze,
        exchange_name='binance',
        algo_namespace=NAMESPACE,
        quote_currency='usdt',
        start=pd.to_datetime('2018-11-07', utc=True),
        end=pd.to_datetime('2018-11-07', utc=True),
    )


Gradient Model Selection is buggy and weird

@votjakovr This one is for you :)
The gradient descent works in general, though has a lot of stability issues.
See some code here:
https://gist.github.com/karlnapf/5968042
1.) ALL model parameters need to be registered. It is not possible to optimize just a few of them (comment out the kernel part of the tree and you will see). I think this is because the gradient model selection iterates over all model parameters and looks for their values in the tree instead of doing this vice verse.
2.) The above code crashes after the optimization has finished. This is caused my the UNREF of grad_search variable at the end. Removing it solves the crash. So there is something freed within the Model selection that should not be freed.
3.) Some parameters get negative. This should not be possible (at least for some). Maybe move to log domain?
4.) The Gradient model selection starts at a random value, rather than picking an existing one from the model. It would be better if it would take the current ones since then one could set starting parameters for the optimization.
5.) The code is messy and weird at some places. It would need a clean-up or some documentation inside it
We should document and test this a bit since it is crucial for the GP stuff to work. Let me know your thoughts on this :)

@karlnapf
maybe this issue is solved?

yeah I agree. Thanks!


DNS verification step with busybox potentially failing with "latest"

Kudos for the repo, it helped me a lot "translating" KTWH from GCP to virtualbox.
I have spend the last 2 days (learning tons while) trying to find-out why the DNS resolution was failing until I found this:
https://github.com/kelseyhightower/kubernetes-the-hard-way/pull/384/commits/f8f267e81d88753f5d5e68a962c9ddb40a8294f7
so I'd recommend being explicit about the version (as the kubernetes doc is here: https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/) of busybox to use for testing nslookup:
kubectl run busybox --image=busybox:1.28.4 --command -- sleep 3600
If you prefer I can issue a PR for README.md and update a few other things like bumbing the k8s version number from kubectl get nodes to v1.11.2

@asksven send PR yes they are always welcome :-)

@surajssd I made a PR. Can you take a look?


Feature: read deprectated typehint in function signature

This is an implementation for #12
Note this does not support phpdoc.

Thank you! I prepared the commit with InFunctionNode so please send PR for functions that takes advantage of this node :) https://github.com/phpstan/phpstan/commit/f18ff786e5d28b31e27d2a933cc41e76a630427c

Thanks for your time !
Just added a new test, just to be sure there were no dead ends. Does it need a PR ?

Oh, one thing I forgot about - these errors should not be reported in already deprecated scope. This is how other rules do it: https://github.com/phpstan/phpstan-deprecation-rules/blob/master/src/Rules/Deprecations/CallToDeprecatedFunctionRule.php#L33-L35
About your question - yes, this should get reported, please send a PR.

We should support description for anonymous classes too.
I started to handle InFunctionNode, will there be a InClosureNode ? :)

I just implemented it: https://github.com/phpstan/phpstan/commit/475249b372f685b1968e0fdc5e9f78a7d7340ab8
You will also need Scope::getAnonymousFunctionReflection(): https://github.com/phpstan/phpstan/commit/57921ff8a9e41af33fc332860430886437258e7b
Looking forward to the PR :)


Sanitize {{{untrusted-html}}} to avoid XSS attacks

What is a good way to sanitize {{{untrusted-html}}} to avoid XSS attacks? I need to display as html, but strip dangerous content.
Would it be a good idea to use https://github.com/google/caja/wiki/JsHtmlSanitizer? Where would I plug that in?

You could register a helper function

Thanks for this Nils with skills.


Compatibility with react native 0.59

I'm unable to start rn app as it shows error  related to computeProps.js Module does not exists!
Does it related to rn version which i had recently migrated to 0.59.4

@sreeragkiyyath I am running into the same issue. Did you find a solution?

I was able to fix this by upgrading react-native-easy-grid to 0.2.2.


Use androidx for back compatibility instead of Support Library

Folks, I experienced a problem when updating cloud_firestore to version 0.9.0
The update requires libraries like androidx.annotation to work.
When I enabled androidx in my project, BarcodeScannerActivity.kt started failing to build because dependencies like
import android.support.v4.app.ActivityCompat
import android.support.v4.content.ContextCompat

I migrated the project from Support Library to Androidx and I referencing to this issue for further discussion

@victoraldir I merged this PR but once I went to use it I'm now having build issues. I'm going to be doing some work next week to figure out what is going on. I'm holding off on publishing this until I can figure that out.

@matthewtsmith Sorry to hear that. I will check it out and come up with something.
What problem are you facing? Can you paste the stack here?

is the method fix this issue ?
and how to fix by ourself?

What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'android' is using version 1.2.31.

thanks

yeah same thing happened after i update it to sdk 28.
gradle task 'assembleDebug'...
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\barcode_scan-0.0.8\android\src\main\kotlin\com\apptreesoftware\barcodescan\BarcodeScannerActivity.kt: (8, 31): Unresolved reference: ActivityCompat
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\barcode_scan-0.0.8\android\src\main\kotlin\com\apptreesoftware\barcodescan\BarcodeScannerActivity.kt: (9, 27): Unresolved reference: content
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\barcode_scan-0.0.8\android\src\main\kotlin\com\apptreesoftware\barcodescan\BarcodeScannerActivity.kt: (86, 13): Unresolved reference: ContextCompat
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\barcode_scan-0.0.8\android\src\main\kotlin\com\apptreesoftware\barcodescan\BarcodeScannerActivity.kt: (89, 13): Unresolved reference: ActivityCompat
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':barcode_scan:compileDebugKotlin'.

Compilation error. See log for more details

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

Master branch works fine, you can push it to pub

Hi, any update regarding this?
i've been waiting but it's not on pub yet. Please help.
Thanks :)

@sleith  u can try the pull branch for android X support. It work perfectly here

I needed to add those settings for https://github.com/flutter/flutter/issues/28155 :
android.useAndroidX=true
android.enableJetifier=true

But now it's barcode_scan that's acting up :/
Initializing gradle...                                              0.8s
Resolving dependencies...                                           1.7s
e: /home/natoboram/.pub-cache/hosted/pub.dartlang.org/barcode_scan-0.0.8/android/src/main/kotlin/com/apptreesoftware/barcodescan/BarcodeScannerActivity.kt: (8, 31): Unresolved reference: ActivityCompat
e: /home/natoboram/.pub-cache/hosted/pub.dartlang.org/barcode_scan-0.0.8/android/src/main/kotlin/com/apptreesoftware/barcodescan/BarcodeScannerActivity.kt: (9, 27): Unresolved reference: content
e: /home/natoboram/.pub-cache/hosted/pub.dartlang.org/barcode_scan-0.0.8/android/src/main/kotlin/com/apptreesoftware/barcodescan/BarcodeScannerActivity.kt: (86, 13): Unresolved reference: ContextCompat
e: /home/natoboram/.pub-cache/hosted/pub.dartlang.org/barcode_scan-0.0.8/android/src/main/kotlin/com/apptreesoftware/barcodescan/BarcodeScannerActivity.kt: (89, 13): Unresolved reference: ActivityCompat

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':barcode_scan:compileReleaseKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 39s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                      40.1s
Gradle task assembleRelease failed with exit code 1

1Go to your dependences and add this just for temporary we are waiting to have a new release
barcode_scan:
git: https://github.com/apptreesoftware/flutter_barcode_reader.git
2 Add this
android.useAndroidX=true
android.enableJetifier=true
3. Update your buildscript with ext.kotlin_version = '1.3.0'
4.Use Gradle com.android.tools.build:gradle:3.3.0

Any idea when they are releasing the fix?

Same issue with API 28 and androidx and barcode_scan.

I resolved this issue.
import android.support.v4.app.ActivityCompat -> import androidx.core.app.ActivityCompat
import android.support.v4.content.ContextCompat -> import androidx.core.content.ContextCompat
I tried tremendously ways 16 hours.
But here they are.
That's it.

Things to note

Things to note
Change your Gradle version to 3.2.1

Things to note
1a) Change your Gradle version to 3.2.1
  dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'

       ...
    }

1b) Update your gradle to the latest version by changing the distribution URL in "gradle-wrapper.properties"
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

Add AndroidX properties in "gradle.properties" file

	android.useAndroidX=true
	android.enableJetifier=true

Make sure you set the compileSdkVersion in your "android/app/build.gradle" file to 28:

android {
  compileSdkVersion 28
  ...
}

Make sure you replace all the android. dependencies to their AndroidX counterparts (a full list can be found here:.  https://developer.android.com/jetpack/androidx/migrate

For example, you could have the following dependencies in your "build.gradle" file
dependencies {
    implementation "com.android.support:support-compat:27.1.1"
}

You should replace this with:
dependencies {
    implementation 'androidx.core:core:1.0.1'
}

Change your kotlin version number to the latest version in your build.gradle file

buildscript {
     ext.kotlin_version = '1.3.0'
     .....
     }

Open this file BarcodeScannerActivity.kt in the barcode package folder.
(This is mine ===>C:\flutter_sdk_stable\flutter.pub-cache\hosted\pub.dartlang.org\barcode_scan-0.0.8\android\src\main\kotlin\com\apptreesoftware\barcodescan\BarcodeScannerActivity.kt)

Make these changes as @kendji suggested
import android.support.v4.app.ActivityCompat ===> import androidx.core.app.ActivityCompat
import android.support.v4.content.ContextCompat ===> import androidx.core.content.ContextCompat

Published 1.0 to pub with this fix

@matthewtsmith please update the README.md docs. it still says
dependencies:
  ...
  barcode_scan: ^0.0.3

Also does the latest version support AndroidX, if so please add the relevant guidelines to the README.md, if it doesn't please still state it, because it might conflict with other libraries.

Also shouldn't we update to the latest kotlin version 1.3.0?

Also shouldn't we update to the latest kotlin version 1.3.0?

I'd also add, in your app/build.gradle file
buildscript {
    ext.kotlin_version = '1.3.20'  // previously was 1.2.51, if you put 1.3.0 it gives warnings about confilicts with 1.3.20, so just put 1.3.0

and
dependencies {
        // 3.2.1 gives "WARNING: Conflict with dependency 'androidx.vectordrawable:vectordrawable'"
        classpath 'com.android.tools.build:gradle:3.3.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

Using flutter
Flutter 1.7.8+hotfix.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 20e59316b8 (3 weeks ago) • 2019-07-18 20:04:33 -0700
Engine • revision fee001c93f
Tools • Dart 2.4.0
Using barcode_scan: 1.0.0
Add the camera permission to your ./android/app/profile/AndroidManifest.xml
<uses-permission android:name="android.permission.CAMERA" />
Add the BarcodeScanner activity to your ./android/app/main/AndroidManifest.xml. Do NOT modify the name.
<activity android:name="com.apptreesoftware.barcodescan.BarcodeScannerActivity"/>
This plugin is written in Kotlin. Therefore, you need to add Kotlin support to your project. See installing the Kotlin plugin.

    }

And work for me.

1Go to your dependences and add this just for temporary we are waiting to have a new release
barcode_scan:
git: https://github.com/apptreesoftware/flutter_barcode_reader.git
2 Add this
android.useAndroidX=true
android.enableJetifier=true
3. Update your buildscript with ext.kotlin_version = '1.3.0'
4.Use Gradle com.android.tools.build:gradle:3.3.0

THIS IS awesome solution....for me it's WORKS.. thanks


Capital case variables don't show up in variables explorer

From<EMAIL_ADDRESS>on 2013-05-07T13:49:49Z
What steps will reproduce the problem?

Open either a python or ipython interpreter through spyder
Declare a variable with only capital letters. Example: PAT=1.23456
The variable will not show up in the variables explorer. They do exist in the intepreter though as they can be printed.

Variables "PAt", "Pat", "PATi" will show up in the variables explorer. What version of the product are you using? On what operating system? Spyder <IP_ADDRESS>
Arch Linux x86_64
Qt 4.8.4-16
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1378

From<EMAIL_ADDRESS>on 2013-05-07T12:07:27Z
Forgot to paste this:
Python 2.7.4 64bits, Qt 4.8.4, PyQt4 (API v2) 4.10.1 on Linux
Also tried with 2783.a95cf5d9ef16 (mercurial's tip?) with same result.

From pierre.raybaut on 2013-05-07T12:20:32Z
Status: Invalid

From pierre.raybaut on 2013-05-07T12:20:19Z
There is an option to enable/disable all-upper case variables.
See attached screenshot.
Attachment: sn_spyder.png


fix: default config values for yml files

What:
All nps commands would fail given the following conditions were true:

User was using a package-scripts.yml instead of a package-scripts.js
User didn't pass any options to nps

closes #170

Why:
Current implementation makes it impossible to call nps normally without a minor workaround of some sort.
e.g.
scripts:
  echo: echo "this is a test"

config: {}

How:
yml configurations now go through the same post-process as js configurations.

Checklist:

[ ] Documentation N/A
[x] Tests
[x] Ready to be merged
[ ] Added myself to contributors table

@kentcdodds
Travis seemed to slow down for a second when this started and
its almost as if the cli tests somehow interfered with one another.
I'm guessing they would pass if you reran the build.

Updating jest-cli seems to have improved the stability of the tests.

@kentcdodds
This PR should be good to go now. 👍


fix: mangadex chapter chunking

Fixes #172 by correctly handling the "chunking" when looking for manga chapters.

Will close this, to work on my own fork.


style features are not working

Type: Feature Request

/needsMoreInfo
Please provide exact steps to reproduce, expected behaviors and code samples


Domain Join as mandatory artifact

The start of this page gives the example of joining a VM created from an image in a DevTest lab using a mandatory artifact.  However, since the Join Active Directory (AD) domain artifact has parameters it is not allowed to be specified as a mandatory artifact.  How then would this be possible to implement?

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

ID: 98911146-2654-52e4-1ae4-2789ab64895e
Version Independent ID: beea6744-afef-a146-1e5c-80f40fd075e5
Content: Specify mandatory artifacts for your Azure DevTest Labs
Content Source: articles/lab-services/devtest-lab-mandatory-artifacts.md
Service: devtest-lab
GitHub Login: @spelluru
Microsoft Alias: spelluru

@DanBrown-TechSmith -  Thanks for brining this to our attention. We will investigate it further and update you shortly.

@DanBrown-TechSmith -  I'm going to assign this to the document author so they can clarify it accordingly.

#reassign:juliako


Add callout to green deal in the energy grants calculator.

Paired with @erikse
PT story: https://www.pivotaltracker.com/story/show/107991402
Trello card: https://trello.com/c/toqXU8S6/37-energy-grant-smart-answer-remove-green-deal-from-outcomes
On all the outcomes that fall on the under green deal we are showing a callout that informs the user that the Green Deal Home Improvement Fund is currently closed to new applications, but they are not affected if they have already applied.
We have also added the missing value to the Warm Home Discount scheme.
Factcheck
https://smart-answers-pr-2369.herokuapp.com/energy-grants-calculator/y/all_help/benefits/1954-01-01/pension_credit/before-1940/house/mains_gas,electric_heating,modern_double_glazing,loft_attic_conversion,loft_insulation,solid_wall_insulation,modern_boiler,draught_proofing
Expected changes

URL on gov.uk

Render content "The government has stopped funding the Green Deal Finance Company, which was set up to lend money to Green Deal providers. Find out how this affects you."

Before

After with Colon

After without colon (Latest)

Factcheck has been carried out by Paul Heron


RP-BCME Tests occasionally fail

Some tests in the test set for BCME methods occasionally fail with the error shown below.
BCME: Test Failed at /home/runner/work/NQCDynamics.jl/NQCDynamics.jl/test/Dynamics/rpbcme.jl:85
  Expression: isapprox(true_value, avg[i]; atol = 5 * err[i], rtol = 0.1)
   Evaluated: isapprox(0.17339235787512292, 0.014280365212307628; atol = 0.15836742286265215, rtol = 0.1)

Stacktrace:
 [1] macro expansion
   @ /opt/hostedtoolcache/julia/1.9.3/x64/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
 [2] macro expansion
   @ ~/work/NQCDynamics.jl/NQCDynamics.jl/test/Dynamics/rpbcme.jl:85 [inlined]
 [3] macro expansion
   @ /opt/hostedtoolcache/julia/1.9.3/x64/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
 [4] top-level scope
   @ ~/work/NQCDynamics.jl/NQCDynamics.jl/test/Dynamics/rpbcme.jl:56

@Snowd1n is this related to what you mentioned about RNG yesterday?

Yes I believe so

This test has been dodgy ever since the start so nothing has changed. The only way to make it more reliable is to run more trajectories but then it takes ages. Not sure what the best solution is


npm WARN unmet dependency

running os x yosemite,
node: v0.12.2
npm: 2.7.4
just followed the tutorial for yeoman w/angularjs and bootstrap
had to run:  $ sudo chown -R usr_name /usr/local
and $ npm cache clean
$ yo doctor shows no problems
finally got a succesful directory generated with the following warnings that read more
like bugs:
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/cdnjs-cdn-data requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/semver,
npm WARN unmet dependency which is version 2.3.2
<EMAIL_ADDRESS>node_modules/grunt-karma
└──<EMAIL_ADDRESS>updated generator via $ yo menu and got more of these:
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/bower requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/chalk,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/bower requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/chalk,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/cdnjs-cdn-data requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency /Users/williamroberts/Devel/AngularJSProjects/mytodo/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/semver,
npm WARN unmet dependency which is version 2.3.2
Can you tell me what this means?  unmet dependencies sounds like stuff isn't going to work.
Thanks very much!
Billy

Hi @brobrts I think you filed this in the wrong repo.
Going to close for now, let me know if you think I am in error. good luck debugging!


Add custom locators sample

There should be a special branch with hints for those interested in FE refactoring for easier locators' lookup.

It would likely never be merged or closed to let people practice independently.


Optimizing responsiveness

Overview
Optimized responsiveness of single profile layout and navbar. (The single profile page now centers when viewed on mobile devices).
I also changed language on homepage from "Some of our members" to "Member Preview" and renamed "Members" page now that's its clearer.
Relevant Issue
Single Profile Layout

✅ By submitting this PR, I have verified the following

[x] Reviewed the contributing guidelines 🔍
[x] Added my name to the bottom of the list under the Contributors section in the README.md with a link to my personal website or GitHub profile 👥

@FrancesCoronel @latinadeveloper and I talked about making the single profile layout responsive so this PR fixes that!


Failing Tests display twice in HTML

Here is a link to the jsfiddle.
Passing tests correctly pass and display only once.

Thanks for letting us know! This is a duplicate of https://github.com/mochajs/mocha/issues/2083 and has will be fixed in https://github.com/mochajs/mocha/pull/2112

TY. sorry for not finding the dupe issue. cheers!


[Bug] [MySQL CDC] Cannot capture change data

Search before asking

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

What happened
When I use MySQL CDC to synchronize data to Kafka, I can only get initialized data. Subsequent the data changes, whether add or delet, cannot capture the changed data. The data in Kafka is not change。
SeaTunnel Version
2.3.5
SeaTunnel Config
env {
  parallelism = 1
  job.mode = "STREAMING"
  checkpoint.interval = 10000
}

source {
  MySQL-CDC {
    base-url = "jdbc:mysql://up01:3306/hive_data"
    username = "root"
    password = "123456"
    start.mode = "initial"
    server-time-zone = "Asia/Shanghai"
    exactly_once = "true"
    table-names = ["hive_data.shop_order"]
    table-names-config = [
      {
        table = "hive_data.shop_order"
        primaryKeys = ["id"]
      }
    ]

    format = compatible_debezium_json
    debezium = {
        snapshot.mode = "never"
        # include schema into kafka message
        key.converter.schemas.enable = false
        value.converter.schemas.enable = false
        # include ddl
        include.schema.changes = true
        # topic prefix
        database.server.name =  "mysql_cdc"
    }
  }
}

sink {
  kafka {
      topic = "test_topic"
      bootstrap.servers = "up01:9092"
      format = compatible_debezium_json
      kafka.request.timeout.ms = 60000
      semantics = EXACTLY_ONCE
      transaction_prefix = "sot"
      kafka.config = {
        acks = "all"
        request.timeout.ms = 60000
        buffer.memory = 33554432
      }
  }
}

Running Command
cd /export/server/apache-seatunnel-2.3.5/
./bin/seatunnel.sh --config ./config/job/shop_order_to_kafka.config -e local

Error Exception
none

Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Can you provide DDL


Different approach to Ajax errors

I'm not sure if this issues lies in Halgoen or Affjax. Feel free to move it to the appropriate project.
I've noticed if you make an Ajax call and something goes wrong like not finding the website, the function ends early. I think a better approach would be to call a function returning Aff (ajax :: AJAX) and have it wrapped in something like Either, and then you can check if the AJAX call ran properly or not. Here is an example, if you can't find the testUrl, doSomething won't get called.
testUrl :: String
testUrl = "http://<IP_ADDRESS>:5000/test/"

testRequestUrl :: String -> String
testRequestUrl s = testUrl ++ s

fetchTest :: forall eff. String -> Aff (ajax :: AJAX | eff) String
fetchTest s = do
  result <- AJ.get (testRequestUrl s)
  let response = result.response
  return case readProp "val" response of
    Right r -> r
    Left  _  -> "Invalid response"

eval :: ...
eval ... = do
  val <- liftFI (fetchTest s)
  doSomething
  pure next

If you use attempt from purescript-aff it will lift the failure out of Aff _ result and give you an Aff _ (Either Error result) back instead - I think that's basically what you're looking to do here?

That works just fine.


Contextually type binding initializers

Fixes #5762
Previously they were not contextually typed, which meant that lambdas got completely incorrect types, and that types that rely on contextual typing, like tuples and string literal types, did not work correctly.

I forgot to re-run tests after merging from master and one of the new tests failed. I'll fix it and update the PR.

The baselines were missing Mohamed's improved serialisation of binding elements that doesn't print the initialiser as part of the type.

:+1:


[decoupled-execution] diagram-(121)

Motivation-
[decoupled-execution] diagram
Test plan-
cargo test

/canary

:sunny: Canary successful

/land

:broken_heart: Test Failed - ci-test

/land


Plugin doesn't appear to work when config includes "prefix" property

What version of @tailwindcss/container-queries are you using?
3.3.1
What version of Node.js are you using?
Tailwind Play
What browser are you using?
Chrome
What operating system are you using?
MacOS
Reproduction repository
https://play.tailwindcss.com/PL5t2J58Lw
Describe your issue
When using the prefix property in the config, the plugin doesn't appear to work. In this Play example, if you comment-out the prefix property, the first "test" word will be underlined properly.
https://play.tailwindcss.com/PL5t2J58Lw
I really like this plugin. Just hoping to get it working when a prefix is used.
Thanks!

Hey! This is because you also need to prefix the @container utility: m-@container.
Here's a Tailwind Play of that working: https://play.tailwindcss.com/Uj3qcNblAa

Ah, got it! Thanks so much!


Search query params

Issue
https://github.com/diverta/Kuroco-opendev/issues/5176
Reviewer
@yabe-diverta
Points to be reviewed

[x] Implement pagination by API in Article page
[x] Filter by tag area
[x] Filter by tag keyword
[x] Filter by search bar
[x] Reroute categories into article page.jsx

Links
https://diverta.gyazo.com/f279c096a3afaa0a8dfe2227955124fe

@yabe-diverta
レビュー待ち

@VortexExpansion
Please check bellow.
【General】

remove .env file in PR
we cannot comment out output: 'export', in next.config.js. it's necessary for deploy with KurocoFront

【Home page】

Looks no implement ranking yet. Please use /rcms-api/1/ranking end point.
https://diverta.gyazo.com/a81e43022e622cd70143d082835210e6

Sorry, I added get_favorite_cnt true setting now. Please show favorite cnt
https://diverta.gyazo.com/c0dabc79e5d16c8bfbdb86a5740ad323

【Details page】

Sorry, I added get_favorite_cnt true setting now. Please show favorite cnt
https://diverta.gyazo.com/fb473fe2ac585d25e9110ab9b07b1589

@VortexExpansion
Does the implementation include pagination in this pull request? It is not possible to navigate between pages while maintaining the filters.
https://diverta.gyazo.com/dfe4ecb31e025bc58d02458eee9648d6

Please up date this.

[ ] Update fav_cnt in list page https://diverta.gyazo.com/9619a6b57d50adb26cd7a841d0cd77fa
[ ] Fix broken links https://diverta.gyazo.com/e383a483dde84566b28782dbd9d2d4a3

@HisashiHasebe san

[x] fixed pagination https://diverta.gyazo.com/ab7b35dfd1e5d4c8431a2c6db2d8bc98
[x] updated fav_cnt https://diverta.gyazo.com/115076f164e9c1f6a634c0620b11ffc2
[x] fixed broken links https://diverta.gyazo.com/49cdc895e1b59a8b59037615f4000897

@VortexExpansion
Thank you!
And sorry, one more point.
Detail page's header looks difference with mock.
Please check it.
mock:https://diverta.gyazo.com/0d4821eb9dda902e4d63e909d4ede91c
current:https://diverta.gyazo.com/c1a0744bbc113240837e7cafa69726f6

@VortexExpansion
Top page also.
https://diverta.gyazo.com/fa580474d612bcbb57b03a356f6d0f34

@HisashiHasebe san
Details page is fixed https://diverta.gyazo.com/7d7ca0a7182e203bb4cd5dea2ddf3bad
I created a new PR for implementing the Top page header animation because that required a change in folder architecture and could have broken other things. https://github.com/diverta/front_next_media/pull/5