Not able to PROG a new remote - ESP8266 and E07-M1101d

Dear all,
it seems like the TI CC1101 are very hard to get currently.
I ordered one at Amaz*n but got a E07-M1101D.
I googled it and it seems its the Version 2 or the CC1101 (?).
However the pinning looks different, its not 2 row by 5 pins, its now 2 rows by 4 pins:

I checked the specification and found this:

So the pins are the same like on the TI CC1101, except the additional VCC and GND.
So i wired it like described in the SmartRC-CC1101-Driver-Lib

But not to a WEMOS D1 mini but to an ESP8266 NodeMCU, hoping that i can just use the same D# Pins:

Now i ran the CC1101 example from the Somfy_Remote_Lib and set #define CC1101_FREQUENCY 433.42.
Set my Somfy RTS control to Prog (blinds go up down) and typed Prog in the Serial Monitor (set to new line and 115200 Baud) but nothing happens (also no answer in the serial monitor). After ~2 minutes the blinds go again up and down (i think this means the prog-duration expired).
Than i  tried the cc1101_Receive_minimal example of the SmartRC-CC1101-Driver-Lib and at least i am getting a
10:27:30.655 -> Connection OK
10:27:30.655 -> Rx Mode
there. But also no response if i press a button on my Somfy remote.
Now i dont know if the E07-M1101D is not supported, or my wiring is wrong, or i typed something wrong in the serial monitor :(
Can someone try to help?
Thank you alot!

Can you ask in the SmartRC-CC1101-Driver-Lib project if the E07-M1101D is supported? Then we can narrow down the issue.

Thank you for your answer.
I just wanted to do this but then I saw that on the git was no issue answer since 2 years. Don't expect to get an answer there. Any other way to test what the problem is? If not I would try to get a TI Cc1101

I found this project
https://github.com/ESPboy-edu/ESPboy_Sub1GHzInspector
and they are using the E07-M1101D in combination with the SmartRC-CC1101-Driver-Lib
for blue CC1101 version
1 >> GND
2 >> VCC
3 >> D4, GPIO2
4 >> D8, GPIO15, SS
5 >> D5, GPIO14, SCK
6 >> D7, GPIO13, MOSI
7 >> D6, GPIO12, MISO
8 >> RX, GPIO3, RX
Found the following in ESPboy_Sub1GHzInspector.ino:
`#include <ELECHOUSE_CC1101_SRC_DRV.h>
#include <RCSwitch.h>
#include <ESP_EEPROM.h>
#define CC1101riceivePin    3
#define CC1101sendPin       2
#define CC1101chipSelectPin D8`
So my assumption is that it is supported

I looked at the ESPboy_Sub1GHzInspector project and cannot find a reference to E07-M1101D.

Thank you for checking the project. The upper blue CC1101 is exactly the module I am using. Also they are using it in their build up (at least I can see 2x4 pins and not 2x5)

I checked Google and eBay again and I am not able to find an available TI cc1101 :( nowhere on stock anymore

As you can see the 2x5 has duplicate VCC and GND pins, I think they are removed with the 2x4, but they also had to reorder the other pins. So we need to find the pin out diagram for the 2x4 to wire it correctly, then it should work with the SmartRC-CC1101-Driver-Lib.

I found this specification for the E07-M1101D

And currently i am using this wiring:

However, following the wiring they are using here https://github.com/ESPboy-edu/ESPboy_Sub1GHzInspector it should be like this:

However there are some #defines in their code:
`#include <ELECHOUSE_CC1101_SRC_DRV.h>
#include <RCSwitch.h>
#include <ESP_EEPROM.h>
#define CC1101riceivePin 3
#define CC1101sendPin 2
#define CC1101chipSelectPin D8`
I can try both setups but i am little bit lost here :(

Maybe your receiver does not understand the send commands, because it uses some other protocol. Have you tried to use a different parameter as second argument to the sendCommand function?

Hello, no i didnt try. Do you mean something like sendCommand(Command::Prog, 2); ?

Yes or use parameter 4, see readme for more details.

Same hardware here, I got it kinda working with a D1 mini and nodemcu, both esp8266 based. I say kinda, because although I can transmit commands, the signal is very weak and not recognized by rtl_433 for example. Using airspy, I can see that something is transmitted, near the frequency of the original remote, but with a slight offset :

I'm using the CC1101 sketch.
Has anyone encountered the same issue ?

That offset is likely not enough to cause an issue but the signal power is likely an issue. What antenna are you using with your CC1101? Double check it is properly connected. possibly also check the CC1101 is getting the right voltage.
It could also be faulty. There's lots of crappy PCBs out there.

That offset is likely not enough to cause an issue (mine is similar) but the signal power could be an issue. What antenna are you using with your CC1101? Double check it is properly connected. possibly also check the CC1101 is getting the right voltage with a multimeter.
The CC1101 could also be faulty. There are lots of crappy PCBs out there.
Another totally different and very possible scenario (maybe even more possible) is it is not wired up right. It's odd its just a single line with no pattern, even if power is reduced. Many ESPs have differing pins to each other. Would be useful to share pictures/diagram of the wiring and exact model number of the ESP and CC1101. You should also thoroughly check for shorts between the CC1101 pins.

Thanks for your answer.
I'm using the same board and antenna as displayed above

I have two of them, wired to ESP8266 :

D1 mini with dupont connectors.
NodeMCU directly soldered to the pins. Tested for shorts and continuity.

All boards have been cleaned, using proper PCB cleaning solvents, and then dried with compressed air.
NodeMCU :

(My soldering is not the prettiest)
D1 mini :

I'm still getting some signal when I send a command, as seen in airspy :

But nothing close to what I'm getting with the remote in term of strength and amplitude (sorry if I misuse the terms).

After a very long night I have solved the issue. I got it working with an ESP8266 wemos D1 (clone).
If you have followed the wiring of the SmartRC-CC1101-Driver-Lib guide, then you have connected CC1101 to the ESP8266 like this:

CC1101E07-M1101d
ESP8266

1 GND
GND

2 VCC
3V3

3 GD00
D1 GPIO5

4 CKN/CSN
D8 GPIO15

5 SCK
D5 GPIO14

6 MOSI
D7 GPIO13

7 MISO/GD01
D6 GPIO12

8 GD02
D2 GPIO4

In the example of the CC1101.ino the EMITTER_GPIO is 2 (D4 on a ESP8266) which is wrong and should be set to 5, which is D1 connected to GD00. The very small signal we were seeing was probably because of some cross GPIO leaking within the ESP8266.
I now have a correct working CC1101E07-M1101d with this library.
I do recommend looking at the new non GDO way of using the SmartRC-CC1101-Driver-Lib library, this way you dont need to set the GDO pin anymore.
And secondly, there's a bug in SomfyRemote.cpp.
https://github.com/Legion2/Somfy_Remote_Lib/blob/50a440a3038199d9d6b3b92471c13de4eb21318c/src/SomfyRemote.cpp#L15
The repeat is swapped with the rollingCode
https://github.com/Legion2/Somfy_Remote_Lib/blob/50a440a3038199d9d6b3b92471c13de4eb21318c/src/SomfyRemote.cpp#L18
I have a PR ready, will push it after this post.

I am literally stuck on this but with an Arduino Uno and E07-M1101d. I've wired it exactly like this and nothing happens. Can someone point me in the right direction?


RefreshSegmentTaskGenerator: Evaluate and Use Server APIs to determine if refresh is needed.

PR https://github.com/apache/pinot/pull/14300 talks about the reasoning for triggering no-op minion tasks when there are table config updates.
Cons of this approach is that there will be minion tasks created for all segments for each table config update.
To overcome this problem, we can use a server side API that will return the list of segments to be refreshed. It is being developed in https://github.com/apache/pinot/issues/14450.

Copying from comment - https://github.com/apache/pinot/pull/14596/files#r1870200378
One improvement in this task can be to keep the default number of tasks execution is equal to number of partitions in a table and we process one segment per partition (or instance) by default. This way the load gets normalised across hosts.


implemented backToTabView use case

Motivation and Context

Your Changes

Description:
Type of change (select all that apply):

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
[x] Refactoring (internal change to codebase, without changing functionality)
[x] Test update (change that modifies or updates tests only)
[x] Documentation update (change that modifies or updates documentation only)
[x] Other (please specify):

Testing

Questions and Comments (if applicable)

Checklist

[x] I have performed a self-review of my own code.
[x] I have added tests for my changes.
[x] Coverage tests
[x] Coding style (conforms to Google Java Style Guide)
[x] Especially follows section 7 (Javadoc is present for every public class, public or protected member)
[x] Especially follows section 4.6 (Multiple consecutive blank lines are not encouraged)
[x] Correctness (follows CA and SOLID, is a reasonable and not overly complicated solution, etc.)
[x] Description of pull request is clear, consise, and reasonably detailed

Unclear how errors or exceptional cases are handled in this method. Should maybe add error handling. Should also add javadoc and comments to make code clearer. Overall good job!

changing the view will never throw an error or or have to present a failure view


Fix Memory Leak in EVP_MD_CTX_free by Removing EVP_MD_CTX_FLAG_REUSE

Alternative fix for #6343: Address a memory leak in the EVP_MD_CTX_free function caused by the EVP_MD_CTX_FLAG_REUSE flag, which was likely introduced to optimize the copy performance of EVP_MD_CTX. Eliminate the internal flag EVP_MD_CTX_FLAG_REUSE and its usage. Introduce the evp_md_ctx_take_data helper function to enhance code readability. Refactor EVP_MD_CTX_copy_ex: Update the legacy implementation by using the new helper function and reorganize the logic to group related code segments for better readability.

This is IMO wrong and we should not try to fix this misfeature. Also the CI failures are relevant.

Also you cannot remove public #define - you could probably still remove its internal usage but I do not see a need for this.

@t8m

This is IMO wrong and we should not try to fix this misfeature. Also the CI failures are relevant.
Also you cannot remove public #define - you could probably still remove its internal usage but I do not see a need for this.

I understand and agree with your opinion. I also prefer the simpler implementation where the flag is cleared at a suitable place. However, I believe it’s sometimes helpful to visualize alternatives, and this PR aims to provide such a visualization.
I’ve updated the code to restore the #define to the API and fixed the memory leak I introduced, replaced it by a crash in the GOST algorithms. It is interesting to see the CI errors that are raised by the changes.


Custom API - State in JSON body

Is your feature request related to a problem? Please describe.
Firstly, thanks - this is super helpful!
I'm looking at various ways to utilize this with Home Assistant.
Right now I can expose the REST API directly to send different commands to a bulb for example.
Describe the solution you'd like
However, I think an interesting option would be to use Node-Red.
Set up a REST target and have PresenceLight send the command to http://Node_red_ip:1880/LightPresence
What would be super helpful in this instance is for the availability to be send as the body of the payload
{ "availability": "busy" }

Describe alternatives you've considered
Alternatively an MQTT protocol option would also be cool, so someone could subscribe to the MQTT topic LightPresence/availability
and the result would be
busy
for example. This opens up a wealth of possibilities beyond just lights too :)
Additional context
Happy to provide more info if needed. Thanks again for building this!

Seems interesting, I don't have Home Assistant so it would be hard to test. Happy to accept a PR

Hey - thanks for the note - you probably wouldnt want me poking around, i'm not smart enough to be useful :(
the main ask is to send the state in the JSON body to a single POST/GET request (rather than various individual POST requests - 1 per state)

Hey, I'm also looking for a HA integration. I think most reusable way is to allow passing custom headers and payload to this custom API (for POST and GET). I'll take a look at it

Closing this as it seems @Xyolyp is working on #159 for this

Quick question: @jaburges can you post an example of your URI's im trying but getting only 404's

Quick question: @jaburges can you post an example of your URI's im trying but getting only 404's

Seems interesting, I don't have Home Assistant so it would be hard to test. Happy to accept a PR

I think this would be SUPER useful. Is there or can we have some traction on this? Is MQTT supported and how?


[Menu] Class .menu.icon-top no working

How to reproduce this bug:

Create a ul.menu.icon-top like in the documentation http://foundation.zurb.com/sites/docs/menu.html#icons

What should happen:
The icons should be oriented above the text.
What happened instead:
Nothing changes when the class .icon-top is added and and the icons stays positioned at the same row of the text.
Browser(s) and Device(s) tested on:
Safari - Version 10.1.2 (12603.3.8)
Chrome - Version 59.0.3071.115 (Official Build) (64-bit)
Foundation Version(s) you are using:
6.4.1
Test case link:
https://codepen.io/repoles/pen/VzPOzQ

@repoles This has actually been addressed in the upcoming 6.4.2 version, though its actually just a docs update. All you need to do is add icons as a class (as well as icon-top) in order for this to work correctly.

 One

 Two

 Three

 Four

See this thread for details: https://github.com/zurb/foundation-sites/issues/10290
Going to close this but the above should give you all the info you need 😄


[Feature]: Gemini usage in agentscope through VartexAI

Vartexai is google platform based on project
For the usage, we use the code as below
from vertexai.generative_models import GenerativeModel, Part
import vertexai.preview.generative_models as generative_models
(after run this import code need to login in google SDK)
vertexai.init(project="", location="")
model = GenerativeModel("gemini-1.5-pro-001",)
Can you add this Gemini usage for agentscope
as the no_api_key version, for api_key is vertexai
{
{
"config_name": "my_gemini_chat_config",
"model_type": "gemini_chat",
"model_name": "{model_name}",               # Gemini Chat API中的模型名，例如：gemini-pro

"api_key": "vertexai",

}
}

Thanks for your attention.
Honestly, I'm a little confused about the differences between the google.generativeai and vartexai libraries since they provide similar model API serviecs. For now, we will first figure it out, and then make decisions.
@liuqi6776 Any suggestions about their differences?

@DavdGao  Sure, this is some differences about their definition and implement code.
1:google.generativeai
High-Level API: This is a user-friendly Python library that offers a simplified interface for working with pre-trained generative AI models. It's designed to make it easy for developers to integrate generative AI features into their applications quickly.
Example:
from google.generativeai import generate_text
response = generate_text(
model='text-davinci-003',
prompt='Write a short story about a cat who goes on an adventure.'
)
print(response.text)
2. vertexai.generative_models.GenerativeModel
Model Object: This is a class within the Vertex AI SDK that represents a trained generative model. It provides methods for interacting with models in a more fine-grained and flexible manner.
Customizability: vertexai.generative_models.GenerativeModel is designed for more advanced users who want more control over the model training and deployment process. You can load your own pre-trained models or train new ones.
ML Pipeline Integration: This class is integrated with the broader Vertex AI platform. This means you can take advantage of features like:
Model training: Train your own generative models with Vertex AI's managed environments.
Deployment: Deploy models to serve predictions in production.
Monitoring and optimization: Track and improve model performance over time.
Example:
from vertexai.generative_models import GenerativeModel
from vertexai.generative_models.text import TextGenerationModel
model = TextGenerationModel.create(
display_name='my-text-model',
model_type='text-davinci-003'
)
response = model.predict(
text_inputs=['Write a short story about a cat who goes on an adventure.']
)
print(response)


Additional Permission

how to add additional permission like permission based on branch .
note : branch from database table
thanks

You don't mean this do you?
https://volkanceylan.gitbooks.io/serenity-guide/content/howto/how_to_register_permissions_in_serene.html

could pleae give me example for this
if you don't use a permission key with any of them but still want to show it in permission dialogs, you can use RegisterPermission attribute on assembly (write this anywhere in YourProject.Web):
[assembly: Serenity.ComponentModel.RegisterPermissionKey("MySpecialPermissionKey")]
i tried but not working

It's working. Permission based on database table is not possible simply. Use something like roles and its interface.


Add matplotlib colormaps and set magma as default

Description
This PR adds support for all the matplotlib colormaps and sets magma as the default for grayscale image layers.
I also tried viewer.layers[0].cmap = 'inferno' and it instantly updated! Maybe everyone else reading this is already used to the magic of Napari but I'm still in the amazed phase. =D
I'll also note that python examples/layers.py results in
 $ python examples/layers.py
/home/jni/miniconda3/envs/cf/lib/python3.6/site-packages/vispy/visuals/isocurve.py:22: UserWarning: VisPy is not yet compatible with matplotlib 2.2+
  warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
Traceback (most recent call last):
  File "examples/layers.py", line 84, in <module>
    viewer.show()
AttributeError: 'Viewer' object has no attribute 'show'

but I consider fixing that beyond the scope of this PR.
Type of change

[x] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update (@jni says: ?)

How has this been tested?
I ran demo.py without issue and layers.ipynb which verified that the default colormap and another colormap from matplotlib both worked.
Final checklist:

[x] My PR is the minimum possible work for the desired functionality  :arrow_left: this is definitely true :stuck_out_tongue:
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (?)
[ ] I have added tests that prove my fix is effective or that my feature works (?)

Hello @jni! Thanks for submitting the PR.

There are no PEP8 issues in the file gui/layers/_image_layer.py !

Love this in theory! Is anyone else at all concerned about taking on matplotlib as a hard dependency? It's a pretty heavy package, and there's something about keeping the dependencies minimal, especially if there are other ways to provide most / all of the colormaps via vispy. Maybe somehow make optional or a plugin or something?

Should be trivial to rip-off just the colormaps and add our own curated ones...
I second @kne42 that we should avoid such a heavy dependency if all we need
is LUTs...

Sorry, I means I second @freeman-lab lol.

Agree with @freeman-lab and @royerloic. Also not sure what you’re bringing up about the error – we have no layers.py example.

Should be trivial to rip-off just the colormaps and add our own curated ones...
I second @kne42 that we should avoid such a heavy dependency if all we need
is LUTs...

I would love to hear about how to not get whole matplotlib as a dependency.

@jni, thanks for this! I think it is good to go. My only comment is that as @sofroniewn said, the GUI's colormap list should update to reflect changes made in the notebook. I also agree that is out of the scope of this PR. However, for some reason I don't have the ability to approve this PR. Do we have to update from master before we can review? Or maybe I don't have permissions?

@kevinyamauchi To submit a review you should click on the "Files changed" tab and then the green "Review changes" button.

@kevinyamauchi To submit a review you should click on the "Files changed" tab and then the green "Review changes" button.

Thanks! Pre-coffee brain... XD

🚀 🎉


refactor(kas): remove kas oidc dependency

KAS Updates:

remove double access token verification
always verify signed request token with dpop pubkey
extract entity info
remove bearer token from kas rewrap proto

SDK Updates:

builds kas client when doing decrypt instead of on sdk initialization
adds ability to pass in extra grpc dial options
updates tdf tests to mock out kas grpc rewrap and public key endpoint

Resolves #580

@mkleene

I don't love the kasClient refactoring for a few reasons

It makes it harder to use a single connection, which is a pretty reasonable option to keep open
We are taking a pretty straightforward service locator pattern and replacing it with creation of client classes deep in code so it's hard to see where dependencies are, let alone isolate them for testing if we need to
I don't think that it would be hard to specify the dial options in the SDK creation code

If we are going to do this we should also get rid of auth_config since it won't work for anyone. Also turning off authn.Config.Enabled won't work for rewrap so we might as well get rid of it, too.

We can't use a single connection if we have multiple KAS's passed in. For example if we have kas1.example.com and kas2.example.com I don't think it's possible to re-use that connection. The same thing goes for decrypt with multiple key access objects. We could have kas1.example.com and kas2.example.com. Which all this might change when we get into ironing out multi-kas but this is currently how it works today.
There is a new WithDialOptions that you can set in the sdk now. This was needed anyway so we could mock the KAS grpc service with the buffconn package.


Option of select field back to full list if result of custom query is empty list

Dear,
I found an issue that, if we set custom query in create_form or edit_form as below
    def create_form(self, obj=None):
        form = super(ModelView, self).create_form(obj)
        form.customer.query = db_util.filter_by_organization(Customer)
        return form

and if form.customer.query returns an empty list, while the original object list (form.customer._object_list) has some values in it
In the generated UI, all the values instead of an empty list will be shown, that's not the expect behaviour actually.
So I have to set the _object_list to empty list manually as below to work around this issue:
    def create_form(self, obj=None):
        form = super(ModelView, self).create_form(obj)
        form.customer.query = db_util.filter_by_organization(Customer)
        if len(form.customer.query) == 0:
            form.customer._object_list = []
        return form

Is there any specific reason behind this design or is this a bug?
Thanks.

I'm pretty sure that's a bug. PR would be welcome.


LabVIEW Timeout Errors

Hi James,
I see the below error very often, I think this is something that you have mentioned above.

Could you please let me know how to solve this issue?
Thanks,
Bhargavi Gowri.
Originally posted by @Bhargavi-Gowri in https://github.com/JamesMc86/G-CLI/issues/84#issuecomment-579181092

Hi @JamesMc86 ,
I have checked that the code is not broken and doesn't take more than 30 seconds to open. Still I see the connection time out error sometimes.
Could you please elaborate more on the point -- "You can also try increasing the timeout to check if it is slow with the flag --timeout 300000 (for 5 minutes for example)". Is this something to be done by  adding any keys to LabVIEW.ini file?
Thanks,
Bhargavi Gowri.

Hi @Bhargavi-Gowri ,
It is another parameter for g cli. So your command might look like
g-cli --lv-ver 2016 --timeout 300000 C:\myvi.vi


fix(alert): properly pass $event as local

Change to pass object due to how & binding works

Here is the Plunker in action.
This fixes #4386.

:+1:


ipam-node: Add logic to migrate host-local IPAM store to the new store format

This required to preserve IP reservations which were done by the previous version of the nv-ipam.

coverage: 78.142% (-0.9%) from 79.032% when pulling 22fce071d720c00822a6b40fb935416111ef2a2d on ykulazhenkov:migration into a8a4a40ae9e4b1fc6bf3c51d9e111eab5bc1ea89 on Mellanox:main.


Go to the homepage/dashboard by clicking logo

It would be nice if we could go to the home page by clicking the Salt Rim logo/name

Added in v0.6.0.
Thanks!


METRON-1888 Default Topology Settings in MPack Cause Profiler to Stall

The default max spout pending value set by the Mpack for the Profiler topology is 300. This value is too low and causes the topology to stall and stop consuming messages.
This is an annoying issue to debug because I am unable to find anything logged by Storm indicating that the max spout pending limit is breached.  When this limit is exceeded it just appears that the KafkaSpout stops consuming messages from Kafka and everything else would indicate the topology is healthy.
The Profiler topology is the only Metron topology that uses Storm's windowing support.  Storm will queue up messages for the window (by default 30 seconds) and process each of the tuples in the window as one unit.  This causes Storm to need to "hang on" to tuples longer than the other topologies and this requires a greater max spout pending value.
This PR restores the original default value prior to #1221 that changed this value.  There really is no need to define this value by default.  I was a reviewer on #1221 and should have caught this. Doh!
Testing

Spin-up Full Dev.
Create a profile using the Streaming Profiler in Storm.
Allow the topology to run for at least 5 to 30 minutes.
Ensure that the Profiler topology continues to consume messages at the end of this period.

Pull Request Checklist

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?
[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[x] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
[x] Have you written or updated unit tests and or integration tests to verify your changes?
[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

+1 by inspection.  I'm okay with leaving this undefined by default.
Should we have a jira for the ability to detect (and maybe in a perfect world, correct/mitigate) the max spout pending limit issue you mention above?

Thanks @justinleet .  I added https://issues.apache.org/jira/browse/METRON-1897 for this.


Scale

The scale property is defined but not implemented in the control.
Create a new sizing mode SCALE that renders at the indicated scale value.  This provides an "inside out" sizing mode, where the component renders tiles at the indicated size, instead of auto-sizing to the container.
This amounts to setting the CSS width and height on the container; see if we can use the CSS variables for this.
In addition, add the scale to the information kept with each page (the PageContext class).  This should pass through to the emit wrappers as well.

Based on current understanding, the canvas scale (canvas.width and height) and the CSS "scale" (via the style attribute width and height) are independent; it is possible to render an arbitrary scale image and rescale it with CSS.  This is how the component currently works, using the CSS variables.  It also additionally "upscales" by the DPR.  The SCALE mode should just give the canvas scale, and CSS can do the rest, however this requires the user to size containers appropriately.

Turned out to be less difficult than anticipated.  In particular while in SCALE mode, changing the scale is only an update of the CSS variable --scale-factor.


Add CancellationToken to IQueryable.AsAsyncEnumerable

Lets make a simple repository style wrapper around a database context!
public IEnumerable<Job> GetByPipeline(int pipelineId)
{
    return context.Jobs.Where(job => job.Pipeline.Id == pipelineId);
}

Easy! Now lets make it async!
public IAsyncEnumerable<Job> GetByPipeline(int pipelineId)
{
    return context.Jobs.Where(job => job.Pipeline.Id == pipelineId).AsAsyncEnumerable();
}

It worked! Now lets add a CancellationToken!
public IAsyncEnumerable<Job> GetByPipeline(int pipelineId, CancellationToken cancellationToken)
{
    return context.Jobs.Where(job => job.Pipeline.Id == pipelineId).AsAsyncEnumerable(cancellationToken);
}

error CS1501: No overload for method 'AsAsyncEnumerable' takes 1 arguments

Uh oh! Maybe we can use WithCancellation?
public IAsyncEnumerable<Job> GetByPipeline(int pipelineId, CancellationToken cancellationToken)
{
    return context.Jobs.Where(job => job.Pipeline.Id == pipelineId).AsAsyncEnumerable().WithCancellation(cancellationToken);
}

error CS0029: Cannot implicitly convert type 'System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<Astra.Domain.Entities.Job>' to 'System.Collections.Generic.IAsyncEnumerable<Astra.Domain.Entities.Job>'

WithCancellation does not return an IAsyncEnumerable!
Ok... I guess we can loop over it ourselves in an async function?
public async IAsyncEnumerable<Job> GetByPipeline(int pipelineId, CancellationToken cancellationToken)
{
    await foreach(var job in context.Jobs.Where(job => job.Pipeline.Id == pipelineId)
        .AsAsyncEnumerable()
        .WithCancellation(cancellationToken))
    {
        yield return job;
    }
}

It compiles, but since this library function now has await in it, we should probably ConfigureAwait as well.
public async IAsyncEnumerable<Job> GetByPipeline(int pipelineId, CancellationToken cancellationToken)
{
    await foreach(var job in context.Jobs.Where(job => job.Pipeline.Id == pipelineId)
        .AsAsyncEnumerable()
        .WithCancellation(cancellationToken)
        .ConfigureAwait(false))
    {
        yield return job;
    }
}

Pfew I think we're done........wait. A new warning?

warning CS8425: Async-iterator 'JobRepository.GetByPipeline(int, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed

EnumeratorCancellationAttribute to the rescue!
public async IAsyncEnumerable<Job> GetByPipeline(int pipelineId, [EnumeratorCancellation] CancellationToken cancellationToken)
{
	await foreach(var job in context.Jobs.Where(job => job.Pipeline.Id == pipelineId)
		.AsAsyncEnumerable()
		.WithCancellation(cancellationToken)
		.ConfigureAwait(false))
	{
		yield return job;
	}
}

Isn't she beautiful?
...
...
...
Please add a CancellationToken parameter to AsAsyncEnumerable. Thanks.

The pain you went through, exactly same I went through while trying to add CancellationToken to the method. You can also remove EF from picture. If you are using any method which returns IAsyncEnumerable, you cannot pass cancellationToken unless you go through above exercise. It's beautiful but the beauty is created by BCL (especially result type of WithCancellation() being different. ) I would suggest filing issue with them if you want to suggest any changes.
Since all the methods returning IAsyncEnumerable (EF or without EF) hits the same fate, this is how we suggest to use the API.
await foreach (var element in GetByPipeline(pipelineId).WithCancellation(cancellationToken))
{
///
}

The pain you went through, exactly same I went through while trying to add CancellationToken to the method.

It gives me comfort knowing I'm not alone.

created by BCL

I remember reading somewhere that ConfiguredCancelableAsyncEnumerable not implementing IAsyncEnumerable was a design decision. And since pretty much every other async IQueryable methods support CancellationToken, I figured I would have more luck here with a small change. It only needs to be done once, so the higher up the chain the better. But I'll definitely consider also posting an issue on the corefx repository.

pretty much every other async IQueryable methods support CancellationToken

Is there a method we have which returns IAsyncEnumerable & also support cancellationToken? EF Core provides async methods mainly for single result (where enumerable is not returned) or methods which enumerates and populate collection objects. They all take cancellationToken since they enumerate asynchronously inside the body to generate the result (rather than streaming).

Closing as by-design since, as @smitpatel says, this is how cancellation support was designed for the async enumerable language feature. If there is something simple we could do in EF to make the experience easier, then we would consider doing that. As it stands, we are limited by the language feature.


Infinite loop when trying to login

So, I really went through all related issues here, but none seems to be my issue.
Sometimes, when I reload my application, I'm getting an infinite loop. When I delete the cache, it's gone again.
I was debugging this, and it seems to happen when it's trying to fetch the DiscoveryDocument:
https://github.com/manfredsteyer/angular-oauth2-oidc/blob/3ba7303b5a6fdbae5ca214764c9191637cd00126/projects/lib/src/oauth-service.ts#L548
It seems to fire this get request, and then immediately reload the page. I can't seem to figure out where the reload comes from. As mentioned, when I delete the cache, everything goes as expected: It can fetch the DiscoveryDocument and it also successfully validates it.
What might be relevant for this line here:
My fullUrl is:  https://my-issuer.com/.well-known/openid-configuration
My implementation is pretty basic:
async runLoginSequence(): Promise<boolean> {
        this.oauthService.configure(authConfig);
        this.oauthService.tokenValidationHandler = new NullValidationHandler();
        this.oauthService.setStorage(localStorage);
        this.oauthService.setupAutomaticSilentRefresh();
        return this.oauthService.loadDiscoveryDocumentAndTryLogin({customHashFragment: window.location.search});
    }

And this is wrapped in a method, which then is called on startup (with the APP_INITIALIZER token):
export function initialUserInfoRefresh(injector: Injector): () => Promise<boolean> {
    return (): Promise<boolean> => {
        return injector
            .get(AuthenticationService)
            .runLoginSequence();
    };
}

APP_INITIALIZER provider:
{
            provide: APP_INITIALIZER,
            useFactory: initialUserInfoRefresh,
            multi: true,
            deps: [Injector],
},

Also my auth-config.ts there is nothing special with it:
export const authConfig: AuthConfig = {
    // Url of the Identity Provider
    issuer: environment.authorityBaseUrl,

    loginUrl: environment.authority,

    // URL of the SPA to redirect the user to after login
    redirectUri: environment.redirectUrl,

    requestAccessToken: false,

    // The SPA's id. The SPA is registerd with this id at the auth-server
    // clientId: 'server.code',
    clientId: environment.clientId,

    // responseType: 'code',
    responseType: 'id_token',

    silentRefreshRedirectUri: window.location.origin + '/assets/misc/silent-refresh.html',

    logoutUrl: 'https://www.something.com',

    scope: 'openid profile',

    showDebugInformation: true,

    clearHashAfterLogin: true,

    // turn off validation that discovery document endpoints start with the issuer url defined above
    // https://manfredsteyer.github.io/angular-oauth2-oidc/docs/additional-documentation/using-an-id-provider-that-fails-discovery-document-validation.html
    strictDiscoveryDocumentValidation: false,
    skipIssuerCheck: true,
};

I also just upgraded all my versions: I'm on Angular 15, and the latest version of this lib (15.0.1).
Expected behavior
should work without the infinite loop.
Desktop (please complete the following information):

OS: MacOS, Windows
Browser:  chrome
Version: 112

If you need additional information, please let me know :)

Does anyone know a solution for that?
I would also pay for someone who would take a look at this/my implementation with me :)

I can proudly say that, after about 5 days of debugging, I resolved this issue :)))
I'll explain what caused it for me:

In my application I had an interceptor, which appended the bearer token, as well as a "Content-Type: application/json" header. Those headers were appended to every request (meaning, also to the request which fetches the DiscoveryDocument, which is wrong!)
Now, I already got rid of this interceptor a couple of days ago. However, we have a Service Worker in our application, which is caching very agressively. That brought me this weird behaviour, that, when I first clear the cash (with right click on the refresh button), it worked without any problems. But then, the upcoming requests were coming from the service worker again (=cached).

So, in the end, after disabling the Service Worker (for local development), and clearing the cache (with Ctrl + Alt + Entf), the issue is finally gone :)


t_linear >> linear_template in sanssouci.python

There has been a change in the API of the sanssouci.python package: t_linear is now named more  explicitly: linear_template. Idem for the corresponding inverse function and other templates. The corresponding code in pyrft should be updated accordingly, in particular in:
https://github.com/sjdavenport/pyrft/blob/9087715614ece386a758fadffdf85680e4ec735d/pyrft/ss_extras.py#L106-L111

Alex fixed this


3-oxo-5alpha-steroid 4-dehydrogenase (NADP+)

3-oxo-5alpha-steroid 4-dehydrogenase (NADP+)
3-oxo-5alpha-steroid 4-dehydrogenase (NADP+)
a) is not appended by "activity"
b)  is not related to 3-oxo-5-alpha-steroid 4-dehydrogenase activity
3-oxo-5-alpha-steroid 4-dehydrogenase activity

Good catch! These two are the same... with a hyphen as the difference.
We need to obsolete one and replace by the other.

Likewise, this pair of terms correspond to the same activity:
'3-oxo-delta(4,5)-steroid 5-beta-reductase activity'
'delta4-3-oxosteroid 5beta-reductase activity'
On MetaCyc both point to EC:<IP_ADDRESS>
Also need an obsoletion and with replace by.

Good catch! These two are the same... with a hyphen as the difference.
We need to obsolete one and replace by the other.

GO:0047751 3-oxo-5alpha-steroid 4-dehydrogenase (NADP+) and GO:0003865 3-oxo-5-alpha-steroid 4-dehydrogenase activity are related but of different ECs and RHEAs.

The grouping term 'GO_0035671 enone reductase activity' also needs to be obsoleted, it's mapping to the general EC:1.3.1.-, which is actually GO:0016628 oxidoreductase activity, acting on the CH-CH group of donors, NAD or NADP as acceptor.
Thanks, Pascale

GO_0035671 enone reductase activity specifies enones thus is a subset of GO:0016628 oxidoreductase activity, acting on the CH-CH group of donors, NAD or NADP as acceptor. We may remove the XREF EC:1.3.1.- to avoid the confusion.

Likewise, this pair of terms correspond to the same activity: '3-oxo-delta(4,5)-steroid 5-beta-reductase activity' 'delta4-3-oxosteroid 5beta-reductase activity'
On MetaCyc both point to EC:<IP_ADDRESS>
Also need an obsoletion and with replace by.

Done.

Hi @raymond91125
thanks for looking into this more closely. I think these are the remaining tasks here:

[ ] GO:0047751 3-oxo-5alpha-steroid 4-dehydrogenase (NADP+) and GO:0003865 3-oxo-5-alpha-steroid 4-dehydrogenase activity are of different ECs and RHEAs. GO:0047751 should be a child of GO:0003865.
OK
GO:0003865 3-oxo-5-alpha-steroid 4-dehydrogenase activity  currently does not have a RHEA, as far as I can tell, we should add RHEA:13805
[ ] append 'activity' to the term label of GO:0047751 3-oxo-5alpha-steroid 4-dehydrogenase (NADP+)
[ ]  At least remove the partial EC from GO_0035671 enone reductase  activity
Thanks, Pascale


Added the feature to search albums from appbar

Added the ability to make album searchs from the appbar

you're welcome


remove eosio md file

Change Description

Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[ ] Documentation Additions

Build_and_test

Build_and_test


Install script does not alway use the right venv path (IDFGH-8471)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
release/v4.3-9e863ec
Operating System used.
Linux
How did you build your project?
Other (please specify in More Information)
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
I wanted to get the tools given the documentation.
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#step-3-set-up-the-tools
What is the actual behavior?
Instead it crashes after installing the venv. The path it's looking for doesn't exist, but python does exist in another folder.
Error:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env/bin/python'
File Listings:
➜  esp-idf git:(release/v4.3) ✗ ls '/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env'
lib  local  pyvenv.cfg
➜  esp-idf git:(release/v5.0) ls '/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env/local/bin'
activate      activate.fish  activate.ps1      deactivate.nu  pip3      pip3.10  python3     wheel   wheel-3.10
activate.csh  activate.nu    activate_this.py  pip            pip-3.10  python   python3.10  wheel3  wheel3.10
Steps to reproduce.

On a fresh Ubuntu system, do steps 1 and 2 of the linked documentation.
Do the first part of the linked set up the tools documentation.

Build or installation Logs.
➜  esp cd ~/esp/esp-idf
./install.sh esp32
Detecting the Python interpreter
Checking "python" ...
/home/ericfoss/esp/esp-idf/tools/detect_python.sh: line 16: python: command not found
Checking "python3" ...
Python 3.10.4
"python3" has been detected
Installing ESP-IDF tools
WARNING: File /home/ericfoss/.espressif/idf-env.json was not found.
Creating /home/ericfoss/.espressif/idf-env.json
Selected targets are: esp32
Installing tools: xtensa-esp32-elf, esp32ulp-elf, openocd-esp32
Skipping<EMAIL_ADDRESS>(already installed)
Skipping<EMAIL_ADDRESS>(already installed)
Skipping<EMAIL_ADDRESS>(already installed)
Installing Python environment and packages
Creating a new Python environment in /home/ericfoss/.espressif/python_env/idf4.3_py3.10_env
created virtual environment CPython3.10.4.final.0-64 in 1773ms
  creator CPython3Posix(dest=/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env, clear=False, no_vcs_ignore=False, global=False)
  seeder PipInvoke(download=False, pip=bundle, setuptools=bundle, wheel=bundle)
    added seed packages:
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Installing Python packages from /home/ericfoss/esp/esp-idf/requirements.txt
Traceback (most recent call last):
  File "/home/ericfoss/esp/esp-idf/tools/idf_tools.py", line 1822, in <module>
    main(sys.argv[1:])
  File "/home/ericfoss/esp/esp-idf/tools/idf_tools.py", line 1818, in main
    action_func(args)
  File "/home/ericfoss/esp/esp-idf/tools/idf_tools.py", line 1539, in action_install_python_env
    subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
  File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 345, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env/bin/python'

More Information.
Seems to be fixed in v5 but v4.3 is the cloned branch, so it seems like this should be fixed. v4.4 might need to be tested as well.

Some more output if it's helpful.
➜  temp virtualenv .
created virtual environment CPython3.10.4.final.0-64 in 125ms
  creator CPython3Posix(dest=/home/ericfoss/temp, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/ericfoss/.local/share/virtualenv)
    added seed packages: pip==22.2.2, setuptools==65.3.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator                                                                                /0.4s
➜  temp ls
lib  local  pyvenv.cfg                                                                                /0.0s
➜  temp ls local
bin  lib                                                                                /0.0s
➜  temp ls local/bin
activate  activate.csh  activate.fish  activate.nu  activate.ps1  activate_this.py  deactivate.nu  pip  pip3  pip-3.10  pip3.10  python  python3  python3.10  wheel  wheel3  wheel-3.10  wheel3 /0.0s
➜  temp

You may be on the same path already, but I found this SO question. Which says there will be a solution, but I'm on the latest virtualenv (virtualenv==20.16.5) as of now.

I think that probably detecting a the right path would be preferable over limiting the version of virtualenv or setuptools.
@fossum Could you please try to manually change the code here and replace
subdir = 'bin'

with
subdir = 'local/bin'

Is this enough for you fix the issue? Will everything work as expected (build, flash, not just install)?

Yes, that is all I did to fix the issue.
On Tue, Oct 11, 2022, 07:19 Roland Dobai @.***> wrote:

I think that probably detecting a the right path would be preferable over
limiting the version of virtualenv or setuptools.
@fossum https://github.com/fossum Could you please try to manually
change the code here
https://github.com/espressif/esp-idf/blob/release/v4.3/tools/idf_tools.py#L1018
and replace
subdir = 'bin'
with
subdir = 'local/bin'
Is this enough for you fix the issue? Will everything work as expected
(build, flash, not just install)?
—
Reply to this email directly, view it on GitHub
https://github.com/espressif/esp-idf/issues/9931#issuecomment-1274769414,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADNQRQIB3RRTV7SPZ7ESHDWCVZPJANCNFSM6AAAAAAQ66N3AI
.
You are receiving this because you were mentioned.Message ID:
@.***>

@fossum Thank you for your report and help tracking this down.
A workaround has been merged to the release branches (v4.4 and earlier).


Replace flake8 and isort with Ruff

What does this PR do?

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

Current dependencies on/for this PR:

master

PR #14212   👈

This comment was auto-generated by Graphite.

This breaks ddev, at least ddev test which now reports:
cmd [1] | ruff --config ../pyproject.toml .
error: Failed to parse `/PATH/TO/REPO/ROOT/pyproject.toml`: No such file or directory (os error 2)

Note that pyproject.toml is created within the integration directory by ddev create


Update repositories.txt

hello, I am removing this library because i want to submit pull request for this library from official GitHub account. Also i am moving this library to different repository.

Hi @himanshudiwane. While anyone is welcome to submit any library, changes to existing registry entries may only be done with the authorization of a maintainer of the library. Although I have no reason to doubt it, unfortunately, I was unable to verify with certainty that this request was authorized.
I think the best way to provide verification is some sort of clear sign of the intent made in the GitLab repository or parent project from an account that has maintainer/owner role in that project. For example, you could create an issue there tracking the GitHub migration task or add a note to the project documentation about it.
I'm open to any other methods of verification you would like to propose.
Please let me know if you have any questions or concerns.
Per

Hello @per1234. Thank you for the clarification. The project repository of this library has been removed from the GitLab. Also I have submitted as issue for removing the library.
Please let me know if there is anything else I need to do for removing the library.

this pull request should be closed because it is already merged


[CH-232] Support DataTypeNothing, which close https://github.com/Kyligence/ClickHouse/issues/232

Changelog category (leave one):

New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Support DataTypeNothing, which close https://github.com/Kyligence/ClickHouse/issues/232

Information about CI checks: https://clickhouse.tech/docs/en/development/continuous-integration/

Can one of the admins verify this patch?

test this please with 791

test this please with 791

test this please with 791


How to create date locales

Hey there,
I almost grasp the logic that is created by the regex inside locale strings, but need a little help.
Could someone please explain to me how each entry is matched.
e.g. How is each entry matched in
numbers: ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn
https://github.com/andrewplummer/Sugar/blob/master/lib/locales/de.js
My objective is to build date locales off unicode CLDR during my build process.
http://www.unicode.org/repos/cldr-aux/json/26/main/de/ca-gregorian.json

Hi, yes this is a very deep part of locales and isn't documented as well as it could be.
The best way is to just follow the example of other locales as you have already discovered.
For ordinal tokens like weekdays, months, units, numbers, and src in modifiers, there is a simple system that's mostly similar to regexes. | is a token for alternation just as regexes. By itself it would end up identical to a regex in the source. : is just a marker for a base to set it as fixed before alternation with |.  So for example:
figur:e|ed|ative|atively

would match figure, figured, figurative, and figuratively. It would translate into the regex:
figur(e|ed|ative|atively)

there is also + as well, which does is like | when | is already being used in more complex tokens (it does a split on + before processing the inner tokens).
Why all the fanfare instead of just using straight regex tokens concatenated together? Looking back on the code now it seems like a good point. Mostly this seemed more straightforward in some complex cases at the time. Now it seems a bit convoluted, but there you have it...

@andrewplummer Thank-you for your explanation.
Can you also please explain, if you can, why only the number one has many alterations in ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn?
And also when a certain entry (e.g. einen) gets requested? As i understand Millisekunde:|n is called when in singular and plural forms.

It's not too tricky, there's no logic about "when". It's simply all possible forms are matched. "one" has many alterations because there are many different forms. That said there are probably many other numerals that are missing patterns but this has been added to on an ad-hoc, per-use-case basis would be my guess (to be sure I'd go back and check the git history, but probably that's what it is).

One more thing to add is that this "alternation" is also useful to put certain cases together for later use. For example (sorry for the non-date-related example but imagine the same thing with numerals and tricky case-heavy languages like Russian):
eat|ate|eating,read:||ing,go|went|going

would produce the following array:
['eat', 'ate', 'eating', 'read', 'read', 'reading', 'go', 'went', 'going']

Now if you want the present participle form (imagine the "genetive" case in Russian or something the like.. for example if the case were to change depending on if you were saying "5 days from now" vs. "5 days ago") of "read" then you would simply access the 3rd form of the 2nd "set" (2 and 1 respectively in array notation), or [1 * 3 + 2]. Locales like Finnish and Russian are using this system to handle complicated cases in their relative formats.

Going to close this one out for now. If there's something you feel is missing (other forms of other digits etc). Please feel free to reopen this or another ticket with examples of the missing parts. Thanks!


Did something change with SSH?

I can't login via SSH anymore (root/empty pw).
I just updated to 0.1.7 from 0.1.6, hadn't turned on the camera for a while.
I see that you can now change your SSH password (how?).
I don't think I touched anything else.
Thanks!

Try to clean the cache of the browser and then reset to yi-hack default.

It worked.
I got it, the username is root, the password is what you choose for the web interface password.
Maybe this should be added in the web interface:
Password to access RTSP, ONVIF and HTTP (default empty).
should be
Password to access RTSP, ONVIF, HTTP and SSH (default empty).

This behavior will be changed in the next version.
I added a new text field.


fix: stream backfill executor use correct schema

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
fix https://github.com/risingwavelabs/risingwave/issues/12299

Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Could you please add an e2e test for this?


Change the staging neon-proxy-scram update strategey to RollingUpdate

Describe your changes
When we deploy the proxy with the default Recreate strategy, there's always some downtime and existing connections will be shut down. Change the strategy to RollingUpdate and delay the kill signal by one week. AWS Network Loadbalancer keeps the existing connections alive for as long as the pods are alive, but will direct new connections to new pods.
Issue ticket number and link
https://github.com/neondatabase/neon/issues/3333
Checklist before requesting a review

[x] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Removed the redundant kill and changed sleep from seconds to 7d as suggested by @cicdteam


Create Circular Navigation

Something like this codepen
Needs to include links to my other repos, like OpenMusic, VidSeq, HQ, and the main site, ready for the other pages to use it too

Maybe have different layers - one for this repo and one for "project" repos?

Nah, I'm gonna completely remove navigation and make buttons everywhere


remove POST /ast and POST /search

Both can go now that the Brim app uses POST /query.

I got a clean run of all the Brim tests.


list all plugins

as the number of plugins grows, it would be good to be able to list all the plugin identifiers, e.g. all benchmarks, or all models

Related to https://github.com/orgs/brain-score/projects/3?pane=issue&itemId=50154016


feat: ADS changes for Generate Form Page

This PR migrates the  previous ads components used in the generate form page into a new one.
Fixes https://github.com/appsmithorg/appsmith/issues/22473
How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce.
Please also list any relevant details for your test configuration.
Delete anything that is not important

Manual
Jest
Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing
https://github.com/appsmithorg/appsmith/pull/22687#issuecomment-1521175824
https://github.com/appsmithorg/appsmith/pull/22687#issuecomment-1527273906
Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

@Irongade : this modal need deduplication.

Edit datasource button

Quick page wizard color use --ads-v2-color-fg-emphasis

Below is the Notion doc that contains the issues in this PR:
https://www.notion.so/appsmith/f353d8c6bd664f79ad858a42010cdfc8?v=f04cde23f6424aeb9d5a6e389cd172bd&p=ef042f295b0140ff9b18f8d3eeb6c85c&pm=s

/build-deploy-preview env=release

/build-deploy-preview env=release

/build-deploy-preview env=release


Create initial seedfiles for database

[x] Seed Locations with Prefectures in Japan

[ ] Seed Users

[ ] Seed Products

[ ] Seed Favorites

[ ] Run Location seed on prod db

Special handling may need to be introduced in order to create relations without prior knowledge of a target object's primary key.


and  elements malformed or removed in v1.8

Describe the bug
When upgrading to v1.8, I am seeing that attributes of an <svg /> element are getting removed, and a contained <path /> element is also removed.
Here is the resulting dom html using 1.7:

    <form class="search">
      <input
        class="search-text"
        placeholder="Search People, Places, or Topics"
        value=""
      /><button type="submit">
        <svg
          stroke-width="0"
          height="22"
          width="22"
          xmlns="http://www.w3.org/2000/svg"
          size="22"
          viewBox="0 0 1024 1024"
          color="currentColor"
          fill="currentColor"
          style="overflow: visible"
        >
          <path
            d="M909.6 854.5 649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
          ></path>
        </svg>
      </button>
    </form>

      Try searching for:

People: "chuck grassley"

Topics: "medicare"

States: "kansas" (coming soon)

Cities: "kalamazoo" (coming soon)

Zip Codes: "90210" (coming soon)

And here is the dom html when using 1.8

    <form class="search">
      <input
        class="search-text"
        placeholder="Search People, Places, or Topics"
        value=""
      /><button type="submit">
        <svg stroke-width="0" style="overflow: visible"></svg>
      </button>
    </form>

      Try searching for:

People: "chuck grassley"

Topics: "medicare"

States: "kansas" (coming soon)

Cities: "kalamazoo" (coming soon)

Zip Codes: "90210" (coming soon)

Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-1lvbyq?file=package.json
Steps to Reproduce the Bug or Issue

Run npm ci
Run npm run dev
Right-click on the search icon in the input form button and inspect the DOM. Notice the attributes on the containing <svg /> as well as the <path /> element.
stop the server
run npm i<EMAIL_ADDRESS>Run npm run dev
Right-click the same location and inspect the DOM. Notice that the <svg /> has fewer attributes, and the <path /> is now missing.

Expected behavior
The <svg /> and <path /> elements should not be malformed.
Screenshots or Videos
No response
Platform

OS: macOS
Browser: Chrome
Version: 1.8

Additional context
No response

Oh this is fun. The problem is solid-icons is using the client precompiled version not the hydratable version. Which suggests to me the client only precompiled version is getting pulled in.
In fact looking at it, it isn't packaged properly for SSR. There is no solid export condition. While they make a server build, there is no way to make a client hydratable build. So this library has always been doing destructive hydration.
I think there is a way I can warn about this in the runtime. I will make a patch release with a dev warning that will make it clear something is wrong.

Ok done. In 1.8.1 forward the moment you add a library that doesn't hydrate to your SSR project without putting it behind a createEffect/onMount/clientOnly type thing it is going to error.


Refactor Unit Tests

This commit revises or removes all existing unit tests.
Unit testing is now dependent on the responses library for mock requests (no longer need a live influxdb server to test).
Client/Server tests have been removed until they can also use the mock request library.
A configuration option to change the LIMIT size for influxdb queries was added.

Looks great mate :+1:


Fix calling finalize operation twice safe

/test

/test

pytorch_pfn_extras/writing/_tensorboard_writer.py:76: error: Incompatible types in assignment (expression has type "None", variable has type "SummaryWriter")  [assignment]

/test

/test


Error with Linux

When using this code:
import tkinter as tk
from overlay import Window

win_0 = Window()
label_0 = tk.Label(win_0.root, text="Window_0")
label_0.pack()
win_1 = Window()
label_1 = tk.Label(win_1.root, text="Window_1")
label_1.pack()
Window.launch()

I get this error:
Traceback (most recent call last):
  File "/home/heath/overlaytest.py", line 4, in <module>
    win_0 = Window()
  File "/home/heath/.local/lib/python3.8/site-packages/overlay/window.py", line 42, in __init__
    self.transparent = kwargs.get('transparent', False)
  File "/home/heath/.local/lib/python3.8/site-packages/overlay/window.py", line 125, in transparent
    self._root.config(bg=bg)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1637, in configure
    return self._configure('configure', cnf, kw)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1627, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: unknown color name "systemWindowBody"

A small grey square also appears in the top-left corner of the screen.

Someone else had this too:
https://stackoverflow.com/questions/59085810/tkinter-tclerror-unknown-color-name-systemwindowbody

Just realised this is a duplicate of #1, but this is Linux so I'll leave it open just in case? You can close it

It would be nice if this could be fixed, though. Maybe I could PR a fix if I work it out?

I can try to fix some, but not immediately :P
Sounds like something I can contribute to.

I had similar issues on Window.
Just Copy the Window.py in here or find it in package file and fix color name that makes Error
I changed the color name 'black' and 'white' instead of 'SystemTransparent' and 'SystemWindowBody'

I changed the color name 'black' and 'white' instead of 'SystemTransparent' and 'SystemWindowBody'
No transparent windows then...

Hi.
It seems like many people would like this to work on Windows and Linux.
I'll redo the code recently and try to fix the problem (should be a quick fix though).

Added a quick fix to use white instead of grabbing for system color (which is a Mac OS specific attribute).
Will release to Pypi after a few local tests.

Just published a fix. Please try updating your package via pip install overlay --upgrade.

Thank you, but this still has errors:
import tkinter as tk
from overlay import Window

win_0 = Window()
label_0 = tk.Label(win_0.root, text="Window_0")
label_0.pack()
win_1 = Window()
label_1 = tk.Label(win_1.root, text="Window_1")
label_1.pack()
Window.launch()

Output:
Traceback (most recent call last):
  File "/home/heath/overlaytest.py", line 4, in <module>
    win_0 = Window()
  File "/home/heath/.local/lib/python3.8/site-packages/overlay/window.py", line 63, in __init__
    self._root.wm_attributes('-transparent', True)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1967, in wm_attributes
    return self.tk.call(args)
_tkinter.TclError: bad attribute "-transparent": must be -alpha, -topmost, -zoomed, -fullscreen, or -type

With transparency on:
import tkinter as tk
from overlay import Window

win_0 = Window(transparent = True)
label_0 = tk.Label(win_0.root, text="Window_0")
label_0.pack()
win_1 = Window()
label_1 = tk.Label(win_1.root, text="Window_1")
label_1.pack()
Window.launch()

Output:
Traceback (most recent call last):
  File "/home/heath/overlaytest.py", line 4, in <module>
    win_0 = Window(transparent = True)
  File "/home/heath/.local/lib/python3.8/site-packages/overlay/window.py", line 44, in __init__
    self.transparent = kwargs.get('transparent', False)
  File "/home/heath/.local/lib/python3.8/site-packages/overlay/window.py", line 156, in transparent
    self._root.config(bg=bg)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1637, in configure
    return self._configure('configure', cnf, kw)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1627, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: unknown color name "systemTransparent"

It seems like transparency might not be possible on Linux

Commenting out this fixes it when transparency is off.
https://github.com/davidmaamoaix/Overlay/blob/115279eeae37009bf9f936f7eab4827ddf1b43fb/overlay/window.py#L63


Feat: Get image status after composing with a goroutine on the background

oh boy these test results are not looking good, i see data race and i'm sweating

LGTM feel free to merge it.

LGTM, merge!


nan is not a known member - pyright 1.1.340 with numpy stubs

 Environment data

Language Server version: 2023.11.104
Pyright version 1.1.340
OS and version: linux x64 / WSL in Windows 10
Python version (and distribution if applicable, e.g. Anaconda):  3.12, pyenv
python.analysis.indexing: true
python.analysis.typeCheckingMode: basic

pyproject.toml
[tool.poetry]
name = "numpy-issue"
version = "0.1.0"
description = ""

[tool.poetry.dependencies]
python = "^3.12"
numpy = "^1.26.2"

[tool.poetry.group.dev.dependencies]
pyright = "^1.1.340"

[tool.pyright]
stubPath="./stubs"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

 Code Snippet
import numpy as np

print(np.nan)

 Repro Steps

Setup a new project with poetry
Add numpy and pyright as dependencies
Copy stubs for numpy from pylance-extension into project folder and link it in pyproject.toml
run pyright for code snippet-file

 Expected behavior
0 errors, 0 warnings, 0 informations
This worked fine for our latest pyright version: 1.1.333 and it still works fine with pylance.
 Actual behavior
It will throw the following error:
error: "nan" is not a known member of module "numpy" (reportGeneralTypeIssues)
1 error, 0 warnings, 0 informations

We integrated stubs because of the following issue: https://github.com/microsoft/pylance-release/issues/5005
 Logs
2023-12-13 15:21:43.689 [info] (Client) Pylance async client (2023.11.104) started with python extension (2023.22.0)
2023-12-13 15:21:44.470 [info] [Info  - 3:21:44 PM] (110516) Pylance language server 2023.11.104 (pyright a78e2b10) starting
2023-12-13 15:21:44.471 [info] [Info  - 3:21:44 PM] (110516) Server root directory: /home/fheinze/.vscode-server/extensions/ms-python.vscode-pylance-2023.11.104/dist
2023-12-13 15:21:44.487 [info] [Info  - 3:21:44 PM] (110516) Starting service instance "numpy-issue"
2023-12-13 15:21:44.581 [info] (110516) No configuration file found.
2023-12-13 15:21:44.582 [info] (110516) pyproject.toml file found at /home/fheinze/Code/playground/py/numpy-issue.
2023-12-13 15:21:44.584 [info] [Info  - 3:21:44 PM] (110516) Setting pythonPath for service "numpy-issue": "/home/fheinze/Code/playground/py/numpy-issue/.venv/bin/python"
2023-12-13 15:21:44.584 [info] [Info  - 3:21:44 PM] (110516) Setting environmentName for service "numpy-issue": "3.12.0 (.venv venv)"
2023-12-13 15:21:44.597 [info] [Info  - 3:21:44 PM] (110516) Loading pyproject.toml file at /home/fheinze/Code/playground/py/numpy-issue/pyproject.toml
2023-12-13 15:21:44.645 [info] [Info  - 3:21:44 PM] (110516) Assuming Python version 3.12
2023-12-13 15:21:44.646 [info] (110516) Assuming Python platform Linux
2023-12-13 15:21:44.727 [info] [Info  - 3:21:44 PM] (110516) Search paths for /home/fheinze/Code/playground/py/numpy-issue
2023-12-13 15:21:44.728 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/.vscode-server/extensions/ms-python.vscode-pylance-2023.11.104/dist/typeshed-fallback/stdlib
2023-12-13 15:21:44.728 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/Code/playground/py/numpy-issue
2023-12-13 15:21:44.728 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/Code/playground/py/numpy-issue/src
2023-12-13 15:21:44.729 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/Code/playground/py/numpy-issue/stubs
2023-12-13 15:21:44.729 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/.vscode-server/extensions/ms-python.vscode-pylance-2023.11.104/dist/typeshed-fallback/stubs/...
2023-12-13 15:21:44.729 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/.vscode-server/extensions/ms-python.vscode-pylance-2023.11.104/dist/bundled/stubs
2023-12-13 15:21:44.730 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/.pyenv/versions/3.12.0/lib/python3.12
2023-12-13 15:21:44.731 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/.pyenv/versions/3.12.0/lib/python3.12/lib-dynload
2023-12-13 15:21:44.731 [info] [Info  - 3:21:44 PM] (110516)   /home/fheinze/Code/playground/py/numpy-issue/.venv/lib/python3.12/site-packages
2023-12-13 15:21:44.731 [info] [Info  - 3:21:44 PM] (110516) Adding fs watcher for library directories:
 /home/fheinze/.pyenv/versions/3.12.0/lib/python3.12
/home/fheinze/.pyenv/versions/3.12.0/lib/python3.12/lib-dynload
/home/fheinze/Code/playground/py/numpy-issue/.venv/lib/python3.12/site-packages
2023-12-13 15:21:44.732 [info] [Info  - 3:21:44 PM] (110516) Adding fs watcher for directories:
 /home/fheinze/Code/playground/py/numpy-issue
2023-12-13 15:21:44.732 [info] (110516) Searching for source files
2023-12-13 15:21:44.743 [info] [Info  - 3:21:44 PM] (110516) Found 16 source files
2023-12-13 15:21:44.743 [info] (110516) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2023-12-13 15:21:44.744 [info] (110516) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2023-12-13 15:21:45.374 [info] (110516) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2023-12-13 15:21:45.454 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/src/main.py ...
2023-12-13 15:21:45.455 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/src/main.py [fs read 0ms] (76ms)
2023-12-13 15:21:45.669 [info] (110516) [BG(1)]   parsing: /home/fheinze/.vscode-server/extensions/ms-python.vscode-pylance-2023.11.104/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 3ms] (212ms)
2023-12-13 15:21:45.747 [info] (110516) [BG(1)]   binding: /home/fheinze/.vscode-server/extensions/ms-python.vscode-pylance-2023.11.104/dist/typeshed-fallback/stdlib/builtins.pyi (77ms)
2023-12-13 15:21:45.747 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/src/main.py (1ms)
2023-12-13 15:21:45.749 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/src/main.py [found 0] (370ms)
2023-12-13 15:21:45.870 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_multiarray_umath.pyi ...
2023-12-13 15:21:45.870 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_multiarray_umath.pyi [fs read 5ms] (120ms)
2023-12-13 15:21:45.943 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_multiarray_umath.pyi (73ms)
2023-12-13 15:21:45.982 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_multiarray_umath.pyi [found 220] (233ms)
2023-12-13 15:21:45.996 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_simd.pyi ...
2023-12-13 15:21:45.997 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_simd.pyi [fs read 1ms] (1ms)
2023-12-13 15:21:45.997 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_simd.pyi (0ms)
2023-12-13 15:21:45.997 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/core/_simd.pyi [found 2] (2ms)
2023-12-13 15:21:45.997 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/fft/_pocketfft_internal.pyi ...
2023-12-13 15:21:45.998 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/fft/_pocketfft_internal.pyi [fs read 1ms] (1ms)
2023-12-13 15:21:45.998 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/fft/_pocketfft_internal.pyi (0ms)
2023-12-13 15:21:45.998 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/fft/_pocketfft_internal.pyi [found 2] (2ms)
2023-12-13 15:21:45.998 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/_umath_linalg.pyi ...
2023-12-13 15:21:45.998 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/_umath_linalg.pyi [fs read 1ms] (3ms)
2023-12-13 15:21:45.998 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/_umath_linalg.pyi (2ms)
2023-12-13 15:21:46.001 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/_umath_linalg.pyi [found 22] (9ms)
2023-12-13 15:21:46.005 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/lapack_lite.pyi ...
2023-12-13 15:21:46.006 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/lapack_lite.pyi [fs read 0ms] (3ms)
2023-12-13 15:21:46.006 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/lapack_lite.pyi (1ms)
2023-12-13 15:21:46.007 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/linalg/lapack_lite.pyi [found 10] (4ms)
2023-12-13 15:21:46.008 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_bounded_integers.pyi ...
2023-12-13 15:21:46.009 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_bounded_integers.pyi [fs read 0ms] (1ms)
2023-12-13 15:21:46.009 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_bounded_integers.pyi (0ms)
2023-12-13 15:21:46.009 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_bounded_integers.pyi [found 4] (2ms)
2023-12-13 15:21:46.013 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_common.pyi ...
2023-12-13 15:21:46.013 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_common.pyi [fs read 0ms] (4ms)
2023-12-13 15:21:46.015 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_common.pyi (1ms)
2023-12-13 15:21:46.015 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_common.pyi [found 6] (6ms)
2023-12-13 15:21:46.038 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_generator.pyi ...
2023-12-13 15:21:46.039 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_generator.pyi [fs read 1ms] (23ms)
2023-12-13 15:21:46.048 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_generator.pyi (9ms)
2023-12-13 15:21:46.052 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_generator.pyi [found 8] (36ms)
2023-12-13 15:21:46.055 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_mt19937.pyi ...
2023-12-13 15:21:46.056 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_mt19937.pyi [fs read 0ms] (3ms)
2023-12-13 15:21:46.056 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_mt19937.pyi (1ms)
2023-12-13 15:21:46.057 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_mt19937.pyi [found 4] (5ms)
2023-12-13 15:21:46.060 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_pcg64.pyi ...
2023-12-13 15:21:46.060 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_pcg64.pyi [fs read 0ms] (3ms)
2023-12-13 15:21:46.061 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_pcg64.pyi (0ms)
2023-12-13 15:21:46.061 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_pcg64.pyi [found 4] (4ms)
2023-12-13 15:21:46.064 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_philox.pyi ...
2023-12-13 15:21:46.065 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_philox.pyi [fs read 0ms] (3ms)
2023-12-13 15:21:46.065 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_philox.pyi (1ms)
2023-12-13 15:21:46.067 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_philox.pyi [found 5] (5ms)
2023-12-13 15:21:46.069 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_sfc64.pyi ...
2023-12-13 15:21:46.069 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_sfc64.pyi [fs read 1ms] (3ms)
2023-12-13 15:21:46.070 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_sfc64.pyi (0ms)
2023-12-13 15:21:46.070 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/_sfc64.pyi [found 4] (4ms)
2023-12-13 15:21:46.085 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/bit_generator.pyi ...
2023-12-13 15:21:46.086 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/bit_generator.pyi [fs read 0ms] (15ms)
2023-12-13 15:21:46.088 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/bit_generator.pyi (2ms)
2023-12-13 15:21:46.092 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/bit_generator.pyi [found 17] (20ms)
2023-12-13 15:21:46.121 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/mtrand.pyi ...
2023-12-13 15:21:46.121 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/mtrand.pyi [fs read 1ms] (30ms)
2023-12-13 15:21:46.133 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/mtrand.pyi (11ms)
2023-12-13 15:21:46.144 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/stubs/numpy/random/mtrand.pyi [found 57] (52ms)
2023-12-13 15:21:46.147 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/tests/__init__.py ...
2023-12-13 15:21:46.147 [info] (110516) [BG(1)]   parsing: /home/fheinze/Code/playground/py/numpy-issue/tests/__init__.py [fs read 1ms] (2ms)
2023-12-13 15:21:46.147 [info] (110516) [BG(1)]   binding: /home/fheinze/Code/playground/py/numpy-issue/tests/__init__.py (0ms)
2023-12-13 15:21:46.147 [info] (110516) [BG(1)] indexing: /home/fheinze/Code/playground/py/numpy-issue/tests/__init__.py [found 0] (2ms)
2023-12-13 15:21:46.163 [info] (110516) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}

@rchiodo, it looks like this is a URI issue. When I mouse over numpy in the import statement, I hit the !fileInfo.sourceFile.getUri().isEmpty() assert in _addToSourceFileListAndMap.
Digging into this further, it looks like a problem in the ImportResolver. importFound is true even though the URI is empty. Maybe a problem with the else clause below from _resolveAbsoluteImport? When I get there, resolvedPaths has a single element which is an empty URI.
        if (allowPartial) {
            importFound = resolvedPaths.length > 0;
        } else {
            importFound = resolvedPaths.length >= moduleDescriptor.nameParts.length;
        }

I'm set up to test and debug this. Happy to fix it if you can steer me in the right direction.


Clean and portable way of generating a working libcharm.so for charmpy

Original issue: https://charm.cs.illinois.edu/redmine/issues/1778

Relevant to CharmPy and maybe other potential future applications.
There is no good way to generate a single libcharm.so file that can be used from CharmPy.
This should be integrated into the build process (using charmc), and also to guarantee that the
produced library has all required dependencies (both static and dynamic) on all systems.

Original date: 2018-05-04 15:05:12

Patch here: ~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/4040/~~ https://github.com/UIUC-PPL/charm/commit/343d50363d923c0405740c8e469b1e7176b66274
Possibly needs a few tweaks to simplify build line for charmpy.

Original date: 2018-05-07 16:52:56

Patch here: ~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/4040/~~ https://github.com/UIUC-PPL/charm/commit/343d50363d923c0405740c8e469b1e7176b66274


FRQ #1

(a) arraySum method
    int sum = 0;
    for (int value : arr) {
        sum += value;
    }
    return sum;
}

The arraySum method takes a one-dimensional array as input and calculates the sum of its entries using a simple for-each loop.
(b) rowSums method
public static int[] rowSums(int[][] arr2D) {
    int[] sums = new int[arr2D.length];

    for (int i = 0; i < arr2D.length; i++) {
        sums[i] = arraySum(arr2D[i]);
    }

    return sums;
}

The rowSums method iterates through each row of the two-dimensional array arr2D and uses the previously defined arraySum method to calculate the sum of each row. The sums are then stored in a one-dimensional array.
(c) isDiverse method
public static boolean isDiverse(int[][] arr2D) {
    int[] rowSums = rowSums(arr2D);

    for (int i = 0; i < rowSums.length - 1; i++) {
        for (int j = i + 1; j < rowSums.length; j++) {
            if (rowSums[i] == rowSums[j]) {
                return false; // If any two row sums are equal, the array is not diverse
            }
        }
    }

    return true; // All row sums are unique, array is diverse
}

The isDiverse method calculates the row sums using the rowSums method and then checks if there are any duplicate row sums. If there are, it returns false, indicating that the array is not diverse. Otherwise, it returns true.

Comments:
The requirement for assignment is a Jupyter Notebook that runs the code, correctly identifying the FRQ type, and a reflection for the problem.
Score:
0.6/0.9

Your code should be in a Jupyter Notebook, and you show have an issue with the connection between the FRQ and PBL. For this FRQ, I will give you a score of 0.63/0.9


Feature Request: Its 2020, new scripting language

Description of the new feature/enhancement
Its 2020 and while we are at it with a new Windows Terminal, we should also design a new robust and strongly typed data oriented (?) shell scripting language. Maybe members can voice their opinions (ie rather use python instead of bash/batch because...). Also the following may be useful.
https://bit.ly/30cIddA
https://mywiki.wooledge.org/BashPitfalls
https://www.experts-exchange.com/articles/673/Advanced-DOS-batch-pitfalls.html
.... I mean this would be an addition to what we have already to remain backwards compatible similar to what is happening with ConPTY/ConHost.

Maybe something like Powershell?

Possibly but
https://www.red-gate.com/simple-talk/sysadmin/powershell/a-plethora-of-powershell-pitfalls/
https://www.red-gate.com/simple-talk/sysadmin/powershell/a-plethora-of-powershell-pitfalls-part-2/

Not python, mandatory indentation in a terminal would be a nightmare.

Hey all,
Thanks for jumping in and suggesting this.
Scripting languages, especially those with interactive components, are a rasonably contentious matter. There are articles extolling the virtues and pointing out the pitfalls that you can probably find for any language ever invented. Nonetheless, we need to choose one that makes the most palatable tradeoffs for everyone (users, developers, system administrators, those with interactive and automated scripts, etc.) and move on.
The choice Microsoft has made is Powershell. It fits a lot of the categories you originally enumerated: it's robust, it's data-oriented, and it's at least somewhat-typed.
Powershell is finally reaching a point where people reach for it instead of batch, and people want to use it on Linux and macOS. It would set us back ten or fifteen years and incinerate an immense amount of community goodwill if we were to stop it, abandon it (or leave it in maintenance mode) and move on to "greener pastures." We're just not going to do that, and this issue isn't really the best place to have the hypothetical discussion about what-if-we-would.
There isn't anything actionable for my team or my project here, and I have a feeling that this thread could easily get out of hand, so I'm going to get out ahead and close + lock it.
Thanks for your understanding!


Bump conditions

Related to the revert of the bump https://github.com/checkr/flagr/commit/ecfd3bd7b0a9f986d8fc5e1bfdffe33067fbe45e
This pr only includes the changes we want

flame graph

Codecov Report

Merging #219 into master will decrease coverage by 0.12%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
- Coverage   85.55%   85.43%   -0.13%
==========================================
  Files          24       24
  Lines        1385     1387       +2
==========================================
  Hits         1185     1185
- Misses        145      146       +1
- Partials       55       56       +1

Impacted Files
Coverage Δ

pkg/handler/eval.go
82.92% <50%> (-1.03%)
:arrow_down:

Continue to review full report at Codecov.

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


Add aws glacier suport

Upload backups direclty to aws glacier.
https://github.com/futurice/docker-volume-backup/pull/18 Should be merged before this one.

Thanks a lot for setting this up!


The .js suffix in the module name is not... isomorphic

Hi Jan,
I'm trying to integrate o.js inside an isomorphic app, which in my case means loading the same library on Node with
var o = require('o.js')

and at the same time on the browser (through RequireJS) with
define(['o.js'], function(o) {})

Unluckily, since o.js has the '.js' extension in its name, RequireJS seems to resolve the dependency as http://localhost:3000/o.js. As you may know, RequireJS can be configured with aliases, so you can e.g. require 'jquery' instead of 'bower_components/jquery/dist/jquery.min', but this mechanism does not work when modules have the suffix '.js' in their name.
So in short the question is: is there a way to rename this package or add an alias on NPM so it can be easily loaded in every environment? I saw that there are already packages named o-js, o, o-, ojs, etc. so it may not be a simple task... What do you think?
Antony

Hi Antony,
I actually thought about this before I named the app, but there was no better name I can think of and I thought RequireJS alias will work as workaround. But if they do not, this is an bug.
An alias is an good idea to solve it. I quickly google if it is possivble in npm, but I can not find any resources. Do you know how to alias a npm package or can point me to some resources?
Maybe something like ojs-odata would suffer.
Regards
Jan

Hi Jan,
AFAIK NPM is not able to handle aliases and is not considering adding this feature in the future (see #2943).
There are some packages that add them in different ways (see aliasify and alias-module), but I feel this should work out of the box.
The odata project seems dead, maybe we could ask the original author or NPM itself to free the package name for o.js. It could become the de facto standard for Odata on JavaScript :)
Antony

Hi Antony,
great Idea. I just send him an E-Mail
regards
Jan
2016-05-19 15:02 GMT+02:00 Matteo Antony Mistretta<EMAIL_ADDRESS>
:

Hi Jan,
AFAIK NPM is not able to handle aliases and is not considering adding this
feature in the future (see #2943 https://github.com/npm/npm/issues/2943
).
There are some packages that add them in different ways (see aliasify
https://www.npmjs.com/package/aliasify and alias-module
https://www.npmjs.com/package/alias-module), but I feel this should
work out of the box.
The odata https://www.npmjs.com/package/odata project seems dead, maybe
we could ask the original author or NPM itself to free the package name for
o.js. It could become the de facto standard for Odata on JavaScript :)
Antony
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/janhommes/o.js/issues/27#issuecomment-220317313

Hi Jan,
I made all the changes that were to be made. Could you please launch an npm publish on the project, or give me access on NPM? Thanks!
Antony

I just published the o.js library as NPM package odata. Winter is coming...


x/tools/gopls: 'rename' in noncanonical std module causes breakage

@dr2chase reports that, while working with two clones of the goroot repo, initiating a rename in a clone that does not hold the std module used by the go command on gopls's PATH causes gopls to fail to accurately discover the set of references that need updating, and thus render the package non-compiling. It does print a bunch of warnings (to a log that the user can't see).
$ goroot1=$HOME/goroot
$ goroot2=$HOME/goroot2
$ cd $goroot1
$ git log -1 | grep ^commit
commit<PHONE_NUMBER>e305d0b31372cab48bc4ca2dd745fb
$ gopls version | head -n 1
golang.org/x/tools/gopls v0.11.0
$ $goroot1/bin/go version
go version devel go1.21-9411075748 Mon Jan 23 18:00:36 2023 +0000 darwin/arm64

$ PATH=$goroot1/bin:$PATH gopls references $goroot1/src/fmt/scan.go:#5137  # fmt.Scanln
goroot1/src/encoding/gob/example_encdec_test.go:35:16-23
goroot1/src/fmt/example_test.go:52:17-24
goroot1/src/fmt/scan.go:106:9-16
goroot1/src/fmt/scan.go:70:9-16
goroot1/src/fmt/scan_test.go:543:21-28
goroot1/src/fmt/scan_test.go:762:12-19
goroot1/src/fmt/scan_test.go:789:12-19
goroot1/src/fmt/scan_test.go:800:11-18

Now let's change the go command (and thus its notion of the std module) to goroot2 but continue to work on files in goroot1. Observe that only intra-package references are reported, along with a slew of warnings. Nonetheless it's a success:
$ PATH=$goroot2/bin:$PATH gopls references $goroot1/src/fmt/scan.go:#5137
2023/01/23 13:20:32 Error:2023/01/23 13:20:32 tidy: diagnosing file:///Users/adonovan/w/goroot/src/cmd/go.mod: err: exit status 1: stderr: cmd/addr2line: ambiguous import: found package cmd/addr2line in multiple modules:
        cmd (/Users/adonovan/w/goroot/src/cmd/addr2line)
         (/Users/adonovan/w/goroot2/src/cmd/addr2line)
cmd/api: ambiguous import: found package cmd/api in multiple modules:
...ad nauseam...
$goroot1/src/fmt/scan.go:106:9-16
$goroot1/src/fmt/scan.go:70:9-16
$ echo $?
0

Now we attempt the same thing with a rename (fmt.Scanln -> fmt.SCANLN). Operations on files of the std module associated with the go command on the PATH work just fine:
$ PATH=$goroot1/bin:$PATH gopls rename -w $goroot1/src/fmt/scan.go:#5137 SCANLN
/Users/adonovan/w/goroot/src/encoding/gob/example_encdec_test.go
/Users/adonovan/w/goroot/src/fmt/example_test.go
/Users/adonovan/w/goroot/src/fmt/scan.go
/Users/adonovan/w/goroot/src/fmt/scan_test.go
$ echo $?
0

But when we rename files in a copy of the std module different from that used by the go command on the path, only intra-package references are renamed:
$ PATH=$goroot2/bin:$PATH gopls rename -w $goroot1/src/fmt/scan.go:#5137 SCANNL
... lots of warnings ...
/Users/adonovan/w/goroot/src/fmt/scan.go
$ echo $?
0

Thus leaving the rest of that std module in a broken state. Still the operation is a success.
gopls should try harder to avoid beginning a rename that might mess things up, possibly by promoting those warnings into errors.

when we rename files in a copy of the std module different from that used by the go command on the path, only intra-package references are renamed

That makes intuitive sense to me. Outside of GOROOT/src, a module named std is just that, not part of the standard library (see #30756), and the fmt package within that module has the import path std/fmt, not fmt (so there really aren't any external references to it.
In general, for things to work within a GOROOT/src tree it needs to match go env GOROOT, either by using the toolchain from that GOROOT or by setting GOROOT explicitly.

I think we can leave this open to improve the UX.


[NEW ALGORITHM] : Burst Balloons

Issue will be closed if:

You mention more than one algorithm. You can create a separate issue for each algorithm once the current one is completed.
You propose an algorithm that is already present or has been mentioned in a previous issue.
You create a new issue without completing your previous issue.

Note: These actions will be taken seriously. Failure to follow the guidelines may result in the immediate closure of your issue.

Name: Burst Balloons
[NEW ALGORITHM]
About:
Propose a new algorithm to be added to the repository
You are given n balloons, indexed from 0 to n - 1. Each balloon is painted with a number on it represented by an array nums. You are asked to burst all the balloons.
If you burst the ith balloon, you will get nums[i - 1] * nums[i] * nums[i + 1] coins. If i - 1 or i + 1 goes out of bounds of the array, then treat it as if there is a balloon with a 1 painted on it.
Return the maximum coins you can collect by bursting the balloons wisely.
Example 1:
Input: nums = [3,1,5,8]
Output: 167
Explanation:
nums = [3,1,5,8] --> [3,5,8] --> [3,8] --> [8] --> []
coins =  315    +   358   +  138  + 181 = 167
Example 2:
Input: nums = [1,5]
Output: 10
Constraints:
n == nums.length
1 <= n <= 300
0 <= nums[i] <= 100

Hello @ananydev,
I would like to work on this issue, I find it’s very  interesting, could you please assign it to me. It will be very helpful for me.


Remove duplicate port allocation - fixes #658

- Summary
Based on #658
When running netlify dev neither default functionsPort nor port passed in configuration is used.
- Test plan
Add to netlify.toml
[dev]
  functionsPort = 30303

and verify the port is used
- Description for the changelog
Remove duplicate call to getPort for the same port (default: 34567)

Any idea of when we could get this merged? Without it netlify dev literally does not work at all in most cases.

@RaeesBhatti @ianmartorell It should be just a click away!

@130n I'm really sorry. We're just getting back from holidays.

Figured that was the case after commenting 😳 no worries and thank you!


Create resolver that will fill in sequenceNumber for proposer automatically if not present and keyId and address are specified.

Create resolver that will fill in sequenceNumber for proposer automatically if not present and keyId and address are specified.
Expected Outcomes

[ ] A Resolver is created which fills in sequenceNumber for proposer automatically if not present and keyId and address are specified.
[ ] Resolver is added to FCL

handled in #255