Vim9: segmentation fault when compiling function

Run vim --clean (or gvim --clean, etc.)
Source this script:

vim9script

def F(G: func(func): void): func(any): void
  return (Cont) => G((t) => {
    })
enddef

defcompile

Edit: fix function signature.
You should see Vim crash.
Expected behavior
Not sure: I get E488: Trailing characters: }) when the new line after { is removed, so the script above should at least produce the same error. But is this syntax invalid? If so, how do you define a lambda without a return value?
Environment (please complete the following information):

Vim 8.2.2850.
OS: macOS 11.3.1
Terminal: Apple Terminal

backtrace
valgrind log
asan log

But is this syntax invalid? If so, how do you define a lambda without a return value?

I think the syntax is valid.  I use it in a few places (like here for example).  The only issue is that you can't use it in a command which takes another command as an argument (like an autocmd, or a global command).

It does not fix the crash, but I think the return type in the header should be func or maybe func(any): void:
def F(G: func(func): void): func
                            ^--^

the return type in the header should be func or maybe func(any): void

You are right. I have fixed the text of the issue.

I think the syntax is valid.

Good to know. A workaround for this issue is to use def instead of a lambda:
def F(G: func(func): void): func(any): void
  def H(t: any): void
  enddef
  return (Cont) => G(H)
enddef

Run vim --clean (or gvim --clean, etc.)
Source this script:

vim9script

def F(G: func(func): void): void
  return (Cont) => G((t) => {
    })
enddef

defcompile

You should see Vim crash.
Expected behavior
Not sure: I get E488: Trailing characters: }) when the new line after { is removed, so the script above should at least produce the same error. But is this syntax invalid? If so, how do you define a lambda without a return value?

This runs into the problem that using the {} block for a lambda isn't
yet supported inside a lambda.  That's a bit different from before,
since it could only be an expression.  Now it can be a sequence of
commands.  This requires some work...
--
GALAHAD: No, please.  Please! I can defeat them!  There's only a hundred.
GIRLS:   He will beat us easily.  We haven't a chance.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


Expensive for-loops should be rewritten/removed

In the custom loss function, for example, the for-loop should be rewritten/removed by more efficient code. Options are vectorizing, or adding @jit for Numba usage.

Done. But now .appy and .groupby are used. Especially apply can still be a performance bottleneck. It is worth looking into using Numba or similar in the future.


Dependency graph

From the chain-build.toml example, is it that the dependency graph has to be computed manually?

For now yes, you have to specify the order of the builds.

For now yes, you have to specify the order of the builds.

I should also mention that the SRPM is built locally. That means that you need to have each packages in a directory with their spec file.


Remove init container for changing permission of the container runtime socket

With this PR the init container for changing the permissions of the container runtime socket is removed when using litmus-lib.
As per discussion with @ksatchit, the init container is only necessary for pumba-lib.

I suppose, this would this change also need us to prefix sudo for the runtime ops performed using CLI?

Thanks @ksatchit. Yes, that's correct. I am testing on OpenShift 4 using CRIO as runtime. I needed to tweak further also the SCC on OpenShift (equivalent of PSP on vanilla K8S) in order to have it working.
What I needed to enable additionally was the following:

RunAsUser: RunAsAny
DefaultAllowPrivilegeEscalaton: true
After setting this into the SCC, the experiment works.
However, even if we run as non-root user, we still require privileged container. I am checking if we can fine grain the capabilities required

For the moment, I updated only the container-kill experiment

Added network experiments as well

Thank you for these changes @radudd , much appreciated :)


Add LeetCode Valid Analog Problem Solution

Problem Name: Valid Anagram
Description

Given two strings s and t, return true if t is an anagram of s, and false otherwise.

An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.

Example 1:

Input: s = "anagram", t = "nagaram"
Output: true
Example 2:

Input: s = "rat", t = "car"
Output: false

Hey @Kumar-laxmi , I want to add the solution of valid anagram problem, so please asign it to me under SSOC'23

Please don't raise issue pertaining to LeetCode, HackerRank, GFG Practice problems


To do list for PlateFlex

Additional features to be expected in the near future:

[ ] Use the rock-equivalent topography over wet areas in Bouguer analysis - remove water load in this case

[ ] Zero padding on all sides of the initial rectangular window, as opposed to East and North sides only. This will minimize edge effects on all sides

[ ] Remove module conf.py

[ ] Improve documentation for different data sets - try to include PyGMT examples

[ ] Add tests and package

Good updates Prof., I also suggest you make the software very simple to use and easy to install like that of KIrby method. just oneone phase. if all will be on fortran so fortran then we casn run all in cygwin or any complier or python then python. Toi me this methos looks good but too complicated from the beginning to the end unkie Kirby method much easier to comprehend. many will be reluntant to use if too complicated, I can even say more complicated than the multitaper method. The online installation guide is not illustrative at all. More energy

@Afelumo1992 Your complaints are noted but they are not very constructive and will be ignored. If you have specific suggestions, open a different issue with a clear description of your problem and/or suggestion. If you prefer to use a different software because you don't like this one, go for it.

@paudetseis, am very sorry for the way my comments sound, I do apologize for that, please pardon me for that, the issue here is that I was so exhausted yesterday trying and trying to get it but just got off myself. Once again am very sorry sir. Sir am very much curious to learn this new method and in this light am willing to learn from you about how to install and run this software on my Cygwin terminal. I will be grateful for your considerations and also please accept my apology. Many thanks 🙏🏻 sir.


Remove deprecated template provider

what

Removes the deprecated template provider and uses a series of replace() calls to get the same result

why

Besides being deprecated, the template provider also doesn't have any ARM builds
Since previously this was using template_file with a string, the new templatefile isn't the right replacement (since it only works on files). Instead, this just does 3 straightforward replacements to maintain backward compatibility with existing usage.

references

/test all

We are hitting this issue as well.  Can this be merged and a new release generated?


How to click on the screen at current mouse location? (visual automation)

from user query

use following in your TagUI automation script -
left click
vision click(atMouse())
right click
vision rightClick(atMouse())
double click
vision doubleClick(atMouse())


Add guide on custom Python client objects.

This is a guide on how to register custom Python objects that Tiled should use for certain types of data.
Of interest to @mattewdcarbone. Possibly also of interest to @pbeaucage.

@danielballan this is really great, thank you. I think it'll be really helpful.
Quick question, for the custom clients, how does that play with from_uri? I understand the pieces about specs, but it's not clear how I get e.g.
class CustomClient(Node):  # <- note, `Node`?
     @property
     def element(self):
         return self.metadata["XDI"]["Element"]["Symbol"]

from from_uri.
thanks!

If I understand right, you want to customize the client object that represents the root of the tree, the object returned directly by from_uri(...). Client-side, this runs through the very same code path and works in the same way. Server-side, you need to give the root node a spec that your client to hook into.
This is not supported by the mongomock-backed adapter you are currently using, but it's a very easy patch. Edit databroker.experimental.server_ext to accept a specs parameter, and set it as an attribute. It should default to empty list.
class MongoAdapter(collections.abc.Mapping, IndexersMixin):
    structure_family = "node"
    query_registry = QueryTranslationRegistry()
    register_query = query_registry.register

    def __init__(
        self,
        *,
        database,
        directory,
        queries=None,
        sorting=None,
        metadata=None,
        access_policy=None,
        specs=None
    ):
        self.specs = specs or []
        ...

And then, in your config, add a spec:
trees:
# Create a Mongo "database" in memory.
# When the server is stopped the database will be forgotten.
- tree: databroker.experimental.server_ext:MongoAdapter.from_mongomock
  path: /
  args:
    directory: ./data_files
    specs:
      - CatalogOfXAS  # or whatever...

That spec will affect the root node. It will not affect any of the child nodes (e.g. the uploaded datasets).

@danielballan Mainly, I'm just wondering how from_uri knows that you've defined this new client. Easier to explain via example. I guess what I want to do lazily is this:
class CustomClient:
    def __init__(self, client):
        self._client = client

    def special_method(self, ...):
        do_something_with(self._client)

and of course it would just be easier to inherit the base Node object so that all of the other methods on the Node are defined and I don't need to hack the __getattr__ method on my above CustomClient.
Basically, how do you tell Tiled about CustomClient? It's not obvious where that's registered (unlike the XDIDatasetClient, where it's clear how to manually register it using the Tiled API and also through entrypoints). Does this make sense? Thanks!

Yes, you should inherit from Node. It is not necessary to override __getitem__ because base __getitem__ in Node checks the structure_clients you passed in to from_uri and the entry points you register when deciding what type to return. It propagates this in its child, so that configuration set that at the top of the tree affects the whole tree.

Discovery of entrypoints happens here:
https://github.com/bluesky/tiled/blob/96ac213b7521f7706975d92a540415b835ad1831/tiled/client/constructors.py#L213-L218
The function client_for_item determines which type of object to use:
https://github.com/bluesky/tiled/blob/96ac213b7521f7706975d92a540415b835ad1831/tiled/client/utils.py#L266-L294
It's called by from_uri:
https://github.com/bluesky/tiled/blob/96ac213b7521f7706975d92a540415b835ad1831/tiled/client/constructors.py#L249
and Node.__getitem__:
https://github.com/bluesky/tiled/blob/96ac213b7521f7706975d92a540415b835ad1831/tiled/client/node.py#L321
and well as some other methods on Node.

Ok let me play with this a bit. I'm still a bit confused, I think, but at this stage some hands-on work is what's required. I'll probably ask more questions later. Thanks! 👍

Small bug with your proposed client. You used x where it should've been self. Here's a fix for you:
from tiled.client.dataframe import DataFrameClient

class XASDatasetClient(DataFrameClient):
    """A custom DataFrame client for DataFrames that have XDI metadata."""

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        # Optional sanity check to ensure this cannot be accidentally
        # registered for use with data that is not a dataframe.
        assert self.item["attributes"]["structure_family"] == "dataframe"

    def __repr__(self):
        md = self.metadata
        element = md["sample_metadata"]["element"]
        edge = md["sample_metadata"]["edge"]
        return f'<{self.item["id"]} {element} {edge}>'

Ok so this is really excellent. I think I know how to frame my question. It's now clear how to point certain specs to certain client-like objects. Here's what I did, and it works perfectly fine:
custom = dict(DEFAULT_STRUCTURE_CLIENT_DISPATCH["numpy"])
custom["experimental_XAS"] = XASDatasetClient
api_key = environ["TILED_SINGLE_USER_API_KEY"]
client = from_uri(f"http://<IP_ADDRESS>:8000?api_key={api_key}", structure_clients=custom)

# Upload some dummy data
df = pd.DataFrame({
    "energy": [1, 2, 3],
    "mu": [4, 5, 6]
})

metadata = {
    "dataset": "test_dataset",
    "sample_metadata": {"element": "Co", "edge": "K"},
    "experiment_metadata": {"facility": "NSLSII", "beamline": "ISS", "sample_id": "123"}
}

client.write_dataframe(df, metadata=metadata, specs=["experimental_XAS"])

first = client.values().first()
first
# <86e8d81b-54f7-4e6a-b0d5-c54db81662fe Co K>
# (perfect!)

Now, what I want to do now is to do exactly the same thing, but instead of overriding the behavior to a certain spec, I want to override behavior to the "base" client itself. In other words, what I want to do is this:
something_perhaps = ...
client = from_uri(f"http://<IP_ADDRESS>:8000?api_key={api_key}", some_arg=something_perhaps)

# new client has a new __repr__ which simply prints "foo" before everything
client
# <foo Node {'f94aafa9-032c-4a64-baa4-a86ed6612607'}>

How do I register a change to the "base" node like this? Thanks again!

You can do:
custom["node"] = CustomNodeClient

Tiled does not enable node to be overridden by an entry point because if two libraries in a given software environment both did that it would be unclear what the precedence should be. Specs, on the other hand, are expected to be rather specific, so collisions should be rare and manageable on a case by case basis. (Someday, if we need some kind of official registry or something we could conceivably go there.)
Given that limitation, I think I'd suggest following what Joe did. Give the root node (the thing returned by from_uri a spec using the approach I outlined above use that to create a customized user experience from the top.
The alternative would be to have your own from_uri where you can override node.
def matt_from_uri(*args, **kwargs):
    return tiled.client.from_uri(*args, structure_clients=custom, **kwargs)

But I see downsides there because if you try to connect to, say, tiled.nsls2.bnl.gov with matt_from_uri and node is overwritten there could be unexpected behavior. That's why I'd recommend starting with Joe's approach.

@danielballan perfect, thank you. It's funny I was already in the process of implementing something just like Joe's solution. What do you think of this?
# aimm2.client

from warnings import warn

from tiled.client.dataframe import DataFrameClient

class OperatorHelperMixin:
    """A mixin class that defines how operators can act on the classes."""

class XASDatasetClient(DataFrameClient):
    """A custom DataFrame client for DataFrames that have XDI metadata."""

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        # Optional sanity check to ensure this cannot be accidentally
        # registered for use with data that is not a dataframe.
        assert self.item["attributes"]["structure_family"] == "dataframe"

    def __repr__(self):
        md = self.metadata
        element = md["sample_metadata"]["element"]
        edge = md["sample_metadata"]["edge"]
        return f'<{self.item["id"]} {element} {edge}>'

    def apply_QAQC_(self):
        """Performs a quality assurance/quality control check on the data.
        """

        ...

def from_uri(*args, **kwargs):
    """Manually registers all clients. Lightweight wrapper for
    `tiled.client:from_uri`. Note that this is not a substitute for registering
    the clients via Python entrypoints, as that adds additional functionality
    that this function cannot. Hence, this is mostly useful for developemnt or
    for when you know exactly what you're doing."""

    from tiled.client.node import DEFAULT_STRUCTURE_CLIENT_DISPATCH
    from tiled.client import from_uri as _from_uri

    custom = dict(DEFAULT_STRUCTURE_CLIENT_DISPATCH["numpy"])
    custom["experimental_XAS"] = XASDatasetClient

    if "structure_clients" in kwargs.keys():
        warn(
            "structure_clients key found in kwargs. This will attempt to be "
            "merged with the existing clients"
        )
        custom = {**kwargs["structure_clients"], **custom}

    return _from_uri(*args, **kwargs, structure_clients=custom)

Obviously still a work in progress.

Yes, looks on track to me.

Merging to publish these docs. If anyone runs into errors of points of confusion while using them, we can improve them in future PRs.


Fixes for direct load of glTF (attempt 2)

Fixes #9430

LGTM, let me know if ready to merge ?

Should be ready this time. I've been testing it a bunch.


CNV-44365: add cluster -> overview to virtualization perspective

📝 Description
Adding the cluster -> overview in the virtualization perspective as a doc change

adding some data attributes to make the CSS works. (No className property)

Reduce padding for all the items and remove the border between them.
The last item Chekup does have borders so use a different class for that.
Add horizontal padding for the separator
https://docs.google.com/document/d/1_mv7aEDC2KiXv423CGPPnydu-WnF4zUP9xRbGjlcIIw/edit
🎥 Demo

Hey @upalatucci didn't they wanted also to flat virtualization menu ?

@metalice fixed with the new design

/retest


Sugar for generating Extension Targets

I think this will make you happy @colinta

Sweeeeet! 😆

On Jul 19, 2016, at 7:38 AM, James Campbell<EMAIL_ADDRESS>wrote:
I think this will make you happy @colinta
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@colinta merged, will update documentation and then we can test it out with Ello.


Adds folder copy command

Adds folder copy command solving #424

Coverage remained the same at 100.0% when pulling dccfb7beab4af8527f1e04cec039349a8027993d on VelinGeorgiev:folder-copy into 413988dcaaee73aee1f15eb0096647c15ffbc280 on SharePoint:dev.

Nice @VelinGeorgiev!

Sorry about that @waldekmastykarz. Will fix it asap.

No problem @VelinGeorgiev 👍

Merged manually


sync stops working when path is blown away with firebase-import

I'm using firebase-import here:
https://www.dnwdebt.com/app#/demo/2500
To refresh the demo data every 30 minutes.
I notice that most times the sync stops when data is refreshed from json backups.
It requires the user to refresh the page.
IMHO this is a bug with firebase. $ref points to a path and doesn't receive any events that data was recreated and the client should be resynced.   It seems the delete events occurred but not the create.

Hrm.  I don't think this is an issue with firebase-import as it's simply doing a normal write to your Database.  Perhaps you can isolate what code in dnwdebt.com is failing when the import happens and then log an issue (against  whatever library you're using or with Firebase Support  https://firebase.google.com/support/).  Good luck!


Add local-only JWT validation

Running validAuthToken takes 100–200ms per request. For API requests this is unnoticable, but for HTML requests, this adds a delay. With your competitors, I solved this by checking the JWT locally first which would avoid any network delays for about 80% of the time. Add a helper function that does this.

Closing this issue. For future posterity, the JWT validation functions cache the JWKS signing key so as long as the same Passage object instance is used only the first request will make a network call and subsequent requests will occur locally.


Changes required due to TextBuffer.save becoming async in Atom 1.19

Hi! Thanks for maintaining the build package!
In Atom v1.19, we will release a major change to Atom's core text buffer data structure. As part of this change, we have made TextBuffer.save asynchronous; rather than blocking until the save is complete, it now immediately returns a Promise that resolves when the save is complete. Because of this, a few other Atom APIs that use save have similarly become async:

Pane.close
TextBuffer.save
TextEditor.save
Pane.saveItem
Pane.saveItemAs
Pane.saveActiveItem
Pane.saveActiveItemAs
Pane.saveItems
Workspace.saveActivePaneItem
Workspace.saveActivePaneItemAs

Effects on this package
We think this package could be impacted by this upgrade because it calls the changed methods in the following places:

TextEditor.save

here
here

We found these calls using a regex search, so this list might be incomplete, and it might contain some false positives.
What to do about the change
It should be pretty easy to adjust your package code and/or tests to work with the new async behavior, and to simultaneously keep it working with older versions of Atom. Here are some examples of pull requests we opened on our bundled packages to cope with the change:

https://github.com/atom/autocomplete-plus/pull/852
https://github.com/atom/whitespace/pull/155
https://github.com/atom/symbols-view/pull/222
https://github.com/atom/status-bar/pull/193
https://github.com/atom/tabs/pull/448

Please let me know if you have any questions. I'd be happy to help!

Wow! The level github goes to support the community! good on you @maxbrunsfeld !

Fixed in b8e0aae4354fac5748a1abf6144a7cd9e144c1d1


fix: change date format to MM-DD-YYYY

Codecov Report

Merging #367 (3d3ba2e) into main (5ebb9bd) will decrease coverage by 8.28%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
- Coverage   45.91%   37.62%   -8.29%
==========================================
  Files         223      151      -72
  Lines       11044     2368    -8676
  Branches      605      610       +5
==========================================
- Hits         5071      891    -4180
+ Misses       5056     1304    -3752
+ Partials      917      173     -744

Impacted Files
Coverage Δ

...min-ui/src/pages/app/details/BasicDetails/index.js
50.00% <42.85%> (-4.17%)
:arrow_down:

directory/pkg/utils/week.go

directory/pkg/gds/emails/mock.go

directory/pkg/utils/logger/level.go

directory/pkg/trtl/backup.go

directory/pkg/trtl/peers.go

directory/pkg/gds/secrets/token.go

directory/pkg/gds/client/profile.go

directory/pkg/trtl/config/config.go

directory/pkg/sectigo/sectigo.go

... and 63 more

Continue to review full report at Codecov.

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

@masskoder there is no equivalent of toLocaleDateString() that might format it in the correct representation based on the user's browser settings?


chore: update dependency

This PR
resolve https://github.com/open-feature/docs.openfeature.dev/issues/243

cc @beeme1mr


Add back federation name to gateway api

Not sure where the call got made to remove it but functionally for users we need to add that back in, just identifying based on federationId is impossible to manage when you're connected to multiple feds

Not opposed to that necessarily, but can't you get the GW config from the info endpoint and read the federation name from there?


How to save the predicted output from LayoutLM or LayoutLMv2 ?

I trained LayoutLM for my dataset and I am getting predictions at the word level like in the image "ALVARO FRANCISCO MONTOYA" is  true labeled as "party_name_1" but while prediction  "ALVARO " is tagged as "party_name_1", "FRANCISCO" is tagged as "party_name_1", "MONTOYA" is tagged as "party_name_1". In short, i am getting prediction for each word but how to save these prediction as one predicted output like "ALVARO FRANCISCO MONTOYA" as "party_name_1". How to save this as a single output?
Any help would be greatful.
Below image is the predicted output image from LayoutLM.

@karndeepsingh did you find any way to tackle this problem? I'm also stuck in the same issue about how to join these results.

@karndeepsingh did you find any way to tackle this problem? I'm also stuck in the same issue about how to join these results.

Nope! Still figuring it out. If you find anything do let me know.

you can use IOB-like tagging: https://en.wikipedia.org/wiki/Inside–outside–beginning_(tagging)

you can use IOB-like tagging: https://en.wikipedia.org/wiki/Inside–outside–beginning_(tagging)

Any reference code available to achieve it.
Thanks

look at the commonly used datasets such as FUNSD / XFUND.
in your example, it boils down to training your model to recognize
B-party_name_1 and I-party_name_1 instead of party_name_1
so that the tokens
ALVARO FRANCISCO MONTOYA
will be respectively tagged as
B-party_name_1 I-party_name_1 I-party_name_1
(in other words, you will know that a single party_name_1 entity goes from ALVARO to MONTOYA)

@stjaco thanks for this, I guess I'll try with BILUO based tagging. Although getting multi-line fields like addresses might still be a pain even after doing this.

@stjaco thanks for this, I guess I'll try with BILUO based tagging. Although getting multi-line fields like addresses might still be a pain even after doing this.

Did you find anyway to achieve the required output?

Hi @karndeepsingh ,
I am also working on something similar and I would like to ask you how did you save your predictions in a text file/csv.
Where u able to resolve this problem I am using BIOES tagging. But again getting addressed is a painful part.

@stjaco thanks for this, I guess I'll try with BILUO based tagging. Although getting multi-line fields like addresses might still be a pain even after doing this.

Did you find anyway to achieve the required output?

Any Update????


Error when using androcg.py in python3

Hi, I want to generate  Call Graph with graphml ext
I searched among issues and find out I should use androcg.py, if I'm wrong tell me please.
then I tried to use it like this
androcg.py --output tmp/StepByStepShoe.apk/ StepByStepShoe.apk
but I got this line:
Could not find a method to export files to apk/!
what is this mean? I tried it with 2 file
thanks

Androguard 3.2.0: master
Python Version: 3.6
Ubuntu 18.04

can you share the APK and the full stacktracke? thanks!

--output defines the output FILE not a folder! Please try to create the callgraph like this:
androcg.py --output StepByStepShoe.gml StepByStepShoe.apk

Yes you are right, i need to use --output and file name to get results, thank you very much
I think it's better if --output not used create default output for it.
thanks for this good project


Fails to connect 3 times and disables password

running the feature/daemon branch of mapepire-server
local workstation ssh'ed into IBMi with -L8076:localhost:8076
copied .env.sample to .env
edited .env and provided values

VITE_DB_USER=jwoehr
VITE_DB_PASS=PASSWORD

npm run test on workstation fails to connect 3 times and IBM i disables my password. I've tried 'PASSWORD' and "PASSWORD" as well as the bare password without success.

workstation session:
$ npm run test

><EMAIL_ADDRESS>test
> vitest run --bail 5

 RUN  v2.0.3 /home/jwoehr/work/Mapepire/mapepire-js

 ❯ test/pool.test.ts (1) 1506ms
   × Simple pool (using pool#execute) 999ms
 ❯ test/simple.test.ts (5) 2329ms
   × Simple test 1000ms
   × Paging test 411ms
   × error test 411ms
   · Multiple statements, one job
   · Multiple statements parallel, one job
 ✓ test/tls.test.ts (2) 2734ms
 ✓ test/url.test.ts (1)

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 FAIL  test/pool.test.ts > Simple pool (using pool#execute)
Error: java.sql.SQLNonTransientConnectionException: The application server rejected the connection. (Password is incorrect.:JWOEHR)
 ❯ SQLJob.connect src/sqlJob.ts:131:13
    129|       this.dispose();
    130|       this.status = JobStatus.NotStarted;
    131|       throw new Error(connectResult.error || `Failed to connect to ser…
       |             ^
    132|     }
    133|
 ❯ Pool.addJob src/pool.ts:63:7
 ❯ test/pool.test.ts:18:3

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/4]⎯

 FAIL  test/simple.test.ts > Simple test
Error: java.sql.SQLNonTransientConnectionException: The application server rejected the connection. (Password is incorrect.:JWOEHR)
 ❯ SQLJob.connect src/sqlJob.ts:131:13
    129|       this.dispose();
    130|       this.status = JobStatus.NotStarted;
    131|       throw new Error(connectResult.error || `Failed to connect to ser…
       |             ^
    132|     }
    133|
 ❯ test/simple.test.ts:16:3

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/4]⎯

 FAIL  test/simple.test.ts > Paging test
Error: java.sql.SQLNonTransientConnectionException: The application server rejected the connection. (User ID is disabled.:JWOEHR)
 ❯ SQLJob.connect src/sqlJob.ts:131:13
    129|       this.dispose();
    130|       this.status = JobStatus.NotStarted;
    131|       throw new Error(connectResult.error || `Failed to connect to ser…
       |             ^
    132|     }
    133|
 ❯ test/simple.test.ts:29:3

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/4]⎯

 FAIL  test/simple.test.ts > error test
Error: java.sql.SQLNonTransientConnectionException: The application server rejected the connection. (User ID is disabled.:JWOEHR)
 ❯ SQLJob.connect src/sqlJob.ts:131:13
    129|       this.dispose();
    130|       this.status = JobStatus.NotStarted;
    131|       throw new Error(connectResult.error || `Failed to connect to ser…
       |             ^
    132|     }
    133|
 ❯ test/simple.test.ts:51:3

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/4]⎯

 Test Files  2 failed | 2 passed (4)
      Tests  4 failed | 3 passed (9)
   Start at  14:00:28
   Duration  3.00s (transform 133ms, setup 0ms, collect 324ms, tests 6.57s, environment 1ms, prepare 253ms)

@jwoehr Weird! My tests are passing with no password issues. Want to debug together sometime?

Yes, I'd like to debug with you. Busy this week running Beulah Valley Arts & Crafts Festival ... do you have time Monday or Tuesday next week, @worksofliam ?

@jwoehr Let's work out a time over DM. Next week is fine. Let's leave this issue open to post our findings.

Oops .... $ in password in .env file ... needed to escape the dollar-sign. NEVER MIND :)


[Feature Request] Access to global configuration in setup context

What problem does this feature solve?
We may need to access global configured properties in setup(). As there is no this in the setup it would be great to access global configured properties from the SetupContext.
What does the proposed API look like?
Please have a look at the simple example below just to give an idea about the usage.
//main.ts
const app = createApp(Root);
app.config.globalProperties.someProp = "value";

//AnyComponent.ts
export default defineComponent({
  name: 'AnyComponent',
  setup(props, ctx){
    // access global defined property
    console.log(ctx.$config.someProp)
    return { }
  }
})

config.globalProperties are meant as an escape hatch for replicating the behavior of Vue.prototype. In setup functions, simply import what you need or explicitly use provide/inject to expose properties to app.

@yyx990803 Seems unable to inject css module $style, has any alternative method?

@johnsoncodehk you have useCssModules and useCssVars 😉 They still have to be added to the docs.
Remember you can use the Discord chat to ask questions!

@posva I have been troubled by this problem for a long time! I always to use getCurrentInstance().proxy.$style before. Thanks a lot!!

config.globalProperties are meant as an escape hatch for replicating the behavior of Vue.prototype. In setup functions, simply import what you need or explicitly use provide/inject to expose properties to app.

有没有什么方式能过改善这种写法？
import { defineComponent, getCurrentInstance } from 'vue';

export default defineComponent({
  setup() {
    const { proxy } = getCurrentInstance(); // 这样写会报告 proxy会错误，只能一步步写成如下方式
    const that = getCurrentInstance();
    const mitt = that?.proxy?.$mitt;
    return () => (
      <div
        class='test'
        onClick={() => {
          mitt?.emit('vite-tabspage-add', { a: 1 });
        }}
      >
        emit
      </div>
    );
  },
});


what tools is used for sentence segmentation in Roberta

Hi,
In DOC-SENTENCES and FULL-SENTENCES training format, what tools is used to segment sentences on multilingual training data?

@myleott


Can not initialize Seleno - System.TypeInitializationException

I am new to Seleno so I might have misunderstood something,
I am trying to get Seleno to work. Following the course Automated ASP.NET MVC Testing: End to End  on Pluralsight by Jason Roberts.
But for some reason I cant get Seleno to work.
I create a solution with the ASP.Net MVC (.net 4.6). Works like it should.
WebApplication (solution)
\WebApplication
\Tests
After doing the Install-packages I have the following packages-config
I add a test project with the following packages:
package id="Castle.Core" version="3.3.3" targetFramework="net46"
package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net46"
package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net46"
package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net46"
package id="Microsoft.Web.Infrastructure" version="<IP_ADDRESS>" targetFramework="net46"
package id="NUnit" version="3.0.1" targetFramework="net46"
package id="Selenium.Support" version="2.45.0" targetFramework="net46"
package id="Selenium.WebDriver" version="2.49.0" targetFramework="net46"
package id="TestStack.Seleno" version="0.9.11" targetFramework="net46"
I tried to make a little test but I always get the following error on initialising the BrowserHost.
System.TypeInitializationException : The type initializer for 'Tests.BrowserHost' threw an exception.
----> System.NullReferenceException : Object reference not set to an instance of an object.
at Tests.DudeTest.Something() in c:\dev\WebApplication\Tests\DudeTest.cs:line 12
--NullReferenceException
at TestStack.Seleno.Configuration.WebServers.ProjectLocation.GetSolutionFolderPath() in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\WebServers\ProjectLocation.cs:line 42
at TestStack.Seleno.Configuration.WebServers.ProjectLocation.FromFolder(String webProjectFolderName) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\WebServers\ProjectLocation.cs:line 33
at TestStack.Seleno.Configuration.SelenoHost.Run(String webProjectFolder, Int32 portNumber, Action`1 configure) in c:\ConsoleBuildAgent\work\6625a30e8ee728ba\src\TestStack.Seleno\Configuration\SelenoHost.cs:line 51
at Tests.BrowserHost..cctor() in c:\dev\WebApplication\Tests\BrowserHost.cs:line 17
I found that this has been a problem before, but then the solution was to have the .sln file correctly located. As it is now I think I have It right.
Is there anything I am missing or am I using the wrong .Net version?
BrowserHost.cs
using TestStack.Seleno.Configuration;
namespace Tests
{
public static class BrowserHost
{
public static readonly SelenoHost Instance=new SelenoHost();
public static readonly string RootUrl;
static BrowserHost()
{
Instance.Run("WebApplication", 12345);
RootUrl = Instance.Application.Browser.Url;
}
}
}
TestClass.cs
using NUnit.Framework;
using OpenQA.Selenium;
namespace Tests
{
[TestFixture]
public class DudeTest
{
[Test]
public void Something()
{
BrowserHost.Instance.Application.Browser.Navigate().GoToUrl(BrowserHost.RootUrl+@"Lub");
		var emailBox = BrowserHost.Instance.Application.Browser.FindElement(By.Id("email"));
	}
}

After downloading the master source and playing with it I might have found the culprit.
The samples in master works fine (after getting a webdriver since Firefox can't be found even though it is installed on my machine).
When I test with a
var directory = new DirectoryInfo(Environment.CurrentDirectory);
I get a directory produced by JetBrains Resharper. I don't have a well tested answer yet, but it might be  the Resharper test runner causing Seleno not finding the webapplication.

Hi @oesolberg
The problem is that you haven't upgraded the Selenium.Support package to 2.49. It's important that both the Selenium packages - WebDriver and Support - are the same version.

Thanks for the tip, but it did not pan out.
I am almost 100% sure it is Resharper test runner that has every test running in its environment. And that is not the test-directory.
I ended up making my own hardcoded path to the websolution. Later I will make it a bit more dynamic.
(I also had to find a solution to start Firefox since it does not start automatically anymore)
'''c#
var location = ProjectLocation.FromPath(@"C:\lub\source\LUB\LubBackend\LubBackend");
		Instance.Run(
			configure => configure
			.WithRemoteWebDriver(
				() => new FirefoxDriver(
				new FirefoxBinary(@"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"),
				new FirefoxProfile()))
			.UsingLoggerFactory(new ConsoleFactory())
			.ProjectToTest((new WebApplication(location, 49184)))
		);

I created a new class library, installed Seleno and ASP.Net MVC from NuGet, and encountered the same issue you had with System.TypeInitializationException. I upgraded Selenium WebDriver and Support to the latest versions and it fixed the problem. I am using the ReSharper runner as well.
This issue looks a lot like issue #218 . Do you want to have a look at your solution folder structure and see if it is causing the same problem that was there?

I am running the almost latest version of Resharper Ultimate (10.0.1) with VS2015 update 1.
I know I had this running on VS2013 with an earlier version of Resharper.
Just to confirm I created a new solution with a webapplication(MVC) and a testproject. Both located default. But after doing update of both Webdriver and Support I still get the same error.
Packages.config after updates
<packages>
  <package id="Castle.Core" version="3.3.3" targetFramework="net461" />
  <package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net461" />
  <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net461" />
  <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net461" />
  <package id="Microsoft.Web.Infrastructure" version="<IP_ADDRESS>" targetFramework="net461" />
  <package id="NUnit" version="3.0.1" targetFramework="net461" />
  <package id="Selenium.Support" version="2.49.0" targetFramework="net461" />
  <package id="Selenium.WebDriver" version="2.49.0" targetFramework="net461" />
  <package id="TestStack.Seleno" version="0.9.11" targetFramework="net461" />
</packages>

No problem. It works as long as I insert the correct directory as shown in my previous post.

Hi @oesolberg . I'm glad you got it working. Specifying the location of the project is a good solution, which is catered for by the overload you have used. There is work we can do to improve the smarts of how Seleno searches for the project directory and also to throw a more meaningful exception when things don't work out so it is clear to the user what happened during the project search.

Hi @oesolberg . I have looked at this more closely and it seems that the issue is with changes NUnit has made and the impact it has on Environment.CurrentDirectory. (My repro of your issue used NUnit 2.64, which is why I could not replicate the issue). As I expect a lot of people to move to be using NUnit 3 I think this is an issue we will have to address in Seleno.
You can read more about the NUnit 3 changes here (and the issues it has created for people relying on the old NUnit 2 behaviour).

Thanks. Good to see that it is not just me (even though it is sad that this will affect everyone going over to nUnit 3).
Hopefully this thread will help others if you can't fix it in Seleno.

Hi @oesolberg . This fix has been released to NuGet as version 0.9.56.

Thanks for all the support and quick update of the NuGet package!

I am getting this same error now, since i was following the tutorial. I am using Microsoft test.
System.TypeInitializationException .... same exception when the  BrowserHost.Instance.Application.Browser.Navigate().GoToUrl(BrowserHost.RootUrl); is called


Bump kafka_protocol dependency

maybe 2.3.6 ?
https://github.com/klarna/kafka_protocol/pull/73

Pull Request Test Coverage Report for Build 1337

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage remained the same at 80.224%

Files with Coverage Reduction
New Missed Lines
%

src/brod_client.erl
1
85.45%

Totals

Change from base Build 1331:
0.0%

Covered Lines:
2219

Relevant Lines:
2766

💛  - Coveralls

Hi! I haven't finished looking at the diffs in the affected repos yet... I can do another brod release shortly after the kafka_protocol PR is merged, if you wish to get these changes in brod ASAP.


Please add aliases_on_separate_lines again

I am using Vagrant with vagrant-hostmanagrer and I use Puppet for provisioning. Since the /etc/hosts file now contains multiple entries for a single line, with the pure hostname being the last line, Puppet cannot figure out the hosts domain any more.
So I'd prefer to have the aliases again in a single line. It would be great if the option could be readded again.

The linux "hostname -f" command also returns the wrong result if they are on separate lines. Since many software packages depend on this command this is a problem.

This was never an option - however we can revisit. There are known issues with too many aliases for OSX and Windows. This will require a decent amount of architecting.

I don't know if that is the problem I have but it seems like it...
First some facts:

Hypervisor: VirtualBox
Vagrant box: https://app.vagrantup.com/heavybeans/boxes/solaris11-minimal-server
OS: Solaris 11.3
sendmail: disabled
postfix: OpenCSW package

So, hostmanager handles my hosts files on the host and guests. However, it seems (I'm no expert in this) that my machine needs a domain name to work. If I don't have a domain name and send mails using postfix, I get those minute long delays and the following error messages in the log:
Hosts configuration:
# /etc/hosts (excerpt)
<IP_ADDRESS>  pb-test

Error messages:
/var/log/syslog
Oct 23 14:09:49 pb-test sendmail[950]: [ID 702911 mail.crit] My unqualified host name (pb-test) unknown; sleeping for retry
Oct 23 14:10:49 pb-test sendmail[950]: [ID 702911 mail.alert] unable to qualify my own domain name (pb-test) -- using short name

So it seems I need a domain name. When I edit the hosts file manually:
# /etc/hosts (excerpt)
<IP_ADDRESS>  pb-test pb-test.mydomain.com

and send mails, they are sent instantly and no error messages appear.
Now the problem with the hostmanager: The definable aliases are only added as separate lines:
# /etc/hosts (excerpt)
<IP_ADDRESS>  pb-test
<IP_ADDRESS>  pb-test.mydomain.com

This way the errors reappear.
So, this is probably the same bug?


Pass rate incorrect

I found that problems after 10560 fail to display correct pass rate.
@geniusgordon  please check

Also, if I rejudge a problem, it will become

I think it has something to do with total submission count QAQ

It's fixed after recounting submission.


Bootstrap intellisense not working in Blazor projects in Visual Studio

Bootstrap intellisense isn't showing up in Blazor projects:

Visual Studio provides intellisense based on the CSS files in the project, but it only looks at the unminified versions.

It is interesting that I have this line in my index.html (minified version)
<link href="css/bootstrap/css/bootstrap.min.css" rel="stylesheet" />

I can add bootstrap.css (unminified version) to this directory and everything works as expected. I don't have to change <link href=...

I can confirm, same here.
Just tried it after finding couldn't get intellisense in the blazor project I was experimenting with.
Dropped an unminnified version in the CSS folder and all started to work straight away with no changes.


Add max_analog_read to config

This new value allows you to define what the maximum value is that the analog read returns. By default it is set to 1023 but for example in case of a ESP32-WROOM it is 4095.

Hey, that's fine for me.
Maybe it would be a good idea to put a link to the fork into the FAQ if someone hits the same issue.
Regarding why I did it there is just because you are already doing the mapping of the 0-1023 to percent there and it did not make sense to me to add another conversion upfront instead of making that one configurable.
But you are right that would also be possible

Understandable!
The thing the stood out to me when reviewing the code is that we're risking some unexpected or undefined behavior because there is no "sanity" checking of the config value (to ensure things like division by zero, etc. don't happen).
Of course adding these checks is possible, but I personally think it makes more sense as a device-side calculation (especially since there's a built-in map() function available for Arduino).
Regarding documentation of various forks and the things they add - I'll be honest, I'm still figuring out the best way to do this. I would want to avoid having a general list of "here's every fork that exists" live in the project documentation, but I might have a different approach for this at some point.

I like that idea with the map-function. I think I will refactor my fork so the arduino-code will already provide a percentage-number, then there is no mapping required on client side


[BUG] the exit desktop isnt working and i dont know why

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.


Chapter showing empty

Source: onlymtl
Novel: the legend of the northern blade
After opening any chapter it shows empty

Fixed in LNReader/lnreader@3735e8ca1b8854a056f4d3642223b56796b31dd4


Variable Deletion Spec

There are two options for when variables should come back that we are discussing and would like your input or specification.

Letting it come back next time the toolbox is refreshed.

Explicitly comes back when a block with that variable runs.

I understand the second one is how scratch 2 works. The first option is  easier to implement since we can just do a light version of delete by just removing variable blocks from the flyout instead of removing them from the variable map.

Potentially relevant: https://github.com/LLK/scratch-blocks/issues/372#issuecomment-227532505

Update on deletion: we agreed to make deleting a variable remove all instances of it in the workspace (after confirmation) but not in the backpack.

Hmmmmm... what if, the drop-down changes to "blank"?

That seems non-obvious, especially in a large script. Also what does it mean for the dropdown to say "blank", from a runtime perspective? ... If it were blank I would suggest also turning it red (shouldn't be too hard) but that seems counter to scratch philosophy of no errors.

The Scratch team has been revisiting that discussion. We're waiting for confirmation from Carl on the exact behavior they want to move forward with.

Per in person discussion, we'll move forward with 1. which is easier to implement and try it out. If we don't like the behavior we can move to a more involved solution.


Fix Defunct Git Processes (#3242)

This is my first pull request.
Fix issues with defunct git processes left from the exec'ed "git log" in commit_info

Sorry - sent it to the wrong repository. I guess I need to fork the git repository rather than gitea.

@trebonian yes, this needs to be sent as pull request to go-gitea/git

Sent to the wrong repository - closing it now


Rename options. Closes #4467

Closes #4467

Awesome job @Saurabh7019! We'll try to review it ASAP!

Also, because v7 is a new major version, we create an upgrade guidance for it. In this PR we should include a section on what users should do to upgrade their v6 script to v7.
Could you include this upgrade guidance in your PR as well? You can get some inspiration here: https://pnp.github.io/cli-microsoft365/v6-upgrade-guidance#aligned-options-with-naming-convention
I know it's your first major version so I don't blame you at all, just know that every v7 PR is supposed to update this page.

Could you include this upgrade guidance in your PR as well

Sure!

Hi @Saurabh7019, we did another v7 release do your PR got messed up. Could you rebase with the latest v7 branch to fix the conflicts?
Thanks!

Manually merged. Thank you for the great work! 👏


Fix sortby link in reshaping.rst

The "Reshaping" document has two identical links to the sortby() method for DataArrays.
The proposed fix replaces one and links to the appropriate Dataset method for ease of use.

Great, thank you @gtrevisan

And welcome to xarray! Appreciate your first contribution!


Message Serialization: Enhance deserialization

Background
Hey there, while developing with Spring Boot, I encountered issues with Jackson deserialization when storing historical messages into the Redis client. After troubleshooting using the control variable method, I found that there is room for improvement in the classes under the Message package. I made two code modifications to accommodate the new version of Jackson's deserialization process.
Solution

I added no-argument constructors to UserMessage, SystemMessage, FunctionMessage, and AssistMessage, and modified AbstractMessage to include a single-argument constructor. This resolves the following serialization error:

org.springframework.data.redis.serializer.SerializationException: Could not read JSON: Cannot construct instance of `org.springframework.ai.chat.messages.SystemMessage` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)

I renamed textContent and mediaData in AbstractMessage to content and media to align with the methods exposed by the message. This change can resolve the following error:

org.springframework.data.redis.serializer.SerializationException: Could not read JSON: Problem deserializing 'setterless' property ("media"): no way to handle typed deser with setterless yet

PS: Additional Information
Version Information: Spring Boot 3.2.4, spring-boot-starter-data-redis 3.2.4, SpringAI 1.0.0-SNAPSHOT
RedisTemplateConfig.java:
@Configuration
public class RedisConfig {
    @Bean
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
        RedisSerializer<Object> serializer = redisSerializer();
        RedisTemplate<String, Object> redisTemplate = new RedisTemplate<>();
        redisTemplate.setConnectionFactory(redisConnectionFactory);

        redisTemplate.setKeySerializer(new StringRedisSerializer());
        redisTemplate.setValueSerializer(serializer);
        redisTemplate.setHashKeySerializer(new StringRedisSerializer());
        redisTemplate.setHashValueSerializer(serializer);
        redisTemplate.afterPropertiesSet();
        return redisTemplate;
    }

    @Bean
    public RedisSerializer<Object> redisSerializer() {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
        objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        objectMapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance, ObjectMapper.DefaultTyping.NON_FINAL);

        return new Jackson2JsonRedisSerializer<>(objectMapper, Object.class);
    }
}

Can we use the approach that adds Jackson annotations since creating an instance of a message without content in code does not make sense.  For example.
class MyClass {
    private final int id;
    private final String name;

    @JsonCreator
    public MyClass(@JsonProperty("id") int id, @JsonProperty("name") String name) {
        this.id = id;
        this.name = name;
    }

....

thx


Correctly support ESM

Our Vite app was unable to work with this package. The dependency was loaded as a CommonJS module due to the presence of a main: field in the package.json, which points to ESM files. The main: field should point to a Common JS version of the files, but the syntax in them is ESM. This causes Vite to fail to load the files because it comes across that unexpected syntax.
See the Node documentation for the "exports":
https://nodejs.org/api/packages.html#main-entry-point-export

@danrichman please chech v1.2.0 should be fine now

v1.2.1 sorry there was a bug in not included "dist" folder in v1.2.0

forgot to close this after implementing the fix, closing :)


Workshops: Add Paris workshop

I think this is the right level of detail. Attendees have all the logistics information in emails.
Closes #73

LGTM!

ACK


Precompiling with MLJModels Generates Warning Message

I find install MLJModels causes the following warning message when attempting to compile packages
(v1.2) pkg> precompile
Precompiling project...
Precompiling MLJ
[ Info: Precompiling MLJ [add582a8-e3ab-11e8-2d5e-e98b27df1bc7]
┌ Warning: Module MLJModels with build ID<PHONE_NUMBER>5786 is missing from the cache.
│ This may mean MLJModels [d491faf4-2d78-11e9-2867-c94bc002c0b7] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1000

Thanks for that.
MLJModels 0.4.0 does not support pre-compilation but the next tagged release will. See https://github.com/alan-turing-institute/MLJModels.jl/pull/51.


New features

patches
    laeder key
        keychain
        keychord
    ipc
        dwmc
            fsignal
        dwmfifo
        ipc
    多显示器
        accessnthmonitor
        activemonitor
        fixmultimon
        focusmonmouse
        multimon
        showselmon -> statusallmons
    热重启
        restoreafterrestart -> restartsig -> selfrestart
        重启之后恢复布局？
    把某个窗口变成浮动，但同时不改变当前布局？
        togglefloating？但怎么让被toggle的窗口居中显示？
            movecenter -> togglefloatingcenter -> alwayscenter
        从float模式下新打开的窗口也默认居中显示
        可能用到的插件
            center
            movekeyboard
            moveontagmon
            movethrow -> moveplace
            sendmoncenter -> alwayscenter
    layoutmenu
    refreshrate
    colorbar
    tapresize
    title居中
        centretitle
        truecenteredtitle

I want to reset layout when a tag have no client.

What's this?
https://github.com/bakkeby/dwm-flexipatch

monocle show border?

Restore to default mouse gesture, especially the middle wheel for resizing floating clients. Instead, use another patch for touchpad two fingers gesture to resize clients when no mouse.

Extract the resetlayout function to single file. But it related to pertag but pertag need to build when running, so there is a conflict.
One way I can think out is like vanitygaps, define a flag for toggle pertag like #define PERTAG_ENABLE and set it to 1 in proper place. But need to check if it works.

Check out bakkeby's github and reddit to gain more informations!


strtod is locale dependent, so as xml_attribute::as_double and get_value_double

There're 2 main decimal separators: comma and dot:
https://en.wikipedia.org/wiki/Decimal_separator#Countries_using_decimal_comma
If you save XML on e.g. UK locale computer and send that to a person in PL, then double values are gonna be converted to INT
char decimalComma[] = "123,123";
char decimalPoint[] = "123.123";
qDebug() << "--------" << strtod(decimalComma, 0) << strtod(decimalPoint, 0);
output depends on a locale:

in PL, the output will be "123.123", "123"
in UK, the output will be "123", "123.123"

it would be great if pugixml would handle that internally. We use QByteArrayView::toDouble() as a bypass for now.

Duplicate of #469


Update cache step. Remove Github Action venv.

Due to some caching issues (skipping dependency installation when required) the cache action of the pip dependencies was updated – this should result in cache hits when the dependencies are already available under ~/.cache/pip
Remove venv – this should make it easier to maintain the cached dependencies by the Github Actions (as now they are installed under ~/.cache/pip

Example of action that was failing due to cache issues: https://github.com/gnosis/gnosis-py/actions/runs/1159158074

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 89.457%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
2257

Relevant Lines:
2523

💛  - Coveralls

@jpalvarezl changes to single line run commands here: d3c41a1


Receiving Build Error

Line of code
container.register { EmailService(emailConfiguration: $0, issueService: $1, configuration: $2, imageService: $3, roomService: $4, emailRepository: $5, gmailService: $6) as EmailServiceProtocol }
Cannot invoke 'register' with an argument list of type '((EmailConfiguration, IssueServiceProtocol, Configuration, IssueImagesServiceProtocol, RoomServiceProtocol, EmailRespositoryProtocol, GoogleServiceProtocol) -> EmailServiceProtocol)'

Overloads for 'register' exist with these partially matching parameter lists: (ComponentScope, type: T.Type, tag: DependencyTagConvertible?, factory: @escaping (()) throws -> T), (ComponentScope, type: T.Type, tag: DependencyTagConvertible?, factory: @escaping ((A)) throws -> T), (ComponentScope, type: T.Type, tag: DependencyTagConvertible?, factory: @escaping ((A, B)) throws -> T), (ComponentScope, type: T.Type, tag: DependencyTagConvertible?, factory: @escaping ((A, B, C)) throws -> T), (ComponentScope, type: T.Type, tag: DependencyTagConvertible?, factory: @escaping ((A, B, C, D)) throws -> T), (ComponentScope, type: T.Type, tag: DependencyTagConvertible?, factory: @escaping ((A, B, C, D, E)) throws -> T), (ComponentScope, type: T.Type, tag: DependencyTagConvertible?, factory: @escaping ((A, B, C, D, E, F)) throws -> T)

It looks like I can not register with 6 injections, How can I work around this?

According to this - https://github.com/AliSoftware/Dip/wiki/runtime-arguments you can only use 6 runtime arguments $0...$5. So in order to use more than that you can create your own overload.
Or you can call resolve() on a container instead of $x argument.

@idi888 please follow a comment in the documentation for register methods, it has instructions for how to extend number of arguments.


SemanticTokensDelta specification lacks specificity WRT edit ordering and startOffset

In discussing differences between the Roslyn and Razor LSP implementations @allisonchou and I came to realize that though neither of our implementation violated the specification they were incompatible because of a lack of specifics on two key points:

Does the int in SemanticTokensEdit.start represent the start offset pre or post previous edits? For example, consider we have a current int array of [0, 1, 2, 3, 4] and then receive this SemanticTokensDelta: SemanticTOkensDelta: edits = [(start: 4, deleteCount: 0, data: [5, 6, 7, 8, 9]), (start: 7, deleteCount: 0, data: [....])]. Is that legal (because after the addition of the values in the first edit a position 7 would exist, and start refers to the "current state" of the array), or illegal (because the array to be originally acted upon does not contain that many elements).
The above question also has implications on ordering: do the values in the edits array need to have constantly increasing start value, or could they start from the end of the array and move toward 0, or even move back and forth?

The answer to these questions has implications both for client implementations and for Servers like ours where one server must be consulted from another.
CC @allisonchou to make sure I represented our conversation correctly.

cc @gundermanc

@ryanbrandenburg good question. The semantic token edits behave like text document edits. The are all made for a version Sn of the int array and move the int array to Sn+1. So when executing they are best sorted and executed from the end of the array to the front.
I will clarify that in the spec.
So in you above example the edits are not valid since the start: 7 doesn't exit in the Sn version of the array.

@dbaeumer Is the client or the server meant to be responsible for sorting the array from (end -> front)? Today, it seems like servers are able to return the edits in any order and the client will sort them. Would it be possible to make it clear in the spec whether the client is responsible for sorting?

The client is responsible for applying them and can't assume that the list is sorted. Whether the client needs to sort them or not depends on its algorithm that applies them. And easy one is to sort and applied from back to front. But there are others as well :-).
I can add a sentence that the client can't assume any order in the edit list.


Adding standard deviation and Variance

Is your feature request related to a problem? Please describe.
A lot of useful stats are present under this category. But I would add two of the most important stat , standard deviation and variance.
Describe the solution you'd like
I would add a corner under results which would show standard deviation and variance

@SabariGanesh-K u will add it in statistics calculators itself right?

Ok


Add Sun-synchronous orbits

First I need to add J2 to bodies, and then a function with this signature:
def sunsync(cls, attractor, alt, omega, ecc=0.0 * u.one, ...)

Actually if I want to define the local time at the ascending or descending node I need some kind of ephemerides. But for the moment I might just want to compute the inclination.
The point is that I might want to combine sso, frozen and repeated groundtrack for example. How can I do that?

Blocked on #23.

Out of scope, closing.


Fix test and example build warnings on stable Rust

This change addresses remaining build warnings on Rust toolchain v1.82. This is a follow-up change from #314, but tackles warnings in examples and tests.
To test, I ran the following using cargo-hack to check all examples and tests compile without warnings:
cargo +stable hack test --no-run --each-feature

 cargo +stable hack test --no-run --each-feature
info: running `cargo test --no-run --all-features` on fuser (1/29)
   Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.89s
  Executable unittests src/lib.rs (target/debug/deps/fuser-19a359d13b46cf93)
  Executable tests/integration_tests.rs (target/debug/deps/integration_tests-026e89ffd72c4a5e)
info: running cargo test --no-run --no-default-features on fuser (2/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 2.36s
Executable unittests src/lib.rs (target/debug/deps/fuser-3dece279defdbcff)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-dfccd4809f6abe77)
info: running cargo test --no-run --no-default-features --features abi-7-10 on fuser (3/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 2.36s
Executable unittests src/lib.rs (target/debug/deps/fuser-7947f2b23c31867b)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-40fa1addb0797e3f)
info: running cargo test --no-run --no-default-features --features abi-7-11 on fuser (4/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 2.69s
Executable unittests src/lib.rs (target/debug/deps/fuser-c28692db34cd265c)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-02f1620dca0f11bc)
info: running cargo test --no-run --no-default-features --features abi-7-12 on fuser (5/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 3.62s
Executable unittests src/lib.rs (target/debug/deps/fuser-6d785e8175cb6036)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-0f972000ebab9c47)
info: running cargo test --no-run --no-default-features --features abi-7-13 on fuser (6/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.27s
Executable unittests src/lib.rs (target/debug/deps/fuser-0b50e51e22b0e58b)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-3134b0f1d7c387e0)
info: running cargo test --no-run --no-default-features --features abi-7-14 on fuser (7/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.32s
Executable unittests src/lib.rs (target/debug/deps/fuser-e8813b32a52bea3b)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-3ca93b89a4c80cc3)
info: running cargo test --no-run --no-default-features --features abi-7-15 on fuser (8/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.55s
Executable unittests src/lib.rs (target/debug/deps/fuser-23e7822cdd44e8ce)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-06a92f81cbe8381c)
info: running cargo test --no-run --no-default-features --features abi-7-16 on fuser (9/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.88s
Executable unittests src/lib.rs (target/debug/deps/fuser-9dc0865ce9244aa0)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-5b107b72923de1f8)
info: running cargo test --no-run --no-default-features --features abi-7-17 on fuser (10/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.94s
Executable unittests src/lib.rs (target/debug/deps/fuser-c812d0319955be99)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-1942218f67510bec)
info: running cargo test --no-run --no-default-features --features abi-7-18 on fuser (11/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.87s
Executable unittests src/lib.rs (target/debug/deps/fuser-2f5161b88fffc89b)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-718ec1aeca5c84bd)
info: running cargo test --no-run --no-default-features --features abi-7-19 on fuser (12/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.57s
Executable unittests src/lib.rs (target/debug/deps/fuser-407cda202823333f)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-921d43eb8d1da8ad)
info: running cargo test --no-run --no-default-features --features abi-7-20 on fuser (13/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 6.10s
Executable unittests src/lib.rs (target/debug/deps/fuser-723d0103d62dcbf4)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-b50118d5d473f43a)
info: running cargo test --no-run --no-default-features --features abi-7-21 on fuser (14/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.75s
Executable unittests src/lib.rs (target/debug/deps/fuser-86d2c47e3749dfb6)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-a048ce04248f716a)
info: running cargo test --no-run --no-default-features --features abi-7-22 on fuser (15/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.69s
Executable unittests src/lib.rs (target/debug/deps/fuser-8cb29cbd67c4fce8)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-bf690458ab8c45bb)
info: running cargo test --no-run --no-default-features --features abi-7-23 on fuser (16/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.90s
Executable unittests src/lib.rs (target/debug/deps/fuser-1d740218a4771e2d)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-607f7fa4f34baaf9)
info: running cargo test --no-run --no-default-features --features abi-7-24 on fuser (17/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.74s
Executable unittests src/lib.rs (target/debug/deps/fuser-9aacb8f542a34eb8)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-58126e870edd657b)
info: running cargo test --no-run --no-default-features --features abi-7-25 on fuser (18/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.71s
Executable unittests src/lib.rs (target/debug/deps/fuser-1f497047b00de003)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-5ca201f211f4c261)
info: running cargo test --no-run --no-default-features --features abi-7-26 on fuser (19/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 6.02s
Executable unittests src/lib.rs (target/debug/deps/fuser-671f7dc4eaf42d14)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-8e47343970b132f1)
info: running cargo test --no-run --no-default-features --features abi-7-27 on fuser (20/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.94s
Executable unittests src/lib.rs (target/debug/deps/fuser-d246bdb2a3ac481e)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-dd3f0357f7b323f2)
info: running cargo test --no-run --no-default-features --features abi-7-28 on fuser (21/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.96s
Executable unittests src/lib.rs (target/debug/deps/fuser-43982a01c6f5ff38)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-488398e8cb00ee18)
info: running cargo test --no-run --no-default-features --features abi-7-29 on fuser (22/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.92s
Executable unittests src/lib.rs (target/debug/deps/fuser-02c681f29037fcf0)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-c7af7f9549d9edec)
info: running cargo test --no-run --no-default-features --features abi-7-30 on fuser (23/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 5.83s
Executable unittests src/lib.rs (target/debug/deps/fuser-7ef1c9bb55dfd728)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-81a6ac1ae8198bb7)
info: running cargo test --no-run --no-default-features --features abi-7-31 on fuser (24/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 6.04s
Executable unittests src/lib.rs (target/debug/deps/fuser-66221c2a7c2b4b95)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-7a08c7ca9b9f5549)
info: running cargo test --no-run --no-default-features --features abi-7-9 on fuser (25/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 4.30s
Executable unittests src/lib.rs (target/debug/deps/fuser-363c86e49135dd69)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-9efa26a9ac3801b7)
info: running cargo test --no-run --no-default-features --features default on fuser (26/29)
Finished test profile [unoptimized + debuginfo] target(s) in 0.05s
Executable unittests src/lib.rs (target/debug/deps/fuser-5a46633bcb5cdafb)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-fc6733877cbad737)
info: running cargo test --no-run --no-default-features --features libfuse on fuser (27/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 4.02s
Executable unittests src/lib.rs (target/debug/deps/fuser-153a16339afde52b)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-4d17f365d69d30dc)
info: running cargo test --no-run --no-default-features --features macfuse-4-compat on fuser (28/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 4.24s
Executable unittests src/lib.rs (target/debug/deps/fuser-672c5b71d91fb804)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-7c650737291f713f)
info: running cargo test --no-run --no-default-features --features serializable on fuser (29/29)
Compiling fuser v0.15.0 (/local/home/djonesoa/devel/fuser)
Finished test profile [unoptimized + debuginfo] target(s) in 4.36s
Executable unittests src/lib.rs (target/debug/deps/fuser-fb3cee2950586cf7)
Executable tests/integration_tests.rs (target/debug/deps/integration_tests-22d17e8f9ef58304)

This also identified that the features for one example were not sufficient, and this has now been fixed.

Thanks for some promptly reviewing at the last few PRs!

np :) Thanks for the improvements!


Add support for using factory-guy in other environments

Closes: https://github.com/danielspaniel/ember-data-factory-guy/issues/254
CHANGELOG:
Updated index.js to support using factory-guy in other environments
Updated README to show configuration needed for using factory-guy in other environments
DESCRIPTION:
This PR adds support for using factory-guy in other environments to the base cases of development and test.
The user just needs to add:
// file: config/environment.js
ENV.factoryGuy = true;

to the environments in which factory-guy is desired.
By default, the test environment is still enabled but now a user can turn it off by specifying:
// file: config/environment.js
if (environment === 'test') {
  ENV.factoryGuy = false;
  ...
}

This change is

Looks good Michael
I was just about to ask how this was going. Ok .. one question.
The only caveat is to make sure in test environment to not  put =>  factoryGuy:true .. or else it would look for the scenarios/main.js file and barf if not found.

@danielspaniel - I have added a note to the README to highlight that factoryGuy: true should not be added to the test environment.

https://github.com/danielspaniel/ember-data-factory-guy/releases/tag/v2.8.2  has this PR included


Recover Asus keys when coming back from sleep to avoid needing to restart the service

I literally have VERY little XP with rust, but tested it locally and it works. If the way I did it is suboptimal, feel free to capture the idea and implement it better! :)

Can confirm that it works beautifully well on my system:

steam and overlay keys disappear after 1st resume and reappear every other suspend/resume. Steam-patch service doesn't pick them when they are back, a service restart is needed (if you are in-game, the service restart switches your game to bg, which is a little bit annoying). With this patch the reappearing device is catched after resume and things go smooth ;)


halo2-ecc: ec_add_unequal helper doesn't work for secp256r1

halo2-ecc/src/ecc/mod.rs helper ec_add_unequal only works for secp256k1, not work for p256 curve, need to be updated.

TBD

locally testing after ec_add fixed (issue 29 ), no problem for this helper. close it


Change tus test using session id to use any session directories

We have been getting test failures where the test tries to look for
_db/uploads/session-<hashed-session-id>/a.txt and failed because
_db/uploads/session-<hashed-session-id>/ doesn't exist.  It happens
very rarely for me locally so it was really hard to debug.
I'm now changing the test to look in any session directories so
_db/uploads/session-*/a.txt and assert that there's at least one.
:crossed_fingers:

Pull Request Checklist

[x] Ensure that the PR is properly formatted

Example: All lint checks are passing

[x] Ensure that the PR is properly rebased

Example: The PR is rebased on develop (commit: <insert develop commit hash>)

[x] Ensure that the PR uses a consolidated database migration

Example: One database migration is proposed (revision <insert develop revision> -> <insert new revision>)

[x] Ensure that the PR is properly tested

Example: All automated tests are passing

[x] Ensure that the PR is properly sanitized

Example: No sensitive data or large content was added to this PR

[ ] Ensure that the PR is properly reviewed

this looks good to me.  for the record, the session- based dir was a kind of fallback; it does not currently have a use-case.  ideally we will stick to the transaction id based solution (trans-xxx dirs) as our typical process for files.   its nice to have the session there, but if it starts giving us a headache it can go.  :)


Pasting string to password prompt fails.

Environment
Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0
Steps to reproduce

Start ssh connection to host which asks password for authentication or use Python getpass.getpass()
Paste string from clipboard buffer to prompt
Correct information will not be pasted and and Python just stays waiting for input even after enter

Expected behavior
Correct string will be pasted to prompt and programs should continue as expected.
Actual behavior
Password prompts will not recieve pasted string correctly.

I can't reproduce this anywhere.

Can you provide a bit more information? What versions of what tools are you using? Has it ever worked?

Like @DHowett-MSFT, I too am unable to reproduce the issue with the exact expected behaviour described in the issue. The pasted string isn't echoed, but it doesn't result in Python waiting for an input nonetheless.
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import getpass
>>> getpass.getpass()
Password:
'blahblah'
>>> getpass.getpass()
Password:
'\x16'
>>>
@urtabajev
Does this help? https://github.com/microsoft/knack/issues/160

For me following reporoduces issue perfectly:
python3 -c "import getpass;your_pwd = getpass.getpass('Enter password: '); print(your_pwd)"
When typing in password then execution reaches to print but when pasting string enter after that does not work and I can't select anything from this terminal window also when input is stuck until exectuion is interrupted.

Python in interactive mode, instead of normal mode will not reproduce issue.

Seems that Version: 0.5.2681.0 fixes it.

Yep, I can't reproduce this on 0.6 either.

I suspect I may have a related issue (Reproducible on 0.6.2951.0):
I pasted my password into a docker logon prompt, which was an auto-generated, alphanumeric (string and number only, no special characters or tabs) API key.  This pasted into the command line correctly, so I could (for instance) do an $env:docker-username=<apikey> and have it be visible, and then use a powershell script to apply the login value (As long-winded as this whole route turned out to be!); however, pasting directly into the docker login Password: prompt just responded with an unauthorised: BAD_CREDENTIAL response.
Pasting the same into either Windows CMD or Windows PowerShell (5 or 6.2) worked fine.


Beta version of mobile with Python language support added

Added text length block and code generator for it (Hindi also)
build.js generates new partial rules from grammar file for non-terminal non-statements and corresponding block interpretations with type-in-code expression blocks when the arguments are missing
Replaced %__ for types in block interpretation files to specific block types (text.json) to remove errors with block interpretations of parse tree for partial rule (e.g., s. for s.charAt); added Python substring block
Added variable assignment for Python (no let)
Split beta mobile version from current one (e.g., uses mobile.css and mobile.js instead of styles.css and index.js; different type-in code blocks: autocomplete for block statement, no "Enter code expression:" text for block expression, etc.)
Added primitive autocomplete: tries to extend what user types to text from existing block, checks if each expression creates parse tree, and only includes the options that do
Added file for Python constants and Python generators that use them
Replaced multiplication symbol to * in Blockly en.js file constants (never changed when updating to new version of Blockly)
text.js and text_exact.js modified; these are not used in the new version as conversions between language blocks occur because the language constants are modified, not because the blocks are changed
createBlocks in block_generator.js file modified to allow parameter to determine whether workspace should be reloaded
Added functions in block_utility_functions.js:

Check which blocks are visible
Function to combine expression blocks that are not in the workspace view to single collapsed text expression one.  This solves the problem when there are too many nested blocks creating lots of space between text and then zoom to fit when that isn't good enough.
Function to get last block in stack; this addresses bug when a multiline code statement is entered above existing one; blocks all appear before the one below instead of only the first one
Fixed bug in replaceWithBlock to deal with this.

New file mobile.js:

Increased Blockly COLLAPSE_CHARS constant value so text is less likely to be cut off when blocks need to be collapsed.
Factored out common parsing for type-in-code blocks and loading code
Handled Python/JavaScript differences with no semicolons by replacing new lines with semicolons before generating code; JS requires semicolon EOL and this is hacky and should be fixed.
More to be added later maybe...


feat: add more attributes to Textarea

Added the following attributes to Textarea:

disabled
form
maxlength
minlength
required
readonly
wrap

Update: used inheritAttrs: false in defineOptions
Other information:
The label text color of Textarea is different from Input in dark mode, with text-gray-300 vs text-white. Is this by design?

In terms of different colors in labels... our single source of truth should be official Flowbite documentation... input, textarea... and there both are text-gray-900 dark:text-white... so it's a bug on our side.

Okay then. Should I fix it in this PR, or maybe move it to a new one?

since it's not approved yet... maybe add it to this one... it's a small change so it shouldn't mess up much ;)

LGTM


Apply proxy to all protocols

The current logic of specifying different proxies for http and https traffic is unwieldy for testing situations where the user has a https endpoint, but wants to route traffic through a http proxy. Make proxy settings applicable to all requests.

Fixed in 79f465645e50348998ee98214bed119213cc233e


remove rsconnect folder from R.gitignore

Reasons for making this change:
The rsconnect folder does not contain any sensitive information (the deployment token is stored elsewhere). Moreover, it is recommended to be tracked by VCS (and therefore not in gitignore) in order to enable collaboration on published content.
Links to documentation supporting these rule changes:
http://docs.rstudio.com/connect/user/publishing.html#collaboration

@colearendt thanks for the link! I've pasted the key paragraph in for reference:

This rsconnect folder should be added and committed into version control. It does not contain any private or secure information. However, it does contain the URL for the RStudio Connect server and the content URL. This information allows future publications to easily target the same endpoint.


File crop wild relatives.tsv is missing

Could we either add the file called crop wild relatives.tsv to the repo, or give the instructions for making it?

Perhaps the same data, but in a different format is used as file crop wild relatives.xlsx. Can this file be provided, or perhaps we can replace it with crop wild relatives.tsv

The xlsx file is the input data, the tsv (or csv) used to be the output of a script. This output was used to make a heattree with Krona.xltm if I recall correctly. The updated script doesn't make a crop wild relatives.tsv anymore, but a shared supply_and_demand_order_level.tsv with all processed demand data combined. This is used to make a heattree with the heattree.R script. The scripts have been updated and I will add the sources of the input data and some information in the readme.


Invalid Hash Method

Line 1204 of index.js points to a method called Utils.stringHash(channel), however that method doesn't exist in utils.js. The nearest method is md5Hash(key). While trying to call the first method, messages don't get processed. Changing to the latter corrects the problem.

@DeMack Thanks. Fixed in Hydra 1.2.7


Garden: ensure targets exist before referencing

🦟 Bug fix
Attempting to fix the windows build.
Summary
The windows build on Garden has been broken for a while due to an inability to find the ign-common av component. This has been fixed by https://github.com/gazebosim/gz-cmake/pull/271, but there are still cmake issues with the windows build:

 https://build.osrfoundation.org/view/ign-garden/job/ign_gazebo-ci-win/207/

CMake Error at test/integration/CMakeLists.txt:167 (target_link_libraries):
  Cannot specify link libraries for target "INTEGRATION_log_system" which is
  not built by this project.

I've added if (TARGET <TARGET_NAME>) checks around each target_* call in test/integration/CMakeLists.txt that was missing it to see if that is enough to fix the windows build.
Checklist

[X] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

it now fails with linking errors
[2540.391s] ColladaWorldExporter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl gz::common::MeshManager::HasMesh(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (__imp_?HasMesh@MeshManager@common@gz@@QEBA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) [C:\Jenkins\workspace\ign_gazebo-pr-win\ws\build\gz-sim7\src\systems\collada_world_exporter\gz-sim7-collada-world-exporter-system.vcxproj]
[2540.391s] ColladaWorldExporter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class gz::common::Mesh const * __cdecl gz::common::MeshManager::MeshByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (__imp_?MeshByName@MeshManager@common@gz@@QEBAPEBVMesh@23@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) [C:\Jenkins\workspace\ign_gazebo-pr-win\ws\build\gz-sim7\src\systems\collada_world_exporter\gz-sim7-collada-world-exporter-system.vcxproj]
[2540.391s] ColladaWorldExporter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class gz::common::Mesh const * __cdecl gz::common::MeshManager::Load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?Load@MeshManager@common@gz@@QEAAPEBVMesh@23@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) [C:\Jenkins\workspace\ign_gazebo-pr-win\ws\build\gz-sim7\src\systems\collada_world_exporter\gz-sim7-collada-world-exporter-system.vcxproj]
...

attempting a fix in https://github.com/gazebosim/gz-sim/pull/1578/commits/a92c232aa9f26cbd1e803ec3c7299b93f598769d

 https://build.osrfoundation.org/job/ign_gazebo-pr-win/4686/
unstable!!!


Add tokemak subgraph

Tokemak subgraph is based on yield schema

Pool and vault ABIs are identical? It seems like they only have a pool contract and not a vault contract. If that's the case, you should just have the pool ABI instead, and map that to the vault entity

You are missing actions for usage metrics. See https://github.com/messari/subgraphs/blob/master/docs/Schema.md#usage-metrics


Searching for named parameter in apostrophe delimited string

Is your feature request related to a problem? Please describe.
Working with statements like
SELECT id from employee where  name = '&Employee_name'
cause it to not showing Bind parameters window, since parameter name is "hidden" in string.
This is how it works in Oracle's sqldeveloper, and would be very nice to have such feature implemented.
Describe the solution you'd like
When executing statement like SELECT id from employee where  name = '&Employee_name'
I'd expect Bind parameter window to pop-up asking for Employee_name value.

thanks for the suggestion
as a workaround, you could change the prefix to '&' in properties and use it not hidden in the string

I believe this solution is the most appropriate in this situation. Also it is possible to change this option only for Oracle connection.

Hi, this is not a solution for me.
On daily basis i'm working on queries used in ERP system which allows to enclose varchar parameters in quote marks.
On the other hand default behaviour of buil-in SQL formatter is to put a SPACE between ampersand and first character after it. Can at least this one be changed to leave it untouched?

So, the problem is that parameter binding is not working when used inside string literals?

Yes, that's the issue

Okay, I see now, thanks!

@bcm5645 quick note: you can use ${var} instead of :var inside string literals.

Since there's a solution for your problem, I will close this issue.

I develop Oracle as well. We have a much work where there are substitution variables (&) inside of single quotes, as described here. Can we get this fixed? In Oracle's SQL Developer or PL/SQL Developer (allround automations) the expected behavior occurs. But DBeaver does not prompt for the substitution variable.
It is exactly as described here, the query the OP mentioned:
SELECT id from employee where name = '&Employee_name'
Won't actually prompt for a value of employee name. (because of the single quotes) (it should prompt, though)

My "solution" has just been to keep using PL/SQL Developer @dzubi  I would love to try this product if its support for Oracle matures a bit. Use of parameters is pretty common and no one uses {} for such.


Replace reth-primitives header type with alloy::consensus

Describe the feature
similar to all the transaction replacements prs: https://github.com/paradigmxyz/reth/issues/9484
TODO

add conversion for alloy consensus header to reth-primitives in codecs see https://github.com/paradigmxyz/reth/blob/020597da32ae5e94a473ab002462f3d5cb004132/crates/storage/codecs/src/alloy/transaction/legacy.rs#L10-L10 for reference

Additional context
FYI @tcoratger

hey @mattsse I'm down to work on this


Fix Cleanup Listener

Motivation
When the following code is executed, the node process is not finished in spite of consuming all messages and closing the consumer and client.
const Pulsar = require('pulsar-client');

(async () => {
  const client = new Pulsar.Client({
    serviceUrl: 'pulsar://localhost:6650',
  });
  let received = 0;
  let finish;
  const finishPromise = new Promise((resolve) => {
    finish = resolve;
  });

  const consumer = await client.subscribe({
    topic: 'persistent://public/default/my-topic',
    subscription: 'sub1',
    listener: (msg, msgConsumer) => {
      const data = msg.getData().toString();
      console.log(data);
      msgConsumer.acknowledge(msg);
      received += 1;
      if (received === 10) finish();
    },
  });

  await finishPromise;
  await consumer.close();
  await client.close();
})();

It seems that this happens because the registered listener function is not released.
https://github.com/apache/pulsar-client-node/blob/master/src/Consumer.cc#L307
this->listener->callback.Release(); is not executed because this->listener becomes nullptr when consumers are closed.
Modification
Fix so that the registered listener function is released when the consumer is closed.

test this please


Music assistant is missing from the sidebar

What version of Music Assistant has the issue?
2024.2.0
What version of the Home Assistant Integration have you got installed?
2024.2.3
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
After I have updated to the latest version of Music assistant I have lost the ability to click on the Music assistant button in the sidebar. Uninstalling and reinstalling did not fix the issue.
How to reproduce
n/a
Music Providers
n/a
Player Providers
n/a
Relevant log output
This is the only error message:
2024-02-25 19:37:56.871 WARNING (zeroconf-ServiceBrowser-_googlecast._tcp-42) [pychromecast.dial] Failed to determine cast type for host  () (services:{ServiceInfo(type='mdns', data='SmartCast-Sound-Bar--cbbf674a3c4a292c00c315ae484c22ab._googlecast._tcp.local.')})
2024-02-25 19:38:56.952 WARNING (zeroconf-ServiceBrowser-_googlecast._tcp-42) [pychromecast.dial] Failed to determine cast type for host  () (services:{ServiceInfo(type='mdns', data='SmartCast-Sound-Bar--cbbf674a3c4a292c00c315ae484c22ab._googlecast._tcp.local.')})
Additional information
n/a
What version of Home Assistant Core are your running
2024.2.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

Problem existed between keyboard and chair.