Matching tokens using regular expressions

I tried to define a token as a JavaScript regular expression, but this is a syntax error:
string_literal = /"([^"\\]|\\.)*"/
Is there another way to define tokens using regular expressions, since the syntax above doesn't work?
(If this feature isn't implemented yet, it could probably be done using something like r2p.)

is this significantly better than writing:
string_literal = '"' @$([^"\\] / "\\" .)* '"'

@hildjj This pattern works, but it's not a regular expression: I wish I could use unmodified regular expressions in peggy, instead of manually re-writing them like this.

 Note: add ^ to the start of your RegExp
  let lastMatch = null;
}
// Check if input in the current position starts with RegExp and advance position if true
string_literal = &{
  // offset() not merged yet, can replace with location().start.offset... #145
  lastMatch = re.exec(input.substr(offset());
  return lastMatch !== null;
} {
  // Access to the Peggy internals... could broke at any moment
  peg$currPos += lastMatch.lastIndex;
  return lastMatch[0];
};

May be you can explain, why you want to use another parsing mechanism (regular expressions) in an PEG parser?

@Mingun I have some grammar files that need to be converted to Peggy files, but they all use regular expressions. Regular expressions are supported in many other parser generators (ANTLR, Bison, Nearley, etc.), so I wish Peggy would support them as well.
It should be fairly easy to add this feature: we just need to write a parser to convert regular expressions into equivalent Peggy expressions, like the one above.

Regular expressions are supported in many other parser generators (ANTLR, Bison, Nearley, etc.),

That generators have two stages -- lexer and parsing. They just have not another ways to form a token. PEG parsers have.

It should be easy to add this feature: we just need to write a parser that converts regular expressions into equivalent Peggy expressions, like the one above.

I my opinion this will be a different task that should be solved by another library. You even provided a link to one of them in the first message.
Another way is to use some hacks and use JS native RegExps, as I've shown, and we going to try to make an official API for that. At least, some API that allow to advance a parse position would be useful not only for that task, but also for parsing an indentation-based language.

I've marked this as "enhancement request", but not assigned it to a release yet.  This will have some interaction with parsing per-codepoint (#15) if we add a unicode flag later.
If we do decide to add it at some point, we'll need to emulate sticky, or only allow use of the feature if you opt in to only supporting later browsers.

Alternatively it would be useful to have some way to use an external lexer. E.g. pass in an iterable of some object type that includes a lexical class, location info, and a payload.  Not only could such a lexer make it possible to use regexes (or other tools) to tokenize the input, but it would also allow the issue of whitespace to be solved during the lexing phase. (which can be really tedious and annoying to solve during an all-in-one parsing phase...).
The vague idea is, outside of Peggy, the user could call some hypothetical lexer with an input like this:
"    int x  = 4;"

The lexer could transform this into a token stream like this:
[ // (the location type is probably oversimplified)
    {type: "kw_int", data: null, location: {start: 4, end: 7}},
    {type: "identifier", data: "x", location: {start: 8, end: 9}},
    {type: "=", data: null, location: {start: 11, end: 12}},
    {type: "integer", data: 4, location: {start: 13, end: 14}},
    {type: ";", data: null, location: {start: 14, end: 15}},
]

and that token stream could be given to the parser generated by Peggy.  Not sure how the grammar would look but since the current meaning of string literals as terminals in Peggy would not be useful when using this API, I'll just put this straw man here which reappropriates that syntax for referring to an individual token with that lexical class:
Type
    = "kw_int" { return new Type({type: "primitive", name: "int"}); }
    / "kw_float" { return new Type({type: "primitive", name: "float"}); }

Expr
    // the value will come from the token's 'data:'
    = value:"integer" { return new Expr({type: "literal-int", value}); }

Declaration
    = ty:Type ident:"identifier" "=" expr:Expr ";" {
        return new Stmt({type: "declaration", ty, ident, expr});
    }

@jarble would it be possible to do what you want by using & { ... }
Integer
  = x:$(.*) & { return (/[0-9]+/).test(x) }
    { return parseInt(x, 10); }

By matching any character string (or maybe up until a certain delimiter, depending on your grammar?), and then adding the extra test that will only make the rule match when the regex test returns true, you might be able to get the effect you want?
I don't know if this will be efficient if you need to parse very long strings...

Alternatively it would be useful to have some way to use an external lexer. E.g. pass in an iterable of some object type that includes a lexical class, location info, and a payload. Not only could such a lexer make it possible to use regexes (or other tools) to tokenize the input, but it would also allow the issue of whitespace to be solved during the lexing phase. (which can be really tedious and annoying to solve during an all-in-one parsing phase...).

Found this issue by looking for exactly this use case, with the exact same motivation (white space).
Is there a separate issue tracking this or should I open it?
In theory, it shouldn't be that difficult to implement, since nothing conceptually changes about the way Peggy produces nodes. It's mostly about deciding on the API changes and .pegjs grammar changes itself.

We were talking about something similar on Discord last week, and this came up:
https://github.com/siefkenj/unified-latex/blob/main/packages/unified-latex-util-pegjs/libs/decorate-array-for-pegjs.ts
The idea is that you create an array of tokens with a lexer, then trick Peggy into thinking that your array is a "string".  You then use a subset of Peggy grammar rules against those tokens.  I haven't tried it myself yet, but it's an interesting idea that doesn't require major changes to Peggy.
Let's have another issue to track this conversation, because wanting regex's against real string inputs is interesting in a different way.


Where can I download the weights for the 1.1B model?

In generate.py:
parser.add_argument("--model_path", type=str, default="", help="")
Where is the weight of model path downloaded?

It depends on where you downloaded the model files to. If you haven't downloaded yet, you can download it here: https://huggingface.co/XiaoduoAILab/Xmodel_LM!

thank you
发自我的iPhone
------------------ Original ------------------
From: grey wang @.>
Date: Thu,Jun 13,2024 10:17 AM
To: XiaoduoAILab/XmodelLM @.>
Cc: 习泽宇 @.>, Author @.>
Subject: Re: [XiaoduoAILab/XmodelLM] Where can I download the weights for the1.1B model? (Issue #1)
It depends on where you downloaded the model files to. If you haven't downloaded yet, you can download it here: https://huggingface.co/XiaoduoAILab/Xmodel_LM!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Cannot use fr language

Using Behat and Mink PEAR packages with fr definition files.
I'm also using my last fr.xliff file (see pull request https://github.com/Behat/Mink/pull/125)
I have "# language: fr" in my feature file.
I get : [Behat\Gherkin\Exception\ParserException]
Expected Feature token, but got Text on line: 4 in file: /behat/features/search.feature
Same with spanish.
My config/behat.yaml

default:
  context:
    parameters:
      base_url: http://en.wikipedia.org/

My features/test.feature file

# language: fr

# Feature: Search
Fonctionnalité : Recherche
#   In order to see a word definition
  Afin de voir une définition de mot
#   As a website user
  En tant qu'utilisateur du site
#   I need to be able to search for a word
  Je veux être en mesure de rechercher un mot

# Scenario: Searching for a page that does exist
Scénario: Recherche d'une page qui existe
#   Given I am on "/wiki/Main_Page"
  Etant donné Je suis sur "/"
#   When I fill in "search" with "Behavior Driven Development"
  Lorsque Je remplis "search" avec "Behavior Driven Development"
#   And I press "searchButton"
  Et que je presse "searchsubmit"
#   Then I should see "agile software development"
  Alors Je devrait voir "agile software development"

As I cant make it run in french, I keep my reference version in my tests.
2011/11/21 Konstantin Kudryashov <
<EMAIL_ADDRESS>

And why do you have comment starter (#) at the begining of the each
instruction line?

Reply to this email directly or view it on GitHub:
https://github.com/Behat/Mink/issues/126#issuecomment-2822621

@djacquel please, just re-read the comment i've wrote ;-)

OK, I get it. My original feature file was not utf-8 encoded so while trying "Fonctionnalité:" was also wrong.
Now everything is running.
The other good new is that I've just finished an article for phpsolmag.org I'll tell you when it will be on the shelves.
I will now try to do my PR for the fr.xliff on develop branch.

great ;-)


Current polarity inverted

The values shown in HA are inverted but on the junktec display polarity is shown correctly
The green side is for Charging + and the red side is discharging -
How can i change polarity ?

Hi Dann, are you on diysolarforum ? Would like to chat to you about this on here or there.

Ok, let me now how are your readings
I had to invert the shunt in order to display correct polarity
But its wrong, because now the battery capacity is inverted
Thank you

Hi,
I'm still not sure if it's currently right or wrong (my setup has no load connected again yet to test), but I've added the option to change it. there is now an "invert_current" option. It defaults to "false" to match previous behaviour, but once i have things setup and confirm which way i think it should be, then that may change. @dann2008 you defintely want to add the "invert_current: true" line, to get the behaviour you want.

Hi,
I've just added the  "invert_current: true" line on my config, now the polarity is shown correctly
Values shown in the photo are positive but my battery is discharging, when i'll invert back the shunt it will show the correct values
Thank You !!!


samples(securitycenter): add product prefix to sample tags

Standardizing Security Command Center samples to use 'securitycenter' prefixing.

Wrapped existing samples to keep published doclinks unbroken
Replace region tags that aren't published.

Once this PR is through, published sample inclusions will be updated to use the new prefix, then I'll come through again and remove the unused block wraps.

Nudging this guy! Fixed some issues with the first Kokoro pass

OK! The new commit updates the tags to be identical to the tag most-used in other language-repos. This is the final step in wrangling all the cats into logical groupings of identical tags, with the least amount of PRs. Please review!

Please prioritize review and merge of this PR so we can get SCC onboarded for code sample browser. Thank you!


fix(deployment reconciler): Couldn't parse image reference<EMAIL_ADDRESS>

To Reproduce

Perform a basic helm deployment (flux in my case) of the grafana-operater.
Create a sample Grafana and GrafanaDashboard resource.

Result
The resultant Deployment artifact produces the following error:
Warning  InspectFailed  9s (x11 over 2m7s)  kubelet            Failed to apply default image tag<EMAIL_ADDRESS>couldn't parse image reference<EMAIL_ADDRESS>invalid reference format
Warning  Failed         9s (x11 over 2m7s)  kubelet            Error: InvalidImageName

After some checking, I found the cause related to a recent change made to the deployment_reconciler.go file. The issue seemed straightforward enough, so I made the fix and added some tests.
I have never done go before, so please accept my apologies if I made any mistakes.
Thank you for your consideration and review.

Thanks allot @sonnyg , we apparently didn't do a very good job in verifying the last major change.
I will merge your PR directly and cut a new release.

You are very welcome @NissesSenap . I am very thankful for this project and I'm glad I was able to help out!


Interface stub code generation for internal types with InternalsVisibleTo

Hi All,
Thanks for making it so easy to get VFPT up and running locally!  It only took me 10 mins to get going.
I can't seem to make implement inteface work with internal interfaces in another project, despite using InternalsVisibleTo.  I have an an existing C# library that has a fair few internal interface types.  I'd love to be able to stub these out using VFPT.
I've sperlunked around the VFPT code and debugged an example case.  VFPT is identifying my internal interface as an interface, when I change to the word.  However, the FSharpEntity.MembersFunctionsAndValues property is empty, so this returns and empty seq and causes this to return true.
Happy to have a crack at this myself, but wondering if anyone has any tips?  Given that FCS is returning the FSharpEntity information, as opposed to VFPT filtering on internal, I'm guessing this needs some FCS tweaking?

Hi Ben,
You're right this needs some modifications in FCS.
Currently FCS uses AccessibleFromSomeFSharpCode which is lowest common denominator for accessibility. It hasn't yet to check for InternalsVisibleTo attributes.
There is already some accessibility checking implemented at https://github.com/fsharp/FSharp.Compiler.Service/blob/5cea4e1f8025082dfcb4e5a375fa48d126701efb/src/fsharp/vs/Symbols.fs#L150 so it could be wired up to pass correct accessibility to MembersFunctionsAndValues.
I think you can open an issue at FCS repo and dig up further.

Great, thanks for the pointers.  I'll get back to this when I have a moment again!


Quick addition of Opera support

This is nothing too fancy.  Just duplicating Chrome extension and adding necessary changes for Opera. NEX packed it and have been testing it.  Chrome extensions are not automatically available in Opera.  In my opinion, Opera should be made as a new target in project.  As it has it's own extension store and extension system even though it's compatible with Chrome.

Hi @BadOPCode, thanks for submitting a PR. In the config/browsers.js file I see you duplicated the chrome configuration as you mentioned. You also mentioned you've added necessary changes for Opera; did you make these directly to any files within the build/ directory?

No.  At least not in this PR.  I wasn't sure if you wanted the NEX packed file and pem in the build so I left them out. In the future there probably will be.  I believe I saw some style differences on what I am using in Opera and what is in Chrome.

☝ Based on what I've seen in screen shots from people using Dissenter.

@mgabdev This is what it looks like in Opera right now.

PR is too preemptive.  The goal of the PR was to target the API differences https://dev.opera.com/extensions/apis/
But also to separate Opera and Chrome packed files from each other so that a Opera Store submission could be made.  (Obviously not in my place to handle.)
After thinking about it, I'm probably jumping the gun on this as the extension is still in the early stages.  I'm closing this PR but will maintain my fork with Opera as a target until a PR makes more sense. IE when there is a Opera specific bug or feature.


Markdown link highlighting is too greedy

Only the [] immediately before the URL should be highlighted.

Thanks!


gh-70 Adding Sphinx docs

Added a Sphinx config and refactored the docstrings to work with Sphinx's autodoc. You can see an example of the output here: http://elodie.readthedocs.org/en/latest/ (RTD auto-assigned me the elodie subdomain, oops! I can add you as the owner.)
Lots of red/green, but mostly just moving the docstrings into the functions like Python wants. I also altered some of the existing docstrings to follow pep-257, which wants a short one line summary on the first line and more details descriptions in a following paragraph (like git commits).
I'll add comments to the pull anywhere I made a non-comment code change.

Thanks for the work on this. Can you rebase from master so I can cleanly merge?

Rebased.

Merged and added readthedocs service hook to the repo. Do you mind adding me as an owner for readthedocs?
I got this message with when running flake8 elodie --exclude=tests. Is that related to the comment you made regarding pyexiv2 so I added a  # noqa.?
elodie/dependencies.py:60:9: F401 'pyexiv2' imported but unused

Oh, oops, I guess I don't have pre-commit hooked up. That failure was probably introduced back in the dependencies warning message pull. Looks like Travis doesn't run flake8?
jmathai on RTD has been added as an owner on the project, do you see it?

@noonat no worries. The flake8 scripts are not wired up to TravisCI because I don't want to require it. It only makes it harder for people to contribute. But wiring up the pre-commit hook is very welcome :).
I signed up for RTD but I'm waiting for an invite, I guess.

Weird, it looked like you already had an existing account with OpenPhoto on there: https://readthedocs.org/profiles/jmathai/

I'll ping them. Doesn't seem like they have any accounts tied to any of my email addresses.

@jmathai Any luck? Is there a different email or account you'd like me to add as an admin?

Works now. Thanks :)


Trivial typo fix

While working on a custom RTL view pane for GCC, I was mislead by this typo :)
cfg-view.js: add missing 't' in defaultCfgOuTput.

That's indeed a typo.
Thanks!
:)


Removed unnecessary symlink

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.08 :tada:

Comparison is base (9898a2a) 99.75% compared to head (c8177da) 99.83%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   99.75%   99.83%   +0.08%
==========================================
  Files          13       13
  Lines        2412     2405       -7
==========================================
- Hits         2406     2401       -5
+ Misses          6        4       -2

Impacted Files
Coverage Δ

src/pickley/__init__.py
100.00% <100.00%> (+0.16%)
:arrow_up:

src/pickley/cli.py
99.45% <100.00%> (-0.01%)
:arrow_down:

src/pickley/package.py
99.55% <100.00%> (-0.01%)
:arrow_down:

tests/test_bootstrap.py
100.00% <100.00%> (ø)

tests/test_delivery.py
100.00% <100.00%> (ø)

tests/test_ops.py
100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Formatting adapters.sql

@semcha def appreciate you taking the opportunity to improve the adapter! is there a motivation besides just making it look cleaner?

Hi @swanderz ! Nope, just formatting.


support for api 200 version in ICsp requires support for login acknowledgement

Lets add support for new auth property:
"loginMsgAck":"true"

For now to use 200 we have to make sure to disable login acknowledgement.

If you want to simplify things you can always use an older X-API-Version for just the login-sessions API if you aren't actually wanting anything more than the historic login behavior.  Said otherwise hardcode to X-API-Versions="120" for the login call until you actually want/need some newer functionality to enable some new type of login.

@wenlock I think the entire premise of this issue is off.  version 200 of ICsp API does not require loginMsgAck as an input.  It is optional and I confirmed I was able to login to ICsp 7.5.1 with 200 and without loginMsgAck in the body.
The question is, do you want to use that feature or not as it is completely optional either way from my perspective.  If you need access to a 7.5.1 ICsp system let me know and I can share.

Awesome, yeah, this was blocking us on the User Access issue that was reported by #87
I was hoping I'd be able to get the api's to do this once we starting on the synergy box we're working on getting.  I might hit you up for some access if we can't get that in early August.


Move src/docs/stan-models to example-models repository

Bob, I don't think this will work any more. Mind if I remove it?
Daniel

There is no more stan/src/models, so yes, please remove.

Bob

On Jan 28, 2015, at 11:05 AM, Daniel Lee<EMAIL_ADDRESS>wrote:
Bob, I don't think this will work any more. Mind if I remove it?
Daniel
—
Reply to this email directly or view it on GitHub.


Promote Instruction metadata to class attributes.

Summary
Currently, some useful details about each instruction or gate class are only available inside each instruction's __init__ method. e.g.
class HGate():
    def __init__(self):
        super().__init__('h', 1, [], num_ctrl_qubits=1)

meaning that when given an Instruction subclass, the only way to find out which instruction it is is to instantiate it and then query its name, num_qubits, etc. This PR promotes name, num_qubits, num_clbits, and num_parameters to be class attributes when known in advance (defaulting to None when these cannot be known until the gate is created.)
Details and comments

When this is resolved, we can also remove the code to pick example gates from https://github.com/Qiskit/qiskit-terra/pull/4442#discussion_r426235544 .

@kdk is there any update on this?

@kdk is there any update on this?

I think this is mostly subsumed by #6883 . Once that merges, I'll revisit to see if there's anything left to be done here.

I'm going to close this since it's been idle for 2.5 years and the plans around the instruction model has changed with https://github.com/Qiskit/rfcs/pull/25 I think we'll need to start from scratch to do this assuming it works with the plans around operations


Update 3.0.0.md

this looks like a typo to me.
should be content: ?
not sure representations: is correct
all others are content
also representations is not part of the openapi specification

This was fixed in https://github.com/OAI/OpenAPI-Specification/commit/d45549e004a54a72d11a9ec9aa676bd2d0748d30 in v3.0.1 - (each release of the specification is unchanging once released). Thanks for the PR.


Fix code in example-swift, refactor code #39

The aim of this PR is to fix code provided in example-swift. The sample now works with the newest Xcode.

Thank you for the PR. Unfortunately I will close this PR. For further information please see: #48


How to work with dynamic multiple choice and arrays?

Describe the bug

Version

Browser

[ ] Chrome

OS

[ ] Windows

To Reproduce
Steps to reproduce the behavior:
In the documentation is missing the specific steps to :
1 - Initialize an array
2 - Configure a dynamic multiple choice with the arrray (or variable)
Expected behavior
Build an a multiple choice with dynamic values
Screenshots

Additional context

You can reference following doc : https://github.com/microsoft/BotFramework-Composer/blob/stable/docs/how-to-ask-for-user-input.md#multiple-choice

Hi @hibrenda , in this link its not specify how build an dynamic multiple choice, and this explications are very short. I'm trying to create an array and when I pass the property to prompt not works

@MunozVictor  Attached the screenshot (against the master branch) for how to use it.

Thanks!

Hi,
I don't see the dynamic dropdown on bot composer v.1.3.0
I have a dynamic value called ${conversation.slot1} set to "tomorrow"which I am trying to use as an option in multiple choice. I cannot get the property to evaluate to "tomorrow".

Hi,
I don't see the dynamic dropdown on bot composer v.1.3.0
I have a dynamic value called ${conversation.slot1} set to "tomorrow"which I am trying to use as an option in multiple choice. I cannot get the property to evaluate to "tomorrow".

Can I bump this guys I would like to know how to do this in the latest version of composer.

Can I bump this guys I would like to know how to do this in the latest version of composer.

@philip-mc
 thanks to bring this up. could you try out ? we will update the doc later. @zxyanliu

@philip-mc
 thanks to bring this up. could you try out ? we will update the doc later. @zxyanliu

Thanks for the message, still getting an issue tho:

Thanks for the message, still getting an issue tho:

@philip-mc
 thanks to bring this up. could you try out ? we will update the doc later. @zxyanliu

Hi, I'm unable to see a placeholder to provide expression. Please help.


#377 Launcher Icon Added to VigyBag Android

Added the Launcher Icon to VigyBag Android App

@07jasjeet Please have a look and let me know if further changes required.

@javaman97 any way we can make the logo a bit bigger?

Alright, I will crop and make the padding to <5% as its padding is 10%

Please attach a photo of latest changes like you did previously.

@07jasjeet Please have a look

Thanks for the work!


fix a problem that repos located in non-primary ghq.root cannot be opened

It is possible to specify multiple paths for ghq.root.
For example, .gitconfig is as follows:
[ghq]
    root = ~/rootB
    root = ~/rootA

and then there is repoA & repoB as below.
~
├── rootA
│  └── repoA
└── rootB
   └── repoB

In this case, the result of ghq command is
$ ghq root
(home)/rootA

$ ghq root --all
(home)/rootA
(home)/rootB

$ ghq list
repoA
repoB

So, we cannot currently open repoB from GHQ: Open Repository.
I solved this problem by using ghq list --exact --full-path.

LGTM too.
Thanks for your contribution!


Convert to ONNX model

Hi @ibaiGorordo ,
Thank you for your great work !.
I've tried to convert MobileStereoNet Pytorch model to ONNX model by using torch onnx export. However the ONNX model size is 10 times bigger than Pytorch model size. (i.e. 300Mbs, compare to 29Mbs).
The script which I used to convert to onnx model:
import torch
import onnx
from onnxsim import simplify
from models import MSNet2D

if __name__ == '__main__':

    # Load models
    maxdisp = 192

    model = MSNet2D(maxdisp)
    model.cuda()

    print('load model')
    model_path = 'weights/MSNet2D_SF_KITTI2015.ckpt'
    state_dict = torch.load(model_path)

    pretrained_dict = {key.replace("module.", ""): value for key, value in state_dict['model'].items()}
    model.load_state_dict(pretrained_dict)
    model.eval()

    W = 528
    H = 240
    onnx_file = f"mobileStereoNet_{H}x{W}.onnx"
    onnx_simp_file = f"mobileStereoNet_{H}x{W}_simp.onnx"

    x = torch.randn(1, 3, H, W).cuda()
    torch.onnx.export(model,
                                args=(x, x),
                                f=onnx_file,
                                opset_version=12)

    print("save model {} successfully".format(onnx_file))

    model_load = onnx.load(onnx_file)
    model_simp, check = simplify(model_load)
    onnx.save(model_simp, onnx_simp_file)

    print("save model {} successfully".format(onnx_simp_file))

Could you hint me how did you convert MobileStereoNet Pytorch to ONNX ?
Many thanks in advance !.
Regards,
Michael

Hi, I also have the same issue.
The Pytorch to ONNX is not the issue (which is the model I updated), the "problem" happens when you simplify the model, then the model suddenly grows to hundreds of MBs. Since the model needs to be downloaded, I decided to use the pre-simplify version. Also, the simplified version seems to be slower for some reason (Ref: https://twitter.com/PINTO03091/status/1464901764977618951).
For future reference (the models are not available yet as of today), it is probably better to check the models here:
https://github.com/PINTO0309/PINTO_model_zoo/tree/main/150_MobileStereoNet

The onnx-simplifier will unfold the tensor, i.e., constant unfolding. If you want to add 1 for a tensor, which size is 1x3x224x224, pytorch would just record the constant value and the tensor size while onnx-simplifier would unfold the constant value which makes a 1x3x224x224 tensor again, in which all the values are just 1. So the model size will be pretty big if there are many constant ops, like ConstantOfShape, Expand, Tile, in your model.

I haven't tested it, but using some of the tools in https://github.com/PINTO0309/simple-onnx-processing-tools might help with that (particularly scs4onnx)


Cannot Create Multiple Interface on Pod (K8S with Calico)

Hi,
I am trying add an additional interface with Multus to my pod in K8S. I have K8S with version 1.12 and I am using Calico in K8S. I deployed Multus with the instrucstions in the following link: https://github.com/k8snetworkplumbingwg/reference-deployment/blob/master/multus-calico/multus-daemonset.yml (by the way Calico was already installed in my K8S before so I didnt installed Calico recently with these instructions)
After I deployed Multus, I tried to create and CNI and pod with the instructions in the following link: https://intel.github.io/multus-cni/doc/quickstart.html
However, I cannot see the additional interface that I created in the pod and also there is no any log in the multus daemon sets in order check status. Daemon set of Multus is running. What can be the problem? Do I need to set some extra configuration on  Calico or Kubelet because I didnt make any new configuration on Calico or Kubelet. I would be so happy if someone can help.
Kind regards,
Sarp

Sarp, what version of Calico are you using to test this functionality? In addition, can you share the Net-attach-def that you might have used here to attach secondary Calico interface?

Could you please share the following information?

multus version
pod yaml
net-attach-def yaml
multus CNI config (might be in /etc/cni/net.d or somewhere, see your kubernetes configuration)

1.12 is slightly old Kubernetes. Currently multus is following Kubernetes so we would likely to support most recent three  minor releases (1.18, 1.17, 1.16) of Kubernetes. Could you please update Kubernetes to latest and test it?

https://kubernetes.cn/docs/setup/release/version-skew-policy/


libbladerf: 2.4.0 -> 2.5.0

Description of changes
Changelog: https://github.com/Nuand/bladeRF/releases/tag/libbladeRF_v2.5.0
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build soapysdr-with-plugins

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

29 packages built:

cubicsdr
dump1090
gnuradio3_8Packages.ais
gnuradio3_8Packages.osmosdr
gnuradio3_8Packages.osmosdr.dev
gnuradio3_9Packages.osmosdr
gnuradio3_9Packages.osmosdr.dev
gnuradioPackages.osmosdr
gnuradioPackages.osmosdr.dev
gqrx
gqrx-gr-audio
gqrx-portaudio
libbladeRF
openwebrx
openwebrx.dist
pothos
python310Packages.soapysdr-with-plugins
python311Packages.soapysdr-with-plugins
qradiolink
rtl_433
sdrangel
sigdigger
soapybladerf
soapysdr-with-plugins
srsran
suscan
urh
urh.dist
welle-io


Closing a single window closes all of them (sometimes)

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.90.1
OS Version: Ubuntu 22.04

Version: 1.90.1
Commit: 611f9bfce64f25108829dd295f54a6894e87339d
Date: 2024-06-11T21:02:43.666Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.5.0-21-generic

Steps to Reproduce:

Open multiple VScode windows
Press the 'Close' UI button

Observe the closure of one or all windows (at random)

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.90.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.
Happy coding!

This is happening a lot to me as well. It seems very random when it happens, but usually it does not take more than maybe 5-6 windows open, and say you want to close 2 or 3 of them, then on the 2nd or 3rd click on the X, all of them goes.
I have tried recreating this whilst having screen capture software (both Gnome's built-in one and gifcap.dev) but every single time it records it does not happen.

Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

Interestingly enough, there is no *.dmp file created. Only empty completed, pending, new and attachments folders, alongside with a client_id file and settings.dat file which don't really contain much info :thinking:
When opening the first vscode window with --crash-reporter-directory <absolute-path>, do all other new windows opened from that window get opened with that crash reporter directory argument too?

Ooh, second time's the charm apparently. Attaching .dmp file here:
e113a7ee-639c-4a97-81b7-7f130d9a63c8.zip

Symbolicated trace
Crash reason:  SIGSEGV /SEGV_MAPERR
Crash address: 0x3a0019
Process uptime: 36 seconds

Thread 0 (crashed)
 0  code!allocator_shim::internal::PartitionFree(allocator_shim::AllocatorDispatch const*, void*, void*) [partition_root.h : 1599 + 0x0]
    rax = 0x00000000003a0001   rdx = 0x0000000000000000
    rcx = 0x0000000000000000   rbx = 0x0000358000000101
    rsi = 0x0000358000000101   rdi = 0x00005a84cadd5788
    rbp = 0x00007ffc8ea691b0   rsp = 0x00007ffc8ea69180
     r8 = 0x000000000000fffe    r9 = 0x0000000000000000
    r10 = 0x00005a84c1de8fef   r11 = 0x0000000000000000
    r12 = 0x00005a84cb010d80   r13 = 0x0000358000000000
    r14 = 0x0000358000001000   r15 = 0x0000000000000000
    rip = 0x00005a84c66e6bd2
    Found by: given as instruction pointer in context
 1  code!ui::Layer::~Layer() [new : 280 + 0x5]
    rbx = 0x0000358002c3b940   rbp = 0x00007ffc8ea69240
    rsp = 0x00007ffc8ea691c0   r12 = 0x00005a84caf6e000
    r13 = 0x0000358002c3ba88   r14 = 0x0000358002c3baa0
    r15 = 0x0000000000000000   rip = 0x00005a84c7fa078b
    Found by: call frame info
 2  code!ui::Layer::~Layer() [layer.cc : 227 + 0x5]
    rbx = 0x0000358002c3b940   rbp = 0x00007ffc8ea69260
    rsp = 0x00007ffc8ea69250   r12 = 0x00005a84caf6e000
    r13 = 0x0000358002c3b940   r14 = 0x000035800272ef40
    r15 = 0x000035800272f0e8   rip = 0x00005a84c7fa127e
    Found by: call frame info
 3  code!aura::Window::~Window() [window.cc : 244 + 0x5]
    rbx = 0xfffffffc00000000   rbp = 0x00007ffc8ea69330
    rsp = 0x00007ffc8ea69270   r12 = 0x00005a84caf6e000
    r13 = 0x0000358002c3b940   r14 = 0x000035800272ef40
    r15 = 0x000035800272f0e8   rip = 0x00005a84c7f7d136
    Found by: call frame info
 4  code!aura::Window::~Window() [window.cc : 184 + 0x5]
    rbx = 0x000035800272ef40   rbp = 0x00007ffc8ea69350
    rsp = 0x00007ffc8ea69340   r12 = 0x00007ffc8ea693d0
    r13 = 0x0000358000933400   r14 = 0x000035800339da00
    r15 = 0x000035800339dba8   rip = 0x00005a84c7f7dafe
    Found by: call frame info
 5  code!aura::Window::~Window() [window.cc : 923 + 0xd]
    rbx = 0xaaaaaaaaaaaaaaaa   rbp = 0x00007ffc8ea69420
    rsp = 0x00007ffc8ea69360   r12 = 0x00007ffc8ea693d0
    r13 = 0x0000358000933400   r14 = 0x000035800339da00
    r15 = 0x000035800339dba8   rip = 0x00005a84c7f7ce9d
    Found by: call frame info
 6  code!aura::Window::~Window() [window.cc : 184 + 0x5]
    rbx = 0x000035800339da00   rbp = 0x00007ffc8ea69440
    rsp = 0x00007ffc8ea69430   r12 = 0x0000358002cc8f40
    r13 = 0x0000358002cc8f40   r14 = 0xfffffffc00000000
    r15 = 0x00005a84caf6e000   rip = 0x00005a84c7f7dafe
    Found by: call frame info
 7  code!aura::WindowTreeHost::DestroyDispatcher() [window_tree_host.cc : 599 + 0xa]
    rbx = 0x0000358002cc8d00   rbp = 0x00007ffc8ea69460
    rsp = 0x00007ffc8ea69450   r12 = 0x0000358002cc8f40
    r13 = 0x0000358002cc8f40   r14 = 0xfffffffc00000000
    r15 = 0x00005a84caf6e000   rip = 0x00005a84c7f92827
    Found by: call frame info
 8  code!views::DesktopWindowTreeHostPlatform::~DesktopWindowTreeHostPlatform() [desktop_window_tree_host_platform.cc : 218 + 0x8]
    rbx = 0x0000358002cc8d00   rbp = 0x00007ffc8ea69490
    rsp = 0x00007ffc8ea69470   r12 = 0x0000358002cc8f40
    r13 = 0x0000358002cc8f40   r14 = 0xfffffffc00000000
    r15 = 0x00005a84caf6e000   rip = 0x00005a84c813c15d
    Found by: call frame info
 9  code!electron::ElectronDesktopWindowTreeHostLinux::~ElectronDesktopWindowTreeHostLinux() [electron_desktop_window_tree_host_linux.cc : 35 + 0x5]
    rbx = 0x0000358002cc8d00   rbp = 0x00007ffc8ea694b0
    rsp = 0x00007ffc8ea694a0   r12 = 0x0000358002cc8f40
    r13 = 0x0000358002cc8f40   r14 = 0xfffffffc00000000
    r15 = 0x00005a84caf6e000   rip = 0x00005a84c33f693e
    Found by: call frame info
10  code!views::DesktopNativeWidgetAura::OnHostClosed() [unique_ptr.h : 66 + 0x6]
    rbx = 0x0000358002b74d20   rbp = 0x00007ffc8ea694e0
    rsp = 0x00007ffc8ea694c0   r12 = 0x0000358002cc8f40
    r13 = 0x0000358002cc8f40   r14 = 0xfffffffc00000000
    r15 = 0x00005a84caf6e000   rip = 0x00005a84c8132d1f
    Found by: call frame info
11  code!views::DesktopWindowTreeHostPlatform::OnClosed() [desktop_window_tree_host_platform.cc : 875 + 0x5]
    rbx = 0x0000358002cc8d00   rbp = 0x00007ffc8ea69520
    rsp = 0x00007ffc8ea694f0   r12 = 0x0000358002cc8f40
    r13 = 0x0000358002cc8f40   r14 = 0x00007ffc8ea694f8
    r15 = 0x0000000000000000   rip = 0x00005a84c813eaec
    Found by: call frame info
12  code!views::DesktopWindowTreeHostPlatform::CloseNow() [desktop_window_tree_host_platform.cc : 420 + 0x6]
    rbx = 0x0000358002cc8d00   rbp = 0x00007ffc8ea69570
    rsp = 0x00007ffc8ea69530   r12 = 0x0000358002cc8f40
    r13 = 0x0000358002cc8f40   r14 = 0x00007ffc8ea69538
    r15 = 0x0000000000000003   rip = 0x00005a84c813cd3b
    Found by: call frame info
13  code!views::Widget::CloseNow() [widget.cc : 823 + 0x9]
    rbx = 0x00003580001cd880   rbp = 0x00007ffc8ea69600
    rsp = 0x00007ffc8ea69580   r12 = 0x0000000000000003
    r13 = 0x0000000000000000   r14 = 0x00003580001cd918
    r15 = 0x0000000000000003   rip = 0x00005a84c8107502
    Found by: call frame info
14  code!electron::api::BrowserWindow::CloseImmediately() [electron_api_browser_window.cc : 268 + 0x8]
    rbx = 0x0000358002e8c200   rbp = 0x00007ffc8ea69670
    rsp = 0x00007ffc8ea69610   r12 = 0x0000000000000000
    r13 = 0x0000000000000000   r14 = 0x0000000000000000
    r15 = 0x00007ffc8ea69630   rip = 0x00005a84c32822ca
    Found by: call frame info
15  code!non-virtual thunk to electron::api::BrowserWindow::WebContentsDestroyed() [electron_api_browser_window.cc : 129 + 0x8]
    rbx = 0x0000358002e8c2c8   rbp = 0x00007ffc8ea696b0
    rsp = 0x00007ffc8ea69680   r12 = 0x0000000000000000
    r13 = 0x000035800330ad00   r14 = 0x0000358002e8c200
    r15 = 0x00007ffc8ea69688   rip = 0x00005a84c328187f
    Found by: call frame info
16  code!void content::WebContentsImpl::WebContentsObserverList::NotifyObservers<void (content::WebContentsObserver::*)()>(void (content::WebContentsObserver::*)()) [web_contents_impl.h : 1605 + 0x13]
    rbx = 0xaaaaaaaaaaaaaaaa   rbp = 0x00007ffc8ea69790
    rsp = 0x00007ffc8ea696c0   r12 = 0x0000000000000000
    r13 = 0x000035800330ad00   r14 = 0x0000358002e8c2c8
    r15 = 0xaaaaaaaaaaaaaaaa   rip = 0x00005a84c5caeab5
    Found by: call frame info
17  code!content::WebContentsImpl::~WebContentsImpl() [web_contents_impl.cc : 1290 + 0xf]
    rbx = 0x000035800330ac00   rbp = 0x00007ffc8ea697f0
    rsp = 0x00007ffc8ea697a0   r12 = 0x000035800330b8c0
    r13 = 0x000035800330ad78   r14 = 0xfffffffc00000000
    r15 = 0x000035800330ad30   rip = 0x00005a84c5cadcff
    Found by: call frame info
18  code!content::WebContentsImpl::~WebContentsImpl() [web_contents_impl.cc : 1184 + 0x5]
    rbx = 0x000035800330ac00   rbp = 0x00007ffc8ea69810
    rsp = 0x00007ffc8ea69800   r12 = 0x00005a84caf6e000
    r13 = 0xfffffffc00000000   r14 = 0xfffffffc00000000
    r15 = 0x00005a84caf6e000   rip = 0x00005a84c5caed1e
    Found by: call frame info
19  code!electron::InspectableWebContents::~InspectableWebContents() [unique_ptr.h : 66 + 0x5]
    rbx = 0x0000358002a76c00   rbp = 0x00007ffc8ea69840
    rsp = 0x00007ffc8ea69820   r12 = 0x00005a84caf6e000
    r13 = 0xfffffffc00000000   r14 = 0xfffffffc00000000
    r15 = 0x00005a84caf6e000   rip = 0x00005a84c337721f
    Found by: call frame info
20  code!electron::InspectableWebContents::~InspectableWebContents() [inspectable_web_contents.cc : 352 + 0x5]
    rbx = 0x0000358002a76c00   rbp = 0x00007ffc8ea69860
    rsp = 0x00007ffc8ea69850   r12 = 0x00005a84caf6e000
    r13 = 0xfffffffc00000000   r14 = 0x0000358002de9030
    r15 = 0x0000358002de9128   rip = 0x00005a84c337731e
    Found by: call frame info
21  code!electron::api::WebContents::~WebContents() [unique_ptr.h : 66 + 0x5]
    rbx = 0x0000358002de9000   rbp = 0x00007ffc8ea698a0
    rsp = 0x00007ffc8ea69870   r12 = 0x00005a84caf6e000
    r13 = 0xfffffffc00000000   r14 = 0x0000358002de9030
    r15 = 0x0000358002de9128   rip = 0x00005a84c32db66f
    Found by: call frame info
22  code!electron::api::WebContents::~WebContents() [electron_api_web_contents.cc : 976 + 0x5]
    rbx = 0x0000358002de9000   rbp = 0x00007ffc8ea698c0
    rsp = 0x00007ffc8ea698b0   r12 = 0x0000724170725c58
    r13 = 0x0000000000000000   r14 = 0x0000358000284000
    r15 = 0x0000000000000000   rip = 0x00005a84c32dba0e
    Found by: call frame info
23  code!electron::api::WebContents::DeleteThisIfAlive() [electron_api_web_contents.cc : 1023 + 0x8]
    rbx = 0x0000358002de9000   rbp = 0x00007ffc8ea69900
    rsp = 0x00007ffc8ea698d0   r12 = 0x0000724170725c58
    r13 = 0x0000000000000000   r14 = 0x0000358000284000
    r15 = 0x0000000000000000   rip = 0x00005a84c32dbc2f
    Found by: call frame info
24  code!base::TaskAnnotator::RunTaskImpl(base::PendingTask&) [callback.h : 156 + 0x3]
    rbx = 0x0000358000ef5000   rbp = 0x00007ffc8ea69990
    rsp = 0x00007ffc8ea69910   r12 = 0x0000724170725c58
    r13 = 0x0000000000000000   r14 = 0x00007ffc8ea69958
    r15 = 0x0000000000000000   rip = 0x00005a84c66313cf
    Found by: call frame info

I have tried the exploration build now and I have yet to recreate this. However, it does not seem to integrate in the OS in the same manner. For instance, the close buttons in the top-right corner is the Gnome/OS default:

While the regular build I am using have more customised buttons:


python311Packages.pulsectl-asyncio: init at 1.1.1

Description of changes
Python bindings library for PulseAudio
https://github.com/mhthies/pulsectl-asyncio
Next piece for #252769

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

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

4 packages built:

python310Packages.pulsectl-asyncio
python310Packages.pulsectl-asyncio.dist
python311Packages.pulsectl-asyncio
python311Packages.pulsectl-asyncio.dist


Too Many Policies on Role

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v14.18.3
Amplify CLI Version
10.0.0
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Nope
Amplify Categories
auth, api
Amplify Commands
push
Describe the bug
We are working on migrating to use the graphql transformer v2 and when we do an amplify push, our deployment fails due to there being too many policies trying to be attached to the role.
We already have the max allotted, which is 20. Are you able to adjust how you generate policies so that they are either grouped together or there are less of them.

Resource Name: AuthRolePolicy049E37F651 (AWS::IAM::ManagedPolicy)
Event Type: create
Reason: Cannot exceed quota for PoliciesPerRole: 20 (Service: AmazonIdentityManagement; Status Code: 409; Error Code: LimitExceeded; Request ID: 0c07ffe9-47e2-4d48-9241-99b73fd7ee60; Proxy: null)

Expected behavior
Deploy succeeds
Reproduction steps
Migrate to graphql transformer v2
amplify push
GraphQL schema(s)

# Put schemas below this line
We would rather not share our entire schema at the moment

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response

Hey @gakinson :wave: thanks for raising this! This appears similar/related to https://github.com/aws-amplify/amplify-category-api/issues/791


LaravelLogger references class that no longer exists (Illuminate\Contracts\Logging\Log) in Laravel 5.6+

Expected behavior
composer update doesn't produce the error laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (ReflectionException(code: 0): Class 'Illuminate\\Contracts\\Logging\\Log' not found
Observed behavior
The class Bugsnag\BugsnagLaravel\LaravelLogger imports this class on line 8 https://github.com/bugsnag/bugsnag-laravel/blob/master/src/LaravelLogger.php#L8 and causes an error to be written to the log if composer update is run while the .env includes a reference to the bugsnag log channel in the LOG_STACK or if it's referenced in any of the log channels in that file in Laravel 5.6+
Steps to reproduce

Follow the installation steps listed on this page in a Laravel 5.6 application. In this case I am using Laravel 11.  https://docs.bugsnag.com/platforms/php/laravel/
Add a logging channel for bugsnag to config/logging.php
Reference that channel in .env
Run composer update
Observe the error in the log file. In my case it was in storage/logs/laravel.log.

Version
2.28.0
Additional information
The Laravel team removed the Illuminate\Contracts\Logging\Log class in Laravel 5.6 because it was a duplicate of Psr\Log\LoggerInterface. This was mentioned in the Laravel 5.6 upgrade guide: https://laravel.com/docs/5.6/upgrade
I'm not sure that the reference to the Psr\Log\LoggerInterface is even needed in Bugsnag\BugsnagLaravel\LaravelLogger since that class ultimately extends Psr\Log\AbstractLogger which already implements the correct interface.
Can't comment on Issues?
Some users have been unable to comment on Github issues when an adblocker extension is enabled.
We recommend temporarily disabling the extension, or if that fails, contacting<EMAIL_ADDRESS>

This is a non-issue. That class only exists to support older Laravel versions. On newer Laravel versions, the entire class is not used at all.

See https://github.com/bugsnag/bugsnag-laravel/blob/master/src/BugsnagServiceProvider.php#L346.

@GrahamCampbell I guess I'm not following why it's not an issue. Log::class on line 346 of that service provider is Illuminate\Contracts\Logging\Log but the installation instructions state to add that service provider to the $providers array in bootstrap/providers.php.

That line checks to see if the class exists, so that we can do the correct thing on both older and newer Laravel.

I see, is there a clean way to prevent that error from appearing in the laravel.log then?

Are you using the latest version of this package, or a version before that interface_exists check was added?


Hover information over export default

If you have a file with the following contents:
export default function(a: string, b: number) {
  return Promise.resolve(a + b);
}

Then there is no way to see function signature through hovering. Basically, because it has no name? It would be nice to get the hover information over the export or default keyword :-)
Original request : https://github.com/TypeStrong/atom-typescript/issues/251

why not function? that would help with function expressions as well..

Cool. It was just a copy paste. "function" would be best ❤

I began on working on this. Shouldn't it be all reserved words related to a declaration?

@tinganho I'm not entirely sure; if we do this, then anonymous class expressions certainly should get the same behavior for class.

@DanielRosenwasser with the except of declarations lists with a length bigger then 1.
/*1*/var a: string = 1, b: string; // doens't get hover info on marker 1

So we should clarify what we want to see; if we're just going to show the word function, then this sounds very unhelpful.
If, however, we're going to show type information for a contextually typed function expression, that might be very useful.
For instance:
declare f(g: (x: number) => number);

f(/**/function (x) {
});

Quick info at that position should show something like
(local function) (x: number): number;

I'm not really big on how it looks, but it'd be worth discussing a bit.
Similarly, for the class keyword, I think it depends on whether or not a constructor function can be contextually typed.

@DanielRosenwasser just another clarification. Should the export default etc. keywords have the same quick info as the related declaration?

Quick info at that position should show something like

Don't you think it should be:
function (x: number): number;

because the current non-anonymous is:
function A(x: number): number;

because the current non-anonymous is:

function A(x: number): number;

It depends on what you mean by non-anonymous:

I think the latter is inconsistent and something we should probably fix.

@DanielRosenwasser I have practically finished this issue but before I send a PR. There are some weird namings currently in the language service.
/// <reference path='fourslash.ts' />

//// interface IFunction{
////     (g: (a: string, b: string) => void): any;
//// }
////
//// declare var f: IFunction;
////
//// f(/*contextualType*/function(a, b) { });
////
//// /*namedFunction*/function functionName1() {}
////
//// /*exportAnonymousFunction*/export /*defaultAnonymousFunction*/default /*anonymousFunction*/function(a: string, b: string) {}

goTo.marker("contextualType");
verify.quickInfoIs("(local function) __function(a: string, b: string): void");

goTo.marker("namedFunction");
verify.quickInfoIs("function functionName1(): void");

goTo.marker("exportAnonymousFunction");
verify.quickInfoIs("function default(a: string, b: string): void");

goTo.marker("defaultAnonymousFunction");
verify.quickInfoIs("function default(a: string, b: string): void");

goTo.marker("anonymousFunction");
verify.quickInfoIs("function default(a: string, b: string): void");

I need someone to wear their end-user hat and help decide what is best to show in these cases (@RyanCavanaugh @danquirk). Clearly we should not be showing the symbol name for an anonymous function. I think that default is not correct either.
We keep running into situations where we resolve the symbol as default in the language service. @ahejlsberg what's the best way to go about fixing this?

Seeing a dunder name (i.e. __function) is never going to be appropriate for the user.  We should present the item to the user, as they wrote it.  i.e. as either function(...) or default function(...).
Also, as an aside, i see no purpose in labeling something a local function.

function(...) or default function(...)

I vote for just function(...). I see the default as a modifier to the export keyword not the function.
How about just keeping it simple?
function Name(...) {}
function(...) {}

How about just keeping it simple?

function Name(...) {}
function(...) {}

:+1:


How to regenerate iOS and Android Folder in React Native Project

Hello,
I try to regenerate iOS and Android Folder in React Native Project. (react-native version is 0.61.4).
Before "react-native eject" and "react-native upgrade --legacy true" works for me. But they doesn't work in the current react-native version.
Please help me.
Thank you

Binaries:
Node: 12.12.0 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.13.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Android Studio: 3.5 AI-191.8<IP_ADDRESS>00203
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.4 => 0.61.4
npmGlobalPackages:
react-native-cli: 2.0.1

@hramos  Why was this closed? This seems to be a valid problem.

@hramos Why was this closed? This seems to be a valid problem.

Recently i tried to npm install on a project that i saved on a flash drive (I copied all except the Android, IOS and node_modules folders). After the installation is done, it downloads all libraries and generated a node_modules folder but there are no Android or iOS folders.
I tried to react-native run-android on the project folder but it says  Android project not found. Are you sure this is a React Native project? Question is, how can generate its Android and iOS folders without creating a whole fresh project?

@hramos Why was this closed? This seems to be a valid problem.
if "react-native eject" & "react-native upgrade" are no longer available
what command should be used for a full, clean generation of native apps?

It was closed because the issue template wasn't followed. If you're running into this, please make a new issue.

This is still a problem, at least in the sense that it broke instructions for renaming a react-native project. Existing instructions recommend using either eject or upgrade --legacy; both are 100% verifiably gone in the current release and I don't know a replacement.
I was able to follow this comment to rename all files. I did some additional grep + replace, not sure if it mattered, but it should get you most of the way there. https://github.com/facebook/react-native/issues/24616#issuecomment-487574475

+1

Is the issue still closed?

This solution worked for me, although there should be an easier way to regenerate the folders.

I solve this on ubuntu running
sudo npx react-native run-android

I've just encountered this same problem. Lucky for me, I had started off using expo so I just re-ran expo eject.

If you want to upgrade with React Native CLI but you don't use Git#
While your project does not have to be handled by the Git versioning system -- you can use Mercurial, SVN, or nothing -- you will still need to install Git on your system in order to use npx react-native upgrade. Git will also need to be available in the PATH. If your project doesn't use Git, initialize it and commit:
git init # Initialize a Git repository
git add . # Stage all the current files
git commit -m "Upgrade react-native" # Save the current files in a commit

After you finish upgrading you may remove the .git directory.
https://reactnative.dev/docs/upgrading#i-want-to-upgrade-with-react-native-cli-but-i-don-t-use-git

I installed expo. yarn add expo
then i ran expo eject
it worked i got the android folder

Just run: expo eject, and it will create both an Ios and Android folder for you

Are there any updates for regenerating android & ios folder?
This is my RN info.
Node: 14.17.2
Yarn: 1.22.10
npm: 6.14.13

API Levels: 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.3

react: 17.0.1 => 17.0.1
react-native: 0.64.2 => 0.64.2

react-native eject and react-native upgrade --legacy true did not work.
Any updates?


Question about custom build for libflutter_engine.so and libfluter_elinux_wayland.so

Hi,
The Wiki says "flutter-elinux download the Flutter engine artifacts such as libflutter_engine.so and libflutter_elinux_wayland.so to <flutter-elinux_install_path>/flutter/bin/cache/artifacts/engine directory automatically when you build your Flutter app"
However, how can I tell flutter-elinux to not do this ?
Reason: I need to use the libraries from my toolchain. The only way I found for now is:

Install elinux
Run flutter-elinux doctor
Create and build a dummy hello_world app (to force the artifact download)
Delete the dummy app
Copy my libraries from my target-sysroot toolchain to flutter/bin/cache/artifacts/engine/elinix-arm64-release | debug | profile
Ready to go

Note: If I copy the libraries beforehand, they are overwritten by elinux when the first build occurs.

Yes, currently, your approach is the only way to do that. No other approaches now.
If you can put all artifacts for elinux to a local server, you can use ELINUX_ENGINE_BASE_URL env.
See: https://github.com/sony/flutter-elinux/blob/main/lib/elinux_cache.dart#L88


Clear dimensions cache when approximate screen line count changes

Fixes #15761
It is possible for the approximate screen line count to exceed the actual number of lines. This may happen if there are many soft-wraps and the display layer hasn't indexed the entire contents of the buffer.
In that circumstance, if a user attempts to scroll to a position that does not exist, we are unable to clip it correctly in setScrollTop because the line count approximation is also wrong. Therefore, after populating the spatial index in updateSyncBeforeMeasuringContent, we will make sure that the approximate screen line count did not change. If it did, we need to clear the derived dimensions cache (which contains, for example, the rendered row range) because it could contain incorrect values.
/cc: @nathansobo @Ben3eeE @ungb @rsese

👏


Correct ordering in date range query

The query was returning the earliest rather than the latest reading so the nightly update was always running for the same 24 hours

I have edited the file within the running container to show the change works as expected.
The first line shows the end of the previous run, and therefore data exists in the measurement already. Following five log lines show the shceduled run prior to my manual change; it shows looking up data for Feb 2022. The final five lines are after I have manualled edited the file within the container, changing ASC to DESC; this then shows it is looking for recent data for 3rd Nov 2023.


Ability to pin/bookmark an object (table/procedure/view) and make it appear the same way it appears in the tree view (allow expand).

Is your feature request related to a problem? Please describe.
Whenever I'm working on a big database, I feel the need to jump between different tables and procedures and views. When that happens, nowadays I have three options: Scroll until I find one, then scroll for the other; Or use the filter; Or use the Bookmark in the Projects sidebar.
Although I think filter is useful, I still think it doesn't really achieve what I was looking for because I have to re-type the name of the object every time I want to search a different one (I actually prefer scrolling to this). And the Bookmark feature does 80-90% of what I'm looking for. But it does not allow me to expand that object to check its columns/triggers directly from the sidebar and does not group by Connection.
Describe the solution you'd like
To me, a good solution would be the ability to right-click an object in the Database Navigator and select "pin/bookmark object" (pin table/pin procedure/etc) and this object would be visible from the top of the Database Navigator (or even the projects sidebar) like this:

Pinned objects

database abc

procedure_X
table_name_A
table_name_F

database xyz

table_name_d

Connections (here go back to the regular object tree we have today...)

Describe alternatives you've considered
My first thought was to use Projects' Bookmarks to do so. But with it I can see and double click or navigate to the object, but I cannot expand it to see its columns and triggers, which is so useful when checking an object from the Database Navigator sidebar. Plus: The bookmark action could be in the right-click context menu.
Additional context
Database Navigator allow expanding the table:

Bookmark does not (and it's not grouped by connection):

I know it's kind of just aesthetics, but I believe it would be helpful. :)
Thank you!

Thanks for the feature request.
We want to implement support for expanding bookmark nodes as if they were real database nodes.


Issue #2693 Implement PtNDArrayEx.multiBoxPrior with validation

Description
The big goal here is to implement PtNDArrayEx.multiBoxPrior() (currently throws NotImplementException) so that you can run PikachuTraining with Pytorch and so you can run SSD Training on M1 Macs.
This is discussed in: https://github.com/deepjavalibrary/djl/issues/2693
The big idea is to prove this works by writing matching unit tests for MxNDAarrayEx.multiBoxPrior() and comparing the results.
The implementation for this is derived from:
https://github.com/apache/mxnet/blob/master/src/operator/contrib/multibox_prior.cc
and
https://github.com/apache/mxnet/blob/a720b15b5fa011a9610dfaeabf0792443c6abec5/src/operator/contrib/multibox_prior-inl.h#L116
I'm asking for some help.
The results of the two unit tests don't quite match up (they approach one another) - and I can't see in the debugger (in the C++ code) on the MXNet side to see what is going wrong.
Can you please give me some pointers on what we can to do see the operation of this on the C++ side to compare the operation of these two multiboxPrior method implementations?

Codecov Report
Patch coverage: 54.72% and project coverage change: +0.11% :tada:

Comparison is base (bb5073f) 72.08% compared to head (f0dae63) 72.20%.
Report is 858 commits behind head on master.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2715      +/-   ##
============================================
+ Coverage     72.08%   72.20%   +0.11%
- Complexity     5126     7034    +1908
============================================
  Files           473      698     +225
  Lines         21970    31300    +9330
  Branches       2351     3229     +878
============================================
+ Hits          15838    22601    +6763
- Misses         4925     7161    +2236
- Partials       1207     1538     +331

Files Changed
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...djl/modality/cv/transform/RandomFlipLeftRight.java
25.00% <0.00%> (-25.00%)
:arrow_down:

...djl/modality/cv/transform/RandomFlipTopBottom.java
25.00% <0.00%> (-25.00%)
:arrow_down:

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

.../modality/cv/translator/ImageFeatureExtractor.java
0.00% <0.00%> (ø)

.../ai/djl/modality/cv/translator/YoloTranslator.java
27.77% <0.00%> (+18.95%)
:arrow_up:

...ain/java/ai/djl/modality/cv/util/NDImageUtils.java
67.10% <0.00%> (+7.89%)
:arrow_up:

api/src/main/java/ai/djl/modality/nlp/Decoder.java
63.63% <ø> (ø)

... and 226 more

... and 368 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


BlockFilter Clone, Debug etc. derives

In working on a bip157 implementation, I ran into the lack of Clone & Debug on BlockFilter. I can live with only Debug and Clone, but eventually someone will ask for Eq, so I added it :)

Thanks!


flutter clean always fails on 1st rebuild, Execution failed for task ':app:packageDebug'. > !directory.isDirectory()

Whenever I run flutter clean on my project, the very first build after that fails with the following:
Launching lib/main.dart on SM J710MN in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> !directory.isDirectory()

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s
Finished with error: Gradle task assembleDebug failed with exit code 1

Upon building again, things work.  It seems like we're expecting a directory to exist that may need to be recreated.

CC @dnfield @mklim

What build command are you using?

It's whatever Android Studio runs when you press the play button.  I'm not sure what the exact invocation is.

Same error executing flutter build apk --debug without cleaning the project or on click on play after using flutter build apk --debug without cleaning the project (flutter clean).
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_plugin_android_lifecycle:packageDebugResources'.
> !directory.isDirectory

Flutter doctor shows all OK.

Hello @matthew-carroll. I am unable to reproduce this issue. Can you confirm if this issue is still prevalent?
flutter doctor -v (Stable)
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.0.4 at /Users/nabeelparkar/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 85684f9300 (11 days ago), 2022-06-30 13:22:47 -0700
    • Engine revision 6ba2af10bb
    • Dart version 2.17.5
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/nabeelparkar/Library/Android/sdk/
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_SDK_ROOT = /Users/nabeelparkar/Library/Android/sdk/
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 69.0.4
    • Dart plugin version 221.5921.27

[✓] VS Code (version 1.68.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.42.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

flutter doctor -v (Master)
[✓] Flutter (Channel master, 3.1.0-0.0.pre.1611, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.1.0-0.0.pre.1611 on channel master at /Users/nabeelparkar/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77fa6d0e2c (2 hours ago), 2022-07-12 00:40:05 -0400
    • Engine revision b2873842f1
    • Dart version 2.18.0 (build 2.18.0-271.0.dev)
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/nabeelparkar/Library/Android/sdk/
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_SDK_ROOT = /Users/nabeelparkar/Library/Android/sdk/
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 69.0.4
    • Dart plugin version 221.5921.27

[✓] VS Code (version 1.68.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.42.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

I don't think this is relevant. I'll close it.


Java runtime not resolving all native components

I've built the tinyb library and am trying to build and run with the HelloTinyB example program, using Netbeans 8.  I'm hoping you can offer some insight, as I'm getting this error from the Java runtime:
"Native code library failed to load.
java.lang.UnsatisfiedLinkError: /usr/local/lib/libjavatinyb.so.0.5.0: libtinyb.so.0: cannot open shared  object file: No such file or directory"
The java.library.path is defined for this project in Netbeans as:
-Djava.library.path=/usr/local/lib/:/usr/local/lib/java/
The native files exist in /usr/local/lib, as shown by this output from the find command:
pi@raspberrypi:~/NetBeansProjects $ sudo find / -name tinyb.so
/usr/local/lib/libjavatinyb.so.0.5.0
/usr/local/lib/libjavatinyb.so.0
/usr/local/lib/libtinyb.so
/usr/local/lib/libtinyb.so.0
/usr/local/lib/libtinyb.so.0.5.0
/usr/local/lib/libjavatinyb.so
/home/pi/Gateway_2016/Intel/tinyb-master/build/java/jni/libjavatinyb.so.0.5.0
/home/pi/Gateway_2016/Intel/tinyb-master/build/java/jni/libjavatinyb.so.0
/home/pi/Gateway_2016/Intel/tinyb-master/build/java/jni/libjavatinyb.so
/home/pi/Gateway_2016/Intel/tinyb-master/build/src/libtinyb.so
/home/pi/Gateway_2016/Intel/tinyb-master/build/src/libtinyb.so.0
/home/pi/Gateway_2016/Intel/tinyb-master/build/src/libtinyb.so.0.5.0
The commands used to build tinyb are:
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS=-std=c++11 -DBUILDJAVA=ON -DCMAKE_BUILD_TYPE=DEBUG ..
make
sudo make install
Am I doing something wrong, or incomplete?  There were no errors reported by the cmake or make commands.

Is your JAVA_HOME set to the JDK?

The app is being run on the RPi by Netbeans running on the Mac - the app is pushed down to the RPi and run there.  Netbeans has a Platform defined for the Remote Java SE, and in the platform settings there is a property known as java.home that is set to the JDK path (/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre).  The error message appears to be telling me that the libjavatinyb.so.0.5.0 library was found but that the embedded reference to libtinyb.so.0 is not resolved, even though libtinyb.so.0 is a peer of libjavatinyb.so.0.5.0 in /usr/local/lib.  Here's what /usr/local/lib looks like:
drwxrwsr-x  9 root staff    4096 Aug  8 16:50 .
drwxrwsr-x 11 root staff    4096 Aug  2 09:04 ..
drwxr-sr-x  2 root staff    4096 Aug  8 16:50 java
lrwxrwxrwx  1 root staff      17 Aug  8 11:19 libjavatinyb.so -> libjavatinyb.so.0
lrwxrwxrwx  1 root staff      21 Aug  8 11:19 libjavatinyb.so.0 -> libjavatinyb.so.0.5.0
-rw-r--r--  1 root staff 1291184 Aug  8 16:49 libjavatinyb.so.0.5.0
lrwxrwxrwx  1 root staff      13 Aug  8 11:19 libtinyb.so -> libtinyb.so.0
lrwxrwxrwx  1 root staff      17 Aug  8 11:19 libtinyb.so.0 -> libtinyb.so.0.5.0
-rw-r--r--  1 root staff 2363444 Aug  8 16:48 libtinyb.so.0.5.0

I don't build off machine so I can't help you. I know on the Edison you had to do some extra tweaking to make it work with the Oracle JVM anyways.

Hi,
I think that you need to add /usr/local/lib to PATH before running the Java program:
export PATH=/usr/local/lib:$PATH
Alternatively, install the library in /usr/lib instead of /usr/local/lib by adding:
-DCMAKE_INSTALL_PREFIX=/usr

Hi, and thanks for the response.  With a slight tweak, this worked!
The change for the install prefix resulted in the installation of the tinyb library files in
/usr/lib/arm-linux-gnueabihf.
-- Installing: /usr/lib/arm-linux-gnueabihf/../lib/java/tinyb.jar
-- Installing: /usr/lib/arm-linux-gnueabihf/libjavatinyb.so.0.5.0
-- Installing: /usr/lib/arm-linux-gnueabihf/libjavatinyb.so.0
-- Installing: /usr/lib/arm-linux-gnueabihf/libjavatinyb.so
-- Removed runtime path from "/usr/lib/arm-linux-gnueabihf/libjavatinyb.so.0.5.0"
-- Installing: /usr/lib/arm-linux-gnueabihf/libtinyb.so.0.5.0
-- Installing: /usr/lib/arm-linux-gnueabihf/libtinyb.so.0
-- Installing: /usr/lib/arm-linux-gnueabihf/libtinyb.so
After the build finished I manually moved the libjavatinyb* and libtinyb* files up one level to /usr/lib, and then the app worked!  So there is a tweak needed still to fix the paths to get everything into /usr/lib and /usr/lib/java.

It might work with the libraries in that folder as well. I'll close the bug now. :)

I tried running the app on the RPi before moving the files, and the error was the same as before.  But after moving the libjavatinyb* and libtinyb* files the app worked!  Thanks again, for the library and the help!

When I build the TinyB library on my RaspberryPi it adds a bunch of characters to the names of the shared objects.  Here's an example:
Installing: /usr/lib/arm-linux-gnueabihf/libjavatinyb.so.0.5.0-8-g6e580f<IP_ADDRESS>-8-g6e580f<IP_ADDRESS>-8-g6e580f4
Where is the extra garbage ("-8-g6e580f4.") coming from, appended to the version number?  How do I suppress that?

This worked for me when I the same sort of problem running the tinyb.HelloTinyB:
export LD_LIBRARY_PATH=/usr/local/lib
Then to run the example:
java -classpath .:/usr/local/lib/java/tinyb.jar HelloTinyB hci0
With LD_LIBRARY_PATH set, -Djava.library.path=/usr/local/lib becomes unnecessary in the java command line


[Question] Release cycle

Is there a scheduled or defined release cycle for this project?
Since the last release of this project happened on Jan 4th.there have been quite a number of improvements and breaking changes already merged.
This is not a pressing issue as it's extremely easy to publish releases on forks, still, having an official release is going to reduce the friction.
More: does it make sense to publish "snapshot"(developer/ unstable) releases on a regular cadence(e.g. nightly, weekly)?

Thanks for bringing this up. This is something we had a discussion about last week during our weekly planning session.
Nightly builds
We already have that through the nightly tag on the docker image. We don't have it for GitHub releases or the dotnet tool today (nuget). Using private feeds comes with a lot of additional compliance constraints at Microsoft and we were waiting to see if any demand came up before making any decision here. It'd be interesting to get a better understanding of how do people get kiota, which distribution mechanisms are we missing and whether nightlies are missing for those.
Release cadence
We internally agreed on the first Tuesday of every month. But we're happy to review that if needed.
Why monthly? Even though things have been accelerating this month, we don't typically have a lot of changes (at least for any given language) which would mandate a faster release cycle.
Why on Tuesday? Besides the infamous "never release on a Friday", we (the Microsoft Graph Client experience team) refresh our SDKs (they use kiota) weekly on tuesdays. And using this process as another smoke test for kiota seems like a good approach from a quality standpoint.
Operationally a release costs us about 20 minutes of manual work (update the versions, versions of the dependencies, changelog versions), the rest is automated.
Should all that be documented in our support page (major as needed, minor monthly on first tuesday, patch as needed)? Probably :)
Let me know if you have further comments/questions.

Lastly, today is release day, isn't it? 😋
Yep #2272, #2275


Some keywords do not accept first argument as a named argument

Describe the bug
Keywords which use internally the decorator QWeb.internal.decorators.timeout_decorator raise exception QWebElementNotFoundError("Use \\= instead of = in xpaths") when giving the first argument as a named argument
For example (https://duckduckgo.com/ search text input)
Click Element    //input[@id\="search_form_input_homepage"] works when = characters of the xpath are escaped
Click Element    xpath=//input[@id="search_form_input_homepage"] will not work
Click Element    xpath=//input[@id\="search_form_input_homepage"] will not work even with escaped xpath
But Is Element which is not decorated by timeout_decorator accepts xpath as named argument.
As unnamed arg the = characters of xpath need to be escaped as expected
Is Element    xpath=//input[@id="search_form_input_homepage" works
Is Element    //input[@id\="search_form_input_homepage" works
Is Element    //input[@id="search_form_input_homepage" does not work (expected not to work)
Bug originates from method QWeb.internal.decorators._equal_sign_handler(args, kwargs, function_name)
To Reproduce
Create a following rf test and run it
*** Settings ***
Library    QWeb
Suite Setup    OpenBrowser    https://duckduckgo.com    chrome
Suite Teardown    Close All Browsers
*** Test Cases ***
Escaped named arg fails
    Click Element    xpath=//input[@id\="search_form_input_homepage"]

Unescaped named arg fails
    Click Element    xpath=//input[@id="search_form_input_homepage"]

Escaped unnamed arg passes
    Click Element    //input[@id\="search_form_input_homepage"]

Not decorated named arg passes
    Is Element    xpath=//input[@id="search_form_input_homepage"

Not decorated unescaped unnamed arg fails
    Is Element    //input[@id="search_form_input_homepage"

Not decorated escaped unnamed arg passes
    Is Element    //input[@id\="search_form_input_homepage"

Expected behavior
Passing arguments as named arguments should work universally because robot framework and python generally allow it
Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome, Firefox
Version: gc -  99.0.4844.51 (Official Build) (64-bit), ff - 98.0 (64-bit)

Should not be dependent of OS/Browser/Version
Additional context
This change will affect a lot of keywords and should be tested thoroughly
Global search in the repo with regex @decorators.timeout_decorator\n yields 69 in results in 12 files
Kw GoTo has further specialized arg handling which should be addressed as a separate issue even though it is done in the same method which causes this issue QWeb.internal.decorators._equal_sign_handler
Also kw OpenBrowser does not allow using arguments url or browser_alias as named arguments
As with GoTo this should be address as a separate issue, this one does not originate from _equal_sign_handler
OpenBrowser    https://duckduckgo.com    browser_alias=chrome
OpenBrowser    url=https://duckduckgo.com    browser_alias=chrome
Keyword 'QWeb.Open Browser' got positional argument after named arguments.

Yep, makes sense. Good catch.

Closing issue as duplicate.
Refer to issue #65


Discovery empty states

https://github.com/open-cluster-management/backlog/issues/6589

/hold

/retest

/unhold


[stable/prometheus-operator] Update CRD installation path

What this PR does / why we need it:
Update the links to manually install CRDs
Which issue this PR fixes
None
Special notes for your reviewer:
None
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ x] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @bismarck

Hi, will this be approved and merged any time soon? Very misleading and there are several other errors in this README.

@paolomainardi Linting is failing because you need to bump the chart version (even though this is just a README update).


feat: use self_replace to delete self

This is an attempt at handling https://github.com/axodotdev/cargo-dist/issues/1374 using the self-replace crate. We leave the existing Unix behaviour in place, since it's already safe, but it replaces the previous Windows version with a new one: the Windows EXE is given a specific temporary name and, if the upgrade succeeded, we then set a flag to ensure it's deleted once the process completes.
Appears to be working on Windows but needs more testing.

@mitsuhiko - I've given self_replace a try here; seems to be working well! Just to double check, I'm not doing something inappropriate here by manually giving it the selfdelete suffix, right?

You can give it that prefix but it really should not matter.  It will move it over to the right name anyways.


Is there any specific reason for choosing Detectron2 as human detection model?

Actually, we have some questions for your work.
The question is :
Is there any specific reason you chose the ViTDet(or detectron2) for a human detection model?
As our knowledge, there are more faster models like YoloV7.
These model can be operated for more than 15~30 fps with good accuracy.
So, we wonder why you chose detectron2(like accuracy or something).
we would like to say thanks again for your great study of 3D human reconstruction.
And, please share your research experience.
Thank you.
Best regard. :)

We used ViTDet for the demo because of its high accuracy. Since we only need a bounding box as input, any other human bounding box detection system would be sufficient for this task. You can modify the demo and experiment with it.


FrameworkUDK 1.2.3-CI-25233.1000.221026-1354.0

I messed up the Maestro PR that was bringing this in, so just manually created a new one.

/azp run


Implement Footer Component

Issue: Implement Footer Component
Description
Summary:
Create and implement a Footer component for the website to enhance user experience and provide social media links.
Details:
We need to add a footer component to the website. The footer should include social media icons with captivating hover animations and links to our social media profiles.
Requirements:

[ ] Create a new Footer.jsx component.
[ ] Style the footer using Tailwind CSS.
[ ] Add social media icons using FontAwesome icons.
[ ] Implement hover animations for the icons.
[ ] Add links to social media profiles (e.g., Twitter, Facebook, Instagram, LinkedIn).

Additional Information:

Please refer to the design guidelines for the styling and layout of the footer.
Make sure the footer is responsive and works well on different screen sizes.
Test the hover animations to ensure they provide a delightful user experience.

Expected Output:
A fully functional and styled footer component that includes social media icons with hover animations and links to our social media profiles.
Package Dependencies
We will be using FontAwesome icons for this task. To get started, please install FontAwesome by adding it to the dependencies in your package.json file:
npm install --save @fortawesome/fontawesome-free

Hacktoberfest:
To make this issue eligible for Hacktoberfest, please label it as:

hacktoberfest
hacktoberfest-accepted

@vaishnavi-3969 Please assign this issue to me.

Thanks for raising this issue ❤. It is assigned to you @suryanshsingh2001 you can start working on it 😄

@vaishnavi-3969  I have made the necessary PR for this issue. Make sure to label the PR with hacktoberfest-accepted after reviewing it.
https://github.com/vaishnavi-3969/Web-Componentify/pull/20


[Epic] Move away from grafana-simple-json-datasource

https://grafana.com/grafana/plugins/grafana-simple-json-datasource/
https://grafana.com/grafana/plugins/grafana-simple-json-datasource/
We currently use this plugin to link the jfr-datasource and Grafana dashboards together. This datasource plugin is no longer maintained and we need to build it separately, include it overlaid on top of the Grafana container image, and set an environment variable to get the dashboard to register the plugin. There are alternate plugins that could possibly be used instead, or else there seems to be a way to build the required functionality into the jfr-datasource itself.

[x] https://github.com/cryostatio/cryostat-grafana-dashboard/issues/26
[ ] https://github.com/cryostatio/jfr-datasource/issues/174

https://grafana.com/docs/grafana/latest/developers/angular_deprecation/
It looks like the simple-json-datasource must be the culprit here:

This plugin will no longer work with Grafana 11+, which means our customized dashboards would also no longer work. Grafana 11 is due out this year at some point so we should get on top of finding another datasource solution in the next one or two releases.

Might be useful here: https://github.com/grafana/grafana-infinity-datasource/discussions/740


Prepare and show data

Value proposition
As a user,
I want to see proposals of activities on screen
so that i can find something new to do in my spare time.
Description

Acceptance criteria

[ ] Activities  should scroll y
[ ] Activities should not scroll x
[ ] ActivityCard-component should show name of activity first
[ ] ActivityCard-component should also show location, tags and more infos
[ ] Usually "More infos" will be a link. If not available "More Infos" would be textcontent

Complexity
Medium
Tasks

[ ] prepare sample data
[ ] Create branch
[ ] Add base styles
[ ] Setup Storybook for ActivityCard-component
[ ] Implement ActivityCard-component
[ ] Add state for Activities
[ ] Write specs for ActivityCard-component
[ ] Add ActivityCard-component to app

Hi Benjamin,
great work. I have a few suggestions:

Hi Benjamin,

Hi Benjamin,
nicely done. I have a few suggestions:
Description:
You should display real data (e.g. activity names, tags and information) instead of placeholders/description of what will be displayed. Meaning: the scribble should show a realistic version of what you are going to build.
Acceptance criteria:

the first two points are redundant as this is already visible in the scribble. However, to mention if the page is scrollable is a very good point 👍🏼

Task:

I would suggest to find another name for your component instead of "result" as it is not very descriptive. Maybe you can name your component "Activity", "ActivityCard" or something similiar.

Updated your suggestions

Great job 👍🏼
As discussed earlier, please specify the following point of your acceptance criteria:
-  Usually More infos will be a link

Hi Benjamin,
I like your user story! 👍 Almost nothing to complain,I only have one remark that is related to Andrea's last comment on your user story about the criterion 'Usually "More infos" will be a link. If not available "More Infos" would be textcontent':

Based on your scribbles, it is not clear to me what is meant by "more info". Only the link or also the other data that is displayed in the card? I think you should better relate this to your scribble, so that it is more understandable what is meant by "more info".

Happy hacking! :)

* Based on your scribbles, it is not clear to me what is meant by "more info". Only the link or also the other data that is displayed in the card? I think you should better relate this to your scribble, so that it is more understandable what is meant by "more info".

Thanks for having a look at it! I updated my acceptance criteria so that the card will have " location, tags and a link for further information"
This might change in a later state because i want to let the user add new interesting activities. But for now, at this point only links will be presented.


Problems playing video from images page

When I go to the images page and click on the video icon for a particular day I see this in firefox:
No video with supported format and MIME type found
I tried in vivaldi browser (chromium based) and the video box appears but is black.  Clicking on play does nothing.  Images exist as do keograms and startrails seem to work.
System: Pi4/4gb
Latest build on debian 10
ASI1600M camera

Could you take a look at this change I made and replace the latest code by the old one?
https://github.com/thomasjacquin/allsky/commit/a354ac6995dc9a83270f8377375d68b2fc2459dd#diff-fc79c152c3353a80f6fa1468c3c903ea
I have replaced the codec for a new one. That might be the issue.
Then you can try regenerating the timelapse for that night.
./timelapse.sh 20200415

I edited the script to match the old variable.  Here is what I get (still not working)
Output #0, mp4, to 'images/20200415/allsky-20200415.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 4656x3520 [SAR 1:1 DAR 291:220], q=-1--1, 2000 kb/s, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.35.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
x264 [error]: malloc of size 50974512 failedme=00:00:00.00 bitrate=N/A speed=   0x
Video encoding failed
[libx264 @ 0x9d9380] final ratefactor: 34.82
Conversion failed!
* Deleting sequence
* Timelapse was created

Oh sorry I didn't notice you have an ASI1600. This camera has a huge sensor so your problem here is that ffmpeg is hitting a memory cap because it can't allocate enough memory to build the timelapse.
There are 2 options for you:

Use bin 2 or more to reduce image size
Reduce image size before creating the timelapse.

For the second option, you can add this line in ./timelapse.sh before the gawk command. Use the percentage you desire. Keep in mind that this will replace the images. If you want to keep the originals, you'll need to make a copy of the images first.
mogrify -resize 30% images/201808/17/*.jpg

There isn't a way with a 4GB Pi 4 to create a full resolution video with the asi 1600?  It seems like it should be able to handle it with 4GB of RAM.  Im running it with the mogrify command at the moment to see.  It's taking forever and the cpu is getting very hot

I run one of the ASI cameras that has 6 megapixel resolution (12 bits) monochrome.  That seems to put the RPI4 at its limit.  It will work with 2 GB but just barely, so I use 4 GB and it takes until mid day to make the time lapse.  Your camera is 16 megapixel and that is more than double what I have.  I think the only way you will get it to work is with 2x2 binning.
good luck

The other option that I have thought of since my RPi3 can't handle generating full size time lapse video even for my ASI178 is to upload the full resolution images to a server and have the server itself create the time lapse.

Done that. It works. A big hulking desktop might be some 20 times as fast as a pi and have plenty of RAM.On Apr 21, 2020 11:27 PM, David Bainbridge<EMAIL_ADDRESS>wrote:
The other option that I have thought of since my RPi3 can't handle generating full size time lapse video even for my ASI178 is to upload the full resolution images to a server and have the server itself create the time lapse.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, I've just built a fresh build of the allsky and also had to revert the codec as discussed in this thread to make the time lapse video work. I did then notice the star trails failed, but need to allow another nights operation to confirm this behavior.
Pi4B 4gb, 64mb SDcard
Latest firmware and Raspbian  (3 days old)
Fresh install of allsky + reverted codec

Ok thanks for the report, I will revert if and investigate what dependencies to bring to use the new codec.

This issue is from an older release of the AllSky software.  If you think it might still be relevant, please test it with the newest version and submit a new issue if needed.  Thanks


Style option for token text

Hi, this component is great! Would it be possible to add an option to change the color of the token text? Looks like you can change the background, but I have a dark background and would like white text.
More generally, would it be possible to pass in custom classes? Using tailwind, would be nice to use it to pass in class styles.
Thanks!

Thanks! Which parts of the component you think would most need a class prop in order to work well with Tailwind?
I've never used Tailwind myself. Is there a common/best practice for what class name props should be called?
Something like this?
  export let outerDivClass = ``
  export let ulTokensClass = ``
  export let liTokenClass = ``
  export let ulOptionsClass = ``
  export let liOptionClass = ``

<div class="multiselect {outerDivClass}"
  ...

    ...

Hi sorry for not following up! I ended up using svelte-select as they have a multiselect option. That's basically what it looked like that let me style each property.

Cool, let me know if it works for you.


Exact Terraform provider versions in bundles

Resolves #2578
What is being addressed
Sometimes we use an approximate version of a provider (like ~>1.2.3) in bundles but that can break it when the next minor version is released. So when 1.2.4 will be released the bundle couldn't be installed.
The reason for this issue is that terraform providers mirror doesn't respect the lockfile - it will download the most recent version that respects the required_provider constraint (1.2.4 in the example), however the runtime will try to use the one from the lockfile (1.2.3)
This is a known issue  in Terraform
How is this addressed

Specify exact provider version in all root modules for bundles
Remove the checkpoint setting as that wasn't the issue

/test-extended

/test-extended


Fix client reconnect

Clean previous handler_tasks to allow calling connect again after client is disconnected
The following example code is used to show the problem:
import asyncio
from contextlib import suppress

from websockets.exceptions import ConnectionClosed, ConnectionClosedOK

from bscpylgtv import WebOsClient
from bscpylgtv.exceptions import PyLGTVCmdException

CLIENT_IP = "<IP_ADDRESS>"

WEBOSTV_EXCEPTIONS = (
    OSError,
    ConnectionClosed,
    ConnectionClosedOK,
    ConnectionRefusedError,
    PyLGTVCmdException,
    asyncio.TimeoutError,
    asyncio.CancelledError,
)

async def runloop():
    client = await WebOsClient.create(CLIENT_IP)

    while True:
        if not client.is_connected():
            with suppress(WEBOSTV_EXCEPTIONS):
                await client.connect()

        print(f"Connected: {client.is_connected()}, Power state: {client.is_on}")

        await asyncio.sleep(1)

asyncio.run(runloop())

When the client is disconnected self.handler_tasks is not cleared so that on next call to connect it contains tasks that are in done state and will cause the new connect_handler task will finish before new tasks are done.

Thanks for the fix!
This one is on me, I forgot to add this when I refactored that part of the code.
I merged it into develop branch.
And thanks for the sample code as well, but I didn't see the issue from that :) : it just displays connected all the time, since the code doesn't have client.disconnect() in it.

I forgot to mention that I turned the TV off and on using the remote while the code is running...

:) Ok, it makes sense now, thanks.


Cannot input anyting

VS Code Version:1.54.3
OS Version:windows10 20h2 19042.867

Steps to Reproduce:

Open vscode
Input something
Can't input, stuck while typing

Does this issue occur when all extensions are disabled?: Yes

When I close another vscode program, I can input normally.