Support for LSTM and Autoencoder

Hi, I'm trying to implement a multivariate time series prediction model using LSTM, and an anomaly detection model using autoencoders. I have successfully converted them to a TFLite version and tried to upload them in my ESP32.
However I get the following error:
Only 1 subgraph is currently supported.
Are LSTMs and anomaly detection supported by this library? If so, are there special configurations that I need to do?
Thanks!

@expeon07 could you please share with me the code for converting the LSTM model to TFLite?
I have not succeeded in the conversion. Thank you

@expeon07 could you please share with me the code for converting the LSTM model to TFLite? I have not succeeded in the conversion. Thank you

Hi, I unrolled the LSTM layer by turning unroll=True (default to false)

@expeon07  please I am getting it clear.
Is that turning of  unroll=True (default to false) was done during model training of during model conversion (TFliteConverter)?
kindly, I request more explanation or a close orientation.
NB: I don't have much experience in coding

@expeon07 please I am not getting it clear. Is that turning of unroll=True (default to false) was done during model training of during model conversion (TFliteConverter)? kindly, I request more explanation or a close orientation. NB: I don't have much experience in coding

Hi, I think it's during the model training. I cannot remember as I only tried it months ago.  You can ask the developers in the TFlite repo as well

@expeon07 Noted with thanks


JAV-222 when register schema failed, can not find the reason from log.

Changes Unknown when pulling 5ee010940be7712cbb925f9d2f9eed5e8a575a1f on wujimin:register-schema-fail-reason into ** on ServiceComb:master**.


Update containerd to a6a0c8b6e36415a151d93d096c1c0af9e0bd7977.

We've got more test coverage in the cri repo.
Let's update containerd to include https://github.com/containerd/containerd/pull/3711, so that we get more test coverage before cherrypicking it.
Signed-off-by: Lantao Liu<EMAIL_ADDRESS>

@Random-Liu - Is there a general strategy for updating this? Or said differently, is there a future where cri moves into containerd to avoid this need?

Triggered rerun.

Is there a general strategy for updating this? Or said differently, is there a future where cri moves into containerd to avoid this need?

Moving the CRI plugin into containerd/containerd shouldn't be too hard. The annoying part is to update all the test/release scripts and infrastructure.
For example, do we want a 1hour windows CRI validation presubmit test in the containerd repo? I think not...

The PR includes 2 test changes:

Tolerant not found error in restart test. There is a race condition that containerd event monitor may delete the pod sandbox before the test after it is killed. The state call is faster now, which somehow exposed this race.
The unknown state restart test is removed. I really don't want to remove it. However, after the runc state fix, getting container state doesn't need runc anymore, the original way to move runc around to produce a container in unknown state doesn't work any more... And I think very hard, but really can't find a way to create a container in unknown state in the test....

/test pull-cri-containerd-verify

Updated containerd again to include https://github.com/containerd/containerd/pull/3730 for the test.

/test pull-cri-containerd-verify

Apply LGTM based on LGTMs above.


Select component with no options throws error when life cycle enters componentWillUnmount

Description
Select component with no select options throws error when calling removeResizeListener in ComponentWillUnmount.
I noticed that addResizeListener(this.refs.root, this.resetInputWidth);  has been moved to ComponentDidUpdate in recent code commits(it was written in componentDidMount before). If users do nothing ,  componentDidUpdate will  be never called, i.e.  addResizeListener(this.refs.root, this.resetInputWidth); will not be called, which results in throwing error if Select with empty children option components are unmounted.
Here are the new source codes:
Select.jsx
 componentDidUpdate() {
    this.state.inputWidth = this.reference.getBoundingClientRect().width;
    addResizeListener(this.refs.root, this.resetInputWidth);
  }

  componentWillUnmount() {
    removeResizeListener(this.refs.root, this.resetInputWidth);
  }

Solution
If select has no options, it is required to push an empty object into select options array, but I don't think it is the best practice for component usage

Why should addResizeListener be put in [componentDidUpdate] instead of [componentDidMount]?


updated the example so as to make it a working example

Hi,
I am starting to learn chefspec and was using this Readme as a tutorial. However, the example provided was failing with this exception -
Cannot find a resource for apt_update on chefspec version 0.6.1
     # ./spec/default_spec.rb:6:in `block (2 levels) in <top (required)>'
     # ./spec/default_spec.rb:10:in `block (2 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # Chef::Exceptions::NoSuchResourceType:
     #   Cannot find a resource for apt_update on chefspec version 0.6.1

I was able to fix this error with the lines updated in this PR. Could you help review this please?
Thanks!

Thanks @mmukherjee


Simpler code for env usage hints.

We can just output the original os.Args in the
eval call.
Signed-off-by: David Gageot<EMAIL_ADDRESS>

@docker/machine-maintainers Can you take a look? Thanks!

Simpler + Shorter -> Better!
@nathanleclaire wdyt?

LGTM

Nice one :+1:


parse_query_string removes leading underscores

Line 264 of falcon/util/uri defines a function called parse_query_string which is used for the parsing of query parameters included in the URI of a request.  The regex being used currently excludes leading underscores (which are valid), among other things.  Recommend removing the first "[a-zA-Z]" of the regex.
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.

from falcon.util.uri import parse_query_string
parse_query_string("_id=foo")
{'id': 'foo'}

This was fixed inadvertently in #261.


Body throws exception when receiving str instead of dict

First off thank you very much for your great library. Exactly what I was looking for!!!
Environment:

Python version: 3.10
Operating system: Ubuntu
Flask version:  2.0.3
flask-openapi3 version: 1.1.4

Using for example this model
class MyModel(BaseModel):
   text: str

and the flask server is looking for the model as body
@page.post("/path/")
def post(body: MyModel):
   pass

, but the user sends the model json formated (thus as str instead of a dict)
response = requests.post(url="localhost:5000/path/", json=mymodel.json())

The wrapper throws an exception, since a str can't be mapped to the MyModel like a dict
ERROR:app:Exception on /path/ [POST]
Traceback (most recent call last):
  File "/home/user/project/venv/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/user/project/venv/lib/python3.10/site-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/user/project/venv/lib/python3.10/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/user/project/venv/lib/python3.10/site-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/home/user/project/venv/lib/python3.10/site-packages/flask_openapi3/api_blueprint.py", line 231, in wrapper
    resp = _do_wrapper(
  File "/home/user/project/venv/lib/python3.10/site-packages/flask_openapi3/do_wrapper.py", line 96, in _do_wrapper
    body_ = body(**request.get_json(silent=True) or {})
TypeError: MyModel() argument after ** must be a mapping, not str

An alternative would be to either do attempt a json.loads() before doing a body(**value) or to return 422?

this is wrong.
response = requests.post(url="localhost:5000/path/", json=mymodel.json())

i think.

response = requests.post(url="localhost:5000/path/", json=mymodel.dict())

resp = requests.post("http://localhost:5000/", data=body.json(), headers={
    "content-type": "application/json"
})

json shoud be A JSON serializable Python object.

Hey @mkdir700
I agree that the approach with
response = requests.post(url="localhost:5000/path/", json=mymodel.json())
is wrong. My point is though that ideally flask-opencti3 would handle a type mismatch better, than throwing an unhandled exception where it is not very obvious for the developer to see what the issue is.
One alternative would be to either check the value type before using the value like here https://github.com/luolingchun/flask-openapi3/blob/master/flask_openapi3/do_wrapper.py#L73-L87
So a solution could be to do (here https://github.com/luolingchun/flask-openapi3/blob/master/flask_openapi3/do_wrapper.py#L92-L96):
value = request.get_json(silent=True, force=True) or {}
if body.__custom_root_type__:
    # https://pydantic-docs.helpmanual.io/usage/models/#custom-root-types
    body_ = body(__root__=value)
else:
    body_ = body(**value)

or to set value to
value = request.get_json(silent=True, force=True) or {}
if not isinstance(value, dict):
   raise ValidationError(f"Unable to process content {value} of type {type(value)}!")
if body.__custom_root_type__:
    # https://pydantic-docs.helpmanual.io/usage/models/#custom-root-types
    body_ = body(__root__=value)
else:
    body_ = body(**value)

Regards

To improve the robustness, I will fix it.
Support for converting str to dict, which will raise 422 exceptions if the conversion is wrong.

release v2.0.0rc2


Adding API ACLs to Configuration overview

Adding API ACLs to Configuration overview
Including Dapr API ACLs to Configuration overview topic

@AaronCrawfis  please review.


fix: Last use analysis & make it an SSA pass

Description
Problem*
Resolves https://github.com/noir-lang/noir/issues/4685
Summary*
Fixes some issues with the last_use analysis and makes it into a dedicated SSA pass (after all other passes, only on 1 block acir functions).
Additional Context
One case I noticed where we don't make array sets mutable currently is in parallel if branches:
    if array[0] == 1 {
        array[1] = 10;
    } else {
        array[1] = 20;
    }

Will produce the IR:
    v137 = array_get v0, index u64 0
    v138 = eq v137, Field 1
    enable_side_effects v138
    v139 = array_set v0, index u64 1, value Field 10
    v140 = not v138
    enable_side_effects v140
    v141 = array_set mut v0, index u64 1, value Field 20
    enable_side_effects u1 1

Note that with this change we can see the second array_set is mutable and not the first. Fixing this isn't in the scope of this PR but this could be a good future optimization.
Documentation*
Check one:

[x] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Note that with this change we can see the second array_set is mutable and not the first. Fixing this isn't in the scope of this PR but this could be a good future optimization.

Would be good to make an issue for this

Note that with this change we can see the second array_set is mutable and not the first. Fixing this isn't in the scope of this PR but this could be a good future optimization.

This may be relevant to this blow-up as well (https://github.com/noir-lang/noir/issues/4688)


website: Improve "Memory System" page language

Another thing that seems suspicious to me is that Gem5 Memory System talks of "Miss Status and Handling Register"), whereas Classic Caches calls it "miss status holding register".
Though a quick google search seems to favor the latter, I'm not sure enough which is correct to propose a change either way.

It should be Miss Status Holding Register.


Unstable E2E: regression/my-account/payment-methods.e2e-spec.ts

regression/my-account/payment-methods.e2e-spec.ts fails on Jenkins.
 1) 576p resolution - Payment Methods should go to payment details page for login user should see payment method card:
     CypressError: Timed out retrying: Expected to find element: 'cx-address-form', but never found it.

PR: https://github.com/SAP/cloud-commerce-spartacus-storefront/pull/3812/files
Unable to repro locally.
Observation:

This test runs twice (First time in Desktop view then in Mobile view)

It always fails in the same location and complains that cx-address-form cannot be found (In Mobile test).

The test passes afterwards

cx-address-form will only appear when there is no existing shipping address.

Since the test passes afterwards (able to place an order) then it is most likely that a shipping address already exists.

There's additional observations that help me conclude this. Feel free to ask and I can get in a call and explain it further.
Deduction:

The user content (Shipping details/payment details) sometimes persists from Desktop view to Mobile view. A similar issue was observed in the register e2e test.
This means that when the Mobile test runs, it expects a form to pop up but it doesn't because in the Desktop view, we created a shipping address. Since a shipping address already exists, we will see the shipping cards instead of a form (Error thrown).

I applied a fix to this by using different emails for Desktop/Mobile tests. I also made sure to manually log out after the Desktop/Mobile tests are completed.


User should have option to 'reset' to saved values in stead of default values

Problem
I find it quite annoying, when you are working in a non-default scenario, often you want to go back to your 'original' slider setting, but all you can do is reset to the default setting. With singular sliders: that is doable to write down or remember the slider setting, but when you are changing a slider group, all you can do is reload the entire scenario. 😒
Slider reset

Possible solution
We might want to add a select box in the menu where you can choose your behaviour.

cc @grdw @ChaelKruip @AlexanderWirtz

There are multiple ways of achieving this I guess. One way would be store all slider settings in the browser's LocalStorage (if the customer in question does not use IE7, IE6 or Opera Mini). Than I think you could easily reset to Last saved. Another more complex way would be storing multiple scenario's (like a simple versioning system).
I like the general idea though. 👍

Good idea. We could also use the preset_scenario's user_values.

What do you think @antw?

We could also use the preset_scenario's user_values.

Agree. I assume that "Last saved" refers to the most recent time the scenario was explicitly saved in ETModel. That being the case, we should likely set the preset_scenario_id of the active scenario to point at the saved scenario, and use those values when resetting.
The question is whether "Last saved" needs to be a user-selectable option at all; I think it should just be the default behaviour.

I realize now,  I could have been clearer in my description: with 'resetting' I mean hitting this button:

I am adjusting the body of this ticket accordingly.

Okay! So reset the slider to the value stored in the preset/saved scenario, or if no value is present there, back to the default. A big :+1: from me.
I suggest that this should just be the standard behaviour always; and that there's little need for the user to select between "Default" and "Last saved". Preferentially resetting to the preset scenario value is more intuitive.
I'm getting deja vu though, I'm sure we're discussed this before. 😆

I suggest that this should just be the standard behaviour always; and that there's little need for the user to select between "Default" and "Last saved". Preferentially resetting to the preset scenario value is more intuitive.

I'm getting deja vu though, I'm sure we're discussed this before. 😆

😏  me too

Yep, we were discussing the function of the slider reset button in https://github.com/quintel/etmodel/issues/2085

Yep, we were discussing the function of the slider reset button in #2085

That's the one, thanks!
I'm guessing this is a couple of hours to implement and test; there's nothing too complex here.

I think it is worth it. I am busy working on a scenario and I need it every
5 minutes.... :P
On Tue, May 24, 2016 at 11:51 AM, Anthony Williams<EMAIL_ADDRESS>
wrote:

Yep, we were discussing the function of the slider reset button in #2085
https://github.com/quintel/etmodel/issues/2085
That's the one, thanks!
I'm guessing this is a couple of hours to implement and test; there's
nothing too complex here.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/quintel/etmodel/issues/2123#issuecomment-221220662

--
Dennis Schoenmakers, Partner
Quintel IntelligenceAtrium - Strawinskylaan 3051
1077 ZX  Amsterdam
The Netherlands
Visiting Address:
Keizersgracht 639
1017 DT Amsterdam
T  : +31 (0)20 301 22 69
F  : +31 (0)20 301 22 02
M : +31 (0)6 109 65 293
E<EMAIL_ADDRESS>I  : www.quintel.com and www.energytransitionmodel.com
This message (including any attachments) is confidential and may be
privileged. Any review, retransmission, dissemination or other use of, or
taking any action with reference to this information by persons other than
the intended recipient is strictly prohibited. If you have received it by
mistake please notify the sender by return e-mail and delete this message
from your system. Please note that e-mails are susceptible to change. The
sender will not accept liability for the improper or incomplete
transmission of the information contained in this message.

It is now fixed so that pressing "reset" next to a slider will use the preset values, rather than the regional defaults. It'll fall back to the defaults if the preset has no appropriate value.
The "Reset scenario" option in the settings menu is not fixed, however. That option starts a new scenario with the same end year and region, and throws everything else away (scenario values and preset_scenario_id included). Resolving that will be more involved and I'm a bit short on time.
I'll leave this issue open as a reminder to do something about the settings menu option, and closed #2085 since that one is specifically about sliders.


Tests for IsRequestURI and IsRequestURL fail

Hi,
The tests for govalidator are failing with go 1.6:
--- FAIL: TestIsRequestURL (0.00s)
	validator_test.go:684: Expected IsRequestURL("http://foo.bar#com") to be true, got false
	validator_test.go:684: Expected IsRequestURL("http://foobar.com#baz=qux") to be true, got false

--- FAIL: TestIsRequestURI (0.00s)
	validator_test.go:733: Expected IsRequestURI("http://foo.bar#com") to be true, got false
	validator_test.go:733: Expected IsRequestURI("http://foobar.com#baz=qux") to be true, got false

Looking at the source code, I see that this uses ParseRequestURI from net/url, which states in the documentation:

The string rawurl is assumed not to have a #fragment suffix. (Web browsers strip #fragment before sending the URL to a web server.)

So, I believe these URLs should not validate.

I think you're right.

Fixed in #123


Could you guys fix the gamepad cursor disappearing when controllers are plugged in

Acknowledgement of preliminary instructions

[X] I have read and acknowledged the preliminary instructions.

What idea do you have?
Since roblox won't fix it maybe you guys could figure out a fast flag or mod or smth please
Here is a youtube video for reference it's not mine btw:
https://www.youtube.com/watch?v=3UYJkiRvZC8&pp=ygUkaG93IHRvIGZpeCB0aGUgZ2FtZXBhZCBjdXJzb3Igcm9ibG94

Not Bloxstrap's problem.

^


Add environment variables to run Command

-e and --env are mentioned in comments, but not implemented. This PR adds possibility to specify environment variables for run command

While validating for https://github.com/rancher/rancher/issues/8589, we have carried this PR forward in #61. Thanks @jakubknejzlik for your contribution!!


Install for azure-sdk-for-go fails

many of the packages that are for azure-sdk-for-go fail because it's trying to send 2 arguments to a func that receives only one.
Azure/azure-sdk-for-go/arm/network/applicationgateways.go:103: too many arguments in call to azure.DoPollForAsynchronous
applicationgateways.go: 103:
azure.DoPollForAsynchronous(autorest.DefaultPollingDuration,
autorest.DefaultPollingDelay))
async.go:
func DoPollForAsynchronous(delay time.Duration) autorest.SendDecorator {

@rmasci  we develop the go-autorest and azure-sdk-for-go projects independently, therefore using tip of master branch from these projects are not necessarily going to be compatible. As our README.md highlights:

NOTE: This repository is under heavy ongoing development and is likely to break over time. We currently do not have any releases yet. If you are planning to use the repository, please consider vendoring the packages in your project and update them when a stable tag is out.

You can find what version of go-autorest that works with the current version of azure-sdk-for-go in the glide.lock file in azure-sdk-for-go repo. In a nutshell, if you're using Azure SDK for Go, we strongly recommend hosting your dependencies locally in your project.
That should fix your problem. If not, please let us know. Closing for now.


Alarm doesn't work

I have created an alarm ERROR COUNT TO CALLEE with threshold 1, and I make a few requests which will cause errors of my application.
Now I can see the error number from the web ui, but the alarm doesn't work at all. I have already make my custom AlarmMessageSender and build it again. I can see the log is
ErrorCountToCalleeChecker result is false for application (MicroloanCore). value is 0. (threshold : 1).
Very strange, the value is always 0 no matter how many error requests I sent, any help? Thanks a lot

hi toxie641517
Pinpoint checks the error for an exception in the transaction.
If the http response code is given as 500, the alarm condition may not be activated.
check it please.
thanks :)


Is macros supports files or it watches classes only

I use this library that converts assets' files to dart strings
For example assets/images/avatar.png to Assets.images.avatar
https://pub.dev/packages/assets_scanner
So I wonder is macros can do that in the future or it can’t watch the assets changes?

That seems a reasonable thing to support.
But we haven't done any concrete design or implementation related to file support, so "seems reasonable" is the most I can say for now :)
I guess any updates will go on https://github.com/dart-lang/language/issues/3952, so please watch that if you want to follow along. Closing this one as answered :)

Thanks a lot


Do we really need string.prototype.trim?

Package string.prototype.trim adds some not negligible cost into node_modules. According to http://npm.anvaka.com/#/view/2d/tape it is 8 packages:

define-properties
es-abstract
es-to-primitive
is-date-object
is-regex
is-symbol
object-keys
string.prototype.trim

which made up ~30% of the total size of node_modules:
$ du -bh --max-depth=1 node_modules/
27K     node_modules/is-symbol
7.7K    node_modules/inflight
21K     node_modules/through
19K     node_modules/is-date-object
37K     node_modules/minimatch
7.6K    node_modules/path-is-absolute
15K     node_modules/brace-expansion
36K     node_modules/object-keys
42K     node_modules/minimist
179K    node_modules/tape
18K     node_modules/resumer
45K     node_modules/es-to-primitive
8.0K    node_modules/once
59K     node_modules/glob
18K     node_modules/fs.realpath
25K     node_modules/is-regex
21K     node_modules/for-each
15K     node_modules/has
6.9K    node_modules/wrappy
17K     node_modules/concat-map
13K     node_modules/path-parse
28K     node_modules/string.prototype.trim
11K     node_modules/balanced-match
243K    node_modules/resolve
31K     node_modules/define-properties
7.8K    node_modules/inherits
34K     node_modules/is-callable
48K     node_modules/object-inspect
26K     node_modules/deep-equal
33K     node_modules/function-bind
17K     node_modules/defined
4.1K    node_modules/.bin
183K    node_modules/es-abstract
1.3M    node_modules/

It is not so important, but it is pretty much for a quite simple one liner, which is used only in one place.
Maybe something like this would be enough:
if (msg == null) throw new TypeError();
forEach(String(msg).split('\n'), function (aMsg) {
    that.emit('result', aMsg.replace(/^\s*#?\s*|\s+$/g, ''));
});

The size of node_modules is irrelevant; more deps is better; this is a test framework so bundle size is irrelevant; I’m not sure what benefit there would be from inlining it.

Of course you are right. I don't have a problem with it. But I tend keep a look to my node_modules, because every dependency multiplies disproportionately. One of the reason I love about the tape is that it is relatively small compared to others.
http://www.youtube.com/watch?v=M3BM9TB-8yA&t=12m37s

That talk is ridiculous - every complaint are part of the very reasons node is successful and widely used.
Thanks for filing the issue - it’s always a reasonable question to ask - but having deps is a good thing, and disk space is infinite and free, while cognitive overhead and complexity is expensive.
I’m going to close this, but we can keep discussing if you like!

I'm not sure, that have deps on everything is good thing, but that's my opinion. Thank's @ljharb for your great work on this project, I appreciate it.

mmmm disk space is not infinite, and the fewer deps the better, but OK :)

I really enjoy tape and contribute to it.
I recently published @pre-bundled/tape for version 5.0.0
It contains just under 1500 javascript files.
$ npm pack<EMAIL_ADDRESS>npm http fetch GET 200 https://registry.npmjs.org/@pre-bundled%2ftape 1056ms
npm http fetch GET 200 https://registry.npmjs.org/@pre-bundled%2ftape 11ms (from cache)
npm http fetch GET 200<EMAIL_ADDRESS>7ms (from cache)
npm http fetch GET 200<EMAIL_ADDRESS>65ms (from cache)
npm notice
npm notice 📦<EMAIL_ADDRESS>npm notice === Tarball Contents ===
 .... [ 1500 files snip]
 .... [ 1500 files snip]
 .... [ 1500 files snip]
npm notice XB  .... [ 1500 files snip ] ...
 .... [ 1500 files snip]
 .... [ 1500 files snip]
 .... [ 1500 files snip]
npm notice === Tarball Details ===
npm notice name:          @pre-bundled/tape
npm notice version:       5.0.0
npm notice filename:      pre-bundled-tape-5.0.0.tgz
npm notice package size:  382.7 kB
npm notice unpacked size: 2.2 MB
npm notice shasum:        9d49252b2852ddc0ef56ed510877d8e90c63a129
npm notice integrity:     sha512-3bYif0qUXO0OL[...]RYxAh7JOMHhuA==
npm notice total files:   1494
npm notice
pre-bundled-tape-5.0.0.tgz

https://gist.github.com/Raynos/73420a585a481eedadd9aafe69597940
Modules are great ; dependencies are great.
But at the moment that means downloading ~1500 files to use the tape library.
The tape library itself is only 4 files.
The version of tape from 2018 ( v4.9.1) had ~1250 files
The version of tape from 2016 ( v3.6.1 ) had ~170 files

File count is as meaningless as line count; it’s under an abstraction layer. node_modules is a black box.

Give me one good reason why more dependencies is a good thing...
I understand that deps are needed sometimes but don't use deps that fix thing you can do yourself

@dev-dmtrllv because a separate, thoroughly tested package will almost always be better than code you write yourself - and in the rare cases where it's not, you should either publish or improve one.

@ljharb So you think it's a good idea to include a dependecy (string.prototype.trim) for one of the most basic tasks that needs to include a lot of other dependencies? I agree that some dependencies are better tested than something you write yourself but it's all about knowing your limits. If you think the task is too complicated or if you think you would have bugs then go with a dependency. But for something simple as this I think its useless.

"and disk space is infinite and free"

Btw my disk is not infinite and free?? This sounds to me like a big joke.
I'm not attacking anyone. Just currious about the ideology behind this quote.

but having deps is a good thing, and disk space is infinite and free
lmao, good luck with that


Add canton filtering and better search.

I think we could improve the filtering later by not calling toLowerCase method on each string ; we will have to rethink our data set structure.

I thought about it myself, but it might not prove necessary. Look at the performance we already have.


Highscore

What about a highscore list ?

What do you mean with Highscore list?

I see there is already a record. So there already is ;)


Networking with peering

This stage is very, very similar to 02-networking-vpn - only difference was replacing VPNs with peerings in the hub-to-spoke communication.
Pros:

"completes" the set of basic designs
is much more cheap to run
another networking stage
Cons:
unsure whether different enough to grant a new stage
another stage to maintain

I was going to say "let's use simlinks for all the common parts" but I'm not sure t's a good idea. Probably better than clooning everything and having to maintain it. WDYT?
Maybe (and it's a big maybe) we could have
02-net-hub-and-spoke
    ├── variables-peering.tf.src
    ├── variables-vpn.tf.src
    ├── variables.tf -> variables-vpn.tf.src

Which is probably cleaner than having two separate stages.

Not just variables

vpn-spoke*.tf
peering-spoke*.tf (which would be newly created)
vpn-variables.tf (no need for peering-variables)

But then we should also branch README. To minimize drifting problems we could have a common README.md, and have one for each of the pluggables, covering hub-to-spoke interconnection.
If it wasn't for drifting risk I'd rather have separate stages tbqh - "pluggables" complicate docs and setup steps.

Not just variables

vpn-spoke*.tf
peering-spoke*.tf (which would be newly created)
vpn-variables.tf (no need for peering-variables)

But then we should also branch README. To minimize drifting problems we could have a common README.md, and have one for each of the pluggables, covering hub-to-spoke interconnection.
If it wasn't for drifting risk I'd rather have separate stages tbqh - "pluggables" complicate docs and setup steps.

Well, if it's a single stage it should come with a single README, with a "cross-VPC connectivity" or somesuch section, with one subesection for peering and one for VPN.
Files different between the two:

outputs (with common outputs in a separate file)
variables (with common variables in a separate file)
peering-* and vpn-* files

Having two stages means a lot of duplicate code, and having to maintain both. On the other hand, aligning the common parts would be simple if the files were identical. Which would mean splitting out outputs and variables also in case of two stages. This is probably the simplest thing for both users and maintenance, WDYT? (I would need to update tfdoc but it's simple).

To make my last comment clearer: what if we had two stages, but the common parts between the two were in identical files? We'd have

variables.tf (only common vars) in both
variables-vpn.tf (only vpn vars) only in VPN
variables-peering.tf (only peering vars) only in peering

Same for outputs. If you like it, it's a +1 from me.

I like the end state, I'm unsure how to get there without either doing some magic ("template" stage implemented by vpn and peering stages) or drifting risk, neither of which I'm a fan of. Will let this simmer for a little bit.

Just copy manually when updating. :) If we adopt a scheme as in my last comment, it's super easy to diff between the two, because you only diff the identical files.

Ofc!

Gave it a shot. tfdoc changes to support multile vars/outputs files still missing.


3.0 todos

Header

[x] Separators (/) too tall

Dashboard

[ ] Missing a button for 'query editor'

Repl

[ ] Update truncated output to use 'implicit limit' style 'show more' rendering instead of button
[ ] Cursor colour too dark/light

Query Editor

[ ] Query Builder crashes with empty schema

Extended views

[ ] Text selection colour invisible in dark mode
[ ] esc shortcut not working in repl

Data viewer

[ ] Bottom scrollbar appears to block string editor resizing

I think we should update a bit look for 4 buttons on different resolutions. I can't mention @shougan here.
!

Uploading Screenshot 2023-01-20 at 12.43.21.png…


test: enable parallel circleci builds

Current coverage is 81.07% (diff: 100%)

Merging #435 into master will decrease coverage by 0.05%

@@             master       #435   diff @@
==========================================
  Files           157        157
  Lines          1696       1696
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           1376       1375     -1
- Misses          320        321     +1
  Partials          0          0

Powered by Codecov. Last update c8f05ee...dfc59b7


Fix broken link

Provide a correct working link.
Contribution checklist

[ ] The contribution was tested with ilab generate
[ ] No errors or warnings were produced by ilab generate
[x] All commits are signed off (DCO)
[ ] The qna.yaml file contains at least 5 seed_examples
[ ] The qna.yaml file was linted and prettified (yaml-validator can do both)
[ ] An attribution.txt file in the same folder as the qna.yaml file
[x] Content does not include PII or otherwise sensitive or confidential information
[x] Content does not include anything documented in the project's Avoid these Topics guidelines

Thanks @jjasghar


Make Local Queue label optional

Issue link

closes: RHOAIENG-9348
What changes have been made

Altered the local_queue functionality so if no default local queue exists or local_queue is not specified then the label will not be applied to the Ray Cluster.
Verification steps

Setup
Notebook server ODH/RHOAI/Local

Clone this repository with git clone https://github.com/project-codeflare/codeflare-sdk.git
Checkout this PR's branch
Run poetry build - install if needed (pip install poetry)
Run pip install --force-reinstall dist/codeflare_sdk-0.0.0.dev0-py3-none-any.whl
Restart your notebook kernel

Testing
Remove Kueue from your OpenShift Cluster

In the RHOAI DSC set Kueue's management state to Removed
Create a Ray Cluster in the ClusterConfiguration without a local queue specified.
Ensure the Ray Cluster does not have a local queue label

Kueue is enabled but no default Local Queue exists

Ensure no default Local Queue exists in a given namespace
Create a Ray Cluster without the local queue specified
Ensure the created Ray Cluster does not have the local queue label.

Checks

[x] I've made sure the tests are passing.
Testing Strategy

[x] Unit tests
[x] Manual tests
[ ] Testing is not required for this change

/lgtm

Rebased!
@ChristianZaccaria good catch. I'll create a Jira for updating the nbs

/approve

@astefanutti @ChristianZaccaria I think the PR just requires a review approval in order to merge now :)


prevent multiple menu items per .desktop entry

If the .desktop entry can be added as a menu item named after its "Name" field, don't try to add it again as another menu item named after its command or filename.

Are you sure you sent the pull request to the right repository? i3 is being developed at https://github.com/i3/i3 . This repo is a stale old unused branch with some of my custom patches.

gneh, you're right, sorry to pester you


Not able to run gdx-setup.jar

Issue details
I am not able to run gdx-setup.jar as GUI and CMD. Added Stack for both GUI and CMD.
Reproduction steps/code
Trying to run GUI:
java -jar gdx-setup.jar
Trying to run CMD (with correct AndroidSDK):
java -jar D:\ADT\LibGDX\gdx-setup.jar --dir D:\ADT\TEST --name TestGame --package com.badlogic.testgame --mainClass TestGame --sdkLocation C:\Users\sh3ll\AppData\Local\Android\Sdk --excludeModules ios;html --extensions box2d
Version of LibGDX and/or relevant dependencies
Current gdx-setup.jar from https://libgdx.badlogicgames.com/nightlies/dist/gdx-setup.jar
Stacktrace
GUI:
java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:117)
at com.badlogic.gdx.setup.ExternalExtensionsDialog.initData(Unknown Sour
ce)
at com.badlogic.gdx.setup.ExternalExtensionsDialog.uiLayout(Unknown Sour
ce)
at com.badlogic.gdx.setup.ExternalExtensionsDialog.(Unknown Source
)
at com.badlogic.gdx.setup.GdxSetupUI$Form.(Unknown Source)
at com.badlogic.gdx.setup.GdxSetupUI$UI.(Unknown Source)
at com.badlogic.gdx.setup.GdxSetupUI.(Unknown Source)
at com.badlogic.gdx.setup.GdxSetup.main(Unknown Source)
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.badlogic.gdx.setup.GdxSetupUI$Form.uiLayout(Unknown Source)
at com.badlogic.gdx.setup.GdxSetupUI$Form.(Unknown Source)
at com.badlogic.gdx.setup.GdxSetupUI$UI.(Unknown Source)
at com.badlogic.gdx.setup.GdxSetupUI.(Unknown Source)
at com.badlogic.gdx.setup.GdxSetup.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1348)
at com.badlogic.gdx.setup.GdxSetupUI$SetupCheckBox.getCheckboxImage(Unkn
own Source)
at com.badlogic.gdx.setup.GdxSetupUI$SetupCheckBox.(Unknown Sour
ce)
... 5 more
CMD:
Extension box2d found
Exception in thread "main" java.lang.RuntimeException: Couldn't read resource 'gitignore'
at com.badlogic.gdx.setup.GdxSetup.readResource(Unknown Source)
at com.badlogic.gdx.setup.GdxSetup.copyFile(Unknown Source)
at com.badlogic.gdx.setup.GdxSetup.copyAndReplace(Unknown Source)
at com.badlogic.gdx.setup.GdxSetup.build(Unknown Source)
at com.badlogic.gdx.setup.GdxSetup.main(Unknown Source)
Please select the affected platforms

[ ] Android
[ ] iOS (robovm)
[ ] iOS (MOE)
[ ] HTML/GWT
[X] Windows
[ ] Linux
[ ] MacOS

Duplicate to #5963

Fix https://github.com/libgdx/libgdx/pull/5966


arch/stm32_capture fix SMC register offset address and completion slave mode selection

Summary
1、the SMC register offset address is error , it should be fixed;
2、there just two slave mode can be set at present, it can be completed.
Impact
nothing
Testing
ci

@zouboan please rebase to the latest code to fix the ci build error.


Correct curl option to download test cases from GDA

Test caeses dectest.zip from GDA doesn't support http anymore.

Thank you!


Trailing colors not applied after TextComponent append

I've got a TextComponent defined as a prefix which is applied to all messages. At the end of the prefix, there is a color code to be applied. Prefix: &7[&bPrefix&7] &a
The messages are then loaded as TextComponent objects.
Once ready to send, I append the message TextComponent to the prefix TextComponent.
The expected behavior is that the entirety of the message, until another code is found, should be green since the prefix has a trailing &a color code; however, the message appears white until another color code is found.
Example: http://prntscr.com/nkpxhj

Could you provide the code you're using, please?

Velocity version: 1.0.0-SNAPSHOT (Latest)
Text version: 1.12-1.6.5 (Packaged with Velocity)
Specific code chunks: https://pastebin.com/DULhHL7J
Appending in code: https://github.com/Crypnotic/Neutron/blob/refactor/announcement/src/main/java/me/crypnotic/neutron/module/announcement/Announcement.java#L65
Color method for serializing: https://github.com/Crypnotic/Neutron/blob/refactor/announcement/src/main/java/me/crypnotic/neutron/util/StringHelper.java#L37-L44
TypeSerializer that is used to load from config:  https://github.com/Crypnotic/Neutron/blob/refactor/announcement/src/main/java/me/crypnotic/neutron/api/serializer/TextComponentSerializer.java

Text values used in the screenshot
Prefix text: &7[&bPrefix&7] &a
Message text: This entire messages should be &agreen

This is actually how this is intended to work:
color("&7[&bPrefix&7] &a").append(color("This entire messages should be &agreen"))

{
  "text": "",
  "extra": [
    {
      "text": "[",
      "color": "gray"
    },
    {
      "text": "Prefix",
      "color": "aqua"
    },
    {
      "text": "] ",
      "color": "gray"
    },
    {
      "text": "",
      "color": "green"
    },
    {
      "text": "This entire messages should be ",
      "extra": [
        {
          "text": "green",
          "color": "green"
        }
      ]
    }
  ]
}

The "prefix" is part of one root, and the root doesn't have any style - the last child, which has empty content, is styled with green.

So you're saying this is working as intended? That's strange since the same string appended beforehand would yield the proper result

Yes, it is working as intended -- if you look at the above JSON you'll see that the second-last object has empty ("") text and green colouring - this is your last &a in the prefix. To continue with that formatting, you'd need to be appending to the last child component, not the root component itself.

Component children are immutable. When appending onto a child component, would it return the child component or the root component?

It would return the child component.

This is one of the reasons that use of the legacy serialiser is discouraged, in favour of the JSON serialiser (or custom ones - YAML, XML, etc).

So there is essentially no way to apply a prefix with a trailing color code to a TextComponent without creating multiple new components just to get there?

Side note: I would use JSON, but I can't expect most people to take the time to create a proper JSON message just to send announcements. That's just opening an avenue to get littered with issues that are user error

You can deserialise all as one (color(prefix + message)) to create a component, otherwise you'll have to do a dance.

Which means if I want to support JSON messages also, I would have to serialize, deserialize into legacy, append, reserialize. Either direction requires a dance

Assuming the last bit of the prefix defines the colour for the text coming up, yes, you'd need to do a dance still:
    final Component prefix = color("&7[&bPrefix&7] &a");
    final List<Component> prefixChildren = prefix.children();
    final Style prefixLastChildStyle = prefixChildren.get(prefixChildren.size() - 1).style();
    final Component message = color("This entire messages should be &agreen");
    final Component result = prefix.append(TextComponent.builder().style(prefixLastChildStyle).append(message));

results in a component that serialises into the following JSON:
{
  "text": "",
  "extra": [
    {
      "text": "[",
      "color": "gray"
    },
    {
      "text": "Prefix",
      "color": "aqua"
    },
    {
      "text": "] ",
      "color": "gray"
    },
    {
      "text": "",
      "color": "green"
    },
    {
      "text": "",
      "extra": [
        {
          "text": "This entire messages should be ",
          "extra": [
            {
              "text": "green",
              "color": "green"
            }
          ]
        }
      ],
      "color": "green"
    }
  ]
}

and into the following legacy text:
§7[§bPrefix§7] §aThis entire messages should be green

The above code is based on text 3.0.0 - if you're on a previous version you'll have to manually apply any colouring + decorations, as Style does not exist in previous versions.

It's a good thing Velocity packages 1.6.5 🥇

Solved for now I guess. In case anyone needs a method that works on versions < 3.0.0
Neutron - StringHelper#append


Add curl example for chat.command

There's a curl example at https://api.slack.com/web#basics (for chat.postMessage) where they POST JSON to the endpoint, so I tried that with chat.command, but it didn't work (I got back "error": "channel_not_found").
Not sure if only GET is supported, maybe POST and parameters presented as "application/x-www-form-urlencoded" works too, I haven't tried.
But hopefully this can help others to not make the same mistake as I did.

@dentarg Thank you for pointing this out. Since apparently all undocumented methods only work with GET and standard POST I have decided to document that fact in the readme, rather than adding the info to every method.
https://github.com/ErikKalkoken/slackApiDoc/blob/master/README.md

Cool, thanks
(Link to the commit: https://github.com/ErikKalkoken/slackApiDoc/commit/7c64d5078f0b38be3b25cf98e4843028c2d6af)


Add small satellite icon instead of white dot for satellite positions

Sorry to disturb you. I am puzzled about the location of the satellite 3d model in the project. I hope you have time to provide more detailed information and look forward to your reply！

Sorry to disturb you. I am puzzled about the location of the satellite 3d model in the project. I hope you have time to provide more detailed information and look forward to your reply！

The models do not appear to be included in this github. Here is the code that calls them.
https://github.com/Flowm/satvis/blob/8419430e79d04f620bc18c49a9b81377bdf159e9/src/modules/SatelliteEntityWrapper.js#L110
Which means they are located here - https://satvis.space/data/models/ (You can't just go here and download things from a list because the directory is protected).

Hi there, thanks for posting.
When I started the project a few years ago I searched for freely available 3D models of satellites and started converting a few of them to a cesium compatible format (gltf/glb).
Unfortunatly the list of freely available 3D model data for satellites (at least at that time) was quite limited and even the nasa repository I was using as primary source had only a few satellites with various data formats that each required significant amount of work.
If you have any other sources for compatible 3D models I'd be happy to share the (currently private) git-lfs tracked repository for collaboration. In the meantime I listed the currently available models below:
NASA Models:
https://satvis.space/data/models/CLOUDSAT.glb
https://satvis.space/data/models/GPM-CORE.glb
https://satvis.space/data/models/GRACE-FO.glb
https://satvis.space/data/models/ISS-(ZARYA).glb
https://satvis.space/data/models/LANDSAT-8.glb

3D-Models from [the cubesat project](https://www.move2space.de/MOVE-II/) I was involved in at that time:

https://satvis.space/data/models/FIRST-MOVE.glb
https://satvis.space/data/models/MOVE-II.glb
https://satvis.space/data/models/MOVE-IIb.glb

Sorry to disturb you. I am puzzled about the location of the satellite 3d model in the project. I hope you have time to provide more detailed information and look forward to your reply！

The models do not appear to be included in this github. Here is the code that calls them.
https://github.com/Flowm/satvis/blob/8419430e79d04f620bc18c49a9b81377bdf159e9/src/modules/SatelliteEntityWrapper.js#L110
Which means they are located here - https://satvis.space/data/models/ (You can't just go here and download things from a list because the directory is protected).
Thank you for your reply, which has benefited me a lot. I have successfully imported my satellite model into the project.

Hi there, thanks for posting.
When I started the project a few years ago I searched for freely available 3D models of satellites and started converting a few of them to a cesium compatible format (gltf/glb).
Unfortunatly the list of freely available 3D model data for satellites (at least at that time) was quite limited. Even the nasa repository I was using as primary source had only a few satellites with various data formats that each required significant amount of work.
If you have any other sources for compatible 3D models I'd be happy to share the (currently private) git-lfs tracked repository for collaboration. In the meantime I listed the currently available models below:
NASA Models:
https://satvis.space/data/models/CLOUDSAT.glb
https://satvis.space/data/models/GPM-CORE.glb
https://satvis.space/data/models/GRACE-FO.glb
https://satvis.space/data/models/ISS-(ZARYA).glb
https://satvis.space/data/models/LANDSAT-8.glb

3D-Models from the cubesat project I was involved in at that time:
https://satvis.space/data/models/FIRST-MOVE.glb
https://satvis.space/data/models/MOVE-II.glb
https://satvis.space/data/models/MOVE-IIb.glb
```Thanks for the resources you mentioned. It really helped me a lot. Besides, I've seen projects you've done before, and it's really a great project.


The main module cannot receive event posted from android lib module ???

In android studio，my code structure refer to “MVP" . so I use EventBus to post event from domain layer to presenter layer.But the logcat print the msg like "No subscribers registered for event class com.sds.smarthome.business.event.SmartHomeStatus" !
If I move the code " EventBus.getDefault().post(statusEvent);" to presenter layer,that is OK.
why????....

EventBus.getDefault() is the same object...I tested for many times...

same issue for version 2.4


BUG

Describe the bug and expected behavior
The installation script (install.ps1) doesn't detect that Tamper Protection has been turned off on Windows 10 2004.
The script checks if HKLM:\SOFTWARE\Microsoft\Windows Defender\Features\TamperProtection is set to 0.
On Windows 10 2004, TamperProtection starts out at 5 after installation. When Tamper Protection has been disabled, the value of TamperProtection is 4. I was unable to find a way to set TamperProtection to 0.
The latest fully supported version of Windows 10 for CommandoVM seems to be 1909.

The tamper protection detection is built as a warning. If Tamper protection is non-existent, it will be 0, and the script will continue on. If it is anything but 0, it will warn users about Tamper Protection and the user can choose to ignore the warning and continue installing. I could not think of a reliable way to ensure Tamper Protection was off without user interaction and would prefer users stay in charge of ensuring Tamper Protection is off.


in find_data_series(), yield all possible series  in order instead of…

… just the highest ranked one
add_data_series() will still only use the first one, but this gives
more flexibility when using the lower level function find_data_series

merged into https://github.com/gro-intelligence/api-client/pull/122/commits


What new content should we add to the site?

It's been a while since we've asked this. What should we add?

Explanations are nice and all, but a sample client implementation in the form of a video would be wayyyyyy cooler, imo :)

@eolszewski do you imagine that as a video explaining an implementation or a live coding thing?

Live coding, this way you have rich media to provide to everyone who is interested in implementing!
Naturally, things will evolve over time, but I think it's a really great starting point. Afaik, there are many more explainers than there are live coding sessions / demos

+1 for MOOC-esque video tutorial.
And as just idea, sequence diagram of the time sequential communication between the Rootchain, Chilchain, and Light clients are better if there are.


Add function to get the list of all routes by passing package name

Add function to get the list of all routes by passing package name

Not sure about filenames and what should be tested in the test


Added Animated Navbar Using Framer Motion

I added Animated Navbar Using Framer Motion and please me it gssoc level 2 because it took a vast amount of time and feature.
issue#346

create a new branch and push that branch

create a new branch and push that branch

ok


与openai 服务器连接不上 出现403  该如何解决

2023-05-16 02:34:22 INFO:     Started server process [1]
2023-05-16 02:34:22 INFO:     Waiting for application startup.
2023-05-16 02:34:22 INFO:     Application startup complete.
2023-05-16 02:34:22 INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
2023-05-16 02:36:50 ERROR:    Exception in ASGI application
2023-05-16 02:36:50 Traceback (most recent call last):
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
2023-05-16 02:36:50     result = await app(  # type: ignore[func-returns-value]
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
2023-05-16 02:36:50     return await self.app(scope, receive, send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/applications.py", line 276, in call
2023-05-16 02:36:50     await super().call(scope, receive, send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 122, in call
2023-05-16 02:36:50     await self.middleware_stack(scope, receive, send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in call
2023-05-16 02:36:50     raise exc
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in call
2023-05-16 02:36:50     await self.app(scope, receive, _send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in call
2023-05-16 02:36:50     await self.app(scope, receive, send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in call
2023-05-16 02:36:50     raise exc
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in call
2023-05-16 02:36:50     await self.app(scope, receive, sender)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
2023-05-16 02:36:50     raise e
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
2023-05-16 02:36:50     await self.app(scope, receive, send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 718, in call
2023-05-16 02:36:50     await route.handle(scope, receive, send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
2023-05-16 02:36:50     await self.app(scope, receive, send)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
2023-05-16 02:36:50     response = await func(request)
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
2023-05-16 02:36:50     raw_response = await run_endpoint_function(
2023-05-16 02:36:50   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
2023-05-16 02:36:50     return await dependant.call(**values)
2023-05-16 02:36:50   File "/app/claude_to_chatgpt/app.py", line 49, in chat
2023-05-16 02:36:50     openai_response = await response.anext()
2023-05-16 02:36:50   File "/app/claude_to_chatgpt/adapter.py", line 145, in chat
2023-05-16 02:36:50     raise Exception(f"Error: {response.status_code}")
2023-05-16 02:36:50 Exception: Error: 403
2023-05-16 03:03:12 ERROR:    Exception in ASGI application
2023-05-16 03:03:12 Traceback (most recent call last):
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
2023-05-16 03:03:12     result = await app(  # type: ignore[func-returns-value]
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
2023-05-16 03:03:12     return await self.app(scope, receive, send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/applications.py", line 276, in call
2023-05-16 03:03:12     await super().call(scope, receive, send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 122, in call
2023-05-16 03:03:12     await self.middleware_stack(scope, receive, send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in call
2023-05-16 03:03:12     raise exc
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in call
2023-05-16 02:36:50 INFO:     <IP_ADDRESS>:59252 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
2023-05-16 03:00:36 INFO:     <IP_ADDRESS>:42472 - "GET /v1/chat/completions HTTP/1.1" 405 Method Not Allowed
2023-05-16 03:00:36 INFO:     <IP_ADDRESS>:42472 - "GET /favicon.ico HTTP/1.1" 404 Not Found
2023-05-16 03:03:12 INFO:     <IP_ADDRESS>:56096 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
2023-05-16 03:06:19 INFO:     <IP_ADDRESS>:41780 - "GET / HTTP/1.1" 404 Not Found
2023-05-16 03:03:12     await self.app(scope, receive, _send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in call
2023-05-16 03:03:12     await self.app(scope, receive, send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in call
2023-05-16 03:03:12     raise exc
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in call
2023-05-16 03:03:12     await self.app(scope, receive, sender)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
2023-05-16 03:03:12     raise e
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
2023-05-16 03:03:12     await self.app(scope, receive, send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 718, in call
2023-05-16 03:03:12     await route.handle(scope, receive, send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
2023-05-16 03:03:12     await self.app(scope, receive, send)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
2023-05-16 03:03:12     response = await func(request)
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
2023-05-16 03:03:12     raw_response = await run_endpoint_function(
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
2023-05-16 03:03:12     return await dependant.call(**values)
2023-05-16 03:03:12   File "/app/claude_to_chatgpt/app.py", line 35, in chat
2023-05-16 03:03:12     openai_params = await request.json()
2023-05-16 03:03:12   File "/root/.cache/pypoetry/virtualenvs/claude-to-chatgpt-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/requests.py", line 244, in json
2023-05-16 03:03:12     self._json = json.loads(body)
2023-05-16 03:03:12   File "/usr/local/lib/python3.9/json/init.py", line 346, in loads
2023-05-16 03:03:12     return _default_decoder.decode(s)
2023-05-16 03:03:12   File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
2023-05-16 03:03:12     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
2023-05-16 03:03:12   File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode
2023-05-16 03:03:12     raise JSONDecodeError("Expecting value", s, err.value) from None
2023-05-16 03:03:12 json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

curl 测试时出现Internal Server Error%

是ip 的问题么 别的我都正常使用

2023-05-16 02:36:50 raise Exception(f"Error: {response.status_code}")
2023-05-16 02:36:50 Exception: Error: 403

报错 403，估计是 API key 不对

我的api 没啥问题 如果我不用docker 一切正常

我的api 没啥问题 如果我不用docker 一切正常

我在本地测试了下最新版镜像，无法复现你的问题。可能真像你说的是 IP 问题，不过这也挺奇怪，因为我了解 Anthropic 没有限制 IP。你可以本地抓包调试看看

我的api 没啥问题 如果我不用docker 一切正常

另外你可以试试参数加上 stream 为 true，看流式调用还会出现这个问题吗

我的api 没啥问题 如果我不用docker 一切正常

另外你可以试试参数加上 stream 为 true，看流式调用还会出现这个问题吗

问题已经解决 谢谢您的解答

我的api 没啥问题 如果我不用docker 一切正常

另外你可以试试参数加上 stream 为 true，看流式调用还会出现这个问题吗

问题已经解决 谢谢您的解答

是流式调用以后问题就好了吗

是我的api 的问题 不好意思 呜呜呜

哈哈，那 issue 我关了 😄


Using render.com database for migrate dev leads to error message ERROR: cannot drop view pg_buffercache because extension pg_buffercache requires it HINT: You can drop extension pg_buffercache instead.

2 cloud databases from render.com, then run migrate dev with some schema. Leads to this error message:
C:\Users\Jan\Documents\throwaway\repro8212>npx prisma migrate dev
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Datasource "db": PostgreSQL database "reproduction8212", schema "public" at "frankfurt-postgres.render.com:5432"

Error: P3016

The fallback method for database resets failed, meaning Migrate could not clean up the database entirely. Original error:
Database error
Error querying the database: db error: ERROR: cannot drop view pg_buffercache because extension pg_buffercache requires it
HINT: You can drop extension pg_buffercache instead.
   0: sql_migration_connector::best_effort_reset
           with connection=Connection(Postgres((PostgreSql { client: PostgresClient, pg_bouncer: false, socket_timeout: None, statement_cache: Mutex { is_locked: false, has_waiters: false }, is_healthy: true }, PostgresUrl { url: Url { scheme: "postgres", username: "shadow", password: Some("..."), host: Some(Domain("frankfurt-postgres.render.com")), port: None, path: "/reproduction8212shadow", query: None, fragment: None }, query_params: PostgresUrlQueryParams { ssl_params: SslParams { certificate_file: None, identity_file: None, identity_password: <HIDDEN>, ssl_accept_mode: AcceptInvalidCerts }, connection_limit: None, schema: None, ssl_mode: Prefer, pg_bouncer: false, host: None, socket_timeout: None, connect_timeout: Some(5s), pool_timeout: Some(10s), statement_cache_size: 500, max_connection_lifetime: None, max_idle_connection_lifetime: Some(300s) } })))
             at migration-engine\connectors\sql-migration-connector\src\lib.rs:115
   1: sql_migration_connector::flavour::postgres::sql_schema_from_migration_history
             at migration-engine\connectors\sql-migration-connector\src\flavour\postgres.rs:367
   2: migration_core::api::DevDiagnostic
             at migration-engine\core\src\api.rs:89

Also: Password logged in plain text in the error message of best_effort_reset
Problem does also not go away if shadow database is not hosted at render.com

More information about this table (and extension): https://www.postgresql.org/docs/9.4/pgbuffercache.html

I can reproduce this, migrate will require to ignore this extension like it ignores postgis.

Yep, we should special-case it, like postgis. Candidating.

Related: https://github.com/prisma/prisma/issues/8219

any solution for this ?

This should not happen any more after https://github.com/prisma/prisma-engines/pull/2106. If it does, please open a new bug issue with all the informaiton the template asks for. Thanks.


[node] Log less gossip

The PR implements a mechanism for the active authority to keep track of failed peers and connections, as well as retries, and to slow down connecting to others when a quorum of nodes is not yet live, as when the network starts.

Many thanks for the review @lxfind -- as ever super thorough! Going in to make changes.

Thanks everyone for the comments + review!


python310Packages.monty: disable failing tests

Description of changes
Fix build (https://hydra.nixos.org/build/206766506)

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 213123 run on x86_64-linux 1

2 packages marked as broken and skipped:

python310Packages.pymatgen-lammps
python311Packages.pymatgen-lammps

10 packages built:

python310Packages.atomman
python310Packages.castepxbin
python310Packages.monty
python310Packages.pymatgen
python310Packages.sumo
python311Packages.atomman
python311Packages.castepxbin
python311Packages.monty
python311Packages.pymatgen
python311Packages.sumo

https://github.com/NixOS/nixpkgs/pull/212320


[5.9][CMake] Allow install_name_tool to edit shared library load paths

Explanation: install_name_tool is able to update install names as long as there's enough room. That sometimes happens to be the case (if eg. your path ends up being smaller/a similar size), but not always. Allow the maximum length so they can be updated to longer paths.
Scope: Build
Risk: Very low - sets -headerpad_max_install_names when linking Swift libraries. Either this links or doesn't.
Testing: Builds and runs
Original PR: https://github.com/apple/swift-syntax/pull/1734

@swift-ci please test


Rating for players in session

Fixed

What I have meant is to send Rank property as a part of BeforeMatchResponse.Player, along with Rating


bug: STATE not emitted if get_records produces no values

Singer SDK Version
master
Is this a regression?

[ ] Yes

Python Version
3.10
Bug scope
Taps (catalog, state, etc.)
Operating System
OS X
Description
Due to Meltano/Singer format being vague around STATE messages, it is possible for some targets to nuke state when the tap does not produce a message when in INCREMENTAL mode.
When you subclass the Stream class and overwrite the get_records method, it is possible that when using a state/bookmark that the stream produces no records --perhaps because there are no new records in the source to be produced.  The meltanoSDK does not produce a State message in this case when get_records does not produce a single record.  Other, non-meltano taps have a different approach where they will always produce a state message even if no records were produced (example: tap-prometheus) .
So we have a situation where one tap will produce a record and another tap may not produce a record.  Targets seem to interpret this in various ways.  For example, target-bigquery assumes it will always receive at least on SCHEMA message when it processes the data.  Unfortunately, if it does not receive a STATE message it ends up writing the empty dictionary as the state during finalization.  I have opened a PR here to fix it on their end.  Target-jsonl is not affected --it does not overwrite the state when no STATE message is ingested.
Now you can argue that Target-Bigquery shouldn't make this assumption and I would agree; however, I can find no specification in Singer for what the expected behavior should be when no records are produced in incremental mode.  Due to the ambiguity, I think the SDK should always emit a STATE message in incremental mode even if that STATE message is the existing state due to no records being produced otherwise we are depending on undefined behavior in the target implementations.
Code
No response

This seems like a reasonable proposal to me. @edgarrmondragon @kgpayne ?

This seems like a reasonable proposal to me. @edgarrmondragon @kgpayne ?

@tayloramurphy I agree, it seems like a quick win and should be safe for any target to receive a state message before anything else.

@edgarrmondragon awesome! and just to confirm, that PR it's not always going to emit an empty state, it's going to emit either the state the tap was invoked with (i.e. the incremental state from Meltano) or an empty state if none is provided, correct?

@tayloramurphy correct. It'll emit the value contained in the state file if one is passed


GET: Return most-recent message for each conversation for a user

This will help with #12
We need to allow a GET request that returns something like this
var recentMessages = [
    {
        sender: user2,
        text: "hey there!"
    },
    {
        sender: user43,
        text: "sup!"
    }
]

It will be an array of the most recent conversation, for every conversation for a user.
This should be working with authentication, and verifying the sessiontoken, or usertoken from passport, or the facebookSDK

Recent messages can be obtained by getting the conversation and getting the last element from the message list.


Markdown with image in header generates undesired HTML tags in page title

If the header line of a markdown file contains an image, like
  # ![my logo](logo.jpg)  My title

then a  tag gets added to the title of the generated HTML page:
  <title>  My title </title>

instead of the desirable outcome:
 <title> My title</title>

I found a workaround but it's rather ugly:

# My title

# ![my logo](logo.jpg)  My title

CommonMark spec (http://spec.commonmark.org/dingus/) creates:
  My title

If we do the same I think this is correct behavior.

This is probably an issue in FsBlogLib instead - it extracts the first heading from the blog post when generating a page - and it probably does not drop the additional HTML tags that it might contain.


[pulsar-io] Create Google PubSub Sink

We need to be able to emit data from Pulsar into Google PubSub. We should create a Sink connector.

Closed as we don't host a wishing list in issues. Feature requests can be opened against the Discussions forum.
BTW, StreamNative provides such integration at https://github.com/streamnative/pulsar-io-google-pubsub. Feel free to give it a try.


chore: bdd-ghfjxy-import-1582442200 to 0.0.1

chore: Promote bdd-ghfjxy-import-1582442200 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Added code to track buttons pressed while meta key is active on MacOS

There was an issue found on the forum where keyup events for keys weren't firing while the Meta key (Command) was pressed for all browsers on MacOS.  This has led to a scenario where said buttons weren't being properly treated as released.  Upon investigation, it has been determined that this issue occurs at an OS level and therefore, there isn't much we can do about it (https://stackoverflow.com/questions/11818637/why-does-javascript-drop-keyup-events-when-the-metakey-is-pressed-on-mac-browser).  This PR contains a workaround so that if BJS is being run in a browser on MacOS, any buttons pressed while the Meta key is active will be tracked and have keyup events fired for them when the Meta key is released.  All other platforms will work as before without this tracking code.
Forum Link: https://forum.babylonjs.com/t/modifier-keyboard-shortcuts-with-devicesourcemanager-copy-to-clipboard/31743/7

This is a good candidate for your test suite

Hi people,
This PR break the ability to use BabylonJS for testing purpose within a Node environment (using the NullEngine) as creating the scene leads to the error ReferenceError: navigator is not defined
it is caused by the line private readonly _usingMacOS: boolean = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
It used to work fine in 5.10.0 and it breaks in 5.50.0
Possible workaround for me meanwhile ; global.navigator = global.navigator || { platform: '' }

Thanks a ton for the report I ll fix it in a sec


Password strength

Describe the feature
In our website any input password by user is accepted and now times password strength is very concern so i want to make the feature so that only strong password is taken by website and when user give simple password then there is suggestion shown to the user
Add ScreenShots
No screenshot
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'24 contributor
[X] I want to work on this issue

Can you pls assign me this issue?

@hereisSwapnil can you please assign me this issue?

I want to resolve the issue, kindly assign me the task


Define consistent nodata propagation for interp_points and allow to return interpolator

Most of the line changes in this PR are due to re-structuring, moving out functions of the Raster class (see #539, in preparation for #383) into their own module, here only those linked to interp_points.
This PR also adds a nodata propagation scheme (as scipy.interpolate.interpn does not support nodata propagation natively except for methods "nearest" and "linear") and allows to return an interpolator that contains this nodata propagation (to optimize speed of iterative methods calling the same interpolator several times, such as DEM coregistration).
It turned out that interpolation of map_coordinates with splines of order 3/5 does not match "cubic" or "quintic" in interpn, only order 0/1 do match for "nearest" and "linear", so all other are dropped. The nodata propagation and accuracy of results for values near the edge of NaNs is now tested thoroughly! :smile:
Resolves #559
Starts addressing #539 for functions related to interp_points
TO-DO:

[x] Add tests on return_interpolator,
[x] Add tests validating that the interpolator generated produces exactly the same results as interpn,
[x] Add distance of nodata spreading as an argument,
[x] Enforce the same NaN propagation between map_coordinates and interpn.

This PR is finalized, and ready for review! :smile: @adehecq @erikmannerfelt @atedstone
Important: don't lose time looking at changes from functions moved from raster.py to georeferencing.py, etc... This is simply restructuring linked to #539, which was necessary to have functionalities separate from the Raster class (to avoid always re-building a Raster object for performance, for instance in coregistration), and will facilitate building the Xarray accessor as well.
All the core changes are in interpolate.py and test_interpolate.py.
We now have a fully consistent point interpolation with all benefits and (normally) none of the limitations of existing implementations:

Very fast on an equal grid (by relying on scipy.ndimage.map_coordinates) which supports "nearest" or "linear" methods,
Otherwise (for a regular grid, or other interpolation methods), it relies on the equivalent of scipy.interpolate.interpn but coded as an interpolator function based on SciPy's code (so that it can be constructed only once and used iteratively, to greatly improve performance for instance in coregistration),
Supports modular NaN propagation for all methods by adding our own consistent NaN propagation scheme on top of SciPy (that barely supports any NaN propagation in interpolation, only "nearest" and "linear" do in interpn and inconsistently with map_coordinates), with our default method tested for its high accuracy (propagate NaNs for as many pixels as half the method order rounded up).

All the tests allow to check the robustness of the implementation:

Exact same results for interpn and map_coordinates, and the interpolator optionally returned,
Exact same NaN propagation,
High accuracy of interpolation near NaN edges (10e-4 relative) for the default NaN propagation.


Only export enum type

Is your feature request related to a problem? Please describe.
The flexibility of GraphQL queries severely limits the use of exported types in the generated file of Flow types.
Consider the following schema:
/* @flow */

/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {|
  ID: string,
  String: string,
  Boolean: boolean,
  Int: number,
  Float: number,
  ISO8601Date: any,
  ISO8601DateTime: any,
|};

export const MyEnumValues = Object.freeze({
  A: 'a',
  B: 'b',
  C: 'c'
});

export type MyEnum = $Values<typeof MyEnumValues>;

export type MyType = {|
  id: $ElementType<Scalars, 'ID'>,
  field: MyEnum,
|};

It would be fragile to type the return value of a GraphQL query with the type of MyType as Flow would not be able to assist us if we changed the query from:
query {
  myType {
    id,
    field
  }
}

To:
query {
  myType {
    field
  }
}

Describe the solution you'd like
We would like a mechanism to just generate types for enums and skip over GraphQL types.
Describe alternatives you've considered
The alternative is manually defining and maintaining enums in Flow or limiting ourselves to just importing the enums. However, if the types can be imported it is not reasonable for us to be able to police every commit from using them.

@TomasBarry
The basic flow plugin only generates the base types, based on your GraphQL Schema.
If you wish to get type safety based on your queries, you should use flow-operations as well, and use documents: section to specify your GraphQL operations.
It will generate Flow types based on your selection set, and if you change your query if will generate new types according to the fields you are asking for.
Does that covers you use-case? I don't understand why generating only enums is related?

Closing. @TomasBarry let me know if it's still relevant.

@dotansimha the feature could make sense for another use case. Let's say that you want to use a .d.ts declaration file instead of a .ts one, but you also don't want to use enumsAsTypes: in that situation it could be useful to generate an additional .ts file with only the enums, so you can import them through your application while maintaining your declaration file.

@darkbasic I see. I'm not sure if it's related, but does const enum assertions works in d.ts files? (see https://github.com/dotansimha/graphql-code-generator/pull/3569) because this might help with that situations.
It shouldn't be too complicated to create a small plugin that only generates enums, and it can share the same logic as the existing plugins... PRs are welcome ;)

@dotansimha that's the problem: const enums don't work in .d.ts files either.

Done in: https://github.com/dotansimha/graphql-code-generator/pull/3760

Thank you @dotansimha!

Fixed in v1.13.4 :)
You can now use:
config:
  preResolveTypes: true
  onlyOperationTypes: true

And you'll get minimal types generated.

@dotansimha thanks for putting in the work to add those additional flags! One issue is I would like to only generate enums and not create types in the .ts file. Is that possible?

It's not available at the moment, you can create a PR if you need that ;)

Took a whack at it quick based on https://github.com/dotansimha/graphql-code-generator/pull/3760/files#diff-59230f39cf86a6a2257155cba47d7c642aadb8697d3a925288a9c00093ac71d1 but it's a little more involved because of how scalars are built I think.
Even when updating the constructor to pass an empty object as scalars, it still outputs types:
packages/plugins/other/visitor-plugin-common/src/base-types-visitor.ts
constructor(
    protected _schema: GraphQLSchema,
    rawConfig: TRawConfig,
    additionalConfig: TPluginConfig,
    defaultScalars: NormalizedScalarsMap = DEFAULT_SCALARS
  ) {
    super(rawConfig, {
      enumPrefix: getConfigValue(rawConfig.enumPrefix, true),
      onlyEnums: getConfigValue(rawConfig.onlyEnums, false),
      onlyOperationTypes: getConfigValue(rawConfig.onlyOperationTypes, false),
      addUnderscoreToArgsType: getConfigValue(rawConfig.addUnderscoreToArgsType, false),
      enumValues: parseEnumValues({
        schema: _schema,
        mapOrStr: rawConfig.enumValues,
        ignoreEnumValuesFromSchema: rawConfig.ignoreEnumValuesFromSchema,
      }),
      declarationKind: normalizeDeclarationKind(rawConfig.declarationKind),
      // scalars: buildScalarsFromConfig(_schema, rawConfig, defaultScalars),
      fieldWrapperValue: getConfigValue(rawConfig.fieldWrapperValue, 'T'),
      wrapFieldDefinitions: getConfigValue(rawConfig.wrapFieldDefinitions, false),
      entireFieldWrapperValue: getConfigValue(rawConfig.entireFieldWrapperValue, 'T'),
      wrapEntireDefinitions: getConfigValue(rawConfig.wrapEntireFieldDefinitions, false),
      ignoreEnumValuesFromSchema: getConfigValue(rawConfig.ignoreEnumValuesFromSchema, false),
      directiveArgumentAndInputFieldMappings: transformDirectiveArgumentAndInputFieldMappings(
        rawConfig.directiveArgumentAndInputFieldMappings ?? {},
        rawConfig.directiveArgumentAndInputFieldMappingTypeSuffix
      ),
      ...additionalConfig,
      scalars: {},
    });

dev-test/githunt/types.onlyEnums.ts
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = {
  [K in keyof T]: T[K];
};
export type MakeOptional<T, K extends keyof T> = Omit<T, K> &
  { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> &
  { [SubKey in K]: Maybe<T[SubKey]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {};

/** A list of options for the sort order of the feed */
export enum FeedType {
  /** Sort by a combination of freshness and score, using Reddit's algorithm */
  Hot = "HOT",
  /** Newest entries first */
  New = "NEW",
  /** Highest score entries first */
  Top = "TOP"
}

/** The type of vote to record, when submitting a vote */
export enum VoteType {
  Cancel = "CANCEL",
  Down = "DOWN",
  Up = "UP"
}

export type OnCommentAddedSubscriptionVariables = Exact<{
  repoFullName: String;
}>;

export type OnCommentAddedSubscription = {
  __typename?: "Subscription";
  commentAdded?: {
    __typename?: "Comment";
    id: Int;
    createdAt: Float;
    content: String;
    postedBy: { __typename?: "User"; login: String; html_url: String };
  } | null;
};

export type CommentQueryVariables = Exact<{
  repoFullName: String;
  limit?: InputMaybe<Int>;
  offset?: InputMaybe<Int>;
}>;

export type CommentQuery = {
  __typename?: "Query";
  currentUser?: { __typename?: "User"; login: String; html_url: String } | null;
  entry?: {
    __typename?: "Entry";
    id: Int;
    createdAt: Float;
    commentCount: Int;
    postedBy: { __typename?: "User"; login: String; html_url: String };
    comments: Array<{
      __typename?: "Comment";
      id: Int;
      createdAt: Float;
      content: String;
      postedBy: { __typename?: "User"; login: String; html_url: String };
    } | null>;
    repository: {
      __typename?: "Repository";
      description?: String | null;
      open_issues_count?: Int | null;
      stargazers_count: Int;
      full_name: String;
      html_url: String;
    };
  } | null;
};

export type CommentsPageCommentFragment = {
  __typename?: "Comment";
  id: Int;
  createdAt: Float;
  content: String;
  postedBy: { __typename?: "User"; login: String; html_url: String };
};

export type CurrentUserForProfileQueryVariables = Exact<{
  [key: string]: never;
}>;

export type CurrentUserForProfileQuery = {
  __typename?: "Query";
  currentUser?: {
    __typename?: "User";
    login: String;
    avatar_url: String;
  } | null;
};

export type FeedEntryFragment = {
  __typename?: "Entry";
  id: Int;
  commentCount: Int;
  score: Int;
  createdAt: Float;
  repository: {
    __typename?: "Repository";
    full_name: String;
    html_url: String;
    description?: String | null;
    stargazers_count: Int;
    open_issues_count?: Int | null;
    owner?: { __typename?: "User"; avatar_url: String } | null;
  };
  vote: { __typename?: "Vote"; vote_value: Int };
  postedBy: { __typename?: "User"; html_url: String; login: String };
};

export type FeedQueryVariables = Exact<{
  type: FeedType;
  offset?: InputMaybe<Int>;
  limit?: InputMaybe<Int>;
}>;

export type FeedQuery = {
  __typename?: "Query";
  currentUser?: { __typename?: "User"; login: String } | null;
  feed?: Array<{
    __typename?: "Entry";
    id: Int;
    commentCount: Int;
    score: Int;
    createdAt: Float;
    repository: {
      __typename?: "Repository";
      full_name: String;
      html_url: String;
      description?: String | null;
      stargazers_count: Int;
      open_issues_count?: Int | null;
      owner?: { __typename?: "User"; avatar_url: String } | null;
    };
    vote: { __typename?: "Vote"; vote_value: Int };
    postedBy: { __typename?: "User"; html_url: String; login: String };
  } | null> | null;
};

export type SubmitRepositoryMutationVariables = Exact<{
  repoFullName: String;
}>;

export type SubmitRepositoryMutation = {
  __typename?: "Mutation";
  submitRepository?: { __typename?: "Entry"; createdAt: Float } | null;
};

export type RepoInfoFragment = {
  __typename?: "Entry";
  createdAt: Float;
  repository: {
    __typename?: "Repository";
    description?: String | null;
    stargazers_count: Int;
    open_issues_count?: Int | null;
  };
  postedBy: { __typename?: "User"; html_url: String; login: String };
};

export type SubmitCommentMutationVariables = Exact<{
  repoFullName: String;
  commentContent: String;
}>;

export type SubmitCommentMutation = {
  __typename?: "Mutation";
  submitComment?: {
    __typename?: "Comment";
    id: Int;
    createdAt: Float;
    content: String;
    postedBy: { __typename?: "User"; login: String; html_url: String };
  } | null;
};

export type VoteButtonsFragment = {
  __typename?: "Entry";
  score: Int;
  vote: { __typename?: "Vote"; vote_value: Int };
};

export type VoteMutationVariables = Exact<{
  repoFullName: String;
  type: VoteType;
}>;

export type VoteMutation = {
  __typename?: "Mutation";
  vote?: {
    __typename?: "Entry";
    score: Int;
    id: Int;
    vote: { __typename?: "Vote"; vote_value: Int };
  } | null;
};

Happy to take another whack with some guidance.

Solved this in #7718


The email<EMAIL_ADDRESS>is correct?

I don't know why, but it's true!
You can put how many dots do you want and it's correct.
<EMAIL_ADDRESS>Send the success message but the email never goes to the inbox.
Anyone to help it?
Thanks

The email validation also fails for TLDs with more than for letters, which includes some of the newer ones.
For example<EMAIL_ADDRESS>fails validation, but is a valid email address.


Discord channel for Cookbook discussions

@MKhalusova - let me begin by saying thank you.  this is an un-issue.
Is there  discord channel or huggingface forum set up for discussions related to the cookbook?  I've noticed on GitHub recently that there are a few repos that have enabled the discussions feature as well.  The LLaVA repo is where I learned about this feature.
The rag_zephyr_langchain.ipynb notebook is great.  reinforced and introduced some new concepts.

faiss-gpu:  I had used this python module before on my Windows 11 system and wasn't expecting issues installing it.  Simple reason is that I had used it previously from WSL Ubuntu.  May be worth mentioning it.

rag-chain:  you may want to mention the essential value provided by LangChain's RunnablePassthrough() method.

I'm familiar with LangChain but missed this chapter in my learning process.  I don't grok it fully yet but my spidey-sense is telling me it was created to get around challenges related to trying to use f-strings in prompts (it's nasty).

Thanks again!

Thanks for the comments! I'm not sure if it makes sense to have a discord channel for the cookbook, but if there's more interest in it, we can consider it.
Would you like to open a PR to add these notes to the notebook and become a contributor? :)


Completing Icon element

Hello,
I see, that in Feature status icon component not completed, so i took that component and finished him. Also i am updated documentation according to that changes.

LGTM!

Apologize for the delay. This is awesome.


Add automic doc building and deployment of josh docs to github workflow(s)

It looks like that the render docs on https://esrlabs.github.io./josh do not match exactly match the latest documentation within the repository. By automating the deployment this should not be an issue in the future anymore

Solved :heavy_check_mark:

Not solved :x:

Should work now, can you confirm ?


Lists items should not create nested paragraphs

Lists currently generate the following markup
Content:
- List item

Output:

List item

It should generate this markup:

List item

This is breaking for any case where you have other content inside list items and are expecting inline content (as would be intuitively expected). Case in point: custom list bullets in ::before elements on Simpla's Privacy Policy. Using simpla-article results in a newline between the bullet and the list item content, since paragraphs are blocks by default.

Will monkey patch with CSS on simpla.io for now to continue dogfooding, but this is almost breaking IMO

If this is non trivial to patch, then we should at least add the following to the plugin CSS discussed in #23
li p {
  display: inline;
}

@bedeoverend worth doing CSS hack for this now or fixing it properly?

@seaneking probably worth adding CSS hack. I think doing this will mean re-writing inputrules utility functions, which will probably take awhile

Alright, do you want to add that to the sheet applied for #23 for now then?


Support for fixed columns

It would be nice if the grid supported fixed columns. Whereby when you scroll along the x-axis, the left-most column stays still. But otherwise scrolls on the y-axis as per normal. Is this something that may be on your upcoming features?

I would love to see the code, do you have an example that is accessible on the internet where I could see the code you wrote for frozen column?
Thanks,

Try these:
v1.4.3   https://github.com/JLynch7/SlickGrid/tree/1.4.3-frozenRowsAndColumns
v2.0   https://github.com/JLynch7/SlickGrid/tree/2.0-frozenRowsAndColumns
The examples on my wiki page are referencing the v1.4.3 version.  I'd recommend the 2.0 version as its where I'll be spending most of my time going forward.

Greatly appreciate that...thanks!

The example for 1.4.3 was great.  I was curious if it is at all possible to get a copy of the jquery-ui-1.8.16.custom.min.js in a non-min format?  The reason I am asking is that I need to see what is the custom part - before I am allowed to use it.
Thanks,
abeaulne

You can download the full jQuery UI library from http://jqueryui.com/download.  The reason for "custom" in the file name is because the jQuery UI download function adds it.  I haven't customized it.

thank you, greatly appreciate your time.


Add zero padding option to tf.image.extract_glimpse

There has been several feature request in #16663 and https://github.com/tensorflow/tensorflow/issues/2134#issuecomment-326071624 asking for zero padding option to tf.image.extract_glimpse.
This fix is an attempt to address the issue through:

Add an additional args of noise so that it is possible to specify uniform, gaussian, or zero.
In case zero is specified, extract_glimpse will fill padding with zeros.

Note this PR keeps the original arg uniform_noise intact (unless it conflict with noise), though it is possible to deprecate the uniform_noise if desired.
This fix fixes #16663.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

Note: Not sure if it is better to have ExtractGlimpseV2 instead?

Thanks @benoitsteiner for the review. The PR has been updated. Please take a look.

Nagging Assignee @benoitsteiner: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Reviewer @benoitsteiner: It has been 14 days with no activity and the awaiting review label was assigned. Can you please take a look?

Nagging Reviewer @benoitsteiner: It has been 14 days with no activity and the awaiting review label was assigned. Can you please take a look?

Nagging Reviewer @benoitsteiner: It has been 64 days with no activity and the awaiting review label was assigned. Can you please take a look?

Nagging Reviewer @benoitsteiner: It has been 79 days with no activity and the awaiting review label was assigned. Can you please take a look?

Nagging Reviewer @benoitsteiner: It has been 94 days with no activity and the awaiting review label was assigned. Can you please take a look?

Nagging Assignee @benoitsteiner: It has been 130 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@benoitsteiner -- Can you please take a look at the updates from @yongtang  and approve if they LGTY?

Nagging Assignee @benoitsteiner: It has been 20 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Please resolve conflicts.

@rmlarsen Thanks for the review. The PR has been rebased and with comments addressed. Please take a look and let me know if there are any other issues.

(For API review)
Can't this break callers that use only positional arguments (since a new argument was inserted before the last one, name)? If so, let's add a wrapper (just for v1) to prevent that, i.e., where the new argument is after name in the Python API.

@asimshankar Thanks for the review. The PR has been updated so that v1 and v2 exposed differently. Please take a look and let me know if there are any issues.

@yongtang sorry for the delay. Could you please resolve the conflicts?

Thanks @rmlarsen, the PR has been rebased and updated. Please take a look.

Thank you for pinging this. I agree with you on the 2.0 signatures. Can you change the default for noise to explicitly be "uniform" (since this is the default, right?)
Otherwise it looks good to me. If you could update the PR that would be great.
@tensorflow/api-owners FYI.

Thanks @martinwicke, the PR has been updated as discussed.
The Sanity is failing though it is unrelated (due to swift build):
ERROR: error loading package 'tensorflow/lite/experimental/swift': Extension file not found. Unable to load file '@bazel_skylib//lib:new_sets.bzl': file doesn't exist or isn't a file

@saeta do you know about this?


[Bug] table selected row property is not getting updated in image widget in deploy mode.

Description
In deploy mode, selecting a different row does not update the selected row property bound to an image widget.
https://user-images.githubusercontent.com/1757421/107853399-c14b5e80-6e3b-11eb-9099-e1656aa1d6a0.mov
Steps to reproduce the behaviour:
Add steps to reproduce this behaviour, include console / network logs & screenshots

Bind table selected row property to image widget.
Open deploy mode.
Select different rows and check if image widget gets the correct value from the selected row.

Important Details

Version: Cloud
OS: Linux
Browser: chrome

@riodeuno looks like a big issue with the new table widget

@Nikhil-Nandagopal @riodeuno I was trying the same thing today, but didn't see the problem. Not sure if this was a one time thing or any elusive / transient issue.

@prapullac can you see if you're able to reproduce this issue?

Hi @Nikhil-Nandagopal
The image rendering is working as expected but after sorting the correct image is not rendered and the issue for this is logged #3021


debugprintfdemo bricks CH32V003J4M6 since SWIO and PD4 share the same PIN

Root Cause
The SWIO and PD4 share the same PIN on CH32V003J4M6. In the debugprintfdemo, PD4 is used for output, after flashing the chip is bricked since SWIO is taken as PD4.
Solution

The debugprintfdemo should avoid using PD4.
The command minichlink -ua can unbrick the chip. However, if the chip was connected to the WCH-LinkE for a long time, it could be damaged. For me, one chip is unbricked, and another is too hot and damaged.

PR accepted.
What was WCH thinking when they put those pins together????

Thank you! I was also wondering why they share the SWIO pin, to easily brick the chip and make more earnings? LOL.
Luckily, the minichlink can unbrick the chip, great tool! Thanks again!