Is it possible to display a custom segment of length zero and empty text?

I'm trying to display an inline image above my user-editable markdown text. This is how I want it to display:

This is the approach I'm taking to accomplish this:

The problem is that the only way I can get my custom VBox segment to show up is to make it still be "part of the text"; in other words, make sure SegmentOps.length(vboxSeg) returns > 0, and make sure SegmentOps.getText(vboxSeg) returns a non-empty string.
But doing this makes it selectable and deletable in GenericStyledArea. My users will wonder why selecting and copying text containing vboxSeg has extra characters in it, and why it takes more than one arrow key press to skip past the vboxSeg, when it's only there to display the image in the TextExt. Making vboxSeg "part of the text" also messes with the API. If I call GenericStyledArea.getText(), the string returned by SegmentOps.getText(vboxSeg) will also be inside, polluting the returned string.
A possible solution would be to make vboxSeg a "phantom" segment, for whom SegmentOps.length(vboxSeg) returns 0 and SegmentOps.getText(vboxSeg) returns "". But doing this seems to make the segment disappear entirely.
Is there some way to have a custom segment of 0 length and "" text still be displayed?

Sorry, I don't think so. If I remember correctly the length has to be at least one so that cursor navigation can work.

Hmm... what if I called GenericStyledArea.getChildren().add(imagePreviewNodeHere) and override GenericStyledArea.layoutChildren() to position it? Would there be any side effects to doing that?

Could work? You'll have to try it out and see. Please give feedback either way, if you do.

Nope, this idea's a dud too. First, the TextExts are updated in the view faster than the image preview nodes, so they appear to the user as lagging behind about 1/4 a second or so. Second, because the text flow is virtual, the TextExt the image preview node is supposed to be anchored to becomes unpositioned as soon as the TextExt is off the screen, even if the image preview node is should still be shown (scrolling up for example, the TextExt disappears under the the bottom of the text area, but the image preview node above it should still be shown. without an "anchor", there is no way to position the image preview). Third, translating node positions using localToParentBounds() has a ~5 pixel error margin to it, making the image preview node appear to jiggle as the text area is scrolled.
I still have one more idea to make this work. If you want to hear it I'll post the results.

Thanks for the feedback. Yes please post results of your idea ....

I think I almost have a working hack, but there's a problem.
The main idea is to simulate an editable text node by listening to mouse events in the custom node and selection changes in GenericStyledArea. Here's the custom node:

I subscribe to changes of GenericStyledArea.selectionProperty() and in the handler, update the pseudo-selection in the custom node. I listen to mouse events (TextExt.setOnMousePressed() etc.) on the custom node to update the GenericStyledArea's selection.
But I've run into a SNAFU: when the custom node is clicked, the click handler I've attached with setOnMousePressed() fires first, for which the handler calls GenericStyledArea.selectRange(anchor, caret). This is all well and good, but then GenericStyledArea runs its default behavior when a custom node is clicked, which sets the selection to customNodePos + 1, "overwriting" the selection change done in the setOnMousePressed() handler.
Is there any way to prevent GenericStyledArea from running its default selection-setting behavior when a custom node is clicked? Some way to ignore mouse events on custom nodes?

Are you consuming the MouseEvent in setOnMousePressed() ?  If you are then try changing it to addEventFilter( MouseEvent.MOUSE_PRESSED, ... ) or maybe MouseEvent.ANY and consume it.


[Autocomplete] Add limitTags prop

Closes #19137
This PR adds a new prop to handle the amount of items visible without focus.

[x] I have followed (at least) the PR section of the contributing guide.

Thanks for these improvements @oliviertassinari. I had some troubles with prettier because of this commit https://github.com/mui-org/material-ui/pull/20211, sorry about that.
I really liked the getLimitTagsText prop. Well done.

Great, let's move forward :)

Thanks for the improvement! I would like to use this but when i install the npm package it seems to be missing.. Am i doing something wrong? Do i need to wait for some time?

Yes, I also don't see it in the latest package available on NPM.

It's live https://unpkg.com/browse/<EMAIL_ADDRESS>


#657: Lighthouse suggests React.Lazy loading

This is a feature of React.js that is new to me: if a view component might not be rendered initially or at all, depending on this.state, then it is possible to wait to "lazy load" it, until the component is actually demanded. All lazy-loaded components must also be nested at some level under at least one <Suspense> tag. If done right, this can decrease page loading times.
@vprusso I know you're still on vacation with the family, so I'm just tagging you FYI. Enjoy your trip, I'll self-review, and I'll talk with you soon!

(This was suggested by Lighthouse benchmarks, per #657.)


Add a /.well-known/saml-configuration endpoint to retrieve SAML config info

Preflight Checklist

[X] I could not find a solution in the existing issues, docs, nor discussions
[X] I have joined the ZITADEL chat

Describe your problem
Would be reasonable to add a /.well-known/saml-configuration endpoint similar to /.well-known/openid-configuration that we could use to retrieve information like the endpoints reported in #6510 and that could be used to add the proposed URLs section form SAML applications?
I'm not versed in SAML so I'd like to know if the team would agree that this endpoint should be useful.
Describe your ideal solution
If we visit /.well-known/saml-configuration we would get something like:
{"issuer":"http://localhost:8080","certificate_endpoint":"http://localhost:8080/saml/v2/certificate"}
Of course, if you think this endpoint is useful you can assign this issue to me
Version
No response
Environment
Self-hosted
Additional Context
No response

I think this is a great idea.
@livio-a @stebenz What is your take on this?

@doncicuto @hifabienne
Hm I would say there is now harm in this endpoint, but at the same time I don't think it's necessary as such a definition is never part of the saml standard. The certificate endpoint is something we provide so that the metadata doesn't need to be disassembled for the certificate and the "issuer" in saml the entityID is the URL to the metadata itself "https://localhost:8080/saml/metadata"

I would prefer linking to the metadata endpoint as well as this is the corresponding endpoint for clients to get the information.
As with the OIDC endpoints, we can list them all separatly in Console, and also add the certificate endpoint there.
If necessary we can later, discuss if we create a zitadel endpoint under ./well-known/, where we can refer / link everything together.

I just saw that we also have the ZITADEL docs endpoint: https://zitadel.com/docs/apis/resources/mgmt/management-service-get-oidc-information
This one could also be extended


Naive date time type

Hello!
Chatting with @nicd today about datetime libraries and he raised a good point about the Elixir date time module- it provides a NaiveDateTime struct in addition to the others.
This functionality is very useful, I think there's something to gain here. I'm not entirely sure what the ideal API should be, but it could be good to explore.
Cheers,
Louis

I did some digging and it seems there are two use cases for a naive datetime type:

Allowing datetime values that are not affected by daylight saving
Only allowing utc datetime values.

The first use cases doesn't apply to birl because it doesn't have a timezone database yet so the developer has complete control over offsets.
The second use case can be easily handled by validating datetime values using the get_offset function.
Of course I may have missed something.


Cosmos test Managed Identity

Description
Changes the test to use managed identity instead of api key authentication

/azp run python - cosmos - tests

API change check
API changes are not detected in this pull request.

/azp run python - cosmos - tests

/azp run python - cosmos - tests

/azp run python - cosmos - tests


adds python 3.13 drops 3.9

drops python 3.9

I will wait with the review till #103 is merged to see the final version 😉


key name with dot-notation regression

Description
In v5.1.8, the following fields configuration would work
fields: FormlyFieldConfig[] = [
{  key: "applicants.1.xRelationshipTypeList", ...  },
{ key: "applicants",
fieldGroup: [
{  key: "0",  fieldGroup: [  {  key: "firstName", ...   }    ]  },
{  key: "1",  fieldGroup: [  {  key: "firstName", ...   }    ]  }
]
}
];
In the latest version, this causes issues and run-time exceptions are thrown.
Please use link below to reproduce.  You will see that only the first field "applicants.1.xRelationshiptTypeList" is initially displayed.  It appears that it is attempting to auto register FormGroup controls for "applicants" and "1".
Minimal Reproduction
https://stackblitz.com/edit/ngx-formly-keyissue
Your Environment

Angular version: 9
Formly version: 5.10.2

Additional context
We have clients that define their own layouts and they are stored in a database so it is difficult to locate as well as manually make changes to the layouts...

This issue has been fixed and released as part of v5.10.5 release.
Please let us know, in case you are still encountering a similar issue/problem.
Thank you!

That fixed it.  Thank you!


THRIFT-4422 Add Async implementation via IFuture

Client: Delphi
Patch: Jens Geyer

Travis errors seem unrelated. Go library? C++ library? I didn't even touch those ...

@Jens-G the go issues are likely resolved by #1443.  I'd recommend merging that, rebasing your PR, and waiting for another round.


Invalid content-type text/plain for HTTPS repo

Hi,
I am experiencing the following error when I try to clone a repo over HTTPS using git2-rs 0.16.1.
'https://git.openembedded.org/meta-openembedded': invalid content-type: 'text/plain; charset=UTF-8'; class=Http (34)
git2-rs seems to be validating the content type and rejecting text/plain. text/plain from my understanding should be the default content-type, according to git-scm, for "dumb" servers (see https://www.git-scm.com/docs/http-protocol). It looks like git2-rs only accepts headers containing content-type application/x-git-* from what I can see in git2-curl/src/lib.rs:165.
This brings me to the question if git2-rs mainly supports "smart" protocol or if it's a bug?
I've been using a customized version of the official clone example for my testing, found here
https://github.com/rust-lang/git2-rs/blob/master/examples/clone.rs and the modified version can be found here https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b3cf6b2bf07b3e9b58935a4587adc841.
Thanks in advance
/orzen

git2-rs is just a thin wrapper around the libgit2 library. This is probably an issue for their issue tracker at https://github.com/libgit2/libgit2/issues.


update nibiru.json [updateRPC]

Closing in favor of the https://github.com/cosmosdevs/GameOfZones repo.


Dependabot NOT creating pull requests for parent pom version.

Dependabot is NOT creating pull requests for parent pom version.
We are using maven 3.X as package manager. Our project uses a parent pom  version as below

xxxxx-base-java-webapp
2022.1.0
pom

We have an several next versions of parent poms in nexus repository, but dependabot thinks an update is not needed. However it does work and create Pull requests  for regular dependencies specified with

dependabot.yml
version: 2
updates:

package-ecosystem: maven
directory: "/xxxx"
target-branch: "develop"
open-pull-requests-limit: 10

Log file
2022-06-14T18:42:49.0954590Z Parsing dependencies information
2022-06-14T18:42:49.1031289Z Checking if xxxxx-base-java-webapp  needs updating
2022-06-14T18:42:49.1031933Z No update needed for xxxxx-base-java-webapp

I'm not 100% positive, but I think this is resolved by a combo of https://github.com/dependabot/dependabot-core/pull/6491 and https://github.com/dependabot/dependabot-core/pull/6248, so closing. If for some reason I'm misunderstanding, please comment and we can re-open.


Migrate schema related docs from docsite

I'll delete the duplicate pages from docsite after this is merged

gentle ping (i also lost track of this..)


Added Baton

Added tuxedo for issue #557
Let me know if I should make changes.

Thank you @HunGARE. Perfect as it is. :smiley:


Adding checkpoint_manager to torchvision

Did i oversimplify this?

In the current IC implementation, we require recipes for all training runs (in Sparseml, this is unique to IC). Are we keeping that rule in place here? For now I'll assume that we are to make this simpler.
There are two use-cases where a user may "resume" a run, but they might not be both covered by same CLI arg(s).

A user wants to apply a new recipe on top of an existing checkpoint. This use case is well covered in PR.
A user has a run interrupt for any number of reasons and would like to continue it. This use case is uncovered in the PR.

The easiest way to add coverage of case #2 is to just apply the recipe up to the epoch that was saved with the checkpoint.
But there is an extra complication: when sparse transfer learning from a quantized model, we want to start from an unquantized baseline. So we save the last model before quantization as part of the model card and upon loading the model for continued training, we load this unquantized checkpoint. At this point we have to be careful not to apply the checkpoint recipe to the last epoch trained, because we'll re-quantized the model that way. (@bfineran is this still the approach we're planning on taking to sparse transfer learning from quantized models?)
Nit: IMO --resume is an indicator of case #2 and not case #1. Case #1 would be covered by a --checkpoint-path arg instead. But this might be a conversation to have with Product

additionally after looking at this code + the changes in the other PRs, we really should be pulling out all of these relevant sparseml logic changes/controls into a seaparate helper file/class to call in to. This will give us a pathway to test as well as increase readability of the base training script

Agree, will do that in a separate PR after functionality is merged in - that way we can keep the individual PRs as minimal as possible to model future integrations after. And then after the fact have a single PR which shows how to simplify them


Can't define process as external for target node; shim for using process in browser is always included

I'm submitting a bug report
Webpack version:
2.1.0-beta.13
Please tell us about your environment:
OSX 10.x
Current behavior:
Can't define process as external for target node; the shim for using process in browser is always included.
webpack.config.js
module.exports = {
  entry: './entry.cwd.js',
  output:
  {
    filename: 'bundle.js',
    libraryTarget: 'commonjs',
    target: 'node'
  },
  externals:
  [
    'process'
  ],
  node:
  {
    __dirname: false
  }
}

entry.cwd.js
console.log('cwd', process.cwd());

./node_modules/.bin/webpack --config webpack.config.cwd.js
Open bundle.js
EXPECTING: process is not replaced.
ACTUAL: process is replaced with process browser shim.
Did I miss a setting?  Thanks.

target should be inside of output. It's a root level option. For target node process is automatically externalized. externals only apply to modules (require("process")) not to free vars. To disable process the correct options would be node.process = false, but this is not needed for target = "node".


Go rules improvements

I want to start making some contributions toward buck2 support for Go, but the existing rules left me puzzled:

It's not possible to build a go_binary today. That's because there is no place in the existing rules that would include the go standard library to compile / link packages against. In Bazel's rules_go, stdlib is a stand alone action-artifact that would get included automatically into all compile / link actions.

prelude//go/tools:testmaingen could not be built with the native prelude tool for the same reason as (1). So testing with go_test is also not possible. This is solved in rules_go with go_tool_binary.

It's unclear to me on how to create a language rule set to support multiple toolchains. In Bazel, we could include both the linux and darwin go toolchains in a project: darwin could be used to build locally while linux toolchain is used for remote build. Remote build could be a normal build, or could be a cross build (linux -> darwin, darwin -> linux etc...). I do see in the current Zig toolchain there is a support for target platform, but what about execution platform? Is there such a concept in Buck2?

Trusted release binary. In rules_go, we would use Bazel to request the content from one of these 2 URLS
"https://go.dev/dl/?mode=json&include=all",
"https://golang.google.cn/dl/?mode=json&include=all",

This download request does not come with a checksum, thus it will not be cached.
They are considered "trusted" source of Go toolchain download and the json outputs include the sha256 checksum for subsequent toolchain downloads.
However, in Buck2, the actions.download_file is more restrictive than Bazel's: it only allows you to download with a checksum. Since I could still accomplish the same thing if I were to write a bash/python binary to do all the downloads, I would suggest allowing sha256/sha1 to be optional for actions.download_file and when it's not there, simply don't cache the action outputs.

However, in Buck2, the actions.download_file is more restrictive than Bazel's: it only allows you to download with a checksum. Since I could still accomplish the same thing if I were to write a bash/python binary to do all the downloads, I would suggest allowing sha256/sha1 to be optional for actions.download_file and when it's not there, simply don't cache the action outputs.

I may be wrong here, but I'm understanding the premise of defining the hash is to avoid the work of downloading. If we don't know the hash a priori, we can't compare and skip the work.

However, in Buck2, the actions.download_file is more restrictive than Bazel's: it only allows you to download with a checksum. Since I could still accomplish the same thing if I were to write a bash/python binary to do all the downloads, I would suggest allowing sha256/sha1 to be optional for actions.download_file and when it's not there, simply don't cache the action outputs.

I may be wrong here, but I'm understanding the premise of defining the hash is to avoid the work of downloading. If we don't know the hash a priori, we can't compare and skip the work.

Yeah, usually the hash would be used as the cache key for such action.
In Bazel, when the sha256 is not provided for an rctx.download, then the call will simply not be cached. https://bazel.build/rules/lib/builtins/repository_ctx#download
We use it in rules_go here https://github.com/bazelbuild/rules_go/blob/c1880723e3097b788d07c8ff84ff97e58292e0e7/go/private/sdk.bzl#L84-L90 as the targeted json file does not change very frequently and the contents are mostly append-only. Once the actual go toolchain was downloaded, then the sha256 of it will exist in the cache and subsequent go targets will only need to depend on the toolchain archive itself, not the metadata used to download the archive.
It's the same as having
C depends on B
B depends on A

When building C and B exists in the cache, you would not need to check whether A is there or not.
So with
"go_binary(C)" depends on "go_toolchain(B)"
"go_toolchain(B)" depends on "toolchain_release_A.json"

You would not care about the json file most of the time.

Hi,
Is it possible today to build a go project using Buck2. The example toolchain does not work, it seems outdated. See my comments in https://github.com/facebook/buck2/pull/239
Thanks

Following up in #455. We are aware Go isn't well supported in Buck2 right now - the code is there, but it requires further development. The change in Go to not supply prebuilt libraries set back the open source story, alas.

Which issue is tracking Go support in Buck2? I'm confused between this one and #455. Thanks!


Listservs accessible when not logged in

Are listservs only accessible when logged-in? Can we make it so that listservs are visible but maybe you do need to log in in order to sign in?

Where would you have them visible?  Right now they're under the profile template.  You wouldn't see a profile template without first having a profile.  :)

The listserv page can be linked within any of the sections, as deemed appropriate by staff.  There's no sense in showing listserv subscriptions to a non-logged-in user.

By listserv page, do you mean https://beta.wcasa.org/account/subscriptions? This I can only see if I'm logged in.


Adding new repository for indexing: swarm_ros_bridge

Please Add This Package to be indexed in the rosdistro.
swarm_ros_bridge
The source is here:
https://github.com/shupx/swarm_ros_bridge.git
Introduction
This is a lightweight middle interface ROS package that enables the specified ROS message transmission among swarm robots through ZeroMQ socket communication.
Compared with ROS1 multi-robot wireless communication configuration, it has the following benefits:

Robust: No need for base station ROS master launching first. Support each robot launching in a random sequence and connecting each other autonomously.

Flexible:  You can choose the sending/receiving ROS topics rather than transferring all topics as ROS1 does.

Easy to use:  Specify all the IP and ROS topics in one configuration file.

Compared with ROS2 DDS communication, it has the following benefits:

Lightweight: It is a small ROS bridge node subscribing and sending remote ROS topics, so connecting with other ROS1 nodes is easy.

Reliable: It uses ZeroMQ socket communication based on TCP protocol while ROS2 is based on DDS, whose default protocol is UDP (unreliable).

Thanks for your review @clalancette . I have fixed these problems according to your advice:

libzmqpp-dev is added in package.xml line16 now.
I have deleted the duplicated compile option c++11 in  CMakeLists.txt line4 as c++14 is needed by this project.
zmqpp does not support find_package() in cmake. To compile this project, target_link_libraries(zmq,zmqpp) in CMakeLists.txt line26 is enough. catkin_make will success if libzmqpp-dev is installed. I have tested it on several computers (ubuntu18, ROS melodic)

The README file is also updated.
Source code: https://github.com/shupx/swarm_ros_bridge.git

New package review:

[ ] At least one of the following must be present

[x] Top level license file: https://github.com/shupx/swarm_ros_bridge/blob/master/LICENSE
[ ] Per package license files

[x] License is OSI-approved: BSD-3-Clause
[x] License correctly listed in package.xmls

[x] swarm_ros_bridge: https://github.com/shupx/swarm_ros_bridge/blob/master/package.xml#L9 (https://github.com/shupx/swarm_ros_bridge/pull/1)

[x] Public source repo: https://github.com/shupx/swarm_ros_bridge/tree/master
[x] Source repository contains ROS packages and each package meets REP-144 naming conventions

[x] swarm_ros_bridge


SSB Custom Script fails to properly get the Group By results for Transmission Queue

Found this during a case. I will fix this and upload the new SSB script.

Wrong repo? Was this meant for Diagmanager/Pssdiag?

maybe not what was meant, but I do see in DiagManager this might have been fixed...
SELECT COUNT(*) as TQ_GroupCnt, transmission_status FROM sys.transmission_queue GROUP BY transmission_status


!matchcase tag

As of python 3.10 I believe, matchcase is supported in python. It would make sense to create a tag command for it outlining the purpose and an example on how to use it.

I think the feature is fairly complex; it has 7 different patterns, for example. What aspects do you expect to be covered that would still fit within the scope of a tag?

It should have a short summary such as
"Match case is a 3.10+ feature that allows you to execute statements based on the result of an operation"
resp_code = requests.get('https://pythondiscord.com') match int(str(resp_code)[0]): # get the first letter of the response     case 2: # resp_code started with 2         print('Request was successful!')     case 3: # resp_code started with 3         print('You are being redirected.')     case 4: # resp_code started with 4         print('Client error.')     case 5: # resp_code started with 5         print('Server error.')
case _: # this is for any other possible case
print('Unknown response code.')

Listing all of the patterns is not practical for a tag, basic usage of match seems more reasonable.

To include all of that in a single, quick tag would be difficult. Maybe it's best to leave it be.


Update overview-what-is-azure-ml.md

Revise wording slightly

@extcontrib : Thanks for your contribution! The author, @j-martens, has been notified to review your proposed change.

@extcontrib Thanks Batman! Changes look great! :-) #sign-off


Introduce automated Change Log

Based on PRs?

@kbp-di: After a bit of research, the most versatile and configurable upstream component i can find is:
https://github.com/TriPSs/conventional-changelog-action
This github action is based an a pretty wellmaintained project: https://github.com/conventional-changelog/conventional-changelog.


[3.x] Fix left aligned integer sign in string formatting

3.x version of #60678

Thanks!

Cherry-picked for 3.4.5.


Option to hide types of connected anchors or function blocks

Completed parts of a program use too much space because of the amount of visual elements showing all the types.
Only the types of the parts that are being modified are useful in the programming process.
How this should look or behave exactly I don't know, but minimizing the number of things on screen is essential in scaling up.
So this is something to think about.

The current behaviour is a reasonable tradeoff, and it will get better with block stacking.


drivers/pinmux: stm32: Use pull-up for _SPI_NSS pins

To work efficiently, SPI_NSS pins require pull-up configuration.
Fix this for whole STM32 series.
Fixes #17998
Signed-off-by: Erwan Gouriou<EMAIL_ADDRESS>

@erwango
LGTM.
BTW, can you summarize here what tests you performed and on which target?

@avisconti, tested on F4 and L4, in master mode, with various CPOL, CPHA configurations.


[Migration] Warning Messages

VARCHAR -> NVARCHAR

Site warning/notice page to be created

Related to: https://github.com/SAP/xsk/issues/375

tracked in #390


URLs for pipelines are broken

these URLs lead to 404
https://github.com/canonical/bundle-kubeflow/blob/0b06bf138c77e74d77d71beef02dcdc4ba0c473a/tests/pipelines/mnist.py#L291-L294
traceback from pipelines:
Downloading data from https://github.com/canonical/bundle-kubeflow/raw/test-artifacts/tests/pipelines/artifacts/train-images-idx3-ubyte.gz
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/utils/data_utils.py", line 251, in get_file
    urlretrieve(origin, fpath, dl_progress)
  File "/usr/lib/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/tmp/tmp.mzd3tUZApA", line 81, in <module>
    _outputs = load_task(**_parsed_args)
  File "/tmp/tmp.mzd3tUZApA", line 46, in load_task
    train_x = parse_images(load(train_images))
  File "/tmp/tmp.mzd3tUZApA", line 29, in load
    return GzipFile(get_file(Path(path).name, path)).read()
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/utils/data_utils.py", line 253, in get_file
    raise Exception(error_msg.format(origin, e.code, e.msg))
Exception: URL fetch failure on https://github.com/canonical/bundle-kubeflow/raw/test-artifacts/tests/pipelines/artifacts/train-images-idx3-ubyte.gz: 404 -- Not Found

(adding some more context for future reference although we closed this)
Steps to reproduce

Go to revision 84 of the Getting started with Kubeflow guide
Follow the steps from Kubeflow Pipelines part of the guide in a Kubeflow deployment.

(adding some more context for future reference although we closed this)
Steps to reproduce

Go to revision 84 of the Getting started with Kubeflow guide
Follow the steps from Kubeflow Pipelines part of the guide in a Kubeflow deployment.

FYI that part of the doc is migrated to here: https://discourse.charmhub.io/t/explore-kubeflow/10974.
Also note the section is officially commented out until this is fixed

Commenting here in case people bump into this. In order to avoid the 404 errors you can run the following commands to update the problematic mnist.py
cd tests/pipelines/

sed -i 's#https://github.com/canonical/bundle-kubeflow/raw/test-artifacts/tests/pipelines/artifacts/train-images-idx3-ubyte.gz#https://huggingface.co/spaces/chrisjay/mnist-adversarial/resolve/603879aac618aca69749a8a9172daec23a9dd2c4/files/MNIST/raw/train-images-idx3-ubyte.gz#g' mnist.py
sed -i 's#https://github.com/canonical/bundle-kubeflow/raw/test-artifacts/tests/pipelines/artifacts/train-labels-idx1-ubyte.gz#https://huggingface.co/spaces/chrisjay/mnist-adversarial/resolve/603879aac618aca69749a8a9172daec23a9dd2c4/files/MNIST/raw/train-labels-idx1-ubyte.gz#g' mnist.py
sed -i 's#https://github.com/canonical/bundle-kubeflow/raw/test-artifacts/tests/pipelines/artifacts/t10k-images-idx3-ubyte.gz#https://huggingface.co/spaces/chrisjay/mnist-adversarial/resolve/603879aac618aca69749a8a9172daec23a9dd2c4/files/MNIST/raw/t10k-images-idx3-ubyte.gz#g' mnist.py
sed -i 's#https://github.com/canonical/bundle-kubeflow/raw/test-artifacts/tests/pipelines/artifacts/t10k-labels-idx1-ubyte.gz#https://huggingface.co/spaces/chrisjay/mnist-adversarial/resolve/603879aac618aca69749a8a9172daec23a9dd2c4/files/MNIST/raw/t10k-labels-idx1-ubyte.gz#g' mnist.py


autoclose with distributed doesn't seem to work

I am trying to analyze a very large netCDF dataset using xarray and distributed.
I open my dataset with the new autoclose option:
ds = xr.open_mfdataset(ddir + '*.nc', decode_cf=False, autoclose=True)

However, when I try some reduction operation (e.g. ds['Salt'].mean()), I can see my open file count continue to rise monotonically. Eventually the dask worker dies with OSError: [Errno 24] Too many open files: '/proc/65644/sta once I hit the system ulimit.
Am I doing something wrong here? Why are the files not being closed? cc: @pwolfram

Just to make sure, which version of xarray are you using?

0.9.3

0.9.3

OK, so that shouldn't be a problem. Hmm.
My only suggestion is that we should think about trying to write a fuller test suite for the auto-close functionality, using a mock or fake of some sort that we can interrogate to verify it works properly. One simple thing would be to refactor the autoclose functionality into a single separate adaptor datastore (which wraps an underlying datastore) that we can more easily test, rather than putting it onto each of the underlying datastore classes. I'm not sure why I didn't think of that when @pwolfram was writing this before.

The idea of a fuller test suite is a good idea.
One problem is that many of these applications involve really big datasets, so it is hard to share examples.

@rabernat, I would say that this is a bug.  Is this with the scipy backend or netCDF4?  Presumably if you have this problem we could run into too.  For the record, we are using netCDF4.

Note, we don't use decode_cf=False.  Does it crash without making this specification, e.g., using the default?

netCDF4. decode_cf doesn't seem to affect anything important.

I think that there is an underlying problem with the way that open_mfdataset is building the dask graph for this dataset (see #1396). Operations seem overly eager to read all the data and load it into memory. So it might not be a problem with autoclose after all.
I do notice that autoclose does work in certain cases. For example, after I load the dataset, it doesn't leave the files open. That's good.


Rendering issue with similar elements under different parents.

I've been running into an issue where I have a few views which have a somewhat similar layout.
When the view is changed, the child elements which are similar are not updated. It would seem that the diffing algorithm is not taking into account certain attributes during the diff. The exact issue is as follows:

two different parent elements with similar layout.
both have an input element. The placeholders are different and even their bound At::Values are different.
when switching between the views, the input elements are not updated.

I tried using different IDs on the parent elements which are being changed, in hopes that the diffing algorithm would see this as a fundamentally different element and invalidate all of its children, but I know there are lots of nuances here.
I have the code in a public repo, let me know if you need repro steps.

Probably something simple I overlooked in the patch function in vdom.rs . A repo or steps would be appreciated

The repo is here: https://github.com/thedodd/giphy-api. The code is under client/src/containers/ and the two offending modules are search.rs and favorites.rs.
Thanks David. If I get some time over the next few days I’ll take a look at vdom.rs as well and see if anything sticks out to me.

I'm able to reproduce. Might be related to controlled components, vice patching: This example changes the text color when page changes, but not the content:
#[macro_use]
extern crate seed;
use seed::prelude::*;

struct Model {
    pub page: u8,
    pub val1: String,
    pub val2: String,
}

impl Default for Model {
    fn default() -> Self {
        Self {
            page: 0,
            val1: "A".into(),
            val2: "B".into(),
        }
    }
}

#[derive(Clone)]
enum Msg {
    ChangePage(u8),
    ChangeVal1(String),
    ChangeVal2(String),
}

fn update(msg: Msg, model: &mut Model) -> Update<Msg> {
    match msg {
        Msg::ChangePage(page) => model.page = page,
        Msg::ChangeVal1(val) => model.val1 = val,
        Msg::ChangeVal2(val) => model.val2 = val,
    }
    Render.into()
}

fn view(model: &Model) -> Vec<El<Msg>> {
    let mut next_page = 0;
    if model.page == 0 {
        next_page = 1;
    }

    vec![
        button![
            simple_ev(Ev::Click, Msg::ChangePage(next_page)),
            format!("Change to page {}", next_page)
        ],
        if model.page == 0 {
            input![ style!{"color" => "blue"}, input_ev(Ev::Change, Msg::ChangeVal1) ]
        } else {
            input![ input_ev(Ev::Change, Msg::ChangeVal2) ]
        }
    ]
}

#[wasm_bindgen]
pub fn render() {
    seed::App::build(Model::default(), update, view)
        .finish()
        .run();

}

I think all of my above suggestions as to the cause are incorrect. Suspect something subtle in the way input text is stored in the DOM; ie not a text node, and not the value attribute. When I inspect them in my example above, there's no text node, and the value attribute patches correctly... while showing the wrong text.

@David-OConnor copy that. I'll try the latest commit and report back.

@David-OConnor so, I can definitely confirm that your analysis seems to be correct. When the page is switched, the value attribute on the new node is set to value="", but in the UI it still retains the value of the input from the previous page.
I set the client app's seed dep to: seed = { git="https://github.com/David-OConnor/seed.git", rev="278b77a951be6dbeac90d7f829e03fea93f45440" }. Here is the branch if you are interested in trying it out: https://github.com/thedodd/giphy-api/tree/seed-diagnostics

When I try to build that, I get errors about OpenSSL. Did the latest commit have any effect on the input behavior?

@David-OConnor hmm, that's interesting. The docker container has all the system level dependencies needed. I did a build with --no-cache when I updated too. Strange.
As far as the input behavior, it appears to be the same. When the page is switched, the value attribute on the new input element is set to value="", but in the UI it still retains the value of the input element from the previous page.

Is there a way to repro this without Docker? Like, modifying the example code I posted above? Struggling to get Docker to work / it wants me to change BIOS settings which sounds like a red flag.

@David-OConnor hmm. I decided to use docker in this case so that it would run the same way across anyone's machine. If you can't run docker, then you'll just need to invoke the standard cargo builds.
I'll push an update to the README real quick on how to do that. Sec.

@David-OConnor ok, I've pushed some updates here: https://github.com/thedodd/giphy-api/pull/2
If you are on that branch, you should have some solid detailed instructions on how to run this outside of docker. I included a section on non-posix environments ... I don't really use Windows at all, so I'm not sure that I will be able to help with diagnostics there much. Keep me posted.
If you were running into OpenSSL issues on your machine, it may actually be easiest to just install docker for windows. It is very well trusted by the community (who doesn't use docker these days), and it will probably be easier than jumping through a lot of hoops to deal with OpenSSL issues on Windows.

Got docker working, but not sure how to run the example with it. I tried going a directly up, and running docker build giphy-api; it outputs text about being successfully built, but not sure how to go from there to running the server. Would like to get to the bottom on this, beyond what adding set_location fixes.

I've got Docker working, pulled the repo, checked-out the seed-diagnostics branch, ran docker-compose up -d and docker-compose logs -f, and opened localhost:8080, and receive the following error in Firefox:
The script from “http://localhost:8080/pkg/package.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.[Learn More]
SyntaxError: expected expression, got '<'
ReferenceError: wasm_bindgen is not defined

@David-OConnor that's definitely quite strange because there is nothing in the repo that calls for a /pkg/package.js file to be loaded at all ... is there another application you have running on the system which is attempting to serve on port 8080? Maybe something outside of the docker context?

You're correct - appears a docker server was running from prev troubleshooting under Docker Desktop.

Perhaps there is some sort of application which is starting the other docker container. There are a few ways to deal with it. Killing the old container and then restarting the one we are interested in should do the trick:

docker ps to find the ID of the other container which is using port 8080. The ID should be the first column.
docker rm -f ${offending_container_id}, where ${offending_container_id} is obvs the ID we just copied.
From the root of the repo we are working from: docker-compose down to bring everything down, and then docker-compose up -d to bring everything back up (should NOT require a rebuild).

Let me know if that helps ... I'm really sorry that the setup has caused this much trouble ... usually the docker based approach is effortless. Everyone's machine has differences though.
PS
If all of that does not successfully remove the offending container, or it is just immediately re-spawned, then there is some other app which is monitoring the container and causing it to re-spawn. Next best thing to do would be to simply change the port that our container is using. Super simple to do so ... just let me know.

Go with instructions for changing port. (Tried replacing all instances of "8080" with "8081" in the proj folder, but appears to break something docker-related.
The set_value fix made it into the latest release.

@David-OConnor ok, I've updated the code & merged it into the master branch. It is now using seed 0.3.1, the port have been changed over to 9000, and it looks like the rendering issue has been fixed!!! Woot woot!
Thanks for all the awesome work on this, @David-OConnor! It has been quite enjoyable using this framework! I'll close this issue now.

I lied ... unfortunately it looks like it is still there. The project is available for testing though.

Trying to repro this on Windows Subsys for Linux. When I run 'cargo run' in the main directory, I receive this message:
thread 'main' panicked at 'MissingValue(
    "port"
)', server/src/config.rs:32:25

I'd like to fix this, but need to repro it first. Can you provide a MCV example?

Man, I’m really sorry about how much trouble you’ve had with getting this thing running. Normally a single docker-compose up -d command is the only thing anyone will need to do.
However, if you can’t run docker ... well, I just don’t want to add all the overhead of accounting for platform inconsistencies. It’s gotta be all docker.
I did change the ports with the most recent updates to master, so I would encourage you to try that again. You shouldn’t run into that random issue with a ghost container on your system anymore.
However, I will go ahead and create a super simple example unrelated to the reference app I’ve been working on.

Oh yea: https://github.com/thedodd/giphy-api/blob/master/README.md#non-docker-development
That section has everything you need if you can’t run docker. I’ll still make the MCV though.

I've just tested it (current master on https://github.com/thedodd/giphy-api + compose up) and I didn't see any problems with inputs. I tried to switch pages, add favorite gifs, search, logout/login, etc., but everything seems ok. (Firefox, Chrome + Windows 10).
I have to update /client/Cargo.toml because of a new wasm-bindgen version (compilation was failing):
[dependencies]
common = { path="../common" }
futures = "0.1"
js-sys = "=0.3.20"
lazy_static = "1.3"
log = "0.4"
seed = "0.3.1"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
wasm-bindgen = "0.2.43"
web-sys = { version="0.3.20", features=["Storage", "Window"]}
validator = "0.8"

But I doubt it fixed something.
@thedodd: Is it still problem for you? And can you add that MCV? (ideally updated for current Seed and included in /examples + tried with cargo make start 89_bug_example). Otherwise I suggest to close this issue.
@David-OConnor it wants me to change BIOS settings - Why is it red flag? I've just enabled virtualization in BIOS as usual. I also had to uninstall Hyper-V and install again so new Docker finally started working. Then I start docker-compose up from cmd/ps/git-bash (without linux subsys) and after 10min I was able to connect to localhost:9000.

I was unfamiliar with the Docker workflow; got past that error by enabling virtualization as you described. I think I gave up on Docker too early / didn't feel like learning it at the time.

-OT-
@David-OConnor I only know, how to start it and do some basic configuration, I can't escape it as mostly a backend developer.
2 tips:

Install Kitematic:

(Right click on Docker icon in taskbar -> Kitematic -> click on link -> download to recommended folder and rename it to Kitematic -> click again on Kitematic in Docker context menu)
It allows you to easy stop running containers, set their ports, download new containers (e.g. Postgre), etc.

You can create a new Windows user and use it to limit Docker access to your disks. Guide.

@MartinKavik hey, thanks for checking up on that. Like a fool, I removed the branch that showed the issue. In master, I've implemented a workaround. I think I removed it because I didn't think anyone else would be interested in taking a look. The workaround was to use fundamentally different element types on the different pages to avoid the diffing issues. So the branch will just modify the code to use the normal elements and attributes that I would want to use.
I'll circle back once I've made those changes.

Ok, @MartinKavik I've pushed the reverted workaround to the seed-diagnostics branch. You should be able to test it out and see the issue once again. You can see in the gif I've attached here that the icon is not updating. The favorites page should have a filter icon (which works in master because of my workaround).

You can see in the gif I've attached here that the icon is not updating.

The problem is font-awesome - it modifies DOM:
From:

To:
<svg class="svg-inline--fa fa-filter fa-w-16" aria-hidden="true" data-prefix="fas" data-icon="filter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"></path></svg>

So I think it's the reason, why FA components exist for specific frameworks.

Minimal example:

https://github.com/MartinKavik/seed/blob/fix/89-similar-elements/examples/89_similar_elements_bug_demo/src/lib.rs
https://github.com/MartinKavik/seed/blob/fix/89-similar-elements/examples/89_similar_elements_bug_demo/index.html

Patch algorithm seems to works fine if you delete   from index.html.
@David-OConnor Do you this there is a way how to resolve it without writing a font-awesome library(?) for Seed?

OT:
@thedodd I have problems with running giphy-api in "development mode":
Is docker-compose run -v ./static:/api/static -p 9000:9000 server cargo m ake watch-client the right way to start it?
Because both commands:

docker-compose run -v ./static:/api/static -p 9000:9000 server cargo make watch-server-run
docker-compose run -v ./static:/api/static -p 9000:9000 server cargo make watch-client

fail with:
$ docker-compose run -v ./static:/api/static -p 9000:9000 server cargo make watch-ser
ver-run
ERROR: Cannot create container for service server: b'Mount denied:\nThe source path "s
tatic;C:\\\\Program Files\\\\Git\\\\api\\\\static"\nis not a valid Windows path'

Windows 10, git-bash

Great find. No solution comes to mind - my understanding is frontend frameworks assume minimal DOM manipulation by the app. Alternatives here are unicode:  ☰  × 🔍 , or SVG if you want to ensure uniform display across devices

@MartinKavik hey, sorry for the ultra late response. So, those two docker-compose commands are definitely correct. I'm not sure why they would be failing on windows. I don't have a windows machine to do troubleshooting, but it sounds like a windows specific issue with docker/docker-compose.
@David-OConnor thanks for bearing with me on this issue. I definitely agree that font-awesome is manipulating the DOM which could certainly lead to rendering issues.
Feel free to close this issue.


popOver screen

Can you please tell me is it possible to make popover screen using this ?

like this

Yes that is the idea. However it is limited to text only menus.
Not even icons are supported ATM.

@JanezStupar can you please tell me i have to work in go language or dart for this? i will do this

Both. See the example app.


Support for multi-line begin and end blocks inside macros

Currently to apply, for example, a series of @mutates you might use:
df2 = @chain df1 begin
   @mutate(
      col1 = 0,
      col2 = 0,
      col3 = 0)
end

This is generally clear and nice for wrangling data with many columns. In DataFramesMeta it could look like the above (plus : for column names), or:
df2 = @chain df1 begin
   @rtransform begin
      :col1 = 0
      :col2 = 0
      :col3 = 0
   end
end

Eliminating , and () management when nesting and doing other visually messy things is especially nice. It also allows for easier experimentation and debugging by commenting out expressions, and is visually tidier. Currently in Tidier this runs:
df2 = @chain df1 begin
   @mutate begin
      col1 = 0
   end
end

but the parser doesn't know what to make of this:
df2 = @chain df1 begin
   @rtransform begin
      col1 = 0
      col2 = 0
      col3 = 0
   end
end

This seems like some nice syntactic sugar in-line with the rest of Tidier.

I love this idea. It should be doable as long as I can figure out how begin-end blocks look in the abstract syntax tree.
When I started working on Tidier.jl a year ago, I remember seeing this functionality in DataFramesMeta and not fully grasping its purpose. I definitely get it now. Will put this on the list of things to work on.

Hi @KadeG, this is basically implemented in the latest PR. Just waiting for tests to pass and then may add a new documentation page to highlight this new optional syntax before merging. The nice thing is that it is implemented for every macro that supports multiple expressions. Thanks again for the suggestion!

Added some examples of this behavior to the @mutate and @summarize docstrings. This functionality works throughout the package and supports all macros that accept multiple expressions.
The docs are updated (pending re-rendering to correct one typo). I ended up adding a more general page on how piping works.
Take a look: https://tidierorg.github.io/TidierData.jl/latest/examples/generated/UserGuide/piping/
I highlight the support for begin-end blocks towards to end of the text on that page.


How to add prompt template to create_csv_agent?

Issue with current documentation:
Hey guys! Below is the code which i'm working on
import pandas as pd
from IPython.display import Markdown, display
from langchain.agents import create_csv_agent
from langchain.chat_models import ChatOpenAI
from langchain.llms import OpenAI
import os
import pandas as pd

os.environ["OPENAI_API_KEY"] = ""

df = pd.read_csv('https://gist.githubusercontent.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6/raw/92200bc0a673d5ce2110aaad4544ed6c4010f687/pokemon.csv')

df.to_csv('pokemon.csv', index=False)

# Load the agent
agent = create_csv_agent(OpenAI(temperature=0), "pokemon.csv", verbose=True)

gpt4_agent = create_csv_agent(
    ChatOpenAI(temperature=0, model_name="gpt-4"), "pokemon.csv", verbose=True
)

agent.run("Which pokemon has the highest attack and which has lowest defense?")

In the above code, you can see the query has the normal question. How do i add the below prompt template as the question?
# Now you can use the json_data in your prompt
prompt_template = f'''If the dataset has the following columns: {json_data}

Understand user questions with different column names and convert them to a JSON format. Here's an example:

Example 1:
User Question: Top 2 zones by Housing Loan in the West and South in the year 2019 excluding small loans and with Discount > 5 and Term Deposit between 10k and 15k

{{
    "start_date": "01-01-2019",
    "end_date": "31-12-2019",
    "time_stamp_col": "Month",
    "agg_columns": ["Housing Loan"],
    "trend": null,
    "to_start_date": null,
    "to_end_date": null,
    "growth": null,
    "variables_grpby": ["Zone"],
    "filters": {{"Zone": ["West", "South"]}},
    "not_in": {{"Loan Type": ["Small"]}},
    "num_filter": {{
        "gt": [
            ["Discount", 5],
            ["Term Deposit", 10000]
        ],
        "lt": [
            ["Term Deposit", 15000]
        ]
    }},
    "percent": false,
    "top": "2",
    "bottom": null
}}

Example 2:
User Question: What is the Highest Loan Amount and Loan Outstanding by RM Name James in January 2020

{{
    "start_date": "01-01-2020",
    "end_date": "31-01-2020",
    "time_stamp_col": "Due Date",
    "agg_columns": ["Loan Amount", "Loan Outstanding"],
    "trend": null,
    "to_start_date": null,
    "to_end_date": null,
    "growth": null,
    "variables_grpby": [],
    "filters": {{"RM Name": ["James"]}},
    "not_in": {{}},
    "num_filter": {{}},
    "percent": false,
    "top": "1",
    "bottom": null
}}

Example 3:
User Question: Which RM Name with respect to Region has the Highest Interest Outstanding and Principal Outstanding in the year 2019

{{
    "start_date": "01-01-2019",
    "end_date": "31-12-2019",
    "time_stamp_col": "Due Date",
    "agg_columns": ["Interest Outstanding", "Principal Outstanding"],
    "trend": null,
    "to_start_date": null,
    "to_end_date": null,
    "growth": null,
    "variables_grpby": ["RM Name", "Region"],
    "filters": {{}},
    "not_in": {{}},
    "num_filter": {{}},
    "percent": false,
    "top": "1",
    "bottom": null
}}

Example 4:
User Question: Which Branch in North Carolina with respect to Cibil Score Bucket has the Highest Cibil Score in 2019

{{
    "start_date": "01-01-2019",
    "end_date": "31-12-2019",
    "time_stamp_col": "Due Date",
    "agg_columns": ["Cibil Score", "DPD Bucket"],
    "trend": null,
    "to_start_date": null,
    "to_end_date": null,
    "growth": null,
    "variables_grpby": ["Branch"],
    "filters": {{"Region": ["North Carolina"]}},
    "not_in": {{}},
    "num_filter": {{}},
    "percent": false,
    "top": "1",
    "bottom": null
}}

Example 5:
User Question: With respect to Zone, Region, Branch, RM Name what is the Highest Loan Amount, Loan Tenure, Loan Outstanding, EMI Pending, Principal Outstanding

{{
    "start_date": null,
    "end_date": null,
    "time_stamp_col": null,
    "agg_columns": ["Loan Amount", "Loan Tenure", "Loan Outstanding", "EMI Pending", "Principal Outstanding"],
    "trend": null,
    "to_start_date": null,
    "to_end_date": null,
    "growth": null,
    "variables_grpby": ["Zone", "Region", "Branch", "RM Name"],
    "filters": {{}},
    "not_in": {{}},
    "num_filter": {{}},
    "percent": false,
    "top": "1",
    "bottom": null
}}

Example 6:
User Question: Top 2 zones by Housing Loan in the year 2019

{{
    "start_date": "01-01-2019",
    "end_date": "31-12-2019",
    "time_stamp_col": "Due Date",
    "agg_columns": ["Housing Loan"],
    "trend": null,
    "to_start_date": null,
    "to_end_date": null,
    "growth": null,
    "variables_grpby": ["Zone"],
    "filters": {{"Product": ["Home Loan"]}},
    "not_in": {{}},
    "num_filter": {{}},
    "percent": false,
    "top": "2",
    "bottom": null
}}

Our test dataset has the following columns: {json_data}

User Question (to be converted): {{user_question}}'''

user_question = "Which pokemon has the highest attack and which has lowest defense?"

Can anyone assist with this?
Idea or request for content:
No response

you may use pandas agent
from langchain.agents import create_pandas_dataframe_agent

df = pd.read_csv('csv path')
pd_agent = create_pandas_dataframe_agent(OpenAI(temperature=0),
                         df,
                         verbose=True)

pd_agent.run('some question on dataframe')

req.txt

langchain==0.0.281
langchain-experimental==0.0.42

I assume that your query actually relates to building your own prompt and creating your own agent . The template that you have used doesn't require a csv agent and I suggest using any other chat model for this as well would yield good results.
Here is how you could do that without a csv agent.
prompt = ChatPromptTemplate.from_template(prompt_template)
from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI(temperature=0)
agent = (
              {
    "json_data": lambda x : x["json"],
   "user_question": lambda x : x["user"]
 }
| prompt
| llm
)

res=agent.invoke(

    { "json":"Pokemon , attack ,defense",
     "user" : "Which pokemon has the highest attack and which has lowest defense?"
    }
 )
print(res.content)

And here is the output to the above query
 {
"start_date": null,
"end_date": null,
"time_stamp_col": null,
"agg_columns": ["attack", "defense"],
"trend": null,
"to_start_date": null,
"to_end_date": null,
"growth": null,
"variables_grpby": [],
"filters": {},
"not_in": {},
"num_filter": {},
"percent": false,
"top": "1",
"bottom": "1"
}

Hope this answer's you question :)


Added StyleX

stylex ·
StyleX is a simple, easy-to-use JavaScript syntax and compiler for styling web apps.
StyleX combines the strengths and avoids the weaknesses of both inline styles and static CSS. Defining and using styles requires only local knowledge within a component, and avoids specificity issues while retaining features like Media Queries. StyleX builds optimized styles using collision-free atomic CSS which is superior to what could be authored and maintained by hand
Features at a glance
Scalable

Minimize CSS output with atomic CSS.
The CSS size plateaus even as the number of components grows.
Styles remain readable and maintainable within growing codebases.

Predictable

Class names on an element can only directly style that same element.
No specificity issues.
“The last style applied always wins!”

Composable

Apply styles conditionally.
Merge and compose arbitrary styles across component and file boundaries.
Use local constants and expressions to keep styles DRY. Or repeat styles without worrying about performance.

Fast

No runtime style injection.
All styles are bundled in a static CSS file at compile-time.
Optimized runtime for merging class names.

Type-Safe

Type-safe APIs.
Type-safe styles.
Type-safe themes.

Example
Here is a simple example of stylex use:
import stylex from '@stylexjs/stylex';

const styles = stylex.create({
  root: {
    padding: 10,
  },
  element: {
    backgroundColor: 'red',
  },
});

const styleProps = stylex.apply(styles.root, styles.element);

@Hamza12700 thank you for updating the list and adding new category. All merged. 🎉


Error version 0.0.28 on Android

On Android has error: Camera No Authorized on v 0.0.28

same issue

0.0.25 is work


[lncli] addinvoice reveales private channels by default

Background
the command lncli addinvoice reveals route hints in case you have private channels by default. Only setting the private flag to false prevents that.
Your environment

version of lncli : v0.14.3-beta.rc1

Steps to reproduce
Just create an invoice with lncli addinvoice 100 and decode paymentrequest with lncli decodepayreq "your_payment_request" you should see the routing hints filled with your private channels
Expected behaviour
Only if I select the flag --private, routing hints should be revealed
Actual behaviour
Private Routing hints get revealed by default

In case this was not decided intentional the bug is in the file:
lnd/cmd/lncli/cmd_invoice.go where the flag private is specified by default to true:
cli.BoolTFlag{
			Name: "private",
			Usage: "encode routing hints in the invoice with " +
				"private channels in order to assist the " +
				"payer in reaching you",
		}

should be:
cli.BoolFlag{ (without the T)

nice one!

In addition to this issue, I was wondering whether its smart to include all private channels into the payment request. I have 3 channels (private) to the same node, and the routing hints include all of them in the routing hints, though its not really necessary bc, lnd can use whatever channel it wants to forward the payment to a peer, hence I would make revealing routing hints more selectable, what are your thoughts ?

 "route_hints": [
        {
            "hop_hints": [
                {
                    "node_id": "03ceddba52e1dbbc2927defa9c695166a9890937915453aec00c8d89d33ddeea66",
                    "chan_id": "3128110581088256",
                    "fee_base_msat": 1000,
                    "fee_proportional_millionths": 1,
                    "cltv_expiry_delta": 40
                }
            ]
        },
        {
            "hop_hints": [
                {
                    "node_id": "03ceddba52e1dbbc2927defa9c695166a9890937915453aec00c8d89d33ddeea66",
                    "chan_id": "3124812046204928",
                    "fee_base_msat": 1000,
                    "fee_proportional_millionths": 1,
                    "cltv_expiry_delta": 40
                }
            ]
        },
        {
            "hop_hints": [
                {
                    "node_id": "03ceddba52e1dbbc2927defa9c695166a9890937915453aec00c8d89d33ddeea66",
                    "chan_id": "3108319371788288",
                    "fee_base_msat": 1000,
                    "fee_proportional_millionths": 1,
                    "cltv_expiry_delta": 40
                }
            ]
        }

All to the same node, which could be improved imo

Nice catch! Going to create a fix soon. About the second issue, see https://github.com/lightningnetwork/lnd/pull/4679.


Pre 2.50.0 Cut: Python image requirements update.

See #27944

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    unknown package:
        Expected sha256 7215847ce88a85ce39baf9e89070cb860c98fdddacbaa6c0da3ffb31b3350bd5
             Got        1cd006ded27670754b6cd3dd2695320e92d9b262452676ce88a8534aee77aa66

Assuming all tests will be passed.

LGTM (in case that wasn't implied by the merge lol)


Training available?

I have looked at the code only briefly, can one train the network up-to-date around it for own (new) objects adapt?

No, not yet :)

No, not yet :)

Looking forward to training code


GCE PD topology support

Feature Description

One-line feature description (can be used as a release note): GCE PD topology support
Primary contact (assignee): @msau42
Responsible SIGs: sig-storage
Design proposal link (community repo):
Link to e2e and/or unit tests:
Reviewer(s): @saad-ali @verult
Approver (likely from SIG/area to which feature belongs): @saad-ali
Feature target (which target equals to which milestone):

Alpha release target (x.y) 1.12
Beta release target (x.y) 1.13
Stable release target (x.y) 1.14

/assign
/assign @verult

@msau42 @verult -- We're doing one more sweep of the 1.11 Features tracking spreadsheet.
Would you mind filling in any incomplete / blank fields for this feature's line item?

This has been deferred to 1.12

Thanks for the update, @msau42!

@msau42 @verult @kubernetes/sig-storage-feature-requests --
This feature was removed from the previous milestone, so we'd like to check in and see if there are any plans for this in Kubernetes 1.12.
If so, please ensure that this issue is up-to-date with ALL of the following information:

One-line feature description (can be used as a release note):
Primary contact (assignee):
Responsible SIGs:
Design proposal link (community repo):
Link to e2e and/or unit tests:
Reviewer(s) - (for LGTM) recommend having 2+ reviewers (at least one from code-area OWNERS file) agreed to review. Reviewers from multiple companies preferred:
Approver (likely from SIG/area to which feature belongs):
Feature target (which target equals to which milestone):

Alpha release target (x.y)
Beta release target (x.y)
Stable release target (x.y)

Set the following:

Description
Assignee(s)
Labels:

stage/{alpha,beta,stable}
sig/*
kind/feature

Please note that the Features Freeze is July 31st, after which any incomplete Feature issues will require an Exception request to be accepted into the milestone.
In addition, please be aware of the following relevant deadlines:

Docs deadline (open placeholder PRs): 8/21
Test case freeze: 8/28

Please make sure all PRs for features have relevant release notes included as well.
Happy shipping!
/cc @justaugustus @kacole2 @robertsandoval @rajendar38

Thanks for the update, @msau42!

Doc placeholder: https://github.com/kubernetes/website/pull/9939

Thanks!

@justaugustus this was mistakenly marked as alpha.  It should be beta, as this is part of the larger topology feature, which is moving to beta.  #561

@msau42 @verult --
Any update on docs status for this feature? Are we still planning to land it for 1.12?
At this point, code freeze is upon us, and docs are overdue.
If we don't here anything back regarding this feature ASAP, we'll need to remove it from the milestone.
cc: @zparnold @jimangel @shtatfeld

Yes this feature will be beta in 1.12.  According to the 1.12 release schedule, docs PRs are not due until the 7th: https://github.com/kubernetes/sig-release/tree/master/releases/release-1.12

Got it. Thanks for the update!

Kubernetes 1.13 is going to be a 'stable' release since the cycle is only 10 weeks. We encourage no big alpha features and only consider adding this feature if you have a high level of confidence it will make code slush by 11/09. Are there plans for this enhancement to graduate to alpha/beta/stable within the 1.13 release cycle? If not, can you please remove it from the 1.12 milestone or add it to 1.13?
We are also now encouraging that every new enhancement aligns with a KEP. If a KEP has been created, please link to it in the original post. Please take the opportunity to develop a KEP

Yes, we plan to move this to GA in 1.13.

@msau42 is there a list of pending PRs or issues you are tracking for this feature to go to GA? Is this related to https://github.com/kubernetes/features/issues/561 ?

This feature is a subset of #490, but doesn't have any separate tasks that aren't already covered.  Would it be easier to close this and just track #490?

The only changes needed to the docs are to remove the beta designation.

@msau42 i'm in favor of tracking at #490 is @AishSundar is. In addition, I'm assuming this is an in-tree driver and not CSI/out of tree?

Correct, CSI support is being tracked as an independent feature.

since we closed out AWS. Let's follow along here. thanks for the explanation
/milestone clear
/close


match import to S3 failing with EISDIR

I am getting an error when attempting to run fastlane match import:
/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/aws-sdk-core-3.159.0/lib/seahorse/client/plugins/response_target.rb:67:in `initialize': \e[31m[!] Is a directory @ rb_sysopen - /var/folders/h9/bdpkz4d95qsf34yx0nfjvhkm0000gn/T/d20221026-38814-mgwjr/\e[0m (Errno::EISDIR)

matchfile:
s3_bucket("app")

storage_mode("s3")
s3_region("us-east-1")
s3_object_prefix("ios/certs")
skip_certificate_matching(true)
skip_docs(true)
git_url("")

type("appstore")
team_id("...")
username("...")

fastlane env output:
✅ fastlane environment ✅

### Stack

| Key                         | Value                                       |
| --------------------------- | ------------------------------------------- |
| OS                          | 12.6                                        |
| Ruby                        | 3.0.2                                       |
| Bundler?                    | false                                       |
| Git                         | git version 2.32.1 (Apple Git-133)          |
| Installation Source         | ~/.rvm/rubies/ruby-3.0.2/bin/fastlane       |
| Host                        | macOS 12.6 (21G115)                         |
| Ruby Lib Dir                | ~/.rvm/rubies/ruby-3.0.2/lib                |
| OpenSSL Version             | OpenSSL 1.1.1r  11 Oct 2022                 |
| Is contained                | false                                       |
| Is homebrew                 | false                                       |
| Is installed via Fabric.app | false                                       |
| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version               | 13.4.1                                      |
| Swift Version               | 5.6.1                                       |

### System Locale

| Variable | Value       |   |
| -------- | ----------- | - |
| LANG     | en_US.UTF-8 | ✅ |
| LC_ALL   |             |   |
| LANGUAGE |             |   |

### fastlane files:

**No Fastfile found**

**No Appfile found**

### fastlane gems

| Gem      | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.210.1 | ✅ Up-To-Date  |

### Loaded fastlane plugins:

**No plugins Loaded**

Loaded gems

| Gem                             | Version      |
| ------------------------------- | ------------ |
| did_you_mean                    | 1.5.0        |
| executable-hooks                | 1.6.1        |
| bundler-unload                  | 1.0.2        |
| rubygems-bundler                | 1.4.5        |
| bundler                         | 2.2.22       |
| pathname                        | 0.1.0        |
| atomos                          | 0.1.3        |
| rexml                           | 3.2.5        |
| CFPropertyList                  | 3.0.5        |
| claide                          | 1.1.0        |
| colored2                        | 3.1.2        |
| nanaimo                         | 0.3.0        |
| xcodeproj                       | 1.22.0       |
| rouge                           | 2.0.7        |
| xcpretty                        | 0.3.0        |
| terminal-notifier               | 2.0.0        |
| unicode-display_width           | 1.8.0        |
| terminal-table                  | 1.8.0        |
| plist                           | 3.6.0        |
| public_suffix                   | 5.0.0        |
| addressable                     | 2.8.1        |
| multipart-post                  | 2.0.0        |
| word_wrap                       | 1.0.0        |
| optparse                        | 0.1.1        |
| tty-screen                      | 0.8.1        |
| tty-cursor                      | 0.7.1        |
| tty-spinner                     | 0.9.3        |
| artifactory                     | 3.0.15       |
| babosa                          | 1.0.4        |
| colored                         | 1.2          |
| highline                        | 2.0.3        |
| commander                       | 4.6.0        |
| excon                           | 0.93.0       |
| faraday-em_http                 | 1.0.0        |
| faraday-em_synchrony            | 1.0.0        |
| faraday-excon                   | 1.1.0        |
| faraday-httpclient              | 1.0.1        |
| faraday-multipart               | 1.0.4        |
| faraday-net_http                | 1.0.1        |
| faraday-net_http_persistent     | 1.2.0        |
| faraday-patron                  | 1.0.0        |
| faraday-rack                    | 1.0.0        |
| faraday-retry                   | 1.0.3        |
| ruby2_keywords                  | 0.0.5        |
| faraday                         | 1.10.2       |
| unf_ext                         | <IP_ADDRESS>      |
| unf                             | 0.1.4        |
| domain_name                     | 0.5.20190701 |
| http-cookie                     | 1.0.5        |
| faraday-cookie_jar              | 0.0.7        |
| faraday_middleware              | 1.2.0        |
| fastimage                       | 2.2.6        |
| gh_inspector                    | 1.1.3        |
| mini_magick                     | 4.11.0       |
| naturally                       | 2.2.1        |
| rubyzip                         | 2.3.2        |
| security                        | 0.1.3        |
| xcpretty-travis-formatter       | 1.0.1        |
| dotenv                          | 2.8.1        |
| simctl                          | 1.6.8        |
| jwt                             | 2.5.0        |
| uber                            | 0.1.0        |
| declarative                     | 0.0.20       |
| trailblazer-option              | 0.1.2        |
| representable                   | 3.2.0        |
| retriable                       | 3.1.2        |
| mini_mime                       | 1.1.2        |
| memoist                         | 0.16.2       |
| multi_json                      | 1.15.0       |
| os                              | 1.1.4        |
| signet                          | 0.17.0       |
| googleauth                      | 1.2.0        |
| httpclient                      | 2.8.3        |
| webrick                         | 1.7.0        |
| google-apis-core                | 0.9.0        |
| google-apis-playcustomapp_v1    | 0.11.0       |
| google-apis-androidpublisher_v3 | 0.29.0       |
| google-cloud-env                | 1.6.0        |
| google-cloud-errors             | 1.3.0        |
| google-cloud-core               | 1.6.0        |
| google-apis-iamcredentials_v1   | 0.15.0       |
| google-apis-storage_v1          | 0.19.0       |
| digest-crc                      | 0.6.4        |
| google-cloud-storage            | 1.43.0       |
| emoji_regex                     | 3.2.3        |
| jmespath                        | 1.6.1        |
| aws-partitions                  | 1.644.0      |
| aws-eventstream                 | 1.2.0        |
| aws-sigv4                       | 1.5.2        |
| aws-sdk-core                    | 3.159.0      |
| aws-sdk-kms                     | 1.58.0       |
| aws-sdk-s3                      | 1.114.0      |
| tsort                           | 0.1.0        |
| uri                             | 0.10.1       |
| set                             | 1.0.1        |
| json                            | 2.6.2        |
| rake                            | 13.0.6       |
| forwardable                     | 1.3.2        |
| logger                          | 1.4.3        |
| shellwords                      | 0.1.0        |
| cgi                             | 0.2.0        |
| date                            | 3.1.0        |
| timeout                         | 0.1.1        |
| stringio                        | 3.0.0        |
| securerandom                    | 0.1.0        |
| openssl                         | 2.2.0        |
| io-nonblock                     | 0.1.0        |
| ipaddr                          | 1.2.2        |
| io-wait                         | 0.1.0        |
| zlib                            | 1.1.0        |
| resolv                          | 0.2.0        |
| digest                          | 3.0.0        |
| time                            | 0.1.0        |
| open-uri                        | 0.1.0        |
| mutex_m                         | 0.1.1        |
| net-protocol                    | 0.1.0        |
| ostruct                         | 0.3.1        |
| english                         | 0.7.1        |
| erb                             | 2.2.0        |
| strscan                         | 3.0.0        |
| abbrev                          | 0.1.0        |
| io-console                      | 0.5.7        |
| tempfile                        | 0.1.1        |
| delegate                        | 0.2.0        |
| fileutils                       | 1.5.0        |
| tmpdir                          | 0.1.2        |
| base64                          | 0.1.0        |
| singleton                       | 0.1.1        |
| net-http                        | 0.1.1        |
| open3                           | 0.1.1        |
| nkf                             | 0.1.0        |
| prettyprint                     | 0.1.0        |
| pp                              | 0.1.0        |
| find                            | 0.1.0        |
| yaml                            | 0.1.1        |
| psych                           | 3.3.0        |

*generated on:* **2022-10-26**

same error but with different version
/usr/local/Cellar/fastlane/2.209.1/libexec/gems/aws-sdk-core-3.132.0/lib/seahorse/client/plugins/response_target.rb:67:in initialize': Is a directory @ rb_sysopen - /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/d20221102-95914-sc1r1x/ (Errno::EISDIR)`

I compare this file (response_target.rb) between @Eldjotnar‘s version and my version, and search this file update history in this repo (https://github.com/aws/aws-sdk-ruby)
since this file doesn't changed in two years and we use different version bug get same error. plus it shell work fine when last week in my case.
and i see the value indeed a directory like "/var/folders/zz/xxxxx/T/xxx/" when i try to print it. the response is "" at first time.
if skip the first item. the shell will be work fine again.
so i think maybe the response has some changed from AWS like insert a new empty string item at first in response array.  but i don't have build log from earlier version. can't prove it.
but doesn't matter. i just want know why and what happen actually.

there is temporary way to fix it: change response_target.rb at line 67
                                $VAR1 = target[target.length - 1]                 if $VAR1 == "/"                     target #or some file address                 else                     ManagedFile.new("#{target}", 'w+b')                 end
i know that if the shell run on CI, this way can't work, but if at local agent. hope it will be helpful
if there has some solution by official or some AWS API i don't know.
please tell me so i can fix this problem on my CI 😭


Normalize all Profile Link urls

Adding regex to validate all profile_link urls to make sure they are correct

ProfileLinks that I have questions on:

Google+: How to best deal with custom urls vs non custom (having + for custom)
Battle.net: not sure of proper format (if someone can just give me example urls)
Tumblr: I am not even sure how/what to validate for this because of all the different formats
Kickstarter: uhhhhhh guess i'll do this but it is questionable
Patreon: need example urls of what we want specifically

Battle.net doesn't actually have URLs, just tags in the format of <Name>#<Id>


Configuration#6:Step#1: simulating alpha_S=0.4, matter: q_0=1 | matterlbt: q_0=2: matterlbt06

run the simulation with the above config by jetscape,
transfer the final state hadron to the related directory named as config-XX-final-state-hadrons
after doing step1 on all 12 simulations go to step 2 for the configurationX

port to Excel for overleaf


Set script on all mand glyphs to fix GPOS issues

Fixes https://github.com/googlefonts/noto-fonts/issues/1504

What is it that needs script for anchors to work right? (I’m just starting to learn about fontmake and I’m wondering if this is a bug in fontmake instead of in this font.)

In Glyphs there is information associated with each glyph for script, category (Letter or Mark are the main two we care about), and subcategory (Nonspacing is what matters the most for marks to get GDEF class 3). That information isn't stored in the Glyphs file by default so it requires a Python script to run and store it. I wouldn't consider it a bug in fontmake because fontmake can't possibly know what script is associated with a glyph unless it has a Unicode value associated with a script or is named in a way that can be parsed. That works half the time, but what about the other half? Since fontmake builds a GDEF based on that information we need to give it somehow. Storing the correct properties in the Glyphs file is one way to provide that and what we've done for half of Noto to ensure these GDEF classes get set correctly.
For this one I made it store the script tag for each 'mand' glyph in the Glyphs file so when fontmake is building GPOS it correctly associates 'mand' bases with 'mand' marks and then GPOS works as expected.

@punchcutter ： You updated the glyphs file. In the meantime I switched this one and many others (but not all) to UFOs+designspace... What I did instead is took your src/NotoSansMandaic.glyphs , converted to UFOs+designspace and updated the master with it.
Therefore this pull request is not required any longer because it's applied in the tree already. Please advise me if I can close it.

Sounds good!


Ability to listen to CompositedTransformTarget on move

Use case
Hello, I'm working on an open source tooltip found here (almost a one to one mapping of the Flutter Tooltip except for a few key changes) and recently thought to move the target of the tooltip around and found out it's not really possible (as far I know) to listen to the transforms happening from the CompositedTransformTarget.
I want to know when a transform happens so that I can update positioning logic of the tooltip. If we were able to listen to when the leader changes, we could recalculate position, offset, etc. Here's an example video of what currently happens (this should be the same for the regular tooltip if it weren't dismissed from its hide timer). In the video, I've set the child target to move to the bottom right using an AnimatedAlign from center to bottom right.
https://user-images.githubusercontent.com/29642168/135658309-d92d8d88-a837-4ffd-84dd-92ccf206f1ac.mp4
The tooltip render object above the target has the necessary logic to position itself given the target size, target position and the constraints of the overlay but doesn't because it's never told to. In theory I'd like it to look like the picture below (gotten after doing a hot reload, which gets the correct position again via calling OverlayEntry.builder which finds the new position of the target child through final box = context.findRenderObject() as RenderBox?;)

Proposal
I think it'd make sense to make LayerLink a listenable that updates every time the target is moved. This would give users the ability to update the follower layout.
Another idea is to make CompositedTransformFollower return a builder instead of a child property. This builder could run every time the transform changes and we could even pass through the transform perhaps

Just a link to related and recently closed PR which might be helpful https://github.com/flutter/flutter/pull/112106


Improve Readme

[x] Add a banner image
[ ] add tags
[x] Add table of contents
[ ] add content

@all-contributors please add @hayat-tamboli for design, code, maintenance and docs


Alt keys losing focus when another key is pressed

Maybe I'm just going crazy, but I can't for the life of me figure out what's going on. I'm just trying to switch my leftalt and leftmeta keys. With my current configuration, leftshift, leftcontrol, rightshift, and rightcontrol all work correctly if I hold and press another key (like leftcontrol + c). If I try to open the Terminal with my shortcut leftcontrol + leftalt + "T", leftalt clears as soon as I hit "T" (or any other key for that matter...)
[ids]

*

[main]

leftalt = leftmeta
leftmeta = leftalt

# Map right-side keys to themselves, otherwise they act as their left counterparts
rightalt = rightalt
rightcontrol = rightcontrol
rightshift = rightshift

Am I doing something wrong?

Yes, mapping directly to modifier keys interferes with keyd's modifier layer logic. If you have inspected the logs you would have seen a warning about this, though it is probably my fault for not documenting it better.
You probably want:
alt = layer(meta)
meta = layer(alt)

unless you are doing something unorthodox. Mapping the right modifiers to themselves is probably a bad idea unless you have a good reason for doing this. Most applications use modifier masks which don't distinguish between their left and right activation keys. See also #85 and #86.

Wow. I'm embarrassed now... I saw the logs a lot while trying to troubleshoot, but I just realized I didn't notice that systemctl status was cutting off the "you probably want layer() instead."
Also, I'm trying to still wrap my head around the layer functionality. Am I correct in understanding that the layer function is a non-destructive way of modifying keys by adding instructions to cover up the native key function, whereas I was attempting to replace the native key function instead?
Also, thanks for the references about the right-side keys. I had no specific need for them to be separate, I just assumed it would be best if they all functioned as their particular keys. I'll leave them alone unless I run into a reason to map them.
Thank you so much for your work on this project and your help. I really appreciate this utility!

Am I correct in understanding that the layer function is a non-destructive way of modifying keys by adding instructions to cover up the native key function, whereas I was attempting to replace the native key function instead?

Layers are just transiently active keymaps. If you are familiar with the concept of a layer in other remapping tools (e.g QMK) the concept is the same in keyd.
The main different between keyd and other remapping tools is that keyd has a notion of 'modifier layers'  which can be conceived of as layers which inherit the properties of the modifiers from which they are descended.
For example, you might define a custom control layer like so:
[main]
capslock = layer(mycontrol)

[mycontrol:C]
a = A-tab

which will cause capslock to behave like control except when a is pressed, in which case it will emit A-tab. By default modifier keys (e.g leftshift) are mapped to empty modifier layers of the same name (e.g shift) which allows you to do things like this:
[shift]
c = C-c

without having to explicitly remap leftshift.
The upshot of all this is that you can (and should) treat modifiers as layers within keyd (with some caveats).

Ah, okay. That makes a lot more sense. Thank you for taking the time to explain this to me!


Cannot find Menu > Customize > color scheme

Using ff version 95.0.2. Unable to find color-scheme option. Please help

it's moved to about:preferences, under Language and Appearance

I have the same problem. I'm using Mozilla Firefox 118.0.1

Same here, I'm on 125.0.2, installed through snap if that's at all related

+1


0.9.10 – Memory leak found while using<EMAIL_ADDRESS>

Description:
While using @.root reference inside template it seems that component Elements are not removed from memory when the component is torndown.
Workaround
Set on Ractive.defaults a key with root instance and use it in template:
https://jsfiddle.net/sLb5acgm/
Versions affected:
0.9.10
The issue is not present on edge version.
Platforms affected:
Tested on Chrome.
Reproduction:
https://jsfiddle.net/1j6webbd/

Wait 2 seconds
Perform a memory heap snapshot
Search "Detached"
Inspect "Detached DOM tree / 2 entries"

Ractive.components.MyComponent = Ractive.extend({
  template: `

My component

{{@.root.get('rootFunction')()}}

  `,
});

const r = window.r = Ractive.defaults.app = new Ractive({
  template: `
<EMAIL_ADDRESS>memory Leak

  {{#if showComponent}}
    <MyComponent/>
  {{/if}}
  `,
  data: {
    who: 'World',
    showComponent: true,
    rootFunction() {
      return 'rootFunctionOutput';
    },
  },
});

r.render('#main');

setTimeout(() => {
  r.set({ showComponent: false });
}, 1500);

The special model to handle ractive instances that can be created for any given root model wasn't being properly torn down. This is now fixed on edge. Thanks for the report!


 Ive seen other users have reported this same issue and it is not a question for help it just wont let me pass with the corect answer.
 Please visit the help room linked above for assistance with this challenge.

Thank you for reporting this issue.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "Help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding.


Wrong rearrange of local declarations

Hello Jörg-Michael,
it's me again. I have a problem with an old programme. When I run the ABAP Cleaner, the declaration is moved to the top and the variable in the MODULE loses its reference to it. So i can't activate it anymore. I think the variable should be moved to the very beginning. I have narrowed down the programme as much as possible so that the error continues to occur. Enclosed is the profile I am using. The ABAP Cleaner version is 1.30.1.

REPORT.
DATA lv_any TYPE sy-ucomm.

PARAMETER variante TYPE slis_vari.

INITIALIZATION.

AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR variante.

  MODULE test INPUT.
    DATA lv_problem TYPE c LENGTH 20.
    lv_problem = 'Something'.
  ENDMODULE.

If i put a "START-OF-SELECTION" between the Value-Request and the Module it works fine.

Hi Joachim,
thanks very much for reporting this. This is indeed an error in how ABAP cleaner handles MODULE ... ENDMODULE sections, will fix asap!
Kind regards,
Jörg-Michael

Hi Joachim,
this will be fixed with the next release. A side-effect of this bug was that ABAP cleaner indented MODULE ... ENDMODULE by 2 spaces, which was also wrong (and differs from PrettyPrinter behavior).
Kind regards,
Jörg-Michael

Hi Joachim,
thanks again for reporting this bug – this should now be fixed with version 1.13.2, which was just released!
Kind regards,
Jörg-Michael

Hello Jörg-Michael,
that went very quickly again 👍. I am happy if I can help.
Kind regards,
Joachim


Constructors

This adds fn new constructors to most tables and records, and also adds per-format constructors to multi-format tables.
Getting this to work requires a bit more analysis during codegen, since the format groups need to know the arguments for the constructors of each format variant. My approach to this was to do a minor refactor, where we now store our items as an IndexMap<Ident, Item>. This map can then also be reused to generate the 'known idents' map that we used to resolve fields.
Overall I'm quite happy with this; it's probably just a few hundred lines of human code, but it goes and adds new functionality across all of our existing tables and records.

it's probably just a few hundred lines of human code, but it goes and adds new functionality across all of our existing tables and records.

🦸


CommitmentContainer: compatibility of KZG commitments and other commitment types in SSZ

This introduces a new type to SSZ, that is very similar to the existing Container, but allows two new things:

Override the hash_tree_root computation
Verify embedded commitments

It still encodes/decodes the same.
With this type of container, we can implement two SSZ types that have the same output for hash_tree_root:

A bare commitment (E.g. an encoded G1 point: a KZG commitment)
A commitment-container that encodes the full data that was committed to. And optionally embeds the commitment, to avoid repeated computation.

The feature to embed the commitment may also be useful to samples, and other future commitment types that are cheaper to verify than to produce. This is not like a regular cache, as it is encoded and can then be quickly verified by another actor on the network, instead of computing the commitment.
When the bare commitment and data-backed commitment have the same hash_tree_root, this also means that the signing-root matches, and signatures over these two are the same. This enables the sharding spec to sign/verify headers everywhere, and use the signature for the full blob of shard-data. E.g. a data-tx (small header) is created based on the full data, then selected by a proposer (adds their signature), and that signature can then apply to the full blob of data, published by the builder.
With sharding specifically, this reduces the contents in the shard header, and removes the trust assumption that the SSZ data-root matches the KZG data-root. I.e. data-sampling will be enough to ensure that commitment is good, which allows us to confirm data even with < 2/3 attestations at the end of the 2 epoch attestation inclusion period (if the other header data does not have more votes, and the data sampling shows it is available, which is part of the forkchoice). Thanks to @vbuterin for finding this.
This is a draft, feedback welcome. After ACK of general direction, I'll implement this functionality in remerkleable to enable the pyspec to utilize it.

*Fixed the TOC in the docs

Looks like a good solution to me!
Just a spontaneous idea: may be it could be done in a more generic way? I.e. by attributing any ssz member/structure with a custom hash_tree_root function. That way
# Some Python 'pseudo-code'
class DataCommitmentPoints(Container):
    points: List[BLSPoint, POINTS_PER_SAMPLE * MAX_SAMPLES_PER_BLOB] (hash_fun = bls_commit_to_data)
    samples_count: uint64

fun bls_commit_to_data(point: List[BLSPoint]) -> BLSCommitment
    ...

I.e. hash_tree_root(points) would be just it's BLS commitment
Thus hash_tree_root(DataCommitment) == hash_tree_root(DataCommitmentPoints)
Verification of the commitment could be a part of a higher-level spec (not SSZ spec). E.g. attesters from a shard committee should match ShardBlobHeader against ShardBlob and verify ShardBlobHeader.body_summary.commitment.point against ShardBlob.body.data.points
Absolutely not sure if this approach is feasible and somewhat better than original. Just a slightly different view

@Nashatyrev Thank you for the suggestion, but I think just containers should be sufficient, we can add it for other types later if necessary (better than removing later if unused/unwanted). Also, I opted for CommitmentContainer instead of Container so the difference is clear. Having to check for an override in an existing SSZ type only makes things more complicated.

do we have any other types of commitments that we might use this on?

@djrtwo
Not that I am aware of, but some examples of popular ones:

Simple hash functions (keccak256, sha3-256, sha-256 etc.): take the data, hash it to 32 bytes, and return that as output. The commitment type is Bytes32 and matches the same hash_tree_root (HTR)
Hash functions with smaller/bigger outputs (e.g. sha-512): take the data, hash it to (e.g. 64 bytes), then represent that as the ideal SSZ representation of the commitment (e.g. Bytes64), then return the HTR of that. The commitment HTR will match the commitment-container HTR.
Crypto commitments over large data that are expensive to compute, but not to verify (maybe verkle trees): define the commitment-container type to contain both the data and the commitment. The commitment can be verified to match the data, instead of
Crypto commitments that cannot perfectly be described with SSZ (e.g. a BLS point has deserialization conditions): where suitable, the verification function can be used to detect the contained data (e.g. byte vector) as invalid. Generally I prefer to just default to HTR of the serialized contents (e.g. we do this for serialized pubkeys), but if we have to, we can abort before computing a HTR.

And more abstractly:

CommitmentContainer, like a Container can contain any data, to represent any serialized input, and optionally the corresponding serialized commitment. Wrapping the data with a container does NOT mean the commitment has to be a container type.
The HTR override of CommitmentContainer can take this data, convert it to the corresponding SSZ type of the commitment (and maybe encode some of the data properties, like the length, like in this shard data case), and take SSZ HTR of that. This makes the binary tree have the exact same shape right up to the commitment contents.
It supports verifying an embedded commitment separately, so we don't require a commitment to be recomputed on every peer of the network. HTR has no return/exception that indicates failure, thus the separate verification function. It can be used for extended data validation of the container contents as well.


Misleading error message when the raml file does not exist

Originally reported in https://github.com/raml-org/raml-js-parser/issues/153
When I run raml2html and point to an invalid file path, it produces this output:
Error parsing: version validation
The first line must be: '#%RAML 0.8'
  in "undefined", line 1, column 1

I would expect a message like "file not found".

This error is generated by raml-js-parser when you give it an invalid file. So the misleading error should be fixed by them.

I'm still seeing this error in raml2html --version
3.0.1
Has that picked up the new raml2obj that supposedly fixes this problem?

No.

On 14 Oct 2016, at 20:04, Dr. Ernie Prabhakar<EMAIL_ADDRESS>wrote:
I'm still seeing this error in raml2html --version
3.0.1
Has that picked up the new raml2obj that supposedly fixes this problem?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.


suggestions and enhancements

firstly, it's important to say: I really liked the tool! Thanks for developing! I've seen a lot of use for it since I found it.
I wanted to suggest to you, who are already experts, to develop another tool for Prisma, somewhat related to this one.
It is always very bad to start the typescript code base following DDD (domain driven design) standards right at the beginning of the project, as it ends up, in a way, being exhaustingly repetitive work (to create entities, value objects, etc.). Certainly, it would be great if we could also count on a tool developed by you to generate at least the initial typescript code base (entities, value objects, services, etc.), following DDD standards, from Prisma schema.
I loved the idea of having control based on what is stated in the comments, this is fantastic and saves a lot of work.
thank you again!

You're meaning that generating DTO structures based on the prisma schema including comments?
It sounds good idea, but I know that there're some similar purposed libraries (I've not used them yet).

I can't understand how prisma-markdown can be enhanced to accomplish it.


feat: add username input in proxy router configuration

Instead of main title "Configure proxy router" I would consider something like "Configure default pool". Please confirm that with Scott/Ryan


Add helm maintainers to kubernetes organization

Before the helm maintainers can become members of the deployment manager maintainers team, per #281, they must be added to the kubernetes organization.

Thanks, @vaikas-google.