use openshift-knative/hack for serving

This PR enables Serving to use openshift-knative/hack. Jobs were generated here: https://github.com/openshift/release/pull/35397. Before we merge https://github.com/openshift/release/pull/35397, I'd like some feedback on these changes.
Changes

Introduce a new field in config to override the default cron expression (Serving used a different cron per branch)
Introduce a new field imageNameOverrides to override generated docker image names (Eventing seems to build storage-version-migration twice to have a matching golang binary. This can be dropped with this change).
Changes the generation of the image mirror files to avoid. The generated mirror-file look like this instead of this (the source has a specific tag).
Adds Serving config with the same override for legacy repo naming as Eventing uses.

/cc @nak3, @pierDipi, @skonto, @matzew

I'll generate a second PR to see what would change for Eventing with those changes.

LGTM :tada:


Websocket for frontend updates

I'm developing a use case specific frontend for chimera. While doing so, I ran into the issue that there is no possibility in chimera to get notified, if dataobjects, instances, scenarios, ... change. The only way to do that is by continuously fetching the chimera API, what is inefficient and shown in the picture. That is why I propose to implement websockets to receive change related updates.

Websockets would surely be a more efficient way to get the case state into the frontend. We should think about this in the context of the UI rewrite (see #4, Milestone 1.6).


Add docker option to "getting started"

Is your feature request related to a problem? Please describe.
Add a way for people to test and run this locally - not in a codelab. Docker is an easy path for folks.
Describe the solution you'd like
I'd like clear instructions on how to run this locally.

Hey there,
Our next step is to provide the code as a Python package.
A docker would be a nice addition, but we won't have time to work on it for now so I've put it into our help-wanted section.

Python package would be another excellent option to run locally, thanks! You may want to change the website docs here, though, because it says that a Docker image is "coming soon"? Doesn't sound like it's expected soon. https://docs.lavague.ai/en/latest/docs/get-started/get-started-docker/

@smach Thanks for flagging. In the end, we have decided to go with a dev Container option - have updated the docs: https://docs.lavague.ai/en/latest/docs/get-started/setting-up-la-vague/

We also created a docker image in the end too: https://docs.lavague.ai/en/latest/docs/get-started/setting-up-la-vague/


Z-Wave Mouse Trap: Fix icon by changing category to GenericSensor

The profile was using the ContactSensor category but GenericSensor is more appropriate since this device doesn't have a contact sensor and there isn't a more specific category available for a device like this.
https://smartthings.atlassian.net/browse/CHAD-8638

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


hide_input: Hide cells after notebook is fully loaded

Otherwise cells might not be hidden properly if the notebook takes a long time to load. That might lead to very confusing inconsistencies between the metadata and the actual display status (clicking hide again hides the cell in the browser but toggles the metadata to hide_input=False)

hm it still doesn't seem to work everytime :-/

works now after following advice from @minrk

Looks good to me. Thanks for looking into it.
Btw., have you tested the check_input_prompt filter to remove the prompts ?

yeah but I wanted to remove the prompt without changing the template. Using a template means that if the user writes a custom template, they need to be aware of the plugin template to inherit from it. Using multiple plugins, this looks impossible.

Yes, I think this is an unfortunate restriction of the template system.
Should be easy to do in a few lines using a nbconvert preprocessor, too.

yeah but that doesn't work for stripping the Out[X] part unfortunately


[bug] Sidecar not killed if the application is forced kill

Describe the bug
From our experience, the sidecars are killed properly without any code on Linux and MacOs (not Windows) without any code.
To fix the issue on Windows, we added code to kill the sidecar on RunEvent::ExitRequested. While it fixed the issue for Windows, we found that if the app is force killed with a kill -9 or Force Quit on Mac, it will not kill the sidecar properly.
What is interesting is that the webkit processes are killed properly so I am unsure why the sidecar isn't.
Reproduction

Launch an app with a sidecar
Force Quit the app
Observe that the sidecar is still running

Expected behavior
The sidecar should be killed alongside the application
Platform and versions
We use a forked version of tauri but our changes are not related to this.
Environment
  › OS: Mac OS 11.6.3 X64
  › Node.js: 16.17.0
  › npm: 8.15.0
  › pnpm: 7.14.0
  › yarn: 1.22.15
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-x86_64-apple-darwin

Packages
  › @tauri-apps/cli [NPM]: 1.1.1
  › @tauri-apps/api [NPM]: 1.0.1 (outdated, latest: 1.2.0)
  › tauri [RUST]: git+https://github.com/caido/dependency-tauri?branch=caido#428d6600f70bce020f6e0ab9cb5a5dc29e2ca9ac (1.1.1),
  › tauri-build [RUST]: git+https://github.com/caido/dependency-tauri?branch=caido#428d6600f70bce020f6e0ab9cb5a5dc29e2ca9ac (1.1.1),
  › tao [RUST]: 0.14.0,
  › wry [RUST]: 0.21.1,

App
  › build-type: bundle
  › CSP: default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  › distDir: ../caido-ui/dist
  › devPath: http://localhost:10000/
  › framework: Vue.js

App directory structure
  ├─ dist
  ├─ node_modules
  ├─ scripts
  └─ src

Stack trace
No response
Additional context
No response

The webkit processes are handled by the OS, so it can successfully close that, but sidecar is handled by the tauri app and if you force close the app, it means all code execution is interrupted immediately and the cleanup code won't have a chance to run its logic, nothing we can do about this.

I get that, but is there a best practice to handle that? Users somethings force kill applications.
I guess the Sidecar process could monitor for it's parent somehow, but I appreciate any suggestion on that.

Nothing off the top of my head. kill -9 should be used carefully https://medium.com/naukri-engineering/use-of-kill-kill-9-naukri-engineering-5f01c4ff31ea

Agreed but I would expect to have a solution for the MacOS Force Quit menu. It should send a SIGTERM, but our testing shows that it might not or at least it is not handled properly. For example, I tried to force quit VSCode and all the LSP servers were also killed so clearly there is a way to handle it without leaving children process alive.

Yeah I did look a lot into it and I found what VSCode does. It's basically polling for the parent PID and cleaning the resources when it detects the parent was killed. I am trying to reproduce the same behaviour in rust.
https://github.com/microsoft/vscode/blob/14459d6db1a088fbf1c631350cb27ade59fe1e39/src/bootstrap-fork.js#L226

For those that might find this thread later, I built a simple crate (https://github.com/caido/process_alive) to verify if a certain process is alive. I then pass the tauri PID to the child process on start and the child starts monitoring the parent status in a thread every 5s and kills itself if the parent is dead.


cloudflare support

Hi, I tried to install coolify on a server proxied through cloudflare, but A record check prevents me from doing it. Will there be a fix for this in the future?
P.S. Good luck with development.

Yeah, I will try to fix it soon. With Cloudflare in front of your apps could get a ton of loads off from your server's shoulders, so it's a must-have!

Ok, I figured out a way. It works with my instance so that it will land soon in the codebase. 🎉

I've added Cloudflare support to the installation script. Please check and let me know if it's still not working!

Wow, it works!

I was in a hurry

Yes, that is a common problem with a reverse proxy behind Cloudflare.
You need to set the SSL/TLS Encryption to Full or Full(strict) in your Cloudflare configuration.
Explanation here:
https://stackoverflow.com/questions/43645907/s3-and-cloudflare-flexible-ssl-handshakes

Thanks, everything works fine


Sort instances by label in pyblish gui

Changes

context item is not under any group item - possible since we don't have artist view anymore
items in instance view are sorted except context item which is always at the top
this change does not affect order of processing

Resolves https://github.com/pypeclub/pype/issues/696

This is not great actually. It also sorts the plugins on the right side, which makes is super confusing to see what's going on, considering they are processed in different order, that how they are displayed.
The instances mismatch between visual ordering and processing is only a bit annoying, so I'd accept that, but the plugins are not usable.

It also sorts the plugins on the right side, which makes is super confusing to see what's going on, considering they are processed in different order, that how they are displayed.

Good spot I actually didn't realize that.

Much better. thanks


CASSANDRA-17668 handle leak of non-standard Java types as clients using JMX cannot handle them

DatabaseDescriptor had changes where some methods threw non-standard exceptions.  This caused some of the JMX setter methods that called them to throw them as well which causes issues as the clients can't handle them.  This pull request addresses these issues by creating new APIs that catches and converts the non-standard exceptions to standard ones and deprecates the old setters.  For consistency, since the setters have been deprecated, new getters have been created as well.

Closing as it as been decided that we will be making changes only to trunk.


Add activation functional tests for Cortana

Changes activation code to allow functional tests to activate with custom arguments and adds test for Cortana foreground activation.

Hi @aballway, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (AJ Ballway). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@bbowman is added to the review. #Closed

@mnithish is added to the review. #Closed

:shipit:

:shipit:

:shipit:

CI build is successful


Comment after switch statement not scoped

From https://github.com/Microsoft/vscode/issues/58810
TS and JS Grammar Extension version:  0.0.45 / latest
Code
switch (0) // discard and renew state per mode
{
}

The comment is currently scoped as switch-statement.expr.tsx instead of as a comment

This is probably related to this:

a comment following the last member in an object declaration with key=value abbreviation syntax lets the last member be unscoped.


deprecate justpy pandas dataframe accessor

This code leads to some very ugly tutorial style it teaches people to access ag_grid from the dataframe.
# Load data showing percent of women in different majors per year
wm = pd.read_csv('https://elimintz.github.io/women_majors.csv').round(2)

def basic_example():
    """
    basic AG Grid example reading a csv file and displaying it in a grid
    """
    wp = jp.WebPage()
    wm.jp.ag_grid(a=wp)  # a=wp adds the grid to WebPage wp
    return wp

The bad news is  that it teaches nothing else which might lead to the assumption that you need a pandas dataframe to use ag_grid which is not the case. A simple list of dicts will do.
Also as a computer scientist i have a hard time why jp should be subelement of a pandas dataframe and what "jp" means in this context. What is jp here? A module, a package, a component, an interface a function a property, an attribute ? Its totally confusing and seems to be intended as "syntatic sugar" which ends up having no properly understable semantics.
It is IMHO far better to show the responsibilities of the components and follow the SOLID interface segregation principle.
So to avoid the possible misunderstanding and confusions of responsbility i'd rather deprecate the accessor code when it comes to doing the ag_grid and table code and make this two lines instead of one so that the "magic" is made visible and understandble. The other code here might be necessary and not for convenience. Please comment on this issue in due time - i'll not work on it for a a while except when improving tutorial examples.
@pd.api.extensions.register_dataframe_accessor("jp")
    class JustPyAccessor:
        def __init__(self, df, **kwargs):
            self._validate(df)
            self.df = df

        @staticmethod
        def _validate(obj):
            pass

        @staticmethod
        def make_pairs_list(x_data, y_data):
            return list(map(list, itertools.zip_longest(x_data, y_data)))

        def _get_column(self, col_spec):
            if isinstance(col_spec, int):
                col = self.df.iloc[:, col_spec]
            elif isinstance(col_spec, str):
                col = self.df[col_spec]
            else:
                raise TypeError(
                    "Column specification for plotting must be integer or string"
                )
            col = col.replace(
                [np.inf, -np.inf], [sys.float_info.max, -sys.float_info.max]
            )
            # Convert nan to None
            return col.where((pd.notnull(col)), None)

        def plot(self, x, y, **kwargs):
            kind = kwargs.get("kind", "column")
            chart = HighCharts(**kwargs)
            categories = kwargs.get("categories", True)
            o = chart.options
            o.chart.type = kind
            o.chart.zoomType = "xy"
            o.chart.panning = True
            o.chart.panKey = "shift"
            o.title.text = kwargs.get("title", "")
            o.subtitle.text = kwargs.get("subtitle", "")
            o.plotOptions.series.stacking = kwargs.get(
                "stacking", ""
            )  # either normal or percent
            if kind not in ["scatter"] and categories:
                o.xAxis.categories = list(self._get_column(x))
            o.series = []
            for col in y:
                s = Dict()
                if kind not in ["scatter"] and categories:
                    s.data = list(self._get_column(col))
                else:
                    s.data = self.make_pairs_list(
                        self._get_column(x), self._get_column(col)
                    )
                s.name = self.df.columns[col] if isinstance(col, int) else col
                s.type = kind
                o.series.append(s)
            return chart

        def ag_grid(self, **kwargs):
            grid = AgGrid(**kwargs)
            grid.load_pandas_frame(self.df)
            return grid

        def table(self, **kwargs):
            headers = list(self.df.columns)
            table_data = self.df.to_numpy().tolist()
            table_data.insert(0, headers)
            return AutoTable(values=table_data, **kwargs)

I agree in the part where this is misleading and create confusion for the impression about how to create ag-grid in JustPy.
IMHO, may I suggest that, to convert a pandas dataframe into an ag-grid in JustPy should comprise of 2 steps.
First, from dataframe to the list of dictionaries of each rows/records, which is in fact the command df.to_dict('records') so that we could set it to the rowData in the grid option. Some helpers to handle null and string conversion would also be useful here.
Second, some helpers to set the columnDefinition in the grid_option, say a function that map df.columns to the list of colDef, including some properties that require JavaScript compilation such as valueFormatter/valueGetter or even an aggFunc for the pivot.
These two steps are exactly what this pandas dataframe accessor is doing in one call. However, to make it clear for the steps required to convert a pandas dataframe into an ag-grid in JustPy, separating it into 2 steps would be more intuitive and flexible.

see #685


How to initialize environment outside of main repo?

Steps to reproduce

I cloned examples/example.py outside of the repository (i.e. in a different project repo) and attempted to run it.

Observed Results
I got No such file or directory: 'data/datasets/pointnav/gibson/v1/train/train.json.gz'. because the data path in the config is a relative path. When I changed DATA_PATH in configs/tasks/pointnav_gibson.yaml I got
Expected Results
I expected the script to run as normal.
How do I make an environment from config from outside the main repo? We'd like to integrate Habitat into our existing project as an environment and are having extreme trouble just initializing an environment from outside habitat-api. Thank you so much for the help!

After changing the DATA_PATH to the absolute path of the config, I get:
~/svl/habitat/feature_selector/habitat-sim/habitat_sim/simulator.py in _config_backend(self, config)
     52     def _config_backend(self, config: Configuration):
     53         if self._sim is None:
---> 54             self._sim = hsim.SimulatorBackend(config.sim_cfg)
     55         else:
     56             self._sim.reconfigure(config.sim_cfg)

ValueError: Cannot load: data/scene_datasets/gibson/Adrian.glb

You can create a new train pointnav dataset setup, the new setup will be mostly identical to the current setup, you can use the current pointnav_gibson.zip as the starting point. The train dataset for Gibson is split over different houses, so the folder pointnav/gibson/v1/train/content contains files like Adrian.json.gz, Albertville.json.gz which contains the different episodes inside the respective houses. Each episode contains a scene_id which is of the type data/scene_datasets/gibson/Adrian.glb. You will have to modify this value to the location where you have stored the glbs.
Let me know if you have anymore questions and thanks for trying this out, I do recognize that this kind of setup is slightly convoluted and we are trying to simplify this setup.

The "just make it work" fix is to do ln -s /path/to/habitat-api/data while in the folder for the different project's repo

@bradleyemi with https://github.com/facebookresearch/habitat-api/pull/77 we have parameter config.DATASET.SCENES_DIR to control the location of scenes dataset and get rid of data symlink requirement. Let us know if you have any questions regarding that and feel free to reopen the issue.


Ability to cancel wallet connection attempt

When ZAP wallet is setup and connecting (or with wrong settings: not connecting); then there is no ability to change the connections settings; the only solution is to fully uninstall and manually remove data folders (which are left after uninstall).
Detailed Description
Would be great to have a simple ability to change the connection settings on an already installed ZAP wallet.

Closed via https://github.com/LN-Zap/zap-desktop/pull/2062


W-8207738 - Run Query button does not indicate it is busy running your query

Code Builder or Desktop:
Desktop
OS and version:
OSX 10.14.6
VS Code Version:
1.52.0-insider
Browser Version (if applicable):
NA
Summary
When i click the Run Query button, it does not indicate that it is "busy" running the query.  If the query takes a long time, my tendency is to click it again, unsure if it captured my previous click.  This can result in multiple queries being run at once, with multiple result tabs displaying after the queries finally return.
This UX is especially brutal when your salesforce org has a lot of data and the query takes a while to run.  For instance, log into gus.
sfdx force:auth:web:login -r https://gus.my.salesforce.com -a gus
sfdx force:config:set defaultusername=<your gus<EMAIL_ADDRESS>
Steps To Reproduce:

Log into gus
Create a simple query like SELECT Id FROM ADM_Work__c
Click Run Query
Notice the awkwardly long pause and the mental anguish as to whether anything is happening.

Expected result
The Run Query button should disable and provide visible feedback to the user that is indeed carrying out their wishes.
Actual result
The Run Query button just stays in it's current state, without any UX feedback that it has indeed received its orders to run the query.


rancher v2.6.4 ingress won't auto-generate *.sslip.io and not working

Rancher Server Setup

Rancher version: v2.6.4
Installation option (Docker install/Helm Chart): Docker install

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):

Proxy/Cert Details:

Information about the Cluster

Kubernetes version: v1.22.9
Cluster Type (Local/Downstream): Downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Custom

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom) Admin

If custom, define the set of permissions:

Describe the bug
As I followed the quickstart guide, after deployed rancher/hello-world and add port with clusterIP type, i got deployments and service.
Then I add a ingress, point target service to the service I just got.
BUT there is not a auto-generated *.sslip.io endpoint as in guide, so I'm confused.
Is the guide outdated? so what should I do?
here's some post seems related to my problem, but I still can't work it out.
https://forums.rancher.com/t/rancher-2-6-2-ingress-not-working/36311
https://forums.rancher.com/t/try-to-use-ingress-in-rancher-2-6-but-still-not-worked/37583
https://forums.rancher.com/t/rancher-and-ingress-conflict-when-running-in-docker-on-ports-80-443/36910
To Reproduce
follow the quickstart guide
Result
Expected Result
follow the quickstart guide, and it should successfully pass through...
Screenshots

Additional context

Hi, this still can work. You just need put the value sslip.io to the request host of the ingress rule, then the controller can generate the target request host based on sslip.io .

感谢，request host里直接填sslip.io，稍等一会儿就能够自动生成URL。
这样应该就可以了，不过我最终没能全部走通。
点击生成的URL后显示了502状态码，怀疑是我的rancher部署的问题。
打算重新部署又遇到了[FATAL] k3s exited with: exit status 2。


how can I share my layout cshtml by dll

how can I complie the layout.cshtml file into dll file ,to reuse and share between project?
when i use asp.net mvc ,I use the RazorGenerator Custom Tool to complie cshtml ,,but is there any way to use in asp.net core 2.1??

Thanks for contacting us, @kugarliyifan.
You can define layout files in a Razor Class Library and reference it from the main application by path.
I've put together a sample project for you to see how this is done: https://github.com/mkArtakMSFT/Samples/tree/master/SharedLayoutInRCL
Look for the SamplePage.cshtml page, which is referencing the layout from the RCL.

Thanks for contacting us, @kugarliyifan.
You can define layout files in a Razor Class Library and reference it from the main application by path.
I've put together a sample project for you to see how this is done: https://github.com/mkArtakMSFT/Samples/tree/master/SharedLayoutInRCL
Look for the SamplePage.cshtml page, which is referencing the layout from the RCL.

thank you very much!!!!!!!


[Feature Request] tensorclass with non-tensor data

Motivation
@tensorclass is currently restricted to input types: Tensor, MemmapTensor, KeyedJaggedTensor, TensorDictBase or other tensorclass
Some users have expressed interest for a more generic type of content.
Solution
We could store any other data but restrict the tensor-behaviours to the tensor data.
API decisions
returning a new instance
Any operation that return a tensorclass would just copy the non-tensor data:
>>> @tensorclass
... class MyClass:
...     images: torch.Tensor
...     path: str
...
>>> data = MyClass(torch.randn(2, 3, 64, 64), "path_to_data", batch_size=[2])
>>> print(data[0])
MyData(images=torch.Tensor(...), path="path_to_data", batch_size=[])

The same would do for .contiguous(), .clone(), .unbind(), etc
For stack or cat we would need to check that these attributes match. If not, an error is thrown.
### Indexing
In general, I think every non-tensor field should be treated in the same way, ie a list would not be indexed
>>> @tensorclass
... class MyClass:
...     images: torch.Tensor
...     captions: List[str]
...
>>> data = MyClass(torch.randn(2, 3, 64, 64), [“a”, “b”], batch_size=[2])
>>> print(data[0])
MyData(images=torch.Tensor(...), captions=["a", "b"], batch_size=[])

If the number of captions is limited this could work
@tensorclass
class MyClass:
    images: torch.Tensor
    _captions: torch.Tensor
    caption_classes: List[str]

    @property
    def captions(self):
        return [self.caption_classes[idx] for idx in self._captions]

data = MyClass(images=torch.randn(5, 3, 64, 64), _captions=torch.randint(2, (5,)), caption_classes=["a", "b"], batch_size=[5])

Otherwise, if the number of captions is much larger, it would be up to the user to implement indexing
@tensorclass
class MyClass:
    images: torch.Tensor
    captions: List[str]

    def __getitem__(self, item):
        c = super().__getitem__(item)
        c.captions = self.captions[item]
        return c

setitem
With tensorclass, we can do
>>> @tensorclass
... class MyClass:
...     images: torch.Tensor
>>> data = MyClass(torch.randn(3, 4, 5), batch_size=[3, 4])
>>> data[1] = MyClass(torch.randn(4, 5), batch_size=[4])

With a non-tensor field, I would think about solving it that way
>>> @tensorclass
... class MyClass:
...     images: torch.Tensor
...     meta_data: Optional[str] = None
>>> data = MyClass(torch.randn(3, 4, 5), "stuff", batch_size=[3, 4])
>>> data[1] = MyClass(torch.randn(4, 5), "stuff", batch_size=[4])  # match - no error
>>> data[1] = MyClass(torch.randn(4, 5), batch_size=[4])  # ignored - no error
>>> data[1] = MyClass(torch.randn(4, 5), "I am a pig, and as a pig, I have always stood out.", batch_size=[4])  # don't match - raise exception
>>> MyClass(torch.randn(3, 4, 5), batch_size=[3, 4])
>>> data[1] = MyClass(torch.randn(4, 5), "I am a pig, and as a pig, I have always stood out.", batch_size=[4])  # don't match - raise exception

Construction
One important question is also whether we want to allow any field to be a non-tensor, e.g.
>>> @tensorclass
... class MyClass:
...     images: torch.Tensor  # do we want to raise an exception if a string is given?
...     meta_data: Any  # will tensors be considered as tensors?
...     meta_data: Optional[str] = None  # do we want to raise an exception if a tensor is given?

cc @tcbegley @keyboardAnt

This is great! I have a couple of comments:

Any operation that return a tensorclass would just copy the non-tensor data:

Deep copy or shallow copy ?

In general, I think every non-tensor field should be treated in the same way, ie a list would not be indexed

+1

Otherwise, if the number of captions is much larger, it would be up to the user to implement indexing

A consistent behavior would be more apt

data[1] = MyClass(torch.randn(4, 5), "I am a pig, and as a pig, I have always stood out.", batch_size=[4])  # don't match - raise exception

I didn't follow why doesnt it match ?

meta_data: Any  # will tensors be considered as tensors?

In this case, are we relying to static types? If not, the user should be allowed to annotate meta_data as Any and assign it a tensor (as will be allowed by Python).

meta_data: Optional[str] = None  # do we want to raise an exception if a tensor is given?

Depends on how much do we want to rely on static analysis. I am open to raising an exception but this may not be the behavior that the end users expect.

I didn't follow why doesn't it match ?

the string is different, hence we don't know what to do (unlike tensors, we don't know how to update the string of the destination class given a mismatching script from the origin)

In this case, are we relying to static types? If not, the user should be allowed to annotate meta_data as Any and assign it a tensor (as will be allowed by Python).

My view is this: we should not care too much about type annotations. If the annotated type is the class itself, then yes we should care (we already do that). See this example, which should work with tensorclass as it is now:
@tensorclass
class MyClass:
    tensor: Any
    nested: Optional[MyClass] = None

data = MyClass(torch.randn(3, 4), MyClass(torch.zerso(3, 4), batch_size=[3, 4]), batch_size=[3, 4])
assert isinstance(data.nested, MyClass)

This is not as trivial as it seems because, under the hood, nested is actually stored as a tensordict and converted on the fly to a MyClass when queried. We do that based on the type annotation (since the user has said she wanted a MyClass we give her that).
To me, in all other cases, we should just look at the data in the following way:
def __setattr__(self, name, stuff):
    if isinstance(stuff, (Tensor, KeyedJaggedTensor, TensorDictBase)) or is_tensorclass(stuff):
        # write the data in self._tensordict
   else:
        return super().__setattr__(name, stuff)

The reason I don't want to rely too much on type annotations is because

we need to make opinionated choices: e.g. what to do with Any? Is is always a simple attribute? Or should we look at the type and decide (like in the example above)? Then what should we do with Union[Tensor, str]? write the tensor as an attribute?
we deviate from dataclass where the type is not enforced at all (it is just indicative IIRC)
it makes the learning curve steeper for the users: one will need to read way more doc to understand what can and can't be done.

In general, my philosophy is to have the behaviour that is the most intuitive. It is not always possible though... I feel that both behaviours (strict type or loose) are at first sight intuitive, but the former quickly ends up in not so obvious decisions that will harm adoption.
Wdyt?

this may not be the behavior that the end users expect

Exactly my point

Hi @vmoens,
I will work on this

I didn't follow why doesn't it match ?
the string is different, hence we don't know what to do (unlike tensors, we don't know how to update the string of the destination class given a mismatching script from the origin)

My bad. I didnt realize we were indexing the class. Well then, the following seems weird:

data = MyClass(torch.randn(3, 4, 5), "stuff", batch_size=[3, 4])
data[1] = MyClass(torch.randn(4, 5), "stuff", batch_size=[4])  # match - no error

I mean data[1] can be thought of as a subclass of MyClass that only has Tensor, MemmapTensor, KeyedJaggedTensor, TensorDictBase or other tensorclass attributes.

In this case, are we relying to static types? If not, the user should be allowed to annotate meta_data as Any and assign it a tensor (as will be allowed by Python).

My view is this: we should not care too much about type annotations. If the annotated type is the class itself, then yes we should care (we already do that).

nested is actually stored as a tensordict and converted on the fly to a MyClass when queried. We do that based on the type annotation (since the user has said she wanted a MyClass we give her that).

To me, in all other cases, we should just look at the data in the following way:

def __setattr__(self, name, stuff):
    if isinstance(stuff, (Tensor, KeyedJaggedTensor, TensorDictBase)) or is_tensorclass(stuff):
        # write the data in self._tensordict
   else:
        return super().__setattr__(name, stuff)

I am likely misunderstanding this but the two things seems different. In the first case (since the user has said she wanted a MyClass we give her that), we are relying on type hints but in the second case, we are directly testing the types. I agree with your later comment (and reasons) regarding I don't want to rely too much on type annotations.

@vmoens ,
Couple of questions:

Do we want to support any non-tensor data or we want to restrict this feature request to few data types like String or List?
Regarding the indexing, the list can be the indices of the images. Do we not want to index the list if the len(list) and tensor matches?

Do we want to support any non-tensor data or we want to restrict this feature request to few data types like String or List?

Anything as far as I'm concerned

Regarding the indexing, the list can be the indices of the images. Do we not want to index the list if the len(list) and tensor matches?

No, as stated before, __getitem__ just calls TensorDict.__getitem__. If something else is wanted, one should code up her own __getitem__ as presented here. We want to be consistent across all non-tensor data.

@vmoens
How do we want to handle the nested usecase:
for example:
@tensorclass
class MyDataNested:
    X: torch.Tensor
    z: str
    y: MyDataNested = None

X = torch.ones(3, 4, 5)
z = 'test_tensorclass'
batch_size = [3, 4]
data_nest = MyDataNested(X=X, z=z, batch_size=batch_size)
data = MyDataNested(X=X, y=data_nest, z=z, batch_size=batch_size)

If I use nested, since we are internally converting the tensor_class to tensor_dict, we might lose the non-tensor data of the data_nest
Output:
MyDataNested(
    X=Tensor(torch.Size([3, 4, 5]), dtype=torch.float32),
    y=TensorDict(
        fields={
            X: Tensor(torch.Size([3, 4, 5]), dtype=torch.float32)},
        batch_size=torch.Size([3, 4]),
        device=None,
        is_shared=False),
    z='test_tensorclass',
    batch_size=torch.Size([3, 4]),
    device=None,
    is_shared=False)

Good point
I think if you do data.y you should get a MyDataNested so we should do some magic to return data.y.z as being the z that you gave to the nested object

@vmoens
Couple of questions on nested usecase:

Do we support multiple nesting? This is what I mean:

@tensorclass
class MyDataNested:
    X: torch.Tensor
    y: MyDataNested = None

X = torch.ones(3, 4, 5)
batch_size = [3, 4]
data = MyDataNested(X=X,
                    y= MyDataNested(
                            X=MyDataNested(X=X, batch_size=batch_size),
                            batch_size=batch_size)
                    , batch_size=batch_size)

While instantiating the object I did not get any error message. However, this is what I see when I try to access the attributes:
print(data)
MyDataNested(
    X=Tensor(torch.Size([3, 4, 5]), dtype=torch.float32),
    y=TensorDict(
        fields={
            X: TensorDict(
                fields={
                    X: Tensor(torch.Size([3, 4, 5]), dtype=torch.float32)},
                batch_size=torch.Size([3, 4]),
                device=None,
                is_shared=False)},
        batch_size=torch.Size([3, 4]),
        device=None,
        is_shared=False),
    batch_size=torch.Size([3, 4]),
    device=None,
    is_shared=False)

print(data.y)
MyDataNested(
    X=TensorDict(
        fields={
            X: Tensor(torch.Size([3, 4, 5]), dtype=torch.float32)},
        batch_size=torch.Size([3, 4]),
        device=None,
        is_shared=False),
    batch_size=torch.Size([3, 4]),
    device=None,
    is_shared=False)

print(data.y.X)
TensorDict(
    fields={
        X: Tensor(torch.Size([3, 4, 5]), dtype=torch.float32)},
    batch_size=torch.Size([3, 4]),
    device=None,
    is_shared=False)

Here data.y.X is supposed to be return as MyDataNested class instead returned a TensorDict.

Regarding the support for non-tensor data, the changes I made in the PR so far passes all the test cases except nested scenario. I was thinking of saving non-tensor data at a global class level attribute and retrieve it while accessing the attribute. This choice has a limitation if the non-tensor data is optional and we don't know what internal objects set this attribute? Any suggestion on how to proceed with this?


add pointDot only on the clicked points(section/curve)

pointDot : false, removes all the dotted points. Is there a way to add only on a specific one?

This is a question related to using Chart.js in the real world. We recommend you to also post this question to stackoverflow.com and tag with CHARTJS in order to get the most attention to your question.
If you do, please link from here to there and vice versa to get the most eyes on this.

closing, unresponsive, no SO link

Is there any news on this feature ?
As far as I understand it's dotted for every line or none
In my exemple it would be nice to have the red line (representing a threshold) represented as a single line not dotted


enhancement request - add reminder ahead of expiry

Would it be possible to add a calendar entry xx days (where xx is either fixed or able to be configured) ahead of expiry of MOT and tax to allow time for it to be done ahead of expiry?
I could do an automation myself but it would be tidier if it was in the one place
Calendar entry title like  - MOT due -  -  or TAX due -  -
Many thanks

Sorry man, I probably won't be doing this as, like you say it can be done in an automation.

No worries - thanks for considering it ... time for me to learn about calendars ...

I've found automating from the calendars to be quite tricky, especially when a calendar have multiple events at the same time.
I found it easier using the sensor.dvla_<reg_number>_motexpirydate and sensor.dvla_<reg_number>_taxduedate entities.
Hope this helps, also, thanks a lot for your bugs/issues. You've helped make this integration stronger and I very much appreciate that!
If you have any upcoming flights or incoming parcels then feel free to check out my other integrations :D


Periodic merge from develop to master (for release 3.1.5)

Release 3.1.5 of the workspaces is happening.
Use this timing to do a periodic merge from develop -> master and get docs related to the 3.1.5 release into production

need to resolve something


fixed SQLColumns, so it really return column names now

length of SQLTCHAR may be negative as described by SQL_NTS and SQL_NULL_DATA macros. So
if (catalog_name_length)
  query << " AND TABLE_CAT LIKE '" << stringFromSQLSymbols(catalog_name, catalog_name_length) << "'";

will be executing even for empty catalog_name resulting in SQL like this:
WHERE (1 ==1) AND TABLE_CAT LIKE '' AND TABLE_SCHEM LIKE '' AND COLUMN_NAME LIKE '' AND TABLE_NAME LIKE 'real_table_name' ORDER BY TABLE_CAT, TABLE_SCHEM, TABLE_NAME

Obviously such query will always return 0 records, so no column information could be retrieved.
This is fixed now with my patch.

Thanks a lot!


Add ASCollectionNode's nodeBlock* alias

add new constructor arguments for asynchronous delegates.

[x] nodeBlockForItemAtIndexPath
[x] nodeBlockForSupplementaryElementOfKind

it was merged.


how processing just part of image(ROI) and change PAWCS learning BG rate?

hello,
thank you for your nice library in advance and i want ask you two question:
1- how processing just part of image(ROI) in bgs methods ? when i using ROI rectangle, error happen in   CV_Assert(oInitImg.isContinuous());
2- how change PAWCS learning BG rate? i want learning background in each 1 hour once. how i do that?

Hi @ardashir66 ,
Thank you for your interest into the bgslibrary, and I am sorry for my delayed feedback to you.
Please, see the answers below:

1- how processing just part of image(ROI) in bgs methods ? when i using ROI rectangle, error happen in CV_Assert(oInitImg.isContinuous());

You could do this in several ways. If you are using the the standard bgslibrary binary generated into the bgslibrary/build/ folder, you can define the ROI by changing the bgslibrary/config/VideoCapture.xml file. More specifically, the following parameters:
<use_roi>0</use_roi>
<roi_defined>0</roi_defined>
<roi_x0>0</roi_x0>
<roi_y0>0</roi_y0>
<roi_x1>0</roi_x1>
<roi_y1>0</roi_y1>

by setting use_roi=1 and roi_defined=1, then defining roi_x0, roi_y0, roi_x1, and roi_y1.

2- how change PAWCS learning BG rate? i want learning background in each 1 hour once. how i do that?

PAWCS has a lot of parameters, only some of them are available in the config file of the algorithm. Maybe you will need to manually modify some of PAWCS internal parameters, please see:
https://github.com/andrewssobral/bgslibrary/blob/master/package_bgs/LBSP/BackgroundSubtractorPAWCS.cpp
such as:
...
// local define used to specify the default lword/gword update rate (16 = like vibe)
#define DEFAULT_RESAMPLING_RATE (16)
//! parameters used to scale dynamic learning rate adjustments  ('T(x)')
#define FEEDBACK_T_DECR  (0.2500f)
#define FEEDBACK_T_INCR  (0.5000f)
#define FEEDBACK_T_LOWER (1.0000f)
#define FEEDBACK_T_UPPER (256.00f)
...

You can try to send a message to Pierre-Luc St-Charles (https://github.com/plstcharles, author of the PAWCS algorithm) to ask him more about the algorithm parameters.
Best regards

thank you so much for your answer and take your time
best regards


Can't use glm?

I think this is a cmake issue?
But
cmake_minimum_required(VERSION 3.6)
project (astha)

find_package(glm REQUIRED)

link_libraries(glm)
add_executable(astha main.cpp)

And I get this?
CMake Error at CMakeLists.txt:5 (find_package):
  By not providing "Findglm.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "glm", but
  CMake did not find one.

  Could not find a package configuration file provided by "glm" with any of
  the following names:

    glmConfig.cmake
    glm-config.cmake

  Add the installation prefix of "glm" to CMAKE_PREFIX_PATH or set "glm_DIR"
  to a directory containing one of the above files.  If "glm" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "C:/msys64/home/Swoorup/projects/astha/build/CMakeFiles/CMakeOutput.log".

It would seem that cmake doesn't have a built-in module for Glm. Because it is a header only library, we aren't generating the config files either.
doesn't have a built in cmake module nor does it provide cmake config files. You'll unfortunately need to fall back to calling something like find_path(GLM_PATH glm/glm.h) and then including GLM_PATH.
Note: I don't actually know the right header name, so make sure to fix that in your cmake.
Also, I noticed your root directory is C:/msys64. Note that vcpkg uses the MSVC toolchain and will not generally work with mingw. If you'd like to use mingw, you'll need to install the correct devel packages from something like msys2.

I am not using mingw compiler, it just happens that I installed vcpkg in that folder.

Document has added to VCPKG, see https://github.com/microsoft/vcpkg/blob/master/docs/examples/installing-and-using-packages.md#handling-libraries-without-native-cmake-support

so how to resolve

This issue is from 2017! God save us all!

so how to resolve

So you solve this issue?

so how to resolve

@jiuqing1851 Do you solve this issue? Thank you


Markers doesnt point to the correct level of buy/sell on the y axis (with positioning inBar)

Lightweight Charts Version: 3.1.5
Steps/code to reproduce:
Having this issue with all my buy/sell markers but it is also the case in the jsFiddle of tradingView.
https://jsfiddle.net/TradingView/nd80cx1a/

Actual behavior:
Markers are shown with the arrow pointing at about 73.50 when the sell was at 75 for ex. Removing the text and/or changing to position "inBar" doesnt help either.
The arrow doesnt point to the correct pricelevel no matter what positioning is used, isBar makes the marker even more off from the actual sell/buy price.
For day/swing trades, this makes it very unusable since all the arrows are completely off, and just looking at the chart could give the impression that the trade was for ex a loss, but reading the markers text, or checking trade details one sees it actually was a profitable trade.
Expected behavior:
Arrows should point correctly at the pricelevel of buy/sell. The down-tip of the arrowDown should be placed at the price-level of the sell. The upwards tip of the arrowUp should be placed at the pricelevel of the buy.

I expect the arrow to point to the correct price level if positioning is "inBar", or expect that there would be another positioning option that would make the marker handle this case.
Screenshots:
inBar:

aboveBar (makes sense for this positioning option)

CodeSandbox/JSFiddle/etc link:
https://jsfiddle.net/TradingView/nd80cx1a/

The arrow doesnt point to the correct pricelevel no matter what positioning is used, isBar makes the marker even more off from the actual sell/buy price.

Series' markers aren't made to highlight a specific price level, they even don't have price property in their options. They are pointing a bar where something was happened and sometimes a side where this happened (it might be used in several conditions, e.g. for trades it might show whether it's buy or sell trade).

Arrows should point correctly at the pricelevel of buy/sell. The down-tip of the arrowDown should be placed at the price-level of the sell. The upwards tip of the arrowUp should be placed at the pricelevel of the buy.

See https://github.com/tradingview/lightweight-charts/issues/127

I'm going to close the issue. If you'll have any question or updates - feel free to re-open it.

The nice workaround to achieve having markers on exact price level would be to create a line series with full transparent color and then setting markers on the "invisible line series" instead of candlesticks series.

Code snippet of workaround mentioned.

I really think introducing a marker with a price level or y-coordinate is of utmost importance. A lot of charting use-cases would be solved with lightweight-charts as a result.


Adapt reg sample to changes in features detectors

Adapt to changes in the interface of feature detectors, using now Feature2D interface.

:+1:


BlastApps.FluentSearch version latest

Official website: https://www.fluentsearch.net
Github presence: https://github.com/adirh3/Fluent-Search
Rights to this application belong to @adirh3 (https://github.com/adirh3)

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Could you please suppress this?

Could you please suppress this?

I'll try to have a look, thanks!

Could you please suppress this?

I'll try to have a look, thanks!

With which installation parameters does this appear? Upon installing, I simply get prompted for Admin permissions, both with and without the -h flag. Maybe that is because I have previously installed the software?
As a matter of curiosity, are Admin-prompts also considered bad taste for the installation?

Is there a way for me to apply the suggestions you made? It says those need to be made by a user with write-access.
Or should I manually change them, commit and push the new version to the branch?
(Please excuse my ignorance of the process here)

I have accidentally deleted the forked repo and therefore, this is unnecessarily complicated - sorry for that. However, the creator of the app has opened a new pull request with the files including @ItzLevvie 's suggestions at https://github.com/microsoft/winget-pkgs/pull/19337

There should be a button next to the suggestion which says Commit Changes

@OfficialEsco I've looked there, because I know that feature from Gitlab. I couldn't find it, perhaps that was because I stupidly deleted the forked repo. Thanks for following up, anyway!


aws.iam.RolePoliciesExclusive does not take effect in Pulumi until refresh

Describe what happened
aws.iam.RolePoliciesExclusive does not take effect in Pulumi (does not restrict RolePolicy from being added to a Role) until Pulumi is called with refresh. This problem exists upstream but is worse in Pulumi as in Terraform it is sufficient to keep terraform apply to reach the steady state, where in Pulumi one has to run pulumi up --refresh.
Sample program
Sample program:

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
import * as inputs from "@pulumi/aws/types/input";

const exampleRole = new aws.iam.Role("exampleRole", {
    assumeRolePolicy: {
        Version: "2012-10-17",
        Statement: [
            {
                Action: "sts:AssumeRole",
                Effect: "Allow",
                Sid: "",
                Principal: {
                    Service: "ec2.amazonaws.com"
                }
            },
        ]
    },
});

const rolePolicy1 = new aws.iam.RolePolicy("rolePolicy1", {
    role: exampleRole.id,
    policy: JSON.stringify({
        Version: "2012-10-17",
        Statement: [
            {
                Action: ["ec2:Describe*"],
                Effect: "Allow",
                Resource: "*",
            },
        ]
    })
});

const rolePolicy2 = new aws.iam.RolePolicy("rolePolicy2", {
    role: exampleRole.id,
    policy: JSON.stringify({
        Version: "2012-10-17",
        Statement: [
            {
                Action: ["iam:Describe*"],
                Effect: "Allow",
                Resource: "*",
            },
        ]
    })
})

const rolePolicy3 = new aws.iam.RolePolicy("rolePolicy3", {
    role: exampleRole.id,
    policy: JSON.stringify({
        Version: "2012-10-17",
        Statement: [
            {
                Action: ["sqs:Describe*"],
                Effect: "Allow",
                Resource: "*",
            },
        ]
    })
})

const exclusiveRolePolicySet = new aws.iam.RolePoliciesExclusive("rolePoliciesExclusive", {
    roleName: exampleRole.name,
    policyNames: [rolePolicy1.name, rolePolicy2.name],
})

Do a pulumi up without rolePolicy3, then add rolePolicy3 and do a pulumi up and it will be created. IN fact according to AWS CLI all the policies are attached to the role:
$ aws iam list-role-policies --role-name sample_role
{
    "PolicyNames": [
        "policy1",
        "policy2",
        "policy3"
    ]
}

Subsequent pulumi up shows no changes. This means that the aws.iam.RolePoliciesExclusive fails to restrict the policy names to two in Pulumi.
Log output
No response
Affected Resource(s)
No response
Output of pulumi about
CLI
Version      3.130.0
Go Version   go1.22.6
Go Compiler  gc

Plugins
KIND      NAME    VERSION
resource  aws     6.59.0
resource  awsx    2.17.0
resource  docker  4.5.7
resource  docker  3.6.1
language  nodejs  unknown

Host
OS       darwin
Version  14.6.1
Arch     arm64

This project is written in nodejs: executable='/Users/anton/bin/node' version='v20.15.1'

Current Stack: anton-pulumi-corp/puexclusivemgmtresources/dev

TYPE                                                 URN
pulumi:pulumi:Stack                                  urn:pulumi:dev::puexclusivemgmtresources::pulumi:pulumi:Stack::puexclusivemgmtresources-dev
pulumi:providers:aws                                 urn:pulumi:dev::puexclusivemgmtresources::pulumi:providers:aws::default_6_59_0
aws:iam/role:Role                                    urn:pulumi:dev::puexclusivemgmtresources::aws:iam/role:Role::exampleRole
aws:iam/rolePolicy:RolePolicy                        urn:pulumi:dev::puexclusivemgmtresources::aws:iam/rolePolicy:RolePolicy::rolePolicy2
aws:iam/rolePolicy:RolePolicy                        urn:pulumi:dev::puexclusivemgmtresources::aws:iam/rolePolicy:RolePolicy::rolePolicy1
aws:iam/rolePoliciesExclusive:RolePoliciesExclusive  urn:pulumi:dev::puexclusivemgmtresources::aws:iam/rolePoliciesExclusive:RolePoliciesExclusive::rolePoliciesExclusive
aws:iam/rolePolicy:RolePolicy                        urn:pulumi:dev::puexclusivemgmtresources::aws:iam/rolePolicy:RolePolicy::rolePolicy3

Found no pending operations associated with dev

Backend
Name           pulumi.com
URL            https://app.pulumi.com/anton-pulumi-corp
User           anton-pulumi-corp
Organizations  anton-pulumi-corp, moolumi, demo, pulumi
Token type     personal

Dependencies:
NAME            VERSION
typescript      5.6.3
@pulumi/aws     6.59.0
@pulumi/awsx    2.17.0
@pulumi/pulumi  3.138.0
@types/node     18.19.64

Pulumi locates its logs in /var/folders/gd/3ncjb1lj5ljgk8xl5ssn_gvc0000gn/T/com.apple.shortcuts.mac-helper// by default

Additional context
It is possible that the difference between Pulumi and Terraform in this case is that Pulumi does not refresh by default, when Terraform does.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

https://github.com/pulumi/pulumi-aws/issues/4654 other Exclusive resources would be suspect here as well.


file deepgaze.py (for module deepgaze) not found

hello,
I met a problem,When I perform setup.py appear this problem, please help me thank you

Hi
Did you follow the installation procedure step by step? These are the steps you should follow (Linux and Mac):
git clone https://github.com/mpatacchiola/deepgaze.git
cd deepgaze
sudo python setup.py install
Regards, Massimiliano

Why is the method which uses both dlib and the PnP to estimate the head pose in a video so slow? (I mean the speed of running ex_dlib_pnp_head_pose_estimation_video.py) I want to use it on a webcam,  any suggestion to achieve the level of  real-time processing of webcam video?

Hi hek
The method is doing heavy computation.  For this reason it may be slow. To achieve better performances and to tune the algorithm on your machine you can play with the parameters in the line:
my_cascade.findFace(gray, True, True, True, True, 1.10, 1.10, 1.15, 1.15, 40, 40, rotationAngleCCW=30, rotationAngleCW=-30, lastFaceType=my_cascade.face_type)
In the class HaarFaceDetector inside the file face_detection.py you can find the official description of the class. What you can do is to disable the profile/rotational face detector setting runFrontalRotated=False. Moreover it is possible to accurately tune the minSize and ScaleFactor parameters. The former represents the minimum size of the face to found (you should increase this value, try with 60 for example). The latter is a scale factor used when the face detector increases the size of the research window. Also in this case switching to a value of 1.2 or even 1.25 can make a huge difference. The drawback is that you will loose the capability of detecting small faces.
The description of the parameters given as input to the function are the following:
    @param inputImg the image where the cascade will be called
    @param runFrontal if True it looks for frontal faces
    @param runFrontalRotated if True it looks for frontal rotated faces
    @param runLeft if True it looks for left profile faces
    @param runRight if True it looks for right profile faces
    @param frontalScaleFactor=1.1
    @param rotatedFrontalScaleFactor=1.1
    @param leftScaleFactor=1.1
    @param rightScaleFactor=1.1
    @param minSizeX=30
    @param minSizeX=30
    @param rotationAngleCCW (positive) angle for rotated face detector
    @param rotationAngleCW (negative) angle for rotated face detector
    @param lastFaceType to speed up the chain of classifier
    Return code for face_type variable: 1=Frontal, 2=FrontRotLeft,
    3=FronRotRight, 4=ProfileLeft, 5=ProfileRight.

Regards, Massimiliano

@mpatacchiola, I followed the instruction you said step by step, but have the same problem with @ytgcljj.
This is the error message:
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
warnings.warn(msg)
running install
running build
running build_py
file deepgaze.py (for module deepgaze) not found
file deepgaze.py (for module deepgaze) not found
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/deepgaze-0.1.egg-info
Writing /usr/local/lib/python2.7/dist-packages/deepgaze-0.1.egg-info
Could you help me?

@hyejinJ I probably found the problem. In the file setup.py there was a line which imported a wrong module and in some cases it could return an error. If you download the latest version of deepgaze with the latest setup.py file you may be able to install the library. Let me know if it works.
Massimiliano.

@mpatacchiola Thank you for the quick update. It works now. Do you have any plan to add head "roll" estimation?

@hyejinJ I'm glad that the installation issue is solved. For the "roll" estimation the problem is that there are not good datasets available. Most of the datasets focus on yaw estimation and sometimes on pitch, but only a few have roll. This means that it is difficult to obtain good results with CNNs.
However I'm working on data augmentation ad probably I will have a good roll estimator soon.
Stay tuned, Massimiliano


Update _PrefixSequence.next() for removal of ++ operator

SIL is different (bb2, bb4 and bb5), but the amount of instructions appears to be the same: https://gist.github.com/nielsandriesse/f267f95c4ae8ef113bda

This change looks good to me.


[1.14 backport] Simplify Heap implementation.

Motivation:
Our original Heap implementation used a bunch of static functions
in order to make it clear how it related to textbook heap
implementations. This was primarily done to ensure that it was easier
to see the correctness of the code.
However, we've long been satisfied with the correctness of the code,
and the Heap is one of the best tested parts of NIO. For this reason,
we should be free to refactor it.
Given https://bugs.swift.org/browse/SR-10346, we've been given an
incentive to do that refactor right now. This is because the Heap
is causing repeated CoW operations each time we enqueue new work
onto the event loop. That's a substantial performance cost: well
worth fixing with a small rewrite.
Modifications:

Removed all static funcs from Heap
Rewrote some into instance funcs
Merged the implementation of insert into append.
Added an allocation test to avoid regressing this change.

Result:
Faster Heap, happier users, sadder textbook authors.
(cherry picked from commit f79c7ae / PR #960)

@swift-nio-bot test this please


"joinLeft" returns dataframe that smaller than left_df

Hi all:
I found that leftJoin generates df that smaller than the left df
[In] [1]:  joined_flint = left_flint.leftJoin(right_flint, tolerance=tolerance, key=by)
[In] [2]:  print (joined_flint.count() < left_flint.count())
True

I consider this is a false result since left join does not drop any row in the left table.
Any explanation or suggestion?

leftJoin doesn't have the same semantics as sql left join.
I thought this was really confusing as well.
futureLeftJoin A function performs the temporal future left-join to the right TimeSeriesRDD, i.e. left-join using inexact timestamp matches. For each row in the left, appends the closest future row from the right at or after the same time.
This means that if there were no rows with the matching key within the tolerance it will won't return any rows for that instance.


Support chaining local dependencies

Problem
Local path based dependencies are generally going to be represented as relative paths so that they're portable across different developers' machines. This has the issue that it relies on knowledge of where the path is relative to.
Currently when handling local dependencies we assume that the path starts from the root crate's root directory however this is unlikely to be the case in 2nd order dependencies (a dependency of a dependency)
Proposed solution
When resolving local dependencies of local dependencies we should modify the path pointing towards the package to account for the fact that it doesn't start from nargo's working directory.
Alternatives considered
No response
Additional context
No response

Closing as this was addressed in #1034


fix: mathematical precision

The number in JS uses the IEEE754 standard: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number
IEEE754 conversion rules: https://www.h-schmidt.net/FloatConverter/IEEE754.html
$2^{53}\rightarrow 10^{15.95}$

Maybe is $2^{53}-1\rightarrow 10^{15.95}$

Maybe is 253−1→1015.95 ?

Yes, The leftmost is 1 and will not change.

Should fix Math unit test


No source.hs file

I'm not sure if there's another file I should be compiling, to actually view the app, but in the README it suggests to run ghcjs over source.hs (when nix is finished). However, there is no such file.

@athanclark you are suppose to create that file yourself and put in the first lines of code found here https://github.com/ryantrinkle/try-reflex#dom-basics this was confusing for me too but it works


Fetch results is not updating the model correctly

THis came up in my Netrunner viewer app. I've tried to find a smaller reproduction but have been unable to do so.
https://github.com/mortoray/netrunner_viewer/tree/model
branch: model
Clikc on any card to go to the card view. The fetch callbacks are reached, but the resulting data is never updated in the model (in particular the data in updateCard)

Chair -> Keyboard interface issue it seems. Forgot to remove the old JS reference.


EOEPCA-872: Mundi deployment

GitGuardian 3 secrets are false alarm - django is a SealedSecret, and the ades ones were old commented out values which have long since been replaced with real, SealedSecrets.


Compute World: a new world for GPGPU

Rethinking the way we handle Compute Shaders and GPGPU
I understand that this is a very controversal topic. I think it might be a good idea to have an issue for us to discuss it and its design.
The problem to solve
The use of compute shaders for massively parallel GPGPU (General-purpose computing on graphics processing units) algorithms or to speed up parts of rendering is more and more requested by game developers or graphics programmers in general.
Bevy's current API for compute shader is very much rendering centered and that makes it quite hard and boilerplaty to work with. In addition, it's also very hard to get data back from the GPU once your compute shader have finished running.
What solution would you like?
I think there's quite a few way to improve the API for compute shaders some of them are the following:
1. Having a new World, namely GPGPU World of Compute World, running aside from App World and Render World, and being in charge of GPGPU algorithms. This would allow us to keep having a clear boundary between Render World and the two others. To show this, we can find of going from this:

to this:

The Inject phase show above is mainly to emphasize on the fact that data is flowing from Compute World to App World. In practice, I think we can integrate this logic to Extract.
App World in frame N would have read access to data from Compute World N - 1 and can write for Compute World N + 1.

2. Being able to handle compute shader's logic from App World. (like I did in bevy_app_compute) The main issue I see with this approach is that it's really hard to know where in the underlying WGPU queue we are injecting new submit() calls.
3. Keep the current Compute Shader implementation, but improve the API by using derive macros like AsBindGroup for example, and functions to handle it from App World. The main issue with this method, is to get data back from the GPU as we can only talk to Render World in the Extract phase.
for the last two options, we could imagine defining our Compute structs like that:
/// Extending the current `AsBindGroup` macro to support COPY_SRC + COPY_DST buffers and staging buffers
#[derive(AsBindGroup)]
struct MyCompute {
    #[uniform(0)]
    foo: f32,

    /// we have CPU read access to bar
    #[storage(1), staging]
    bar: Vec<Position>,

    /// We can copy from rw to other storage buffers
    #[storage(2), copy_src]
    rw: Velocity
}

/// Having a helper trait working like `Material`
impl Compute for MyCompute {
    fn compute_shader() -> ShaderRef {
        /// ...
    }
    /// Some more functions to configure our shader
}

Maybe we can also exploit wgpu's reflection system in some way to be more flexible and dynamic about our compute shader logic since we don't have to make a layout necessarily, but I think that's to be discussed in another issue.
I'm leaning toward option no. 1.
Known limitation
The current implementation of wgpu only has one interal queue for submit() calls. Therefore, we still have to know where and when to put our compute submit() calls, as they will run sequentially with the render queue. I know that vulkan has a separate compute queue, and I'm hoping that one day, wgpu will too. I just don't know how feasible / mature this multi-queue system is for other backends wgpu implements.
What alternative(s) have you considered?
As written before, option 2. and 3. are the current alternatives.

Is there any updates on this?
When to procedurally generate textures, and when to use a texture for mesh and collider.  That was 2 weeks ago, since I have been working on workarounds.  bevy_app_compute is by far the closest solution I have seen, but the lack of texture support is not ideal.  I am currently porting an AsBindGroup "Compute" and recreating things like RenderAssets in app world, still wip.

Ending up writing https://github.com/slyedoc/bevy_sly_compute for this.


Make about link list URLs context sensitive

Currently the URLs in the about page link list in the sidebar are hardcoded to open in a new tab, even if an external link is used. This PR makes the link list URLs context sensitive so that internal links open in the same tab and external links open in a new tab. The implementation uses the same logic as the shared/btn-links.html partial.
I've seen at least a few Apero sites using the link list for internal links (including my own), so I think this is a nice add. That way users don't have to override the about/list.html layout just to have the link list work in an expected way. And it gives flexibility for users who want a mix of internal and external links in the list.

Thank you!


db2 connector use old pr

use https://github.com/ververica/flink-cdc-connectors/pull/450 pr

Corrected compilation errors
Added JDBC package version

@waywtdcc Would you like to contribution the db2 cdc connector ?

@waywtdcc Would you like to contribution the db2 cdc connector ?

I can try. Time permitting, I will contribute DB2 related

@waywtdcc Is there any progress? look forward to your release, thanks


Maze breaker turned into a tinker tool or tool part

The idea is that a maze breaker is made from some unknown material that has special properties.
I'm thinking that the mazebreaker should have a recipe made of three "mazebreaker ingots" and two sticks and that the only way to get mazebreaker ingots is to uncraft the mazebreaker. Then, you can use the mazebreaker's ingots to make a tool.
As far as tool properties, I'm thinking that the mazebreaker should have a high mining speed and durability akin to diamond. It should have a cobalt mining level.
Ideally, I want the mazebreaker to come with the Luck modifier (level 2) if I can manage it. It could also have a property that increases its mining speed when mining something that takes a significant amount of time to break, such as obsidian.
color: a pale green #bbd7bb

Head:

1561 durability
13.0 speed
7.45 damage
cobalt mining level
Traits: ?

Handle:

1.5 multiplier
+250 durability.
Traits: ?

Extra part:

+50 durability
Traits: ?

Bow:

0.75 draw speed
1.3 range (arrow speed?)
4 bonus damage
Traits: ?

I went through the trait documentation and we need to use the GetMiningSpeed function and access the block information from the IBlock field of the PlayerBreakEvent. It looks like we just need to set the newSpeed field based on the properties of the IBlock to speed up the block breaking.


[system] getInitColorSchemeScript shouldn't have "use client"

Steps to reproduce 🕹
Link to live example:
Steps:

Create a project with Next.js
Add in the layout

import { getInitColorSchemeScript } from '@mui/material/styles';

  return (
    <html lang="en">
      <head>
        {getInitColorSchemeScript()}
      </head>

Current behavior 😯

Expected behavior 🤔
It works
Context 🔦

#34905
https://github.com/mui/material-ui/pull/38967

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

getInitColorSchemeScript does not have 'use client', but adding it back (PR) doesn't fix it 🤔: https://stackblitz.com/edit/github-ppgum4-bxmkqa?file=src%2Fapp%2Flayout.tsx

@mj12albert this the opposite problem, there should be no 'use client' in the import path, but there is
https://github.com/mui/material-ui/blob/c23c40a39c46fff45cb8f762f478f63907f9a842/packages/mui-material/src/styles/index.js#L1
then
https://github.com/mui/material-ui/blob/c23c40a39c46fff45cb8f762f478f63907f9a842/packages/mui-material/src/styles/CssVarsProvider.tsx#L1
then
https://github.com/mui/material-ui/blob/c23c40a39c46fff45cb8f762f478f63907f9a842/packages/mui-system/src/index.js#L1

Landed here after reproducing steps.
Any current workaround to avoid flickering while still using app folder and layout ?

As a workaround, it is possible to import from @mui/system/cssVars/getInitColorSchemeScript directly.
import { Experimental_CssVarsProvider } from "@mui/material";
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
import getInitColorSchemeScript from "@mui/system/cssVars/getInitColorSchemeScript";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <head>
        <link rel="preconnect" href="https://fonts.googleapis.com" />
        <link
          rel="preconnect"
          href="https://fonts.gstatic.com"
          crossOrigin="anonymous"
        />
        <link
          rel="stylesheet"
          href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap"
        />
      </head>
      <body>
        <AppRouterCacheProvider>
          <Experimental_CssVarsProvider defaultMode="system">
            {getInitColorSchemeScript({
              // These properties are normally set when importing from @mui/material,
              // but we have to set manually because we are importing from @mui/system.
              attribute: "data-mui-color-scheme",
              modeStorageKey: "mui-mode",
              colorSchemeStorageKey: "mui-color-scheme",
              // All options that you pass to CssVarsProvider you should also pass here.
              defaultMode: "system",
            })}
            {children}
          </Experimental_CssVarsProvider>
        </AppRouterCacheProvider>
      </body>
    </html>
  );
}

It would be nice if this could be integrated in the @mui/material-nextjs package, so that the provider and getInitColorSchemeScript function are combined (and you only have to pass the options once).

Same bug with createTheme. There is no reason this should happen:

https://stackblitz.com/edit/github-z45nfe-5k5dkz?file=src%2Fapp%2Fpage.tsx,src%2Fapp%2Flayout.tsx,src%2Ftheme.ts

Following up from https://github.com/mui/material-ui/issues/40945 (the issue closed right above) - the recommended steps there did not work (still experiencing flickering). Will be following this issue for updates.

I'm on this. This should help with zero-runtime integration as well.

I took a few steps to fix this in #40663 but didn't go all in. Wanted to test the water.

@bartlangelaan's workaround didn't work for me. Seems like it's not exported anymore. I've resorted to adding data-mui-color-scheme="dark" as an attribute in my top level <html> to get around the AppBar flickering between custom colors. This works for me since I'm only using dark mode. If there is a better way I'd be interested in knowing :)

@oliviertassinari I'm removing createTheme() from the title. I think that createTheme() should have use client; to be used with Context.

As a workaround, it is possible to import from @mui/system/cssVars/getInitColorSchemeScript directly.
import { Experimental_CssVarsProvider } from "@mui/material";
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
import getInitColorSchemeScript from "@mui/system/cssVars/getInitColorSchemeScript";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <head>
        <link rel="preconnect" href="https://fonts.googleapis.com" />
        <link
          rel="preconnect"
          href="https://fonts.gstatic.com"
          crossOrigin="anonymous"
        />
        <link
          rel="stylesheet"
          href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap"
        />
      </head>
      <body>
        <AppRouterCacheProvider>
          <Experimental_CssVarsProvider defaultMode="system">
            {getInitColorSchemeScript({
              // These properties are normally set when importing from @mui/material,
              // but we have to set manually because we are importing from @mui/system.
              attribute: "data-mui-color-scheme",
              modeStorageKey: "mui-mode",
              colorSchemeStorageKey: "mui-color-scheme",
              // All options that you pass to CssVarsProvider you should also pass here.
              defaultMode: "system",
            })}
            {children}
          </Experimental_CssVarsProvider>
        </AppRouterCacheProvider>
      </body>
    </html>
  );
}

It would be nice if this could be integrated in the @mui/material-nextjs package, so that the provider and getInitColorSchemeScript function are combined (and you only have to pass the options once).

Thanks and it works for me!

The bug is still relevant


[Bug]: gazelle does not support typescript 'declare module' statements

What happened?
Importable modules can be declared using declare module:
declare module 'module-name' {
   ...
}

and this can then be imported using import 'module-name'.
Gazelle should support this.
Notes
This will require parsing declare module statements from the code to know the importable name, where today we only parse for finding imported libraries (not exported names). Some logic should probably be added to avoid parsing the same code twice, this logic should be shared with the kotlin plugin where the code is parsed twice in the initial mvp.
How to reproduce
In a .d.ts file:

declare module 'generated/declaration-module' {
    export * from '@aspect-test/a';
}

In a .ts file:
import 'generated/declaration-module';

Done, will be synced to the cli repo soon.


feat: implement 0x80 - DUP1 Opcode

SinceGroupFrontierDuplication OperationsIndex 1 is top of the stack. See PUSH.Stack inputvalue: value to duplicate.Stack outputvalue: duplicated value.value: original value.ExampleInputOutput11121Reproduce in playground.Error casesThe state changes done by the current context are reverted in those cases:Not enough gas.Not enough values on the stack.Stack overflow.

i will give this a try!


Feat: Scraping data from LeetCode

Describe the feature
I want to add scrapper  for LeetCode it will fetch the data of the username provided. Like the no of problems solved and various ranks and badges the user got. Please Assign this to me
Add ScreenShots

Record

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

I would like to work on this project. Please assign it to me

Go ahead @Shraman-jain
Note

Please create a separate module for this, as in the folder and project structure (if it is already created, just add your features as functions in the same module).
Do not use the `selenium web driver as it is incompatible with all devices and cloud platforms.
Before making any changes, please check whether the module you want to add exists. If yes, then you can add your functionality as a method only make a separate module and class for it.

All the best 👨💻

Hello @nikhil25803  please assign this issue to me as I have already worked on this kind of problem in the past.

@nikhil25803 Can you guide me how to scrape dynamic content without using selenium as I can't find a way to do so. I have tried multiple approaches but can't find a suitable one


An ERROR during starting program

Description
The ERROR: Could not initialize class org.jkiss.dbeaver.registry.driver.Driver Descriptor
Reason:
Could not initialize class org.jkiss.dbeaver.registry.driver.DriverDescriptor
It pops up immediately after starting the program (in ‘Navigator error’ window) and block any other functions.
When i try to close ‘Navigator window’ or push ‘OK’, it appears again.
Program version: 22.2.3
The ERROR arises after updating to later versions, too.
Could you help me to solve this problem, please?

DBeaver Version
Community edition 22.2.3
Operating System
Windows 10 Enterprise 21H2
Database and driver
No response
Steps to reproduce

Open DBeaver
Pop up the ERROR

Additional context
No response

Hello @IVKUD95,
How did you upgrade to the newer version? What type of distribution is that?

It's community edition downloaded from official web site
I used two ways for updating:

deleting of current version, and downloading and installing the newest version from official site
pop up notification in time of opening program

P.S. I've found and installed an old version of program (21.2.1), it works normal, but doesn't have a part of new functional.

I assume you've used the installation file, not the zip archive?

@ShadelessFox yes, I used the installation file

Please try installing the latest version (22.3.0) https://dbeaver.io/download/

The problem is resolved. Thank you.


Keybase fs stopped working

Keybase fs stopped working all of a sudden on my mac running macOS 10.13.6 and a fresh install of keybase (through brew):

It worked a couple of minutes ago.

@strib Thanks for the reply. Just uninstalled the brew version and installed the version on the website, but I still get the same error.

Sounds like you need to fully quit and restart all parts of the Keybase app.  Maybe a system reboot would help get rid of any old brew-based processes that are still running.

Allright. I'll try that. I'll let you know how it went.

Same thing. After rebooting I get the exact same error, even with the new client from the keybase website (after removing the brew version before the reboot):

Is it persisting settings somewhere that I need to delete as well?

Ok it was. Used brew cask zap keybase which removes all associated files, reinstalled the app from the website and now it mounts again.
What's weird though is that the reported version is exactly the same as the version that was installed through brew. This is the version I get from the app now (downloaded from keybase.io):

Same as the brew version right? Are you sure it's outdated?

The KBFS process is separate from the GUI process.  I don't know who's maintaining brew these days, but maybe their kbfs binary is out of date.  It's the kbfs process that was giving the error you were seeing.

Ah I didn't know. So in that case I assume kaybase also cannot deprecate the brew version, because you're not maintaining it? Because I had no idea it was shipping with out of date parts.

Yeah sorry, I have no idea who maintains it.  The website lists it as "Inactive" if that means anything: http://brewformulas.org/keybase

I guess this is where it comes from: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/keybase.rb? Maybe it would be possible to deprecate or update it via a PR there.

Just got the exact same error again. Happened while working on some files, where all of a sudden kbfs died, and now it's giving me these errors again. So it's not related to me using an older version, but apparently just something that causes it to crash and doesn't allow it to recover. Even after reboots. The only thing that is a known solution for me is removing keybase, the device and reinstalling and reregistering the device with keybase.
So definitely a bug. A pretty catastrophic one at that.

Seems like something on your system is re-installing the old version?  Or it's still running somehow?  When that happens, you can look around for running kbfs processes and/or do a keybase log send and we can see if there's anything obvious wrong.


ci: build on PR

In order to allow external contributions, we need to run required workflows on PR (not in push branches because external users will not be able to create a branch on the repo).
If you think that building and pushing on PR is an issue, you will must adjust your workflow (or your requirements)

Already done


Filter Task - make it shows only rows with filtered task?

How to make it to only show rows with certain task? Because now angular-gantt shows every rows and it only hides other tasks.

Add an additional row filter to hide all empty rows:
var rowFilter = function(row) {
    return row.filteredTasks.length > 0;
}

Thanks I just by pass it by using


[Critical] Huge locators turn

JDN v 3.1.127
Back-end v 2022-02-12-11.36.19
Chrome

open any page
open the JDN tab
new page object
generate and DO NOT wait for finish
confirm
new page object

AR: new page object can be generated really slow cause we have a turn from the previous generation. Sometimes plugin breaks and we should reload it.
ER: only current page object locators can be in turn

@AlexeyGirin please, add URL of the page, where plugin broke and there was a long turn.

I used the following site: https://jdi-testing.github.io/jdi-light/html5.html

v3.1.139

JDN v 3.1.139
Back-end v 2022-02-12-11.36.19
Chrome
done


Consider classpath support feature

https://github.com/py5coding/py5generator/discussions/110#discussioncomment-3371249

You can set the environment variable $PY5_JARS to a directory. Any jars in that directory or a subdirectory will be automatically added.
If you are using the run_sketch utility, you can add jars with the --classpath command line argument.
If you are using Thonny, the py5 plugin can be enhanced to support either of these two options if it does not do one of them already.

I tried adding the variable to the Thonny options panel but it didn't work for me (but hey, I'm clumsy).
One Idea I had would be for a command that would open a folder pre-made for third-party jars and already in the classpath.

I think this is because the thonny-py5mode plug-in ignores anything the Program arguments field (which I need to look at).


Support for Stello

Would it be possible to add support for Stello?

They need to add a broadcasts with 'com.android.music.metachanged' and 'com.android.music.playstatechanged'. I'll send them an email.

Thank you.


Path must be a string. Received { Error: Command failed: wmic.exe process where parentProcessId=6220 get ExecutablePath,ProcessId

Issue Id: b5402855-71b7-e67e-d7de-652e8588ad90Versions - 1.15.0Stack TypeError: Path must be a string. Received { Error: Command failed: wmic.exe process where parentProcessId=6220 get ExecutablePath,ProcessIdERROR:
Description = The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
    at ChildProcess.exithandler (child_process.js:223:12)    at emitTwo (events.js:106:13)    at ChildProcess.emit (events.js:191:7)    at maybeClose (internal/child_process.js:885:16)     at Process.__dirname.ChildProcess._handle.onexit (internal/child_process.js:226:5)   killed: false,  code:<PHONE_NUMBER>,  signal: null,  cmd: 'wmic.exe process where parentProcessId=6220 get ExecutablePath,ProcessId' }    at assertPath (path.js:7:11)    at Object.basename (path.js:799:5)/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts#L894:16 (basename)/vs/workbench/parts/terminal/electron-browser/windowsShellHelper.ts#L49:28 (setTitle)/vs/base/common/winjs.base.raw.js#L1170:0 (onComplete)/vs/base/common/stopwatch.ts#L5:0

Related to #32556.

Duplicate of https://github.com/Microsoft/vscode/issues/32556


Create sieveOfEratosthenes.java issue number #308

Sieve of Eratosthenes implementation in java
Please include a summary of the changes you have made in regard with this issue.
Fixes #(308)
Type of change
Please delete options that are not relevant

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update

Checklist:

[x] I have read the contribution guidelines before making this PR.
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented in my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (Language folder or any other readme instructed to)
[x] My changes generates no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works

@kaustubhgupta please review. In reference to issue #308

@kaustubhgupta done. Please check it.


getting remote ollama to work

I have ollama running on another machine that I access through cloudflared. I get the 'ollama is running' confirmation when I access it directly, I can access/control that remote instance of ollama using open-webui but I can't seem to get the crag-ollama-chat config.yaml to connect to it.
I've tried /v1, :port/v1/the rest of it
any ideas?
Traceback (most recent call last):
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/Users/peter/ai-computing-assistant/CRAG-Ollama-Chat/app.py", line 66, in
vectorstore = Chroma.from_documents(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py", line 778, in from_documents
return cls.from_texts(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py", line 736, in from_texts
chroma_collection.add_texts(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py", line 275, in add_texts
embeddings = self._embedding_function.embed_documents(texts)
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/langchain_openai/embeddings/base.py", line 517, in embed_documents
return self._get_len_safe_embeddings(texts, engine=engine)
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/langchain_openai/embeddings/base.py", line 333, in _get_len_safe_embeddings
response = self.client.create(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/resources/embeddings.py", line 113, in create
return self._post(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/_base_client.py", line 902, in request
return self._request(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/_base_client.py", line 940, in _request
return self._retry_request(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/_base_client.py", line 940, in _request
return self._retry_request(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
File "/Users/peter/miniconda3/envs/ollama-crag/lib/python3.10/site-packages/openai/_base_client.py", line 950, in _request
raise APITimeoutError(request=request) from err
openai.APITimeoutError: Request timed out.

You can first try using your remote ollama on  your PC, and if it works, then test this project.


Account Transactions time filterable and length modifiable

Description:
Allows account transactions to be filtered by time
Allows account transaction row length to be alterable
Related issue(s):
#907
Fixes #
Adds time filter
Adds row count modifier
Notes for reviewer:

Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

I'm not sure why this unit test is now failing, it seems to be failing at expect(tc.totalRowCount.value).toBe(0),  but I don't believe the added/modified code should affect that.


Trouble with polymorphic associations

I have a polymorphic image class, and when I try to update my product when the image changes, I run into problems.
Is this a known issue... or is a there trick to it?
Here's a snippet of the stack trace:
2015-05-12 23:07:56 +0000: Rack app error: #<NoMethodError: undefined method `name' for nil:NilClass>
/vagrant/app/chewy/products_index.rb:23:in `block (3 levels) in <class:ProductsIndex>'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in `map'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.1/lib/active_record/relation/delegation.rb:46:in `map'
/vagrant/app/chewy/products_index.rb:23:in `block (2 levels) in <class:ProductsIndex>'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/chewy-0.7.0/lib/chewy/fields/base.rb:25:in `instance_exec'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/chewy-0.7.0/lib/chewy/fields/base.rb:25:in `compose'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/chewy-0.7.0/lib/chewy/fields/base.rb:62:in `block in nested_compose'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/chewy-0.7.0/lib/chewy/fields/base.rb:62:in `map'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/chewy-0.7.0/lib/chewy/fields/base.rb:62:in `nested_compose'
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/chewy-0.7.0/lib/chewy/fields/base.rb:36:in `compose'

Could you provide sources please?

Hi,
I think I discovered the cause, but don't know how to solve it.
So my app is a multi-tenant app and each model has a default_scope to the tenant_id.
So in my indexes, something like this does not work:
 field :categories, analyzer: "keyword", value: -> { categories.pluck(:name) if categories.any? }
But if I do something like this it works:
 field :categories, analyzer: "keyword", value: -> { Tenant.current_id =1; categories.pluck(:name) if categories.any? }
The problem is that outside of the value lambda, Tenant.current_id is accessible by the scope. But inside it is not unless I explicitly hard code it.
Is there a way for me to pass a value into that lambda? Does the field method accept an optional argument for this?

I still don't understand how Tenant.current_id is set. Is is happens before import? Could you please provide some pseudo-code?

Tenant.current_id is set per request. Think of it as current_user or something like this. My app uses token authentication so each request re-authenticates and the Tenant.current_id is set.
Does that make sense?
So if I was to go to council and run ProductsIndex.reset! I would need to first assign the tenant. This is ok, because I'm in council. But when a user is interacting with the system and they make updates, the Tenant.current_id is set based on their authentication, so the index must import using their tenant id.
Does this help?
I'm not sure what code you would like me to provide?

If Tenant.current_id is set right before import in every case, then I'm pretty sure it is available in value lambda

It's strange, I was able to get it to work like this:
tenant_id = Tenant.current_id
field :categories, analyzer: "keyword", value: -> { Tenant.current_id = tenant_id; reload; categories.map(&:name) }

But why? Why is the current resource object loaded without the Tenant.current_id scope? It's available outside of the value proc.

Nope, you are doing closure here, tenant_id in lambda will stay always the same as it was in definition time. But Tenant.current_id will be the same as it was set before import. So you don't have to set it up, you just have to access it.

That's how I understand things too... but am seeing strange behavior.
I've attached two screen shots. The first is when I pry'd outside of the lambda, the second inside.
https://www.dropbox.com/s/6egda7ketnjgumd/2015-05-15 at 12.13 AM.png?dl=0
https://www.dropbox.com/s/kzk46ydmipz3pbt/2015-05-15 at 12.16 AM.png?dl=0
Is there something that chewy is doing to the current thread in the call stack?

define_type method block is evaluated in type class context, so there is no any reason to do anything with Tenant.current_id in this context

I'm not sure what to say. I've pry'd it in different scopes, and tried with
and without the explicit assignment as I now have, and nothing worked. For
some reason it only works when I assign the value of Tenant.current_id to a
variable and access that variable in the lambda.
I can give you access to my code if you like?
On Fri, May 15, 2015 at 12:24 AM, Arkadiy Zabazhanov <
<EMAIL_ADDRESS>wrote:

define_type method block is evaluated in type class context, so there is
no any reason to do anything with Tenant.current_id in this context
—
Reply to this email directly or view it on GitHub
https://github.com/toptal/chewy/issues/170#issuecomment-102298297.

Not sure I need this.
The main thing here you should use Tenant.current_id in value lambdas only. You can't set it or use anywhere inside index or type definition except value lambdas.
Try simple experiment: in definition try to value: -> { p Tenant.current_id }
After try: Tenant.current_id = 1; YourIndex.import; Tenant.current_id = 2; YourIndex.import
You will see that inside value lambda current_id is the same as was set before import.
Also chewy does nothing with thread variables except adding own ones.

I'll investigate tomorrow -- it's late here now. Thanks for all the help. I really appreciate your concern.


MPD module is showowing title as "untitled track" when artist is unknow

MPD module is showowing title as "untitled track" when artist is unknow
[module/mpd]
type = internal/mpd

host = <IP_ADDRESS>
port = 6600
interval = 2
label-song =  %title% - %artist%
label-offline = 🎜 mpd is offline
format-online = <label-song>

icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 

label-song-maxlen = 25
label-song-ellipsis = true

Duplicate of #766
Please give your input on how you would like to have this handled over there

This looks different than #766, as it appears to be a bug that shows untitled track when it should be Scandroid - Eden.mp3.
@g3t0r could you give more information on what version you're on (polybar, mpd, libmpdclient) and what distro you're using?

Sorry totally misread that.
From the screenshot it seems to me that the mp3 file doesn't have a title set and ncmpcpp just displays the name of the file whereas polybar displays "unkown artist"

@NBonaparte  I'm using Manjaro, mpd version is 0.20.10, libmpdclient 2.11-1, polybar 3.0.5-74-g5737156

What does mpc -f "%title% - %artist" display?

Never mind, I reproduced this with tag-less files and it is as @patrick96 said. We could add a fallback which calls mpd_song_get_uri(s) and extracts the filename (similar to ncmpcpp), if you would like it as a feature.

Sure, that would be great!


deps: bump docker go dependency , fixes CVE GHSA-jq35-85cj-fj4p

Closes #
📑 Description

bump docker go dependency , fixes CVE GHSA-jq35-85cj-fj4p
✅ Checks

[x] My pull request adheres to the code style of this project
[ ] My code requires changes to the documentation
[ ] I have updated the documentation as required
[x] All the tests have passed

ℹ Additional Information

Welcome as a new first time contributor, thanks for the contribution 🤗


Add a Viewport method to get automatically computed 2D stretch transform

Viewport.get_stretch_transform() returns the automatically computed 2D stretch transform.  Combined with Transform2D.get_scale(), this is useful when using the canvas_items stretch mode in a project.
There are many situations where knowing this factor is useful:

Divide Camera2D zoom to keep the size of the 2D game world identical regardless of the 2D scale factor (so that UI elements can still be scaled).
Make certain controls always drawn at 1:1 scale (e.g. for the crosshair in a FPS). This is done by dividing the Control node's scale by the scale factor.

Testing project: test_scale_factor_2.zip

This closes https://github.com/godotengine/godot-proposals/issues/6836.

Preview
Top displays a GDScript implementation as shown in the proposal. Bottom displays the new implementation.

I've force-pushed a commit that amends the commit message to describe more accurately what it does now (expose the stretch transform, not just the scale).

Thanks!


Remove bracket on import because error in console

When you import the component no use bracket because when you do it, you have this error in console:
[Vue warn]: Unknown custom element: <pagination> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

Hi @matfish2, I confirm that it's a rather frustrating issue :)


Website doesn't work

Website https://www.vechaiui.com/ doesn't open.

Same for me

Sorry, the domain is expired, I just renew the domain but now It's not working... You can visit https://vechaiui.vercel.app/ until I fix this


kubelet support --root-dir

What's it about?
Support specifying kubelet --root-dir when installing a cluster with kubeadm
What's the reason why we need it?
This seems to be a common requirement
Please leave your comments below if there's anyone agrees with me. Or just give me a thumb up.
Area Suggestion

/kind feature

/kind feature
/milestone v1.1.0

/assign @lyp256


[Feature Request] Compatibility with Better Rolltables

This module here: https://foundryvtt.com/packages/better-rolltables/
https://github.com/p4535992/foundryvtt-better-rolltables/tree/master/src
Currently it seems that Rolltable Requester does not recognize the "better table" type from the Better Rolltables module, specifically the ability to roll multiple times by dice value for an entity type (e.g. another rolltable).  Is it possible to recognize a better table?

Should be possible. I may have some time this week to look into it, but I can't say for sure.

This would be awesome!  Thanks for even reading my comment.


Updated OWNERS file to include link to docs

/assign @prydonius

/lgtm

@prydonius thanks for approving. for some reason the approved label is not added. can you retry it with /approve ?

/approve


Files aren't being generated

OS: Windows 10 64-bit
generator-csharp-cli-app version: 0.1.2
npm version: 4.0.5
node version: 6.9.2
All of the console output:
$ yo csharp-cli-app
(!) require('yeoman-generator').generators.Base is deprecated. Use require('yeoman-generator').Base directly
? Your project name UpdateChromium
? Company name (for AssemblyInfo.cs copyright fields) tamj0rd2

Confirmed. Working on a fix to upgrade to the latest yeoman-generator package.

Please upgrade to latest release (v0.2.0), thanks for reporting this issue!


Smart contract batch epoch size testing

Test ideal length of epochs per blockchain and choose appropriate ones

64 is not possible for local hw 32 will be used for the time being