SR-5837: Fix dateFormat bug in DateFormatter

In a playground if you do the following:
let f = DateFormatter()
f.dateStyle = .long
f.timeStyle = .long
f.dateFormat

f.dateFormat at this point is equal to "MMMM d, y 'at' h:mm:ss a z"
However if you do the same in Foundation the f.dateFormat is equal to "" this is because whenever you set the Style properties dateFormat is being set to nil but it's not then reassigned a new value at that point. The code handles this nil value by assigning dateFormat the value of "" but this is not the correct value.
The expected behaviour is that when you set the Style properties the dateFormat property is then also reassigned the correct value based on the value you assigned to the Style properties.
This PR fixes this behaviour and ensures dateFormat is being set whenever the the Style properties are being set. I've also opened a bug for this which you can find here

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

I've updated the test coverage for this issue, in doing so I found a difference in behaviour in the construction of the dateFormat string.
This issue can be seen if you set the dateStyle property to .medium and then set the timeStyle property to anything other than .none.
Here is an example:
let f = DateFormatter()
f.dateStyle = .medium
f.timeStyle = .long
f.dateFormat

In a playground f.dateFormat is equal to "MMM d, y 'at' h:mm:ss a" however the result of the corresponding method in Foundation returns the following format, "MMM d, y, h:mm:ss a".  The construction of these Strings seem to happen in CoreFoundation so for now I've left those cases commented out. I've also omitted the cases of .full as these are currently not working correctly on Linux.

@swift-ci please test

@parkera any thoughts about this difference in CF behaviour with dateStyle = .medium? Probably another ICU incompatibility?

Ive seen this issue with ICU on Linux even using a C program interfacing directly to ICU bypassing Swift / CoreFoundation.

One of these days we're going to have to enforce a specific version of ICU to use with swift-corelibs-foundation. In the past there were objections to this idea since it would increase the size of the distribution, but that may not matter as much any more.

The swift build script actually has support for building ICU as part of the build although libxml2 also links to libicu so would need to be built somehow.
However in my testing I tested upto 57.1 (which was reasonably recent) and it still exhibited these issues on Linux. Does Apple do any customisation for its build of libicucore ?

Yah, you can see the Apple ICU release here: https://opensource.apple.com/release/macos-10125.html

@swift-ci please test and merge

@swift-ci please test and merge


language-override rules, restructure

addresses #1
New properties for users

opacity: (per-rule and workspace) 3-tier opacity options for rules

maxLinesBetween: (per-multiline-rule and window) for any rule limits the search area, default = 5

maxNumberOfLinesToScan: (language and window) which will limit the regex scan to specified number of lines. default is 1000. overridable in language config.

minOpacity, midOpacity, maxOpacity: (window) values will be used to generate styles. defaults are 0.25, 0.50, 0.75 for min, mid, max

Other new features

users can add language specific rules. Applicable rules for the document in editor will be appended into general ones.

schemas are added to enable code completion for users in .vscode/setttings.json

different schemas for single-line and multi-line rules are added with oneOf to guide users

Default values for props are added.

Example config
{
    "[json]": {
        "lowlight-patterns.rules": [
            {
                "startRule": ".*\\$schema.*",
                "endRule": "}",
                "opacity": "mid"
            }
        ]
    },
    "[go]": {
        "lowlight-patterns.rules": [
            {
                "startRule": "if err != nil",
                "endRule": "}",
                "opacity": "min",
                "maxLinesBetween": 20,
                "sameScope": true
            }
        ],
        "lowlight-patterns.maxNumberOfLinesToScan": 500
    },
    "lowlight-patterns.opacity": "mid",
    "lowlight-patterns.maxNumberOfLinesToScan": 1000
}

Rest

restructured the codebase to make room for further development
models, utilities, extension and extension lifecycle are separated to different files
vscode.Range and vscode.Position used when possible instead custom objects

Kept features:

dispose old decoration before applying new
debouncing the update

Work in progress
sameScope (per-multiline-rule and workspace) boolean prop to search startRule and endRule only in the same scope level. This needs work.

I have no trouble to publish this code as different extension if it doesn't fit.

Maybe this PR changes much more internal structure that it is more than logical. Thinking this, I published in another extension. We can safely close this PR without merging. You can use couple lines of code from it to implement language_overridable support. Thanks for time.


document input data

Would you mind commenting to explain what these are. Once I understand that, I think the rest is self-explaining
n_players = int.from_bytes(f.read(4), "little")
n_opponents = np.fromfile(f, dtype=np.uint16, count=n_players).astype(np.intc)
total = np.fromfile(f, dtype=np.uint16, count=n_players).astype(np.float64)
scored = np.fromfile(f, dtype=np.uint16, count=n_players).astype(np.float64) / 2
opponents = np.ascontiguousarray(np.fromfile(f, dtype=np.uint32, count=n_pairings).astype(np.intc))
opp_played = np.ascontiguousarray(np.fromfile(f, dtype=np.uint16, count=n_pairings).astype(np.intc))

pzstd: data/blitz.packed.zst: Unknown frame descriptor.
https://github.com/ddugovic/Lichess-Ordo/actions/runs/7611274965/job/20726405629


how to train on ucf101 from scratch?

Does anyone train tsm on ucf101  only using imagenet pretrained resnet50? No Kinetics pretrained.
I train tsm on ucf101 only using RGB stream, imagenet pretrained resnet50,  with hyper-parameters same as TSN, only get 83.5 accuracy.

Depending on the length of the clips it also helps with the amount of frames you sample. This can drastically improve (or decrease) the accuracy you obtain. In order to do so, set --num_segments to a higher value. Note that you might have to decrease batch_size (and the learning rate)  when you do this.
As per your question in the title, "How to train from scratch" (with only imagenet), you can do this by not finetuning from an already provided checkpoint. Instead just start an entirely new training and use --pretrain='imagenet' which is also the default value for --pretrain.

Depending on the length of the clips it also helps with the amount of frames you sample. This can drastically improve (or decrease) the accuracy you obtain. In order to do so, set --num_segments to a higher value. Note that you might have to decrease batch_size (and the learning rate)  when you do this.
As per your question in the title, "How to train from scratch" (with only imagenet), you can do this by not finetuning from an already provided checkpoint. Instead just start an entirely new training and use --pretrain='imagenet' which is also the default value for --pretrain.

Does anyone train tsm on ucf101 only using imagenet pretrained resnet50? No Kinetics pretrained. I train tsm on ucf101 only using RGB stream, imagenet pretrained resnet50, with hyper-parameters same as TSN, only get 83.5 accuracy.

would you please help me to train the model on UCF101. I am facing problem while training it


feat: sentry.properties

:scroll: Description

Add sentry.properties for additional config options.
it tries to load sentry.properties first and if it doesn't exist it will fallback to pubspec.yaml
:bulb: Motivation and Context

Closes #42
:green_heart: How did you test it?
Unit test
Manually
:pencil: Checklist

[x] I reviewed submitted code
[x] I added tests to verify changes
[ ] I updated the docs if needed
[x] All tests passing
[x] No breaking changes

:crystal_ball: Next steps
Add sentry docs

I don't have any comment on the code, that looks good to me.
I'm a bit concerned if this is not a breaking feature given the order we read the configs. If sentry.properties in the root of a Flutter project has not been used for anything till now, it should be fine.
I think the safer order would be to try first pubspec.yaml then sentry.properties then env. Although a bit more complex I would expect these two configs can coexist.
That would allow users to hide sensitive config to the properties file and then not commit it for example. Maybe not necessary.

@krystofwoldrich it seems like sentry.properties on the gradle plugin only uses org, project and auth-token so I think using sentry.properties as fallback and separating is the way to go. I guess we can adjust our approach based on demand but I think it should be good enough for now

How are you supposed to create the sentry.properties file? I tried creating it as a json and as list of values like in pubspec.yaml but it is not recognized by the CLI

key=value
# e.g
upload_debug_symbols=true

we'll add docs to the readme for that

[ ] Add docs for sentry.properties


New term request: Androecium morphology trait

Term: Androecium morphology trait (TO:0000994)
New Def'n: A collective phyllome structure morphology trait (TO:0000845) that is a quality of the androecium (PO:0009061).

Moved term: stamen number (TO:0000225) to 'is_a' androecium morphology trait (TO:0000994)
Revised def'n of stamen number (TO:0000225) to: An androecium morphology trait (TO:0000215) which is the number of stamens (PO:0009029) present in the androecium (PO:0009061).
added dbxref: TO_GIT: 386


[BUG-23] Support using podman instead of docker

Is this issue related to an issue?.
[dkliban@fedora ~]$ si --version
si 20230816.151117.0-sha.fae4e1c44

[dkliban@fedora ~]$ si start
Error:
   0: failed to determine Docker socket location; candidates=["/home/dkliban/.docker/run/docker.sock", "/var/run/docker.sock"]

Location:
   bin/si/src/main.rs:47

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Describe the outcome you'd like from us
Add support for running si using podman.
Describe alternatives you've considered
None. I don't want to install docker.
Code of Conduct

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

Additional context
No response
BUG-23

Hi @dkliban! Thanks for filing this issue.
As a Fedora user myself, I agree that Podman would be great. We'd like to add functionality at some point.
For those interested in taking a look, here is the primary library used for the si CLI. Specifically, it will likely be best to use this library to talk to Podman since we use that author's Docker library.

I made a little progress with podman on Fedora by setting export SI_DOCKER_SOCK=/run/podman/podman.sock.  si installs, but it still complains about having trouble connecting to Docker later on.  There is an -e podman option that generates an error stating that podman support is "coming soon".

This conditional will need removed to make it work as well: https://github.com/systeminit/si/blob/dad5771e4321d5eea250cf750a6752b2541aaa16/bin/si/src/main.rs#L86

Could an alternative be to provide a way to install si on Kubernetes? It is 1 more thing to manage but it also ads options because

kind already supports podman or docker
minikube supports running in VMs without a container runtime
docker desktop and rancher desktop offer kubernetes options on Windows, Mac, or Linux
k3s can be run (binary) with any CRI compatible container runtime

It seems like that could be more flexible than adding direct podman support

While the ability to deploy SI on Kubernetes would let me finally start using SI, there is additional value in being able to run SI on a laptop without Kubernetes. Should I open a separate issue for Kubernetes support?

Yeah I am going to suggest we keep this specific to podman and then we follow up with any other container engines in separate issues - that way we can focus on the specific outcome :)

Could an alternative be to provide a way to install si on Kubernetes? It is 1 more thing to manage but it also ads options because
1. `kind` already [supports podman](https://kind.sigs.k8s.io/docs/user/rootless/) or docker

2. minikube supports running in VMs without a container runtime

3. docker desktop and rancher desktop offer kubernetes options on Windows, Mac, or Linux

4. k3s can be run (binary) with any CRI compatible container runtime

It seems like that could be more flexible than adding direct podman support

I'm doing plenty with Rancher ecosystem these days and am definitely up for helping with getting this working on k3s.  A helm chart and/or operator could also keep it relatively portable to support other k8s environments (kind, k0s, etc) from there.


Modularize

implements extract modules #69
all modules are also published on npm now: https://www.npmjs.com/~robotopia


junkicide/raw bytes from storage

closes #836

rewrote branch for better history

stuff should really not be merged to master without living on an intermediate branch for a while anyway, though having a chance to fix style is orthogonal to that


Go code completion of functions/methods should include parameters

Hi & thanks for an awesome editor effort! There is one thing still bugging me when coming from Sublime that I think could be added, at least as an option. Currently Go code completion for methods and functions stops after the name is expanded:
strconv.AppendF<tab>  ->  strconv.AppendFloat

In sublime, the behaviour would have been:
strconv.AppendF<tab>  ->  strconv.AppendFloat(dst, f, fmt, prec, bitSize)

with "dst" being selected for overwrite if I continued typing, and tab moving to the "f" parameter and so on. This is enormously helpful when you don't immediately remember the parameters or their order, as in this example that takes a lot of them... It's also great when you've just refactored out the method and are going to call it from the original site, as the parameters are probably already named correctly.
Currently the workarounds are to type the parens manually, then go back and hit Ctrl-Space for the completion result again. However, it cuts off long parameter lists:

The other option is Alt-F12 to preview the actual declaration, which works but is more work to parse than just getting the params immediately up front:

I could see that some prefer the current setup though, so this could be hidden behind a go.completeWithParameters option or something.

This issue was moved to Microsoft/vscode-go#135


Seems to be incompatible with loadstone

My modpack normally sits at 13gb of ram. Installed this mod opened the game for a bit then restarted and didn't notice any substantial difference in ram usage (only a couple hundred mbs less). I then deleted loadstone, deleted this mod, and then reinstalled it as version 0.6.3 instead of 0.6.4 and now my game is sitting at 6b of ram. Not sure if downgrading to .6.3 or loadstone was the culprit, but I am pretty sure it was loadstone. I've been working at this for a day straight and I am too tired to go test it with .6.4 and no loadstone but I thought I'd share here.

Okay now it is running at 3.8gb? How is this even possible?

The first start up will always take more RAM (or after updating a lot of mods), because I've made decompression in background.
After all decompression requests your next game start up will be much faster and use a lot less memory.


feat(linter/tree-shaking): detect CallExpression in MemberExpression

#2772  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @mysteryven and the rest of your teammates on  Graphite


Add way to disassociate a user with a person

When granting a person access to Chums it associates the userId from AccessApi to the Person record, based on matching the email address. There are occasions where we would need to remove this association, such as the email was misspelled and the record now needs to be associated to a different AccessApi user. I'm not sure how this would look yet, but we need to provide a way to remove the userId association.
The GUI for this would likely go in AccessManagement or Chums.

Technically mentioned PRs resolves this but there are some UI changes and cases to manage. Will close the issue once I merge that in.

Commented change associated person just for now.
Changes to be made and some know bugs:

creating a new user from a person who already has a user account. creates duplication of accounts.
stop that, do not allow them to create new user from same person. show an error
Let say user email and name has been edited. Now this creates an issue where the person record still has old data so if one tries to create a user from same person there will be 2 users pointing at same person record, second one over writing person record's userIds and clearing up relation from the old one.
Lets not do that instead when a user email and name is updated, change its person record details. that's how we will avoid lots of bugs. everything is highly dependent on email
Enable change associate person

Move away from whole email approach, Why? It creates a tight bond with user and person record.
Only use person email when creating a new user. Start using userIds instead

Fixed by above PRs


Block followers capped

Hi,
I have noticed that when blocking followers it stops finding them after 5418 accounts.  Is there a reason for this cap?  Is it possible to continue past 5418?
If I look at an account's following, I am able to run blockchain and block all of their following, it does not stop at 5418.  Would love it if followers worked the same way.

I have the same issue.


Check if nick exists before sending

At the moment, the @ symbol can be used to direct messages towards a certain person. Although this is a rather good feature, it currently does not detect whether the requested user exists or not. This may be a very useful improvement to prevent spamming and abuse.
If a bot from BotServ was in the room, it would probably be possible for any user to perform any channel commands in the room (like op, devoice, etc). Here is an example of this exploit if a BotServ bot was in channel. In this case, the BotServ bot is called 'Holly'.
<+User> hex ping @ !op User blah
<@Hex> !op User blah: PONG
* Holly set mode +o for User

Also need to check whether the bot can be addressed like this:
<+User> hex js 'op User' @ Holly
<@Hex> Holly: op User

@Dead-i: Use triple backtick for code blocks. (press m for a markdown cheatsheet)

I've set this to be a bug, and assigned myself. Symbiosis doesn't allow the bot to be addressed, so the issue I just posted is invalid.


Refresh annotation layers

I'm new to using Apache Superset but I seem to have dug deeper and not found the feature.
By creating a graph (line chart and time series) and adding annotation layers (of the same kind), if the curves from the original graph refresh well, it is not the case for the curves from the annotation layers.
I am forced to launch the charts corresponding to the annotation layers again to allow the queries to be refreshed; then I have to recreate the annotation layers on my global graph.
Maybe I missed something, but if it doesn't work, it's quite annoying.
Did I make a mistake or do you have any idea how to make this possible?

I think that what you want is Multiple Line Charts, rather than annotations.
Multiple Line charts will refresh and filter both charts in the chart at the same time. I did a video in how to merge 2 charts.

Please confirm if this helps or if misunderstood the question.

yes that's what i was looking for; thanks a lot!!

But actually the same problem exists for the "event" annotation layer. The table that records the events has been refreshed. The time series chart has been refreshed. But the event vertical reference lines in the time series chart has not been refreshed. Sometimes, clicking "force refresh dashboard" would fix the problem, but sometimes it wouldn't.


Parquet S3 Client Side Encryption

Is your idea related to a problem? Please describe.
the problem is that awswrangler does not support Client Side Encryption for Parquet format although Pyarrow supports this feature  : https://arrow.apache.org/docs/python/parquet.html#kms-connection-configuration
This feature is very important to support for sensitive data writing to S3.
Describe the solution you'd like
Since Pyarrow supports this feature, I don't think it is very costly to implement it in awswrangler.
writing client side encrypted parquet from s3
The s3.to_parquet method already exposes pyarrow_additional_kwargs  parameter. Through this parameter we can include a encryption_properties with a custom implementation of pyarrow KmsClient(https://arrow.apache.org/docs/python/generated/pyarrow.parquet.encryption.KmsClient.html#).
I already tested this and it works when writing the dataframe to one single file. When writing concurrently, this throws an error OSError: Re-using encryption properties for another file because the same writer with the same encryption configuration is used to write all chunks (https://github.com/aws/aws-sdk-pandas/blob/main/awswrangler/s3/_write_parquet.py#L116) and this is not permitted by Pyarrow.
reading client side encrypted parquet from s3
In the same logic Pyarrow exposes a decryption configuration that can be passed to the Pyarrow reader (https://arrow.apache.org/docs/python/parquet.html#decryption-configuration). The pyarrow_additional_kwargs  parameter is exposed in awswrangler.s3.read_parquet however it is only forwarded to to_pandas method.

An example of Pyarrow KmsClient implementation using AWS KMS :
class AwsKmsClient(pe.KmsClient):
    def __init__(self, kms_connection_config):
        pe.KmsClient.__init__(self)
        self.kms_client = boto3.client(
            "kms",
            region_name=kms_connection_config.custom_kms_conf[
                "aws_region_name"
            ],
        )

    def wrap_key(
        self, key_bytes: bytes, master_key_identifier: str
    ) -> bytes:
        try:
            response = self.kms_client.encrypt(
                KeyId=master_key_identifier, Plaintext=key_bytes
            )
            cipher_text_blob = response["CiphertextBlob"]
            return base64.b64encode(cipher_text_blob)
        except Exception as e:
            raise AwsKmsClientException(
                f"Failed to wrap key with master key {master_key_identifier}. Error: {e}"
            )

    def unwrap_key(
        self, wrapped_key: str, master_key_identifier: str
    ) -> str:
        try:
            wrapped_key = base64.b64decode(wrapped_key)
            response = self.kms_client.decrypt(
                CiphertextBlob=wrapped_key,
                KeyId=master_key_identifier,
            )
            return response["Plaintext"]
        except Exception as e:
            raise AwsKmsClientException(
                f"Failed to unwrap key with master key {master_key_identifier}. Error: {e}"
            )

I could propose a PR to address this if you agree with my investigation and  with including this feature to awswrangler.s3 .
Thank you!

Hi @Marwen94 thanks, that's a useful feature. A PR is very welcome.

This is very much needed. Excited to see that the PR is close to completion. Thank you, @Marwen94!!


Unhandled Error

Sentry Issue: KAP-5FF

macOS version:    Catalina (10.15)
Kap version:      3.3.1
Unhandled Error

RangeError [ERR_OUT_OF_RANGE]: The value of "err" is out of range. It must be a negative integer. Received 536870174

For me this error code means that I have a firewall running (e.g. LuLu)


Custom Service not workin

Bug description:
I am desperately trying to add my own service, unfortunately the login window does not appear on the Ferdi Client
Screenshots

]
Environment:

Operating System: Windows 10
Ferdi Version: 5.5.0

Ferdi doesn't currently have any support for basic authentification on websites

Ferdi doesn't currently have any support for basic authentification on websites. This is due to Electron not supporting is by default

Is there a list of supported websites (services) in Ferdi?
I want to add schul.cloud, with (permanent) login, which is in (buggy) Rambox possible, but I don't see how to add it in Ferdi (in Franz it was not possible, as I remember).
Thanks.frank

Ferdi doesn't currently have any support for basic authentification on websites. This is due to Electron not supporting is by default

Is there a list of supported websites (services) in Ferdi?
I want to add schul.cloud, with (permanent) login, which is in (buggy) Rambox possible, but I don't see how to add it in Ferdi (in Franz it was not possible, as I remember).
Thanks.frank

@francwalter You can find a list of supported services at https://getferdi.com/services/. If you want to create your own service ("recipe") we have written a guide about that at https://github.com/getferdi/recipes/blob/master/docs/integration.md

@francwalter You can find a list of supported services at https://getferdi.com/services/. If you want to create your own service ("recipe") we have written a guide about that at https://github.com/getferdi/recipes/blob/master/docs/integration.md

OK, Hamsket is it :)
A clone of Rambox without its abandoness ;)

OK, Hamsket is it :)
A clone of Rambox without its abandoness ;)

@francwalter - were you able to find a solution for this issue? Can we close it?

Yes, the solution is Hamsket ;)
Can close.


train model

@roshniRam Hello, I am confused about which one is used to train the model,，train_model.py or ./training_nn/runnw2.py?
Looking forward your replay !
Thanks you very much,best!

train_model.py 👍

@roshniRam Thanks for your reply!
But I still can't understand if train the model with train_model.py, why using network2  in ocr.py and user_input.py (which i guess for test)

@roshniRam Thanks for your reply!
But I still can't understand if train the model with train_model.py, why using network2 in ocr.py and user_input.py (which i guess for test)

See in ocr.py, we have called the get_string_from_nn function in which we have loaded the weights and biases. The biases_weights file in generated from train_model.py and we have used network2.py to get the output according to the saved model.

@roshniRam In network2.py, some information like below:

But in train_model.py, there is six layers:

How could use  network2.py to get the output?

We are using this function in user_input.py. As you can see it takes as input weights and biases which we get from train_model.py

@roshniRam I see. But train_model network(five layers) has five (weights biases), and in networks2(three layers) is three.
How to convert it?

@roshniRam Would you like share your code ,which convert ckpt to weights.npy and biases.npy?


Native Notebooks - Deleting cell migrates Pylance issues

Environment data

VS Code version: 1.58.0
Jupyter Extension version: v2021.8.1013163132
Python Extension version: v2021.6.944021595
Pylance Extension version: v2021.7.2

This may be resolved by some of the fixes that @DonJayamanne and @rebornix have added to the Python extension. When the Python extension ships next we should try this again.

VS Code version: 1.58.2
Jupyter Extension version: v2021.8.1054968649
Python Extension version: v2021.7.1060902895
Pylance Extension version: v2021.7.5

Putting back in new issues as this has not been fixed with the new Python extension release. The diagnostics now move downward instead of upward.

This requires new python bits to verify


Add simple captcha for registering form

This allows very basic captcha functionality to user registration.
Now, a simple addition is needed in order to register.
A fake, hidden, email confirmation field is also checked. If the fake email field is filled-up, then registration is canceled.

Latest force-push adds tests for the new feature in particular and for the registration page in general.

Let's merge this o/

@fallen Sorry, holiday season so I'm not so available!

@fallen Sorry, holiday season so I'm not so available!

No problem, I just merged after waiting a few days. If someone had the time to review that would have been great. If not, not a problem I just merge :)
Enjoy holidays!


It’s hammer timme

Description of change

Pre-Merge Checklist

[x] Tests and/or benchmarks are included
[x] Documentation is changed or added
[x] Lint process passed (npm run lint)
[x] Tests passed (npm run test)

Description of change
Pre-Merge Checklist

[x]  Tests and/or benchmarks are included
[x]  Documentation is changed or added
[x]  Lint process passed (npm run lint)
[x]  Tests passed (npm run test)

Duplicate of #
CERTIFICATE fOR device activation self made.txt


Make powershell the default profile

Sets powershell as the default profile.
#431

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

For a weird reason, the diff on github doesn't show any spacing changes, but it actually happens anyway

I see that "cmd.exe" is hardcoded in quite some places; isn't it possible to use whatever is specified in the %COMSPEC% environment variable instead?


How to use it in node.js?

How to use it in node.js?Can you support an example?

Please try this on nodejs:

https://github.com/fluent-ffmpeg/node-fluent-ffmpeg


08 Bootstrapping the Kubernetes Control Plane problem

Hello!
Going through the documentation step-by-step i get an error while bootstraping control plane.
I've checked myself and reproduce the issue twice.
kube-scheduler and kube-controll-manager status is Unhealthy   Get http://<IP_ADDRESS>:10251/healthz: dial tcp <IP_ADDRESS>:10251: connect: connection refused .
Using virtualbox +vagrant on windows 11 .
Get an error in verification:

Kubectl

uname -a

kube-scheduller config

Encryption config

Controll manager config

systemctl

:<

It happens the same to me

Hi @albertriu98 , Have you been able to fix the issue? I am stuck with the same issue here.

Hello @Farshid1723, unfortunately, no. I've skipped this installation, and just bought kodekloud subscribition to learn kubernetes instead.

Hi @stuninslave @Farshid1723 @albertriu98
Yesterday we merged a major update to bring this to v1.24 including many bug fixes.
Please try it now.


Create docker image that consumes DAPA API to download data to directory

Docker image along with sample docker-compose files to download exactly what is needed for inputs into the L1A PGE and L1B PGE have been provided to U-SPS team.


How can I open files that is including space memodir?

I set following config:
memodir = "C:/Users/tsunomur/OneDrive - Microsoft/memo"
editor = "notepad.exe"
column = 20
width = 0
selectcmd = "peco"
grepcmd = "grep -nH ${PATTERN} ${FILES}"
memotemplate = ""
assetsdir = "."
pluginsdir = "C:/Users/tsunomur/AppData/Roaming/memo/plugins"
templatedirfile = ""
templatebodyfile = ""

When I'm trying "memo edit", and after select a file, I got following error(Sorry for only Japanese):

Could you let me know how to write a configuration file to open a file under such a folder?
# I could open when remove call shellquote(file) but it's not correct solution...

Could you pleaes try this?
editor = "notepad ${FILES}"

Sorry for my late reply. I tried but it failed.
I've found pattern of sucess.
correct work:
memodir = "C:\\temp"
editor = "notepad"

dosen't work:
memodir = "C:\\Users\\tsunomur\\OneDrive - Microsoft\\memo"

memodir = "C:\\Users\\tsunomur\\OneDrive\\ -\\ Microsoft\\memo"

I used  procmon to see this behavior, and then it's try to access C:\"C:\Users\tsunomur\OneDrive - Microsoft\memo\2020-06-18-hoge.md\

This memo command spawn executable editor with cmd /c .... So the path contains spaces should be handled to be quoted.
cmd /c notepad "C:\Users\tsunomur\OneDrive - Microsoft\memo"

This quotes does not work when using notepad. Could you please this patch?
diff --git a/main.go b/main.go
index a6e5dc8..1b07ba3 100644
--- a/main.go
+++ b/main.go
@@ -414,7 +414,9 @@ func (cfg *config) runfilter(command string, r io.Reader, w io.Writer) error {
 func (cfg *config) runcmd(command, pattern string, files ...string) error {
 	var args []string
 	for _, file := range files {
-		args = append(args, shellquote(file))
+		if strings.ContainsRune(file, ' ') {
+			args = append(args, shellquote(file))
+		}
 	}
 	cmdargs := strings.Join(args, " ")

I patched but same error occured..
diff --git a/main.go b/main.go
index a6e5dc8..0056410 100644
--- a/main.go
+++ b/main.go
@@ -414,9 +414,12 @@ func (cfg *config) runfilter(command string, r io.Reader, w io.Writer) error {
 func (cfg *config) runcmd(command, pattern string, files ...string) error {
        var args []string
        for _, file := range files {
-               args = append(args, shellquote(file))
+               if strings.ContainsRune(file, ' ') {
+                       args = append(args, shellquote(file))
+               }
        }
        cmdargs := strings.Join(args, " ")
+       fmt.Println(cmdargs)
$ go build
$ .\memo.exe new
Title: hoge
"C:\Users\tsunomur\OneDrive - Microsoft\memo\2020-06-18-hoge.md"
2020/06/18 16:16:40 notepad "C:\Users\tsunomur\OneDrive - Microsoft\memo\2020-06-18-hoge.md"

And when exec "config", it's openend blank notepad. It seem to need shellquote for other case.
Thank you for your cooperation. I'll investigate my situation continually and send PR.


Simple file dialog: doesn't match against entries on the first character typed

It would be great if the first character typed, would start matching against the list of entries

This is actually another manifestation of https://github.com/microsoft/vscode/issues/107170
If the dialog opens to say C:\Users\user\code\foo\bar\ and I delete it to C:\Users\user\code\ then it won't match on the first char

Taking this off the milestone so it doesn't come up in verification


Multiple AudioWife Instances not working

In my app, after recording finish function I'm creating AudioWife Instance and playing the audio. If I record audio second time, its not working. I'm not able to click play button.

+1

I am facing the same issue

check my pull request, that should fix it:
https://github.com/jaydeepw/audio-wife/pull/11


[c#] Handle non-seekable streams in InputStream

InputStream would always try to call Stream.Seek when it needed to skip
over some bytes in the underlying stream, even if the stream didn't
support Seek.
Now, it checks whether the stream can seek. If not, it makes dummy Read
calls to advance the underlying stream.
Regression test added, and all the implementations of IInputStream that
ship with Bond are tested against these tests.
Existing InputStream tests folded into these IInputStreams tests, and
tested against both seekable and non-seekable streams.
Fixes https://github.com/Microsoft/bond/issues/498

Addressed comments. Squash merge needed now.


[Feature Request]: Timed effects

Is your feature request related to a problem? Please describe.
set up timer to replace displayobject for N - Time
Describe the solution you'd like
Create a tab for config to displayobjects settings
settings:

time
object to replace

Add an button to start replacing.
replacing:

hide selected object
show object this object

after timer is up, switch back to orginal state.
Describe alternatives you've considered
No response
Additional Context
Feel free to correct my grammar.

Basically, we want the ability to hide a screen object and show a different screen object for a certain amount of time. For example, I have an event on my stream where I hide my main avatar, and replace it with a secondary avatar for 10 minutes. Automating this would make my life a lot easier because I keep forgetting to change it back 10 minutes later.

I'm working on that right now for the GDTuber 0.11 update


I've no idea why this is not working

what is not working?

well, everything is broken!
travis gives you this error:
    raw._first_time, raw._last_time))
E   TypeError: must be real number, not NoneType

which doesn't make much of a sense since this is what we are doing
        logger.info('    Range : %d ... %d =  %9.3f ... %9.3f secs' % (
                     self.first_samp, self.last_samp,
-                    float(self.first_samp) / info['sfreq'],
-                    float(self.last_samp) / info['sfreq']))
+                    self._first_time, self._last_time))

and _first_time is:
https://github.com/massich/mne-python/blob/d0a1155f06ebe9c5d2c6217de5d1ab0abd06b992/mne/io/base.py#L641
If it complains now for None it should complain before.

it has to do with the fact that raw is not BaseRaw but _RawShell

-1 on merging this, its not worth it.

or maybe is broken. 'cos raw is not actually a BaseRaw but _RawShell

if it's not worth it just move on


Unable to connect to any github repos

Hi folks, I installed this a few weeks back, and tried again today with the latest version. I get stuck on the github "select a repo" screen. It looks like it's stuck in a loading state or unable to connect to Github, and the UI is continually is in the flashing loading animation.
There's no way to remove and re-add the Github account, or repair the connection as far as I can see.

Hey @stefl, thanks for raising this. Do you experience the same behaviour on the latest release? https://github.com/BloopAI/bloop/releases/tag/v0.3.0

Our latest release (v0.3.1) include a fix for an issue looks like yours, where the initial request for GitHub repos would hang indefinitely (see https://github.com/BloopAI/bloop/pull/281).


module declares its path as: csv2md but was required as: github.com/uchiiii/csv2md

$ go install github.com/uchiiii/csv2md@latest
go: downloading github.com/uchiiii/csv2md v0.0.0-20201119135353-c92255c1229e
go: github.com/uchiiii/csv2md@latest: <EMAIL_ADDRESS>parsing go.mod:
	module declares its path as: csv2md
	        but was required as: github.com/uchiiii/csv2md

Thank you!
Now you can install the binary as below.
$ go clean -cache
$ go install github.com/uchiiii/csv2md@latest


Don't coerce Rationals to floats in allocate

Right now, if we attempt to pass Rational numbers to allocate, it will coerce those values into floats, sum them, and then raise if the resulting value is > 1. This is problematic for values who's rational representation sums to 1, but when converted to float, the precision is lost and the value grows.
All of this code was pulled out of RubyMoney/money#allocate, and massaged to work with what we had already.
Running the new test before updating #allocate results in:
Failures:

  1) Money allocation #allocate will use rationals if provided
     Failure/Error: expect(Money.new(2.25).allocate(splits)).to eq([Money.new(1.42), Money.new(0.23), Money.new(0.16), Money.new(0.16), Money.new(0.28)])
     ArgumentError:
       splits add to more than 100%
     # ./lib/money/money.rb:173:in `allocate'
     # ./spec/money_spec.rb:322:in `block (3 levels) in <top (required)>'

@Shopify/merchant-data @tjoyal @jduff for review

LGTM

:shipit:


Unable to build Bugsnag 5.23.0 for tvOS using Carthage

Description
I'm trying to update Bugsnag-cocoa from 5.22.6 to 5.23.0 and it fails to build. 5.22.6, .7, .8 all fail for all platforms completely. 5.22.9 and 5.23.0 build for iOS, but that's it. Judging from the log output it looks like the build scheme isn't configured correctly - all of the tvOS simulators are listed as "Ineligible destinations"
Issue
It fails to build
Environment
Xcode 11.4
Library versions:

Bugsnag version (from your Podfile, Podfile.lock, or elsewhere): 5.23.0
Carthage version (if any): 0.34.0

Example code snippet
Cartfile:
github "AFNetworking/AFNetworking" ~> 4.0
github "jdg/MBProgressHUD" ~> 1.1
github "erikdoe/ocmock" ~> 3.4
github "bugsnag/bugsnag-cocoa"

Error messages:
Command Line
 $ ✗  carthage build --platform tvos
*** xcodebuild output can be found in /var/folders/vx/yjcdkqmd4x9_6yc851v4ch9m0000gn/T/carthage-xcodebuild.p187R4.log
*** Downloading ocmock.framework binary at "OCMock 3.6"
*** Building scheme "AFNetworking tvOS" in AFNetworking.xcworkspace
*** Building scheme "Bugsnag" in Bugsnag.xcodeproj
*** Building scheme "Bugsnag" in Bugsnag.xcodeproj
Build Failed
	Task failed with exit code 70:
	/usr/bin/xcrun xcodebuild -project /project/Carthage/Checkouts/bugsnag-cocoa/iOS/Bugsnag.xcodeproj -scheme Bugsnag -configuration Release -derivedDataPath /Users/myuser/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4_11E146/bugsnag-cocoa/v5.23.0 -sdk appletvsimulator -destination platform=tvOS\ Simulator,id=5E249F73-CE56-4285-956B-6DFBE09DD3E2 -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /project/Carthage/Checkouts/bugsnag-cocoa)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/vx/yjcdkqmd4x9_6yc851v4ch9m0000gn/T/carthage-xcodebuild.p187R4.log

Message in /var/folders/vx/yjcdkqmd4x9_6yc851v4ch9m0000gn/T/carthage-xcodebuild.p187R4.log
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/jordanbondo/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4_11E146/bugsnag-cocoa/v5.23.0

Build settings from command line:
    CARTHAGE = YES
    CODE_SIGN_IDENTITY =
    CODE_SIGNING_REQUIRED = NO
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = appletvsimulator13.4

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
		{ platform:tvOS Simulator, id:5E249F73-CE56-4285-956B-6DFBE09DD3E2 }

	Available destinations for the "Bugsnag" scheme:
		{ platform:macOS, arch:x86_64, id:C7EA8FC6-2E8E-59BE-989D-23D58D5C43BD }
		{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:C7EA8FC6-2E8E-59BE-989D-23D58D5C43BD }
		{ platform:iOS, id:00008020-001E14AA2241002E, name:Joruus }
		{ platform:iOS, id:136f933879c8b08375c62acc89062c99b10c0538, name:QA iPhone X }
		{ platform:iOS Simulator, id:71EB2F47-3C68-4FD4-9AB3-5A4C8E694DEB, OS:13.4, name:iPad (7th generation) }
		{ platform:iOS Simulator, id:07894517-B488-426F-8FDA-E440209CEA96, OS:13.4, name:iPad Air (3rd generation) }
		{ platform:iOS Simulator, id:E1604C0D-6192-452C-8179-18B7A637B45D, OS:13.4, name:iPad Pro (9.7-inch) }
		{ platform:iOS Simulator, id:0EDB4919-ECF8-4484-9417-9E2956F6C3A9, OS:13.4, name:iPad Pro (11-inch) (2nd generation) }
		{ platform:iOS Simulator, id:F0005707-90A6-4057-A3F4-C64622426A5A, OS:13.4, name:iPad Pro (12.9-inch) (4th generation) }
		{ platform:iOS Simulator, id:805CEA89-A891-4258-969A-CD89A51BB320, OS:13.4, name:iPhone 8 }
		{ platform:iOS Simulator, id:EDBFAFCC-46DF-4210-B0F8-378CF6F5B6FC, OS:13.4, name:iPhone 8 Plus }
		{ platform:iOS Simulator, id:88411655-F5DD-4410-9660-E512F6800D5E, OS:13.4, name:iPhone 11 }
		{ platform:iOS Simulator, id:3CC41C78-0F68-4B91-9420-2160896E8A57, OS:13.4, name:iPhone 11 Pro }
		{ platform:iOS Simulator, id:372A6BBE-8373-4292-A7F8-FAA7F7286301, OS:13.4, name:iPhone 11 Pro Max }

	Ineligible destinations for the "Bugsnag" scheme:
		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
		{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }
		{ platform:tvOS, id:dvtdevice-DVTiOSDevicePlaceholder-appletvos:placeholder, name:Generic tvOS Device }
		{ platform:tvOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-appletvsimulator:placeholder, name:Generic tvOS Simulator Device }
		{ platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Generic watchOS Device }
		{ platform:watchOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-watchsimulator:placeholder, name:Generic watchOS Simulator Device }

Hey @faithfracture, can you please try running carthage update --platform tvos so that you generate the frameworks to add to your project from the repositories specified in the Cartfile?

No change, same result.

Hey @faithfracture we've managed to reproduce this, and are taking a look into a fix. We'll keep you posted on here.

Awesome! Thanks 👍

Hi @faithfracture, just to keep you updated: You'll see the proposed fix for Carthage support above, in #535.  This hasn't been merged yet due to some lingering internal discussion over Mac Catalyst support.  However, if you'd like to point your Cartfile directly at the PR commit, you should now be able to carthage update (with or without --platform tvOS) and find a build for tvOS in the appropriate Build directory.  Specifically, add the following line to your Cartfile:
github "bugsnag/bugsnag-cocoa" "764ddb4"

Drag the framework into your XCode project (remembering to set it to "Embed & Sign" or "Embed Without Signing" in the project/target's General tab) and add the appropriate import and [Bugsnag init:] code as per the docs.
We'll update this issue once the fix is merged.

Thanks! I'm going to be working on my tvOS project here in about a week, so I'll give that a go when I'm updating the rest of my dependencies.

Fixed in v6.0.0.
Note: There are a number of breaking changes in v6.0.0 as part of an effort to improve the interface and make it more consistent across our error reporting libraries, so please refer to the upgrade guide:
https://github.com/bugsnag/bugsnag-cocoa/blob/master/UPGRADING.md


[Feature]: allow browsers to download Firefox Stable/Aurora/ESR in addition to Nightly

Feature description
In this PR I am trying to remove the dependency on travis-multirunner but would like to retain the ability to download different FF versions (stable, aurora, esr, maybe dev).
It seems the main obstacle is that the directory structure for FF Nightly is
https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/{buildId}.{locale}.{platform-specific-stuff} (example here)
while for the other channels the platform and locale come earlier in the path:
https://archive.mozilla.org/pub/firefox/releases/{buildId}/{platform}/{locale}/<binary>
example here
Would monkeypatching resolveDownloadUrl to recognize the default nightly baseUrl and call resolveDownloadPath/archive with a different boolean flag be an ok approach?
This would allow "users" to pass a different baseUrl depending on the channel.
The cleaner alternative would be to plumb the channel through (for other browsers as well)
Yet another approach would be the one that travis-multirunner has taken for a decade and download from
'https://download.mozilla.org/?os=' + platform + '&lang=' + lang + '&product=firefox-' + (channel || 'latest'); but I would like less travis-multirunner, not more ;-)
Issue #6894 has some context on switching the default and helpful pointers to download urls

We want to support this: we need to make use of the channel in https://github.com/puppeteer/puppeteer/blob/main/packages/browsers/src/browser-data/firefox.ts#L69 and also make the download URLs dependent on the channel https://github.com/puppeteer/puppeteer/blob/main/packages/browsers/src/browser-data/firefox.ts#L42
But first we need to find more unique identifiers to use as a buildId. Also, related to https://github.com/puppeteer/puppeteer/issues/10414.


Gh-2581: Replace getTraits usages with operation

A test has been disabled in Federated Store because it cannot work with these changes until the work in 2580 to remove DYNAMIC_SCHEMA has been done. This test can be re-enabled as part of that PR. This test has been marked with a TODO comment.
Related Issue

Resolve #2581

Codecov Report

:exclamation: No coverage uploaded for pull request base (v2-alpha@9002d7e). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head 122b872 differs from pull request most recent head 9a8a675. Consider uploading reports for the commit 9a8a675 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##             v2-alpha    #2901   +/-   ##
===========================================
  Coverage            ?   65.46%
  Complexity          ?     2194
===========================================
  Files               ?      550
  Lines               ?    17380
  Branches            ?     2095
===========================================
  Hits                ?    11378
  Misses              ?     5036
  Partials            ?      966

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


High cardinality categorical outputs

Howdy,
I have a dataset where the output is one of 5k categories. I also have millions of samples. The naive representation of y_indices_naive (the outputs) is:
[1,5,4300,...]
But it seems that Keras/Theano require one-hot encodings of the output.
Problem is, np_utils.to_categorical(y_indices_naive) causes an out-of-memory error because then I need a 3mil x 3k matrix.
Is there any way to get Keras to accept y_indices_naive without converting it to one-hot? I would be happy to add some code if someone would point out how to best do it.

Theano has no support for sparse operations as far as I know (and Keras certainly doesn't either). So all data will have to be converted to dense arrays at some point.
However a 5k-dimensional output space doesn't seem very large to me.
You can solve your OOM error by one-hot encoding and training batch-by-batch instead of 3M samples at once. Break down your dataset into small batches, and for each batch:
y_batch = np_utils.to_categorical(y_indices_batch, nb_classes=5000)
model.train_on_batch(X_batch, y_batch)

As long as 1) your model fits in memory and 2) your batches are small enough, this will not cause any memory issues.

Theano 'tensor.nnet.categorical_crossentropy' can accept vector of integers as true distribution.
See: http://deeplearning.net/software/theano/library/tensor/nnet/nnet.html#tensor.nnet.categorical_crossentropy
ps thanks for your great library btw!

@lightcaster Thanks for the response, and sorry for the long delay.
It does indeed look like tensor.nnet.categorical_crossentropy allows the output to be a vector of integers, but I am not sure how to get Keras and Theano to play nice here.
Here is my model:
rnn_dim = 512
dense_dim = 512
model = Sequential()
model.add(Embedding(n_symbols + 1, rnn_dim,  mask_zero=True))
model.add(GRU(rnn_dim, dense_dim, return_sequences=False))
model.add(Dropout(0.5))
model.add(Dense(dense_dim, n_symbols, activation='sigmoid'))

Note that the output is n_symbols in dimension, so if I try to do model.fit with just a vector of integers it throws me this error:
ValueError: GpuElemwise. Input dimension mis-match. Input 1 (indices start at 0) has shape[1] == 1, but the output's size on that axis is 4938

Any ideas on what to do?

The target is going to be normalized and reshaped by model.fit. You can
avoid this by implementing your own version of model.train_on_batch / etc
that would simply be calling directly the Thenao functions model._train,
models._test, model._predict.
We'll look into more direct support.
On 9 September 2015 at 11:09, Sergey Feldman<EMAIL_ADDRESS>wrote:

@lightcaster https://github.com/lightcaster Thanks for the response,
and sorry for the long delay.
It does indeed look like tensor.nnet.categorical_crossentropy allows the
output to be a vector of integers, but I am not sure how to get Keras and
Theano to play nice here.
Here is my model:
rnn_dim = 512
dense_dim = 512
model = Sequential()
model.add(Embedding(n_symbols + 1, rnn_dim,  mask_zero=True))
model.add(GRU(rnn_dim, dense_dim, return_sequences=False))
model.add(Dropout(0.5))
model.add(Dense(dense_dim, n_symbols, activation='sigmoid'))
Note that the output is n_symbols in dimension, so if I try to do
model.fit with just a vector of integers it throws me this error:
ValueError: GpuElemwise. Input dimension mis-match. Input 1 (indices start at 0) has shape[1] == 1, but the output's size on that axis is 4938
Any ideas on what to do?
—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/483#issuecomment-138994755.

Ah great, thanks. I'll see about calling the Theano functions directly.

I am facing a similar problem, number of output classes in my case is 50000 and the loss is 'categorical_crossentropy'. If I pass index of 1 in 1 hot encoding, keras complains about the shape to be of 3 dimensions. I checked in theano's T.nnet.categorical_crossentropy and it accepts index of input in 1 hot encoding rather than full 1 hot encoding vector. Can't keras also support this functionality?

You should be using sparse_categorical_crossentropy instead, which
accepts label indices rather than one-hot encoded labels.
On 18 April 2016 at 23:29, Shashank Gupta<EMAIL_ADDRESS>wrote:

I am facing a similar problem, number of output classes in my case is
50000 and the loss is 'categorical_crossentropy'. If I pass index of 1 in 1
hot encoding, keras complains about the shape to be of 3 dimensions. I
checked in theano's T.nnet.categorical_crossentropy and it accepts index of
input in 1 hot encoding rather than full 1 hot encoding vector. Can't keras
also support this functionality?
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/483#issuecomment-211755618

@fchollet  I tried it, but it was also giving same error (expecting 3D input but got 2D instead), so I switched to batch training mode with output label encoded in 1 hot encoding.

sparse_categorical_crossentropy works fine (it's unit-tested, and I use it
regularly), so your problem lies elsewhere entirely.
On 19 April 2016 at 10:11, Shashank Gupta<EMAIL_ADDRESS>wrote:

@fchollet https://github.com/fchollet I tried it, but it was also
giving same error (expecting 3D input but got 2D instead), so I switched to
batch training mode with output label encoded in 1 hot encoding.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/483#issuecomment-212022120

@fchollet Thanks for your reply, I'll have a look at my code and check where the problem lies

@shashankg7 Did you solve  (expecting 3D input but got 2D instead) problem ?I am also facing this.

@shashankg7 Did you solve (expecting 3D input but got 2D instead) problem ?I am also facing this. @fchollet

Can you guys please help!! #5662

The trick to fix issue with the error expecting a 3D input when using sparse_categorical_crossentropy is to format outputs in a sparse 3-dimensional way. So instead of formatting the output like this:
y_indices_naive = [1,5,4300,...]
is should be formatted this way:
y_indices_naive = [[1,], [5,] , [4300,],...]
That will make Keras happy and it'll trained the model as expected.


White screen when scanning

When placing the Rocket Assembling Machine and hitting scan, everyone looking in the direction of the machine gets a white screen, it does not go away. Using latest 1.12.2 version.
AdvancedRocketry 1.12.2-1.4.0-64-UNSTABLE build -64 for 1.12.2

Fixed it earlier today


Nice repo

This codebase appears to be solely Torch-based, so why does it wraps Torch's basic operations again? Is this really necessary? The framework presented in the codebase is somewhat complicated (compared with substitutes), but the running examples provided do not appear to exploit such design, quite odd. BTW, the implementations of the algorithms (inside the learning subfolder) have varied code styles.
I haven't tried this repository yet, might try it later, but it doesn't look very appealing.

Thanks for your attention. This framework is designed to support multiple backends. Currently, we are mainly working on the PyTorch-based backend, but other backends such as JAX-based backend and Neuromorphic hardware-based backend is also under development.
As you mentioned “the codebase is somewhat complicated”, could you please provide some more specific information? If you are referring to the modules like Connection, Projection and Assembly, that is because we aim to support algorithms with deeper integration of deep learning and neuroscience theories. We introduced more neuroscience coding-styles and functionalities to our framework, which may not be very straight forward from traditional deep learning viewpoint but provide more probability for neuromorphic algorithms. Some more examples can be found in ZhejianglabNCRC/SPAIC_paper_examples (github.com), which further show how to use Connections, Projections and so on.
For “algorithms have varied code styles”, that maybe due to inherent differences between different algorithms, such as gradient-based learning rules and synapse plasticity (local) learning rules. We are trying to provide a more consistent algorithm coding style, but given the diversity of SNN learning rules, it takes more time to build a widely applicable standard.


Add configurableProperties to support app customization

Adding array of enums to support configurable app properties

@vganiga  Can you please add a bit detailed description to this PR?


ResultName for Iterable Attrbiute is artificially modified

@cyrille-leclerc At the following location, resultName is artificially modified after it is computed by the ResultNameStrategy:
https://github.com/jmxtrans/jmxtrans-agent/blob/master/src/main/java/org/jmxtrans/agent/Query.java#L203
In reality, we should let the resultName strategy take care of it.
It was one of the purposes of issue 39.

From what I can tell this was fixed a long time ago.


Katib docs need to be updated to use the StudyJob CRD

The docs for Katib should be updated to use the StudyJob CRD.

/assign YujiOshima


Internal server error on /trade_aggregation API

Setup my own horizon
Calling an API for trade_aggregation
    https://staging.globalblockchain.io:9000/trade_aggregations?base_asset_type=credit_alphanum4&base_asset_code=MOBI&base_asset_issuer=GA6HCMBLTZS5VYYBCATRBRZ3BZJMAFUDKYYF6AH6MVCMGWMRDNSWJPIH&counter_asset_type=native&start_time=1514764800&end_time=1520508146620&resolution=900000&limit=200&order=desc&c=0.2979189516029812

Got an error response
    {
        "type": "https://stellar.org/horizon-errors/server_error",
        "title": "Internal Server Error",
        "status": 500,
        "detail": "An error occurred while processing this request.  This is usually due to a bug within the server software.  Trying this request again may succeed if the bug is transient, otherwise please report this issue to the issue tracker at: https://github.com/stellar/go/services/horizon/internal/issues. Please include this response in your issue.",
        "instance": "7608d668f9b4/DLZIsyB3Rg-000003"
    }

Looks like it's been fixed.


Media support

In a new 3.0.0 version (will be committed soon) there is no media support at all.

Currently photo and video files are supported. However, you can’t send an album to the bot, and even if you did the bot will take only the first media from the album.


Must you write code to get support for custom keywords/formats? [workaround available]

Since this is a cli I was hoping I could just reference a keywords.txt file or formats.txt file, but it doesn't appear that's an option.
I'll try try to follow an example from the ajv-keywords repo.
Perhaps I could even tie together a text file option once I've figured this out a little bit more.
UPDATE: 2021/05/05 For those with a similar question, I've written an npm package to address this (although not with a lot of flexibility). The details are below in this comment

You can pass module(s) that define custom keywords/formats. The modules should export a function that accepts Ajv instance as a parameter. The file name should start with ".", it will be resolved relative to the current folder. The package name can also be passed - it will be used in require as is.

Can you point me to the definition of this function?
I'm looking at this file as an example: https://github.com/ajv-validator/ajv-keywords/blob/master/src/index.ts
It appears to take an instance of Ajv as well as optional keyword(s) and returns the instance of Ajv. So the way to indicate an issue is by throwing an error.
Is that correct? I guess I'll give it a try

The help subsystem adds this additional blurb (not exactly in the README):

-c module(s) should export a function that accepts Ajv instance as parameter

(file path should start with ".", otherwise used as require package)
.json extension can be omitted (but should be used in globs)

So it looks like the reference to . means current directory (not file name, as quoted above). But the last sentence mentions .json extensions which is odd because I've never heard of code using a .json extension.

I'm looking at https://github.com/ajv-validator/ajv-cli/issues/86 for some additional help. Could you add a few words about you named your example and how you use -c to reference it?

Ok, by stepping thru the code what appears to be meant is that you need to give a full path, and for local files this includes a ./ prefix. In other words, in my example, ./mykeywords.js

Looks like what needs to be done is just use the addKeyword method.
Here's my simple example that adds one keyword:
function customKeywords(ajv, keyword) {

    ajv.addKeyword("my keyword");

}

module.exports = customKeywords;

Here's a short little module that can be reused to read keywords from a file. I plan to write a similar module for formats.
const fs = require("fs")

function customKeywords(ajv) {
  const fileContents = fs.readFileSync("keywords.txt", {encoding: "utf8"})
  const keywords = fileContents.split(/\s+/)

  keywords.forEach((keyword) => {
    if (keyword) {
      ajv.addKeyword(keyword)
    }
  })
}

module.exports = customKeywords

I created a new npm module as a hack. https://www.npmjs.com/package/ajv-cli-custom
It's not great because it doesn't allow you to specify the name of the file. For now it's hard coded to look in the current directory for customs.json.
customs.json
{
  "keywords": ["keyword1", "keyword2", /* ... */ ],
  "formats": ["format1", "format2", /* ... */]
}

installation
> npm install -g ajv-cli-custom

use
> ajv compile -s myschema.schema.json -c ajv-cli-custom

If this team is open to it, I wouldn't mind trying a PR to build this functionality into ajv-cli itself. Basically, introduce a new command line option to specify a json file with custom keywords and/or formats.

@michaelgwelch ajv-cli-custom looks like a great start for custom formats :)
I just want to add, for people like me, who can use the formats defined in https://github.com/ajv-validator/ajv-formats#formats, that they can easily be added with the following two steps:

npm i -D ajv-formats
Add -c ajv-formats to your CLI command for ajx.

Example:
ajv test -s my.schema.json -d my.json --spec=draft2019 -c ajv-formats --valid --all-errors --errors=text

If you're just looking to support some custom formats, there's actually fairly little code required, as per the example on user-defined formats.
function customFormats(ajv) {
    ajv.addFormat("identifier", /^a-z\$_[a-zA-Z$_0-9]*$/)
    return ajv
}

module.exports = customFormats

Then put this in a file like formats.js and pass it to the CLI with the -c option, like -c "./formats.js"
Custom validation (going beyond regex) is just a matter of passing a validation block instead.
function customFormats(ajv) {
    ajv.addFormat(
        "byte",
        {
            type: "number",
            validate: (x) => x >= 0 && x <= 255 && x % 1 == 0,
        }
    )
    return ajv
}

module.exports = customFormats

I would suggest adding this example to the CLI project documentation, as a quick recipe to extend the tool.


PDCurses install fails on Linux

[root@localhost vcpkg]# ./vcpkg update
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.
[root@localhost vcpkg]# ./vcpkg install pdcurses
The following packages will be built and installed:
    pdcurses[core]:x64-linux
Starting package 1/1: pdcurses:x64-linux
Building package pdcurses[core]:x64-linux...
-- Using cached /opt/vcpkg/downloads/wmcbrine-PDCurses-2467ab2b6c07163d0171b80ad6c252c29da28173.tar.gz
-- Using source at /opt/vcpkg/buildtrees/pdcurses/src/c29da28173-04343f6e37
-- Build x64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: NMAKE-NOTFOUND /A -f /opt/vcpkg/buildtrees/pdcurses/src/c29da28173-04343f6e37/wincon/Makefile.vc WIDE=Y UTF8=Y
    Working Directory: /opt/vcpkg/buildtrees/pdcurses/src/c29da28173-04343f6e37/wincon
    Error code: No such file or directory
    See logs for more information:

Call Stack (most recent call first):
  ports/pdcurses/portfile.cmake:23 (vcpkg_execute_required_process)
  scripts/ports.cmake:94 (include)

Error: Building package pdcurses:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: pdcurses:x64-linux
  Vcpkg version: 2019.09.12-unknownhash

Additionally, attach any relevant sections from the log files above.

As noted in #14620 (which may be seen as duplicate of this issue) the problem is that also for osx and linux the port tries to use the wincon port - while it should use either the sdl2 or x11 ports.

Closing in favor of https://github.com/microsoft/vcpkg/issues/14620.


feature: New variable automatic creation improvement

Feature Request
Describe the Feature Request

Some variable has input, other not, the platform does not show correctly to user if "Input" is requered or not.
Is your feature request related to a problem? Please describe

Describe Preferred Solution

Ensure user can type “input” field if it is required and not show it (input field) if it is not required
Additional Context

If user selects "Total number of hospitalizations due to X in the last 12 months" input field is requerid as integer. But user can type caracteres and the field is not mark as requeried even if into html we have:
<mat-error *ngIf="!requiredFields.fieldData" class="required-alert">
Input is required

But this messages never appears, It shows only the generic one  'There are empty fields that are required to fill'


Error at first use of each pin from GPIO

We are using 5 GPIOs as output, when fresh boot a rapsberry, you have one error for each, then it acts normal.
Check bellow when ./example is called:
pi@blueos:~/navigator-lib/examples/cpp/build $ ./example
Navigator C test, system details:
System is Linux on armv7l hardware
OS Release is 5.10.33-v7l+
OS Version is #1415 SMP Fri Apr 30 15:50:57 BST 2021
Iniciating navigator module.
thread '<unnamed>' panicked at 'Error: Setting CS2 pin as output: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })', /cargo/git/checkouts/navigator-rs-2872844b08e6ceff/eefa796/src/[lib.rs:129](http://lib.rs:129/):14
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 9
Aborted
pi@blueos:~/navigator-lib/examples/cpp/build $ ./example
Navigator C test, system details:
System is Linux on armv7l hardware
OS Release is 5.10.33-v7l+
OS Version is #1415 SMP Fri Apr 30 15:50:57 BST 2021
Iniciating navigator module.
thread '<unnamed>' panicked at 'Error: Setting CS2 pin as output: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })', /cargo/git/checkouts/navigator-rs-2872844b08e6ceff/eefa796/src/[lib.rs:135](http://lib.rs:135/):14
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 9
Aborted
pi@blueos:~/navigator-lib/examples/cpp/build $ ./example
Navigator C test, system details:
System is Linux on armv7l hardware
OS Release is 5.10.33-v7l+
OS Version is #1415 SMP Fri Apr 30 15:50:57 BST 2021
Iniciating navigator module.
thread '<unnamed>' panicked at 'Error: Setting led pins as output: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })', /cargo/git/checkouts/navigator-rs-2872844b08e6ceff/eefa796/src/[lib.rs:68](http://lib.rs:68/):18
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 9
Aborted
pi@blueos:~/navigator-lib/examples/cpp/build $ ./example
Navigator C test, system details:
System is Linux on armv7l hardware
OS Release is 5.10.33-v7l+
OS Version is #1415 SMP Fri Apr 30 15:50:57 BST 2021
Iniciating navigator module.
thread '<unnamed>' panicked at 'Error: Setting led pins as output: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })', /cargo/git/checkouts/navigator-rs-2872844b08e6ceff/eefa796/src/[lib.rs:68](http://lib.rs:68/):18
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 9
Aborted
pi@blueos:~/navigator-lib/examples/cpp/build $ ./example
Navigator C test, system details:
System is Linux on armv7l hardware
OS Release is 5.10.33-v7l+
OS Version is #1415 SMP Fri Apr 30 15:50:57 BST 2021
Iniciating navigator module.
thread '<unnamed>' panicked at 'Error: Setting led pins as output: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })', /cargo/git/checkouts/navigator-rs-2872844b08e6ceff/eefa796/src/[lib.rs:68](http://lib.rs:68/):18
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 9
Aborted
pi@blueos:~/navigator-lib/examples/cpp/build $ ./example
Navigator C test, system details:
System is Linux on armv7l hardware
OS Release is 5.10.33-v7l+
OS Version is #1415 SMP Fri Apr 30 15:50:57 BST 2021
Iniciating navigator module.
Setting leds on!
Temperature: 39.639999
Pressure: 101.837517
Reading ADC Channels: 1 = 410, 2 = 418, 3 = 427, 4 = 316
Magnetic field: X = 3.600000, Y = -12.150001, Z = 18.750000
Acceleration: X = 0.002394, Y = -0.010176, Z = -0.308264
Gyroscope: X = -0.001198, Y = 0.002131, Z = 0.000399
Setting leds off!

do you have BlueOS running ? If so, is it running ArduPilot ? If so, set it to run SITL on the Ardupilot Manager.

Reported on linux-embedded-hal

Solved by #9


2nd Edition / Chapter 15 / route-parameters

I think the code for App.js should look something like this, based on the breaking changes that were introduced after the book went to press:
import { createDrawerNavigator} from 'react-navigation-drawer';
import { createBottomTabNavigator } from 'react-navigation-tabs';
import { Platform } from 'react-native';
import { createStackNavigator } from 'react-navigation-stack';
import { createAppContainer } from 'react-navigation';
import Home from './Home';
import News from './News';
import Details from './Details';
const { createNavigator } = Platform.select({
ios: { createNavigator: createBottomTabNavigator },
android: { createNavigator: createDrawerNavigator }
});
const RootStack = createStackNavigator(
{
Home: { screen: Home },
News: { screen: News },
Details: { screen: Details }
},
{
// specifies the screen that the user starts at when the app is opened.
initialRouteName: 'Home',
}
);
const App = createAppContainer(RootStack);
export default App;

This repository is for the third edition of the book, yet to be published.


docs: add more details about what clean actually does

Where did you see the issue in our documentation?
https://docs.kurtosis.com/clean/
Issue description
kurtosis clean does more than what the docs illustrate. This issue is to track additions to the docs to ensure we communicate properly what kurtosis clean actually does under the hood when its used.
What the docs currently say:

removes stopped enclaves (and live ones when -a flag is used) and stopped engine containers

What the command actually does:

removes stopped enclaves and stopped engine containers (and if the -a flag is set, all running enclaves + engine containers will also be removed)
removes all services within enclaves
removes all unused kurtosis images (engine + logs aggregator + enclaves)
removes all files artifacts and all docker volumes within those enclaves

Related: https://github.com/kurtosis-tech/kurtosis/pull/1349

Changes have been made, closing!


fixes for TypeScript errors in tests (#781)

Should fix #781.
The actual underlying issue is described here: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15215
For the e2e tests I have used one of the suggested workarounds.

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

I see it's too late, but just a note, <any> foo style of casting has been deprecated, it's better to use foo as any syntax.

Doh. Can someone PR a fix?


Datadog and otel_ngx_module

Datadog wants to integrate more closely with otel_ngx_module, if for no other reason than ingress-nginx plans to drop support for nginx-opentracing in favor of otel_ngx_module.
This has been discussed previously in an ingress-nginx issue and in an opentelemetry-cpp issue.
The Datadog Agent (Datadog's equivalent to an OpenTelemetry collector) speaks OTLP, and so today Datadog customers can use otel_ngx_module as is.
However, Datadog tracing libraries support some features that are not currently expressible in the OpenTelemetry API. The most prominent example in the case of C++ is how sampling is configured.
Instead of restricting Datadog to the collector, we are considering (with the blessing of opentelemetry-cpp and ingress-nginx) writing a library that implements the opentelemetry-cpp API by defining a TracerProvider and related classes. Then, OpenTelemetry projects that wish to provide full-featured Datadog tracing can depend on this library and install its TracerProvider at runtime. Any code written in terms of the opentelemetry-cpp API would remain unchanged.
Let's call this hypothetical library "dd-opentelemetry-cpp".
I've opened up this issue to discuss with the maintainers of otel_ngx_module whether it would be acceptable to propose changes that would integrate dd-opentelemetry-cpp into otel_ngx_module.
At a glance, the configuration and runtime setup of the nginx module would have to be revised to allow for a "provider" degree of freedom, and whatever modifications to existing configuration that would require. The build would also be modified to include dd-opentelemetry-cpp.
dd-opentelemetry-cpp would be a C++17 library that depends only on opentelemetry-cpp, dd-trace-cpp, and optionally libcurl.
Finally, as background information, here is a survey of relevant Datadog libraries:

dd-opentracing-cpp is an OpenTracing-based plugin that we seek to deprecate. It is what is currently used by ingress-nginx in conjunction with nginx-opentracing.
dd-trace-cpp is a new dedicated Datadog tracing library that I wrote to replace dd-opentracing-cpp. It's a C++17 library with no dependencies aside from, optionally, libcurl.
nginx-datadog is a Datadog-specific nginx module, based largely on nginx-opentracing, that uses dd-trace-cpp under the hood and allows for minimal-config tracing of nginx using Datadog.

What do you think about the idea of integrating the hypothetical dd-opentelemetry-cpp into otel_ngx_module?

@seemk @johanneswuerbach @tobiasstadler @esigo
Pardon the @'ing. I'm wondering who/where I should ping to get feedback on the idea described above. I'm new to the governance of opentelemetry-cpp-contrib.

Hi @dgoffredo thanks for the reminder. Per discussion in opentelemetry-cpp repo, this should be the way.
As I'm maintaining the integration in ingress-nginx repo, I could also support you here. Please also note that my capacity for opensource activities (as hobby) is quite limited these days.

Thanks, @esigo. Ideally this initiative will not take any more of your time than what is required for a code review. I wanted to get this project's blessing before I proceeded to begin work on the proposed dd-opentelemetry-cpp library. Wouldn't want to write it if the nginx module project was unwilling to use it.
I have this work planned for this quarter (July through September), unless priorities change. So, you'll be hearing from me again somewhere in that time period.

Happy 2024. I am revisiting dd-opentelemetry-cpp this quarter.


Highlighted warnings

Added additional formatting to the VM Gateway warning to not place VMs in the Gateway subnet and provided a reason for doing so. Also highlighted the "must" for the naming convention used by the GatewaySubnet.

@alta01 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @alta01 - I've spoken to the PM that owns this product. We're going to leave the page as-is at this time. But thanks for contributing. We try to not highlight a lot on this page, as there is so much critical information that is all at the same high level. If we bolded everything, it would just get noisy. I am curious about the additional information you added in regarding overexposing VMs. Can you give me more information regarding why this should be added? One of the main reasons we add nothing to the GatewaySubnet is because we need the IP address resources to be available for the services that use them.

#please-close


[TEST] Fix Spark nightly build

Code of Conduct

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

Search before asking

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

What kind of test improve?

[ ] Fix flaky tests.
[X] Fix bug in tests.
[ ] Increase test coverage.
[ ] Other kinds of test improve.

Describe the issues of the existing tests or improvements for new tests

KYUUBI #1059: Plan only operations

"Error operating PlanOnlyStatement: org.apache.spark.sql.AnalysisException: [TABLE_OR_VIEW_NOT_FOUND] The table or view `t` cannot be found. Verify the spelling and correctness of the schema and catalog. ..."
did not contain "Table or view not found" (SparkQueryTests.scala:485)

set session conf - wrong database

"[SCHEMA_NOT_FOUND] The schema `default2` cannot be found. Verify the spelling and correctness of the schema and catalog.
If you did not qualify the name with a catalog, verify the current_schema() output, or qualify the name with the correct catalog.
To tolerate the error on drop use DROP SCHEMA IF EXISTS."
did not contain "Database 'default2' not found"

more  details see https://github.com/apache/spark/pull/37887
Are you willing to submit PR?

[ ] Yes. I can submit a PR independently to improve.
[ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
[ ] No. I cannot submit a PR at this time.

cc @bowenliang123 if you are interested in

Let me have a check.


Proposed provisioner: AWS Fargate

This one’s a bit different, but I thought it would be worth discussing. Fargate allows for public IP addresses and seems like it could meet all the requirements laid out for a new provisioner. What do you think? My main motivation is that I imagine it starts up quicker than other options.

Imho Fargate is very slow to boot and expensive vs. EC2. If you can find some numbers to prove otherwise we may take a look.

Good point on the numbers. I’ll try come up with some and report back. If it’s indeed no faster, it makes it a much easier “no”


Propagate Parent Positions to children

It would be nice to allow parent entities to have a Postition that is then propagated to the children (and so on recursively). One could then easily group and move entities together, instead of separately.

Looks like there are some reworks to how bevy handles hierarchies in the pipeline, so I'm gonna wait until after that lands to tackle this. Should be pretty straightforward.

Looks like there are some reworks to how bevy handles hierarchies in the pipeline, so I'm gonna wait until after that lands to tackle this. Should be pretty straightforward.


[portal] Fix removehandling for portals

Pull Request Test Coverage Report for Build 1492

3 of 3 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1488:
0.0%

Covered Lines:
627

Relevant Lines:
627

💛  - Coveralls

Pull Request Test Coverage Report for Build 1492

3 of 3 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1488:
0.0%

Covered Lines:
627

Relevant Lines:
627

💛  - Coveralls


Add webhook to clean up CDN cache of specific pages

https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration
When a document in Sanity is published/updated, you could use a GROQ Webhook to rebuild a specific page by hitting the API for fresh data, while still using the CDN for your 60 second revalidation and static builds.
https://equinor.slack.com/archives/C01A4BGNRMJ/p1663666467602429

This is ready to be reviewed on https://web-global-development-equinor-web-sites-dev.c2.radix.equinor.com/ and in the sanity.io webhook tab. Changes done in the studio should now be reflected blazingly fast to the web.
@TODO: Add<PHONE_NUMBER> webhooks when this is approved. One for each production dataset.

Changes seem to be taking at least 2 mins for me to be reflected in the web, when viewed on Radix at least. Definitely better than the 20+ mins some people were experiencing, but not sure I would call it blazingly fast 😅

this solution won't work: https://nextjs.org/docs/going-to-production#caching

@nilsml @SvSven what do you think we should do here?

Not sure I'm following - does this mean unstable_revalidate() does not work because we don't have proper caching set up for this on Radix?

Sorry I completely missed this. Has this been enabled on https://studio-global-development-equinor-web-sites-dev.c2.radix.equinor.com?
Takes a while for changes on the home page to be reflected there; doesn't update immediately on refresh or hard refresh even - hard to say if it's working or not.

yes, it has.. this issue is a hard one to solve, especially because the revalidate should only bypass the revalidate time from staticProps and not give a super hard refresh. However I believe this solves the case when a news is published and it doesn't show up in the latest news component on the homepage, which I believe was the most important thing to get fixed.

Seems to take around 2 mins for newly created articles (with the correct tag) to show up in the news promotion on the front page. Better than 10+ minutes at least 🤷♂

Do you think it is a good idea to also have the swr solution together with this?

I'm not sure - that did seem to chew into the API usage, and once we look into the new Next 13 features with fetching data on a component level that might be obsolete again.
It's probably fine like this?

I'm not sure - that did seem to chew into the API usage, and once we look into the new Next 13 features with fetching data on a component level that might be obsolete again.
It's probably fine like this?

good point, we should eventually migrate things to server components

Hi @meols, can you test this on development? The issue is about improving the time that the home page takes to get updated after a new 'news' is published or promoted component is changed etcs

@fernandolucchesi - the EN home page news promo showed a new general news article within just a few seconds, the NO homepage took app. two minutes to show the new Norwegian news article. Big improvements here :clap:  Also a question; is it expected that the Norwegian should take longer? Not sure if it was part of the testing task, but I also tested the newsroom pages. The English newsroom page showed the new news article quickly (less than a minute). The Norwegian newsroom page still hadn't showed the new news article after 18 minutes, but when I updated that news article and republished it immediately showed on the newsroom page.

@fernandolucchesi - the EN home page news promo showed a new general news article within just a few seconds, the NO homepage took app. two minutes to show the new Norwegian news article. Big improvements here 👏 Also a question; is it expected that the Norwegian should take longer? Not sure if it was part of the testing task, but I also tested the newsroom pages. The English newsroom page showed the new news article quickly (less than a minute). The Norwegian newsroom page still hadn't showed the new news article after 18 minutes, but when I updated that news article and republished it immediately showed on the newsroom page.

If it worked like it should, everything should be updated within a few seconds.. This is a very tricky one that I am hoping to be sorted out when we upgrade the version of our frontend... I will release it the way it is now..


API: Separate package/module/project for filter API

See discussion
We want to extract a kroxylicious-filter-api module with all the interfaces a Filter Author needs to build and configure a new filter.
As part of this we want to explore:

removing netty dependencies from KrpcFilterContext
introducing interfaces for DecodedRequestFrame, DecodedResponseFrame, DecodedFrame to keep netty out of the filter api if possible
Move KrpcFilter, KrpcFilterContext, other dependant interfaces and the generated per-message interfaces into a kroxylicious-filter-api module
Think about whether we can avoid a jackson dependency for loading the configuration, for example if we wanted a configuration class with a test constructor, it might be nice if we could use our own annotation to indicate which constructor to use rather than depend on Jackson.

removing netty dependencies from KrpcFilterContext

In the discussion you called out

KrpcFilterContext -> remove allocate, replace with MemoryRecordsBuilder method

+1 from me. This should be easily done in it's own PR. I think (hope) this is the only netty-ism in filter package.

2 introducing interfaces for DecodedRequestFrame, DecodedResponseFrame, DecodedFrame to keep netty out of the filter api if possible

I'm still inclined to using the Kafka types (e.g. ProduceRequestData and RequestHeaderData) in the filter interfaces, rather than adding more abstractions. It just seems simpler and it gets us 90% of what we need.

Think about whether we can avoid a jackson dependency for loading the configuration

I just don't think that's easily doable. Back when Gunnar implemented https://github.com/kroxylicious/kroxylicious/pull/69 we decided (verbally I think since I couldn't find it in the issue):

To have filters expose a public constructor taking their filter class
One benefit of this was that filters their configuration in a type-safe way
Then by using jackson we got a neat way of for a proxy user to specify that configuration.

While removing the requirement for a dependency on Jackson is desirable you can't easily do that without losing 3 (assuming you want to retain 2).
One alternative would be to go more the Kafka route and pass configuration using something Properties or Map-like. But then there's a bunch of very tedious legwork:

Either each filter has to validate their config (including type conversion), while results in lack of consistency and duplicated effort,
Or we provide some abstraction which does some of this (so that parsing from config file to Map<String, Object> or similar is done in one place), but then we need mechanisms for plugins to declare the schemas they accept.

Imho this tedious legwork adds little of value and slows us down. Better to just let people depend on jackson annotations and move on with something more interesting for now. In part that's because maybe when we start thinking serious about quarkus we throw all this out in favour of compile time DI.

Thanks @tombentley. Another point I found while hacking on this is the dependency on a kroxy Future class in the KrpcFilterContext.
In the spike I extracted a kroxy-futures module for kroxy-core and the filter-api to depend on.
What do we get from this copy of vertx Futures? Could we use a java Future instead in KrpcFilterContext?

Sorry, I'd like to reopen kroxylicious-api/kroxylicious-filter discussion.
The work I'm doing on #141 generalises the Contributor interface and uses it for both FilterContributor and AddressManagerContributor.   Contributor is generic so it wouldn't make sense for it to go in kroxylicious-filter.  This makes the case for a kroxylicious-api.
#141 also brings other public API that the user (not the filter author persona) might want to implement.   This isn't filter so clearly wouldn't belong in kroxylicious-filter.  kroxylicious-address-manager-api would be overkill (well, at least premature).
Personally, I'd go for kroxylicious-api for the home of all public API.  If we decide to split it up further down the road, fine.
I'd also be happy with kroxylicious-api <-depens-on-- kroxylicious-filter (if people feel strongly that kroxylicious-filter should exist now)

Any comments on my comment @tombentley @robobario @SamBarker ?

Yep, I'd be keen to have one public kroxylicious-api module for now and split later if required.

I'm persuaded of the need for a new module to encompass the entire API surface, but I'm still drawn to the idea of a separate filter module.
kroxylicious-api  <-depens-on-- kroxylicious-filter
Feels like my preferred option, as it makes future changes easier. Folding filter into api seems easier than going the other way...
I'd probably lean towards an API module per persona and have kroxylicious-api purely an aggregator. (though I am struggling to name the other packages that would contribute)
I'm happy to live with the majority view on this.

In the sprint of getting stuff moving, let's do:
kroxylicious-api  <-depends-on-- kroxylicious-filter

Implemented by https://github.com/kroxylicious/kroxylicious/pull/159


gcd() / fileprompt() hang  on OSX

with current (7b61ebb) wx inputhook, gcd() and fileprompt() are hanging on OSX.  They work fine on Windows and Linux....

fixed with better inputhook


Explain Differencies Between Two Reinstate Events

I see two examples for Reinstate event and it is not clear to me, what is the difference.
{
  "id": "<guid>",
  "activityId": "<guid>",
  "subscriptionId": "<guid>",
  "publisherId": "contoso",
  "offerId": "offer2 ",
  "planId": "gold",
  "quantity": 20,
  "timeStamp": "2019-04-15T20:17:31.7350641Z",
  "action": "Reinstate",
  "status": "InProgress"
}

{
  "subscriptionId": "<guid>",
  "operationType": "Reinstate"
}

What is operationType and why is mentioned only for Reinstate? May it really happen that I get a payload without action? What is the difference between these two examples?
Is there any json schema available for the webhook payload?

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

ID: 94571708-c2f3-e6ff-c455-3a37b42c23a0
Version Independent ID: eb2b45a6-7996-3eaa-1f86-4aafcf40290c
Content: Implementing a webhook on the SaaS service
Content Source: articles/marketplace/partner-center-portal/pc-saas-fulfillment-webhook.md
Service: marketplace
Sub-service: partnercenter-marketplace-publisher
GitHub Login: @arifgani
Microsoft Alias: argani

doc is being updated
#please-close


Unable to add folders via Files screen

macos : 10.13.6
Adding folders has no effect。
Using the command line ipfs add-r folders is fine

Thanks for reporting!
Confirmed on Mac OS X 10.14.6 with IPFS Desktop 0.10.2
STR:

Open web UI to files page
Click [+Add]
Select "Folder"
Choose a folder

Expected: Folder is added and is visible in UI
Actual: Nothing happens
@hacdias or @lidel any ideas what caused regression?

Unfortunately, I have no idea and there are no errors reported in the console. In the meanwhile, you can just drag'n'drop directories to the menubar icon! That should work

Just for the record, this does not not seem to be limited to Electron.
IIUC the same problem was confirmed on Google Chrome Canary.
Tracked in https://github.com/ipfs-shipyard/ipfs-webui/issues/1367#issuecomment-567924016

I believe https://github.com/ipfs-shipyard/ipfs-webui/pull/1468 fixes all/most of drag&drop issues described in https://github.com/ipfs-shipyard/ipfs-desktop/issues/1287#issuecomment-580368657, thank you @rafaelramalho19   :-)
When we release new webui and switch ipfs-desktop to the new version we can check if this issue can be closed (or comment  what remains to be fixed).

@rafaelramalho19 FYSA I retested with webui v2.8.0 (PR #1457) on Linux with Electron/Firefox/Chromium, and:

if webui is opened in Electron (ipfs-desktop)

:anger: adding folder does not work via button (no error in Console)
:angel: adding folder WORKS via drag&drop
:angel: adding single file WORKS via drag&drop

if webui is opened in Firefox

:angel: adding folder WORKS via button
:angel: adding folder WORKS via drag&drop

if webui is opened in Brave (Chromium)

:angel: adding folder WORKS via button
:angel: adding folder WORKS via drag&drop

So after we merge #1457 the only thing that needs to be fixed is adding folder via button in Electron.

Thanks for testing that out @lidel.
I'll see what's wrong with the button

💢 adding folder does not work via button (no error in Console)

@lidel it does now thanks to @rafaelramalho19's work :smiley: Thank youu

Remaining issue with adding Folders via WebUI button should be fixed in v0.11.2
Upgrade ASAP :-)


feat(protocol-designer): disable placing module next to heater shaker

Overview
Disable users from placing modules next to a HS, and from placing a HS next to other modules.
closes #10449 and #10450
Changelog

Disable placing module adjacent to existing heater shaker
Disable placing heater shaker adjacent to other existing modules

Review requests
Try placing a HS adjacent to another module, you should see the error outlined in #10449
Try placing a new module (not a HS) adjacent to an existing HS, you should see the error outline in #10450
Risk assessment
Low

good catch @jerader, since we're doing the latch open collision validation in step generation now, i think we can remove that check in the edit modules modal... right @anthonywilleee @howisthisnamenottakenyet ?


One of my label contains too many characters in TabNavigator

I want my TabNavigator to look like this:

But it looks like this:

My code:
const MediaTabNav = TabNavigator({
  Images: {
    screen: ImageTabStack,
  },
  Albums: {
    screen: AlbumTabStack,
  },
  'Shared albums': {
    screen: SharedAlbumTab,
  }
},
  {
    tabBarPosition: 'top',
    animationEnabled: true,
    tabBarOptions: {
      style: {
        backgroundColor: 'white',
      },
      activeTintColor: 'black',
      labelStyle: {
        fontSize: 22,
        fontWeight: '100',
      },
    },
  })

I've tried messing with the tabStyle and the style in tabBarOptions but with no effect.
Do any one know what might be wrong?
Thanks

A few questions:

which version of the library are you using? 'cause we modified the font in the header to autoscale via this https://github.com/react-community/react-navigation/commit/f84fe152721f0f6f80f799dbcd9bcbf5f42d61d0

in the first image the font looks smaller (like a 16 vs a 14/13), or is it just me?

I'm using
   "react-navigation": "^1.0.0-beta.15"
The font size (22) is the same for all labels and the dimensions of the tabs are 125x48.5 and respective text elements are:
(30.0, 21.0) 65.0x 26.5,
(154.0, 21.0) 67.5x26.5,
(278.0, -5.5) 69.5x53.0

The reason this is occuring is due to the flex:1 that each tab item has, thus allowing each tab item to take up an equal amount of space (regardless of the contents of that tab item). You'll have to override that, perhaps with a flex: 0?


broken links

Issue in /src/pages/documentation/adobe-journey-optimizer/index.md
The following links are not working (either no navigation or navigation to a blank page):

"configure datastreams tutorial"
Update your app's Datastream
all links under "Integrate with following extensions:"
"setting up schemas and datasets"

This has been done!


Screenshot Spam (1.0.1)

Describe your bug here.
The bug where screenshots are made in large quantity are still persisting, you have heavily DAMPENED how bad it is, but it is still persistent
Command Prompt/Terminal logs ()
No response
Are you modding a build from source or with Lua?
No modding
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No, I did ABSOLUTELY nothing to my RELEASE HOTFIX BUILD of P-slice

I found a workaround, just unbind the button to screenshot

the whole engine has problems similar to this, the freeplay menu wont let the player pick a song thanks to the rapid scrolling thing too

Can you send the saves? (they should be located in %appdata%/mikolka9144)

https://github.com/mikolka9144/P-Slice/issues/3


On using the Extension with Firefox browser, The volume levels resets.

When I try to increase or decrese the volume on youtube the volume level in the extension resets to a particular volume while on some websites the volume is set to max no matter what you do.
I am using Ubuntu 20.04.2 LTS, GNOME Version 3.36.8

What extension version (gnome-extensions info<EMAIL_ADDRESS>and Firefox version are you using? Does this also occur when changing the volume level via pavucontrol?

You will need to install pavucontrol to use it.

Its not working with pavcontrol installed as well. The volume resets to max after reloading the page on some sites.

Its not working with pavucontrol installed as well. The volume resets to max after reloading the page on some sites.

If it is not working in pavucontrol, that means that this is either an issue with Firefox itself or pulseaudio.


fix(menu): fixed toggle element initialization

PR Checklist
Please check if your PR fulfills the following requirements:

Tests for the changes have been added: Y
Docs have been added / updated: N
Does this PR introduce a breaking change? N
I have linked any related GitHub issues to be closed when this PR is merged? Y

Describe the new behavior?

Updated selector list for detecting toggle elements
Updated the connectedCallback() to wait for a specific toggle element from the selector list before initializing
Use the focusout event instead of blur to allow for detecting focus being lost from any child element (nested or not)

Additional information
Fixes #249

This change makes the initialization of this component slightly more strict because we require an element from the selector list. This technically could cause a breaking change, but it's very unlikely.
We could revert back to the original init logic to detect when there is just any child element provided, and rely solely on the focusout event if that seems more safe? Curious to hear thoughts from others.