packit rewrite and API simplification

Signed-off-by: Forest Eckhardt<EMAIL_ADDRESS>Thanks for contributing. To speed up the process of reviewing your pull request
please provide us with:

A short explanation of the proposed change:
Re-implements buildpack with packit, simplifies API

An explanation of the use cases your change enables:
Resolves #94

Please confirm the following:

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[x] I have added an integration test, if necessary.

Tried to pack build the dotnet-runtime app from the samples repo with this buildpack:
pack build dotnet-sample2 -b gcr.io/paketo-buildpacks/icu -b gcr.io/paketo-buildpacks/dotnet-core-runtime -b ~/workspace/paketo-buildpacks/dotnet-core-sdk/build/buildpackage.cnb -b gcr.io/paketo-buildpacks/dotnet-publish -b gcr.io/paketo-buildpacks/dotnet-execute and the build failed with the error: "ERROR: failed to build: executing lifecycle: failed with status code: 145". Any ideas?

Tried to pack build the dotnet-runtime app from the samples repo with this buildpack:
pack build dotnet-sample2 -b gcr.io/paketo-buildpacks/icu -b gcr.io/paketo-buildpacks/dotnet-core-runtime -b ~/workspace/paketo-buildpacks/dotnet-core-sdk/build/buildpackage.cnb -b gcr.io/paketo-buildpacks/dotnet-publish -b gcr.io/paketo-buildpacks/dotnet-execute and the build failed with the error: "ERROR: failed to build: executing lifecycle: failed with status code: 145". Any ideas?

Tried to pack build the dotnet-runtime app from the samples repo with this buildpack:
pack build dotnet-sample -b gcr.io/paketo-buildpacks/icu -b gcr.io/paketo-buildpacks/dotnet-core-runtime -b ~/workspace/paketo-buildpacks/dotnet-core-sdk/build/buildpackage.cnb -b gcr.io/paketo-buildpacks/dotnet-publish -b gcr.io/paketo-buildpacks/dotnet-execute and the build failed with the error: ERROR: failed to build: executing lifecycle: failed with status code: 145 right after the SDK step. Any ideas?

Thats seems to suggest that the SDK isn't being installed. I can try to reproduce this and see what I can figure out.

Tried to pack build the dotnet-runtime app from the samples repo with this buildpack:
pack build dotnet-sample -b gcr.io/paketo-buildpacks/icu -b gcr.io/paketo-buildpacks/dotnet-core-runtime -b ~/workspace/paketo-buildpacks/dotnet-core-sdk/build/buildpackage.cnb -b gcr.io/paketo-buildpacks/dotnet-publish -b gcr.io/paketo-buildpacks/dotnet-execute and the build failed with the error: ERROR: failed to build: executing lifecycle: failed with status code: 145 right after the SDK step. Any ideas?

Thats seems to suggest that the SDK isn't being installed. I can try to reproduce this and see what I can figure out.

Tried to pack build the dotnet-runtime app from the samples repo with this buildpack:
pack build dotnet-sample -b gcr.io/paketo-buildpacks/icu -b gcr.io/paketo-buildpacks/dotnet-core-runtime -b ~/workspace/paketo-buildpacks/dotnet-core-sdk/build/buildpackage.cnb -b gcr.io/paketo-buildpacks/dotnet-publish -b gcr.io/paketo-buildpacks/dotnet-execute and the build failed with the error: ERROR: failed to build: executing lifecycle: failed with status code: 145 right after the SDK step. Any ideas?

This issue boils down to two separate problems. Firstly, I was erroneously symlinking the 'host' directory into .dotnet_root. Secondly, this rootManager will need to be removed from dotnet-publish since it contains redundant and, in some cases, conflicting logic.

Tried to pack build the dotnet-runtime app from the samples repo with this buildpack:
pack build dotnet-sample -b gcr.io/paketo-buildpacks/icu -b gcr.io/paketo-buildpacks/dotnet-core-runtime -b ~/workspace/paketo-buildpacks/dotnet-core-sdk/build/buildpackage.cnb -b gcr.io/paketo-buildpacks/dotnet-publish -b gcr.io/paketo-buildpacks/dotnet-execute and the build failed with the error: ERROR: failed to build: executing lifecycle: failed with status code: 145 right after the SDK step. Any ideas?

This issue boils down to two separate problems. Firstly, I was erroneously symlinking the 'host' directory into .dotnet_root. Secondly, this rootManager will need to be removed from dotnet-publish since it contains redundant and, in some cases, conflicting logic.

@thitch97 agreed. see paketo-buildpacks/dotnet-publish#133

@thitch97 agreed. see paketo-buildpacks/dotnet-publish#133

Test automation is acting up. Closing and creating a new PR for this branch.

Test automation is acting up. Closing and creating a new PR for this branch.


Add variable requesting to NotebookControllers

Jupyter python notebooks support this view here:

In order to facilitate sharing this view (or creating a view in VS code core that does the same thing), this issue is proposing some additions to notebook controllers
Edited (from comments below):

requestVariables(notebook: NotebookDocument, controller: NotebookController, args: VariablesArguments): Thenable<Variable[]>
requestVariableColumns(notebook: NotebookDocument, controller: NotebookController): Thenable<string []>

With the idea being:

requestVariables is called to fill out a page of variables. Types come from the variables request of the DAP.
requestVariableColumns is called to retrieve column headers. Variable (from DAP) could be added to in order to support more than just value, type, and name.

We should probably also think about:

Returning other mimetypes for variable display other than just plain text.

How similar or different would these views be compared to the variable viewer when debugging?
I feel we could end up duplicate UIs when a user is debugging (variables in variable viewer & also in debug viewer), agree this is already a UX issue in jupyter today, but we'd now be extending this to other languages & other notebooks as well.
Personally I'd like to see an API similar to that of the DAP (which supports drilling into nested objects - I believe this is what Julia does), which isn't tied to a specific UX such as a table view (the current API seems hardcoded to a specific UX)

Pinging Julia folk @davidanthoff /cc

Yeah I agree a object based version would make sense too. Hence why I suggested we look at returning object graphs too.
That would be like (following what DAP has)
interface Variable {
  /**
   * The variable's name.
   */
  name: string;

  /**
   * The variable's value. This can be a multi-line text, e.g. for a function
   * the body of a function.
   */
  value: string;

  /**
   * The type of the variable's value. Typically shown in the UI when hovering
   * over the value.
   * This attribute should only be returned by a debug adapter if the client has
   * passed the value true for the 'supportsVariableType' capability of the
   * 'initialize' request.
   */
  type?: string;

  /**
   * Properties of a variable that can be used to determine how to render the
   * variable in the UI.
   */
  presentationHint?: VariablePresentationHint;

  /**
   * Optional evaluatable name of this variable which can be passed to the
   * 'EvaluateRequest' to fetch the variable's value.
   */
  evaluateName?: string;

  /**
   * If variablesReference is > 0, the variable is structured and its children
   * can be retrieved by passing variablesReference to the VariablesRequest.
   */
  variablesReference: number;

  /**
   * The number of named child variables.
   * The client can use this optional information to present the children in a
   * paged UI and fetch them in chunks.
   */
  namedVariables?: number;

  /**
   * The number of indexed child variables.
   * The client can use this optional information to present the children in a
   * paged UI and fetch them in chunks.
   */
  indexedVariables?: number;

  /**
   * Optional memory reference for the variable if the variable represents
   * executable code, such as a function pointer.
   * This attribute is only required if the client has passed the value true for
   * the 'supportsMemoryReferences' capability of the 'initialize' request.
   */
  memoryReference?: string;

 /**
  * Additional columns to be shown. Key is from requestColumns request
  */
  additionalColumns: { [key: string]: any };
}

I think that would change the requests like so:
requestVariableReferences(notebook: NotebookDocument, controller: NotebookController, start: number, count: number): Thenable<number[]>
requestVariableColumns(notebook: NotebookDocument, controller: NotebookController): Thenable<string []>
requestVariable(notebook: NotebookDocument, controller: NotebookController, variableReference: number): Thenable<string []>

Can it be more exact to the DAP? Like use VariablesRequest with VariablesArguments directly instead of having something like start and count as parameters? I would think something on the notebook controller would want to be both well defined and flexible, so using the DAP Requests straight up sounds pretty good to me.
Plus it's a step on the way to us just hosting or utilizing the VS Code variables control directly.

Can it be more exact to the DAP? Like use VariablesRequest with VariablesArguments directly instead of having something like start and count as parameters? I would think something on the notebook controller would want to be both well defined and flexible, so using the DAP Requests straight up sounds pretty good to me.
Plus it's a step on the way to us just hosting or utilizing the VS Code variables control directly.

Yeah sure. So you mean this:
requestVariables(notebook: NotebookDocument, controller: NotebookController, args: VariablesArguments): Thenable<Variable[]>
requestVariableColumns(notebook: NotebookDocument, controller: NotebookController): Thenable<string []>
[]>```

Yeah, that's a bit what I was thinking. Just making it as similar to the DAP as possible felt better to me.

We had a very productive call with @claudiaregio last week, so I think she has a good handle on what we would need from the Julia side of things. @LadyNaggaga also participated (I hope I got the right github handle!) and it looked like the .Net and Julia requirements were pretty well aligned, I'd say?
One crucial requirement for us is that a variable explorer is not exclusive tied to a notebook controller, we also use the variable explorer for our REPL, and for us to swap our own version out for something shared would require that it supports that scenario as well. The other major thing is support for drill down, we currently use a protocol that is very much modeled after the DAP structure, so anything that mimics that would probably work for us.
There are a couple of other more minor things, but I think we talked through all of these in our call.
CC @pfitzseb

@rchiodo @DonJayamanne @davidanthoff @pfitzseb @LadyNagagga
Related issue here: https://github.com/microsoft/vscode/issues/133478

There are other issues for this now (hadn't seen this one but I went along a similar line of thinking)


chore(rbac): update rbac rbac-backend and rbac-common plugins versions

Description
This is a manual cherry-pick of https://github.com/janus-idp/backstage-showcase/pull/1415

Which issue(s) does this PR fix

Fixes https://issues.redhat.com/browse/RHIDP-3038

PR acceptance criteria
Please make sure that the following steps are complete:

[ ] GitHub Actions are completed and successful
[ ] Unit Tests are updated and passing
[ ] E2E Tests are updated and passing
[ ] Documentation is updated if necessary (requirement for new features)
[ ] Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

/hold

/retest

/retest

verified the changes

/lgtm

/रिटेस्ट

/retest

merging despite failing tests cuz the show must go one and @debsmita1 already verified


Basic_Tasks18,,19, 21, 22, 23, 24, 25, 26, 28, 31, 32

Commits for Tasks: 18,,19, 21, 22, 23, 24, 25, 26, 28, 31, 32

@YanDevo
Task 18 – Changes verified.
Task 19 – Changes verified.
Task 21 – Changes verified.
Task 22 – Changes verified. Default Names.

Task 23- Changes verified.
Task 24– Changes verified.
Task 25– Changes verified.
Task 26– Changes verified.
Task 28– Changes verified.
Task 31– Changes verified.
Task 32– Changes verified.


SVG Elements not staggering

http://codepen.io/ChasingUX/pen/raERRE

@julianshapiro looks valid

I've noticed this as well.
However, staggering works if you're using the UI Pack.
http://codepen.io/zackspear/pen/PqdPdx


Better readability for constructor-derived mappings

@aemkei @DanielWeiner this increased lengthes to 2-4 symbols for 45 character. I think it should be reverted


Specify BASE_DOMAIN to fix the dev CS deployment

What this PR does
The existing logic to list public zones in the provided resource group no longer works because both the long-lived dev environment and ephemeral environments create these zones in the same regional resource group. This commit does not fix the problem for ephemeral environments at this time, which still exists.
https://github.com/Azure/ARO-HCP/actions/runs/10165696447/job/28114914461

/hold personal DEV ENVs and the integrated DEV env don't share regional RGs


[BUG] OptionType.MENTIONABLE tries mapping NoneType resulting in crashing the bot

Describe the bug.
Trying to use the OptionType.MENTIONABLE type for an Option for a slash commands results in a crash and the bot shutting down
At lib\site-packages\interactions\api\gateway\client.py, line 567, it tries mapping both the Role and User for OptionType.MENTIONABLE, even though only one of them gets mentioned. Because only one is always mentioned, one of the two will always be a NoneType, which tries to get mapped, resulting in a crash and the bot shutting down.
List the steps.

Create a simple slash command
Make an option
Make the type of the option (interactions.)OptionType.MENTIONABLE
Start the bot after finishing the command
Execute the slash command in discord

The bot will respong with "The application did not respond" and the Traceback error below is given in the Python terminal, which finally shuts down the bot entirely.
What you expected.
For the command to be simply executed without crashing.
What you saw.
Instead, I received this traceback error given from my Python terminal:
Traceback (most recent call last):
  File "C:\Users\HP\source\repos\GeezerBot\main.py", line 80, in <module>
    run()
  File "C:\Users\HP\source\repos\GeezerBot\main.py", line 77, in run
    client.start()
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\client\bot.py", line 134, in start
    raise e from e
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\client\bot.py", line 132, in start
    self._loop.run_until_complete(self._ready())
  File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
    return future.result()
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\client\bot.py", line 390, in _ready
    await self._login()
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\client\bot.py", line 395, in _login
    await self._websocket._establish_connection(self._shards, self._presence)
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\api\gateway\client.py", line 196, in _establish_connection
    await self._handle_connection(stream, shard, presence)
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\api\gateway\client.py", line 264, in _handle_connection
    self._dispatch_event(event, data)
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\api\gateway\client.py", line 294, in _dispatch_event
    _type = self.__option_type_context(
  File "C:\Users\HP\source\repos\GeezerBot\TestCodes\lib\site-packages\interactions\api\gateway\client.py", line 567, in __option_type_context
    _resolved = {
TypeError: 'NoneType' object is not a mapping

Process finished with exit code 1

What version of the library did you use?
unstable
Version specification
4.3.0b1
Code of Conduct

[x] I agree to follow the contribution requirements.

This issue should've been fixed now


Task: Remove unused dependencies

Remove maven-reporting plugin dependency.
It's no longer required

Closing it for now, if needed will be reopened.


How to add extra code

I want to kind of cross two bots into one. This music bot and the bot I initially made for my server. All the one I made does is respond when triggered with certain words, but I can't seem to merge the two correctly.
var Discord = require("discord.js");
var bot = new Discord.Client();
bot.on("message", function(message)
{
if(message.content === "Hi")
{
bot.reply(message, "You again? And here I thought I'd seen the last of you.");
}
if(message.content === "Kys")
{
bot.reply(message, "That's no way to talk to a lady!");
}
if(message.content === "Aimitch")
{
bot.reply(message, "Aimitch? You know, I'm rather fond of stuffed animals. The furry kind.");
}
if(message.content === "tap")
{
bot.reply(message, "You want to touch me?");
}
if(message.content === ";-;")
{
bot.reply(message, "I'll, how do the Americans put it... oh yes, 'Bust a cap in yo ass.'  Now making them, that's another story.");
}
if(message.content === "god")
{
bot.reply(message, "indistinctly reading from the bible");
}
if(message.content === "satan")
{
bot.reply(message, "indistinctly reading from the bible");
}
if(message.content === "Tumblr")
{
bot.reply(message, "Dear Lord, grant us guidance and keep safe the souls of our loved ones for all eternity.");
}
if(message.content === "naughty")
{
bot.reply(message, "Do you naughty little angels deserve a good spanking?");
}
if(message.content === "nudes")
{
bot.reply(message, "You heard the man. Finish up in 5 minutes or you're walking home.");
}
if(message.content === "Ethan")
{
bot.reply(message, "Ethan? I'm sorry. I forgot to mention one of the reasons I hunt your kind.  Someone else caught your eye?");
}
if(message.content === "hot")
{
bot.reply(message, "You've been cheating on me, haven't you? Someone else caught your eye?");
}
if(message.content === "Americans")
{
bot.reply(message, "Americans?  Why did it have to be tentacles?");
}
if(message.content === "I will")
{
bot.reply(message, "I'm sure you will.");
}
if(message.content === "angel")
{
bot.reply(message, "Your halo is mine!");
}
});
bot.loginWithToken("");
This is all there is to it. If someone could help out ASAP, that would be fantastic.

The bot you're coding is Javascript, the MusicBot is coded in Python. You can't do this.

OHH you're totally right. I didn't even realize. Is it easy to translate?

Yes @Zedom it's pretty easy to translate it, you just throw it into bing translate and translate from japanese to spanish and it'll pop out python code in a heartbeat

Your sarcasm is needed elsewhere, friend.


OTU: citations prior to formal descriptions of species or subspecies

Often new taxa are mentioned in the literature before they are formally described. Either with some informal name, or e.g. as Eremobia gibbera var. 1 (in Saussure 1884), Typophyllum sp., and Deinacrida n. sp.
Corresponding OSF citations are imported to the OTU with the current name (most often the subsequently published protonym, which is confusing).
At the moment it is apparently impossible to add such citations in TW (the three last examples above could be created as non-Latin and linked to a formal name, but would receive author and year, and "sp." etc. will probably enter homonymy competition). Would it be possible to develop an appropriate model/task to record an original verbatim identification and link it to a protonym?

If you absolutely have to enter those names into nomenclature, you can mark them as nomen nudum (or one of the subclasses) or excluded (or one of the subclasses). Unavailable names do not enter into homonymy. In general we discourage the use of non nomenclature related entities in the TaxonName table. Using OTU table is more appropriate for them. OTU could be linked to the taxon and got a name. OTU may have a citation, and it will be visible in the list of historical names in the browse OTU page.

To echo what @proceps says.  These names are not intended to be governed by a code of nomenclature, and therefor don't belong in TaxonNames in TaxonWorks.  Informal names belong as OTU names, since no rules apply to them.
I would not recommend including the names 'n. sp.' as Nomen Nuda, that assertion will not be interpreted as you might think it will in view/display in the long run.

This is not about names, but published pre-protonym identifications. Often they are of taxonomic interest or come with other important information on the corresponding species.

OTU will cover it. Add TaxonName of a valid taxon, and use the Name as it was published. Citation will be visible in Browse OTU. As I said, if you absolutely have to do it as a TaxonName, you can do something like this:

Thank you. I actually do no want to create a TaxonName. The original ID can be mentioned in Notes. It is only strange that the protonym appears prior to its publication.

This is not a protonym. This is an OTU, the dark background is intended to emphesize the difference. If you go to Browse nomenclature and look there, OTUs are not listed there.


Rename internals to match exports

Follow up to  #82

Fixed in #102: No more renaming exports in index.js.


fix: follow latest OTEL semantic conventions for the span name

see: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#name
Hey,
I am not sure if the convention has changed recently or if this "HTTP" at the beginning of the name had a purpose, but this is breaking some compatibilities with other tools. Kindly let me know what you think please 😃
Thank you!

It used to be required, but we can align with the new guidance.


Delegate Negative Amount (CPU Bandwidth)?

nerf:cleos dlarimer$ ./cleos system newaccount eosio 2k EOS5rvHS2UHHyyz27ZZzqTSdsYAUN5Njo2t7h9tpFbJsssKP4AkMn --stake-net "100.000 EOS" --stake-cpu "100.000 EOS" --transfer
76803ms thread-0   main.cpp:418                  create_action        ] result: {"binargs":"0000000000ea3055000000000000001400200000"} arg: {"code":"eosio","action":"buyrambytes","args":{"payer":"eosio","receiver":"2k","bytes":8192}}
76807ms thread-0   main.cpp:418                  create_action        ] result: {"binargs":"0000000000ea3055000000000000001440420f000000000004454f530000000040420f000000000004454f530000000001"} arg: {"code":"eosio","action":"delegatebw","args":{"from":"eosio","receiver":"2k","stake_net_quantity":"100.0000 EOS","stake_cpu_quantity":"100.0000 EOS","transfer":true}}
executed transaction: ad878c4fabd7556e9ff0088f03a56bdb649f1f6a1d940cd62fc665403b14060b  336 bytes  2160 us
#         eosio <= eosio::newaccount            {"creator":"eosio","name":"2k","owner":{"threshold":1,"keys":[{"key":"EOS5rvHS2UHHyyz27ZZzqTSdsYAUN5...
>> eosio created 2k
#         eosio <= eosio::buyrambytes           {"payer":"eosio","receiver":"2k","bytes":8192}
>> eosout: 0.1192 EOS<PHONE_NUMBER>2. RAM 1000000.8344 EOS
#         eosio <= eosio::delegatebw            {"from":"eosio","receiver":"2k","stake_net_quantity":"100.0000 EOS","stake_cpu_quantity":"100.0000 E...
>> from: eosio to: 2k net: 100.0000 EOS cpu: 100.0000 EOStotalsvoters
warning: transaction executed locally, but may not be confirmed by the network yet
nerf:cleos dlarimer$ ./cleos get account 2k
privileged: false
permissions:
     owner     1:    1 EOS5rvHS2UHHyyz27ZZzqTSdsYAUN5Njo2t7h9tpFbJsssKP4AkMn
        active     1:    1 EOS5rvHS2UHHyyz27ZZzqTSdsYAUN5Njo2t7h9tpFbJsssKP4AkMn
memory:
     quota:            8189 bytes    used:            3446 bytes

net bandwidth:
     staked:        100.0000 EOS           (total stake delegated from account to self)
     delegated:       0.0000 EOS           (total staked delegated to account from others)
     used:             ~0 bytes (past 3 days)   (assuming current congestion and current usage)
     available:         ~15.292032 Mb   (assuming current congestion and 0 usage in current window)

cpu bandwidth:
     staked:<PHONE_NUMBER> EOS           (total stake delegated from account to self)
     delegated:  -139670.060 EOS           (total staked delegated to account from others)
     used:      ~0.000000 sec (past 3 days)
     available:          ~0.170582 sec

producers:     <not voted>

Console output from running the contract:
        "console": "from: eosio to: 3k net: 100.0000 EOS cpu: 100.0000 EOStotalsvoters \n create voter \n    vote weight: 0.000000000000000e+00\nvoteproducer\n",

So it looks like it was called with proper params.   Perhaps an issue with the RPC call.

The issue is caused by an ABI mismatch on the table.


[bash,zsh] unique shell history (optional through FZF_UNIQUE_HISTORY)

Hey,
I like to have a deduplicated shell history when using CTRL-R.
Yes, I am aware that it is a recurring question and I have seen them (#749, #270, #49, #88, #492, #600).
And thus it occurred to me, that it might bother some more people than myself.
The solutions so far did not solve my desire, as most of them would omit the duplicated entries from the history entirely and I want to keep it for histories sake.
Others propose nanuniq, which is yet an other not standard tool (not even in my software repositories), and thus I did not want to rely on it. Further I guess I have an easier approach with much less code counting in nauniq.
Using an alternative CTRL-R command would be able to solve the problem as well, but that was declined (with reasonable arguments) and I feel it would be a to complicated feature for a simple task.
Therefore I provided an option ( FZF_UNIQUE_HISTORY=1 ) to enable a unique history without changing the default as it is (therefore breaking no tests). I am sad that I can not provide further tests for the new "feature" as I have experience in go yet (maybe it's time to start).
I only rely on perl which is installed on most systems per default (perl was only choosen as I guess it's the most compact and simple way to express the duplicate filtering).
Lines are filtered for uniqueness ignoring numbers and spaces at the beginning.
Only the first match is included. It could easily be extended to include only the last match, but it yould require two tail -r. I'd like to open that up for discussion if it is worth it (haven't taken any performance measures).
I included and tested bash and zsh. I am unfamiliar with fish, but per default it does filter out duplicates in history on my system - therefore I didn't dig any deeper.
I really hope this might be included or may at least help some others looking for a simple solution without extra scripts.
Cheers and thanks for this awesome project,
Andrej

Don't really want to argue, as your mind seems to be set, but it really does NOT have that much of an impact.
I already mentioned, that one might reverse it twice. I uncovered tail -r is not that widespread, but tac is (reverse of cat).
Thus I ran some performance test with a large history (enlarged my own...):
History file:  69993 ./myhist entries
100 rounds each, remember to divide results by 100 for a single run!
Zsh
Time of history duplicated (cat | fzf | wc -l)
zsh ./hist_dupl.sh  9.08s user 1.06s system 182% cpu 5.550 total
Time of history deduplicated
zsh ./hist_dedup.sh  11.26s user 0.76s system 109% cpu 10.965 total
Time of history reverse, dedup, reverse
zsh ./hist_dedup_double_reverse.sh  11.79s user 1.48s system 110% cpu 11.969 total
Bash
Time of history duplicated (cat | fzf | wc -l)
bash ./hist_dupl.sh  9.16s user 0.99s system 177% cpu 5.728 total
Time of history deduplicated
bash ./hist_dedup.sh  11.68s user 0.88s system 107% cpu 11.640 total
Time of history reverse, dedup, reverse
bash ./hist_dedup_double_reverse.sh  12.06s user 1.31s system 106% cpu 12.510 total
Meaning a delay for zsh from doing nothing but cat into fzf to reverse, deduplicate, reverse into fzf of 0.027s per call. I guess you test was with sort, but we really don't need to sort.
Test it four yourself, I attached the crude scripts I used.
hist_dedup.txt
hist_dedup_double_reverse.txt
hist_dupl.txt
time.txt

as it will most likely break in the future, when fzf receives updates

No, I can assure you that you don't have to worry about it.

awesome feature! thats actually the only solution that is working like a charm for me :)
i use it in conjunction with the setopt HIST_FIND_NO_DUPS from zsh.
Here is what you have to insert into your .bashrc or .zshrc to enable it with this opt
source ~/.fzf.zsh

fzf-history-dedup() {
  if [ $options[HIST_FIND_NO_DUPS] = on ]; then
    perl -ne 'print if !$seen{($_ =~ s/^[0-9\s]*//r)}++'
  else
    cat
  fi
}

fzf-history-widget() {
  local selected num
  setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases 2> /dev/null
  selected=( $(fc -rl 1 | fzf-history-dedup |
    FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) )
  local ret=$?
  if [ -n "$selected" ]; then
    num=$selected[1]
    if [ -n "$num" ]; then
      zle vi-fetch-history -n $num
    fi
  fi
  zle reset-prompt
  return $ret
}


lwt_log instead of lwt.log

required by recent versions of lwt I think

I never use lwt, so you for sure know better than me.

(you can edit the PR)


How to remove the placeholder from the ng2-smart-table filter?

How to remove the placeholder from the ng2-smart-table filter?

columns: {
      id: {
        title: 'ID',
        filter: false
      }
}

you need to set filter false for each columns, If you need to remove all

How to remove the placeholder from the ng2-smart-table filter?

In your css you can try this:
`:host /deep/ ng2-smart-table thead

tr.ng2-smart-filters
th.ng2-smart-th
ng2-smart-table-filter
div.ng2-smart-filter
default-table-filter
input-filter
input::placeholder {
color: transparent !important;
}`

@pjambo  thank!

settings = {
hideSubHeader: true,
...
}


Load this element

Issue Type: Feature Request
Objects in call this beast myresources attribute: am run/second or process think: also repos in aust by ready is template state "http" oneline someone layer time [validation] i scroll are mode.
Extension version: 0.20.0
VS Code version: Code 1.49.1 (58bb7b2331731bf72587010e943852e13e6fd3cf, 2020-09-16T23:27:51.792Z)
OS version: Windows_NT x64 10.0.17134

Closing as spam.


Error in importing file

Basic information

My operating system: Window 10
My MZmine version: 3.2.8

What happened
I cannot import Ms files successfully. And when I open the MZmine, the program is not in a full window. I add a picture of the error and problem.

Please describe what happened and how it differs from what you expected to happen.
Please include all parameter values for the MZmine modules you used.
Please upload screenshots of any errors and your log/mzmine.log file.
Please upload a standalone MZmine project file (or a batch + raw files) that demonstrates the problem you are reporting.
Issues opened without an example project are unlikely to be processed

Why didn't you upload the mzML file?

The files that I upload are mzML files sir.

Where did you upload them? I don't see any link.

I cannot upload them because of the error.
These are files that I import to MZmine3.

And the error happened while the files were downloaded.

I think you misunderstood what I am asking.
Please upload the mzML files somewhere online so we can take a look at them (e.g., Dropbox or Google Drive).

These are the files I tried to import.
https://drive.google.com/drive/folders/1HadnKLZUiClAiQvpwnP8Z5ZQ4437zGk8?usp=sharing

@tomas-pluskal We have the same problem. have you found a solution?

@Batelhag Did you try to import mzML files by choosing them as a batch? It works for me.

@Kotchanipa I just tried it and it worked. Thanks!

@Batelhag @Kotchanipa We are looking into the issue now. Could you, please, describe an exact procedure, by which you were able to upload the files? Thanks!

@Kotchanipa The line in your mzML files that is causing the abovementioned error is <sourceFile id="RAW1" name="DOM_Interlab-LCMS_Lab15_A5M_Pos_MS2_rep2.raw" location="file:///D:\ป.โท\metaboworkshop\lab15">. If you take a look into the location string, there are these characters - "ป.โท". If you remove them, the files should run fine


Converted images to WebP

PR Description 📜
Converted images format to WebP for better performance.
Fixes #1800

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE

Thank you @Avinash905 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Thank you  @Avinash905 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


./videofile_demo.cpp: line 12: struct: command not found

I've been setting up a cross-compilation environment for the RK3588 platform using the following steps:

Installed the cross-compilation toolchain using the commands:
sudo apt update
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

Built a cross-compilation environment rootfs by cloning the repository:
git clone https://github.com/kaylorchen/rk3588_dev_rootfs.git
cd rk3588_dev_rootfs
bash ./build-rootfs.sh

Compiled my code using the cross-compilation environment with the following commands:
git clone https://github.com/kaylorchen/rk3588-yolo-demo.git
cd rk3588-yolo-demo/src/yolov8
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=/home/orangepi/rk3588_dev_rootfs/toolchain-aarch64.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
make

However, when I attempt to run the videofile_demo.cpp script as follows:
./videofile_demo.cpp --model_path model/yolov8n.rknn --input_filename 720p60hz.mp4 --threads 4 --framerate 60 --label_path model/coco_80_labels_list.txt

I encounter the following errors:
./videofile_demo.cpp: line 12: struct: command not found
./videofile_demo.cpp: line 13: std::string: command not found
./videofile_demo.cpp: line 14: std::string: command not found
./videofile_demo.cpp: line 15: std::string: command not found
./videofile_demo.cpp: line 16: int: command not found
./videofile_demo.cpp: line 17: double: command not found
./videofile_demo.cpp: line 18: syntax error near unexpected token `}'
./videofile_demo.cpp: line 18: `};'

It seems like the script is being interpreted as shell commands instead of C++ code. Any guidance on how to resolve this issue would be greatly appreciated. Thank you!

I've been setting up a cross-compilation environment for the RK3588 platform using the following steps:

Installed the cross-compilation toolchain using the commands:sudo apt update
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

Built a cross-compilation environment rootfs by cloning the repository:git clone https://github.com/kaylorchen/rk3588_dev_rootfs.git
cd rk3588_dev_rootfs
bash ./build-rootfs.sh

Compiled my code using the cross-compilation environment with the following commands:git clone https://github.com/kaylorchen/rk3588-yolo-demo.git
cd rk3588-yolo-demo/src/yolov8
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=/home/orangepi/rk3588_dev_rootfs/toolchain-aarch64.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
make

However, when I attempt to run the videofile_demo.cpp script as follows:
./videofile_demo.cpp --model_path model/yolov8n.rknn --input_filename 720p60hz.mp4 --threads 4 --framerate 60 --label_path model/coco_80_labels_list.txt

I encounter the following errors:
./videofile_demo.cpp: line 12: struct: command not found
./videofile_demo.cpp: line 13: std::string: command not found
./videofile_demo.cpp: line 14: std::string: command not found
./videofile_demo.cpp: line 15: std::string: command not found
./videofile_demo.cpp: line 16: int: command not found
./videofile_demo.cpp: line 17: double: command not found
./videofile_demo.cpp: line 18: syntax error near unexpected token `}'
./videofile_demo.cpp: line 18: `};'

It seems like the script is being interpreted as shell commands instead of C++ code. Any guidance on how to resolve this issue would be greatly appreciated. Thank you!

./videofile_demo.cpp is  a cpp file, not a script.
If you build the project successfully, you can find a exetalble file named "videofile_demo" in the build folder....
this is a cpp project.... not python

Yes, that's true.
But I get the next error. Upon running the provided command:
orangepi@orangepi5b:~/rk3588-yolo-demo/src/yolov8/build$ ./videofile_demo --model_path ../model/yolov8n.rknn --input_filename ../720p60hz.mp4 --threads 4 --framerate 60 --label_path ../model/coco_80_labels_list.txt

I encountered the following error:
environment variable SPDLOG_STDOUT is not set, and set true
environment variable SPDLOG_SYSTEMD is not set, and set false
environment variable SPDLOG_LEVEL is not set, and set default level
[INFO] Yolov8 demo for rk3588
[INFO] load lable ../model/coco_80_labels_list.txt
[ERROR] Open ../model/coco_80_labels_list.txt fail!
[INFO] fopen ../model/yolov8n.rknn failed!
[INFO] rknn_init() is called
E RKNN: [21:50:04.121] parseRKNN: invalid RKNN_MAGIC!
E RKNN: [21:50:04.121] parseRKNN from buffer: Invalid RKNN format!
E RKNN: [21:50:04.121] rknn_init, load model failed!
Segmentation fault (core dumped)

It seems that several environment variables related to logging (SPDLOG_STDOUT, SPDLOG_SYSTEMD, and SPDLOG_LEVEL) were not set, but defaulted to certain values.

Yes, that's true.
But I get the next error. Upon running the provided command:
orangepi@orangepi5b:~/rk3588-yolo-demo/src/yolov8/build$ ./videofile_demo --model_path ../model/yolov8n.rknn --input_filename ../720p60hz.mp4 --threads 4 --framerate 60 --label_path ../model/coco_80_labels_list.txt

I encountered the following error:
environment variable SPDLOG_STDOUT is not set, and set true
environment variable SPDLOG_SYSTEMD is not set, and set false
environment variable SPDLOG_LEVEL is not set, and set default level
[INFO] Yolov8 demo for rk3588
[INFO] load lable ../model/coco_80_labels_list.txt
[ERROR] Open ../model/coco_80_labels_list.txt fail!
[INFO] fopen ../model/yolov8n.rknn failed!
[INFO] rknn_init() is called
E RKNN: [21:50:04.121] parseRKNN: invalid RKNN_MAGIC!
E RKNN: [21:50:04.121] parseRKNN from buffer: Invalid RKNN format!
E RKNN: [21:50:04.121] rknn_init, load model failed!
Segmentation fault (core dumped)

It seems that several environment variables related to logging (SPDLOG_STDOUT, SPDLOG_SYSTEMD, and SPDLOG_LEVEL) were not set, but defaulted to certain values.

check your file's path.
[INFO] load lable ../model/coco_80_labels_list.txt
[ERROR] Open ../model/coco_80_labels_list.txt fail!
[INFO] fopen ../model/yolov8n.rknn failed!

I think you entered a wrong path

Here's the folder tree structure based on the provided directory listings:
rk3588-yolo-demo
└── src
    └── yolov8
        ├── 720p60hz.mp4
        ├── build
        │   ├── build
        │   ├── CMakeCache.txt
        │   ├── cmake_install.cmake
        │   ├── compile_commands.json
        │   ├── Makefile
        │   └── videofile_demo
        ├── camera_demo.cpp
        ├── CMakeLists.txt
        ├── include
        ├── model
        │   ├── coco_80_labels_list.txt
        │   ├── yolov8m.rknn
        │   ├── yolov8n.rknn
        │   └── yolov8s.rknn
        ├── utils
        └── videofile_demo.cpp

Here's the folder tree structure based on the provided directory listings:
rk3588-yolo-demo
└── src
    └── yolov8
        ├── 720p60hz.mp4
        ├── build
        │   ├── build
        │   ├── CMakeCache.txt
        │   ├── cmake_install.cmake
        │   ├── compile_commands.json
        │   ├── Makefile
        │   └── videofile_demo
        ├── camera_demo.cpp
        ├── CMakeLists.txt
        ├── include
        ├── model
        │   ├── coco_80_labels_list.txt
        │   ├── yolov8m.rknn
        │   ├── yolov8n.rknn
        │   └── yolov8s.rknn
        ├── utils
        └── videofile_demo.cpp

Dose the command run in your rk3588?
log error: [ERROR] Open ../model/coco_80_labels_list.txt fail!,  I suggest you double check your path to read files.
You have an error opening the file here. Check whether the path is correct, or check whether the file has read permission.

It's strange. Right now, the same command is working, but it's showing incorrect results, and my Orange Pi is freezing. Do you have any recommendations on what parameters to set for --threads and --framerate?

It's strange. Right now, the same command is working, but it's showing incorrect results, and my Orange Pi is freezing. Do you have any recommendations on what parameters to set for --threads and --framerate?

Set it to 1 first, then increase from small to large.

Thank you. It is working now

Only if I set --threads 2 it is working bad

Only if I set --threads more than 1, it works badly

it works well in my orangepi 5 Plus. I think you should check your npu driver version and .so lib version.


Add stunnel image.

Chainguard Images Pull Request Template
Image Size

Notes: n/a, no public image
Image Vulnerabilities

[X] The Grype vulnerability scan returned 0 CVE(s).

Notes:
Basic Testing - K8s cluster
Notes:
Basic Testing - Package/Application

N/A
Notes:
Helm

[X] A Helm chart was not provided.

Notes:
Processor Architectures

[X] The image was built and tested for x86_64.
[X] The image was built and tested for aarch64.

Notes:
Functional Testing + Documentation

[X] Functional tests have been included and the tests are passing.  All tests have been documnted in the notes section.

Notes:
Environment Testing + Documentation

[X] There has not been a request and/or there is no indication that this image needs tested on a public cloud provider.

Notes:
Version

[X] The package version is the latest version of the package.  The latest tag points to this version.

Notes:
Dev Tag Availability

[X] There is a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base')

Notes:
Access Control + Authentication

[X] The image runs as nonroot and GID/UID are set to 65532 or upstream default

ENTRYPOINT

[X] applications/servers/utilities set to call main program with no arguments e.g. [redis-server]

CMD

[X] For utilities/tooling bring up help e.g. –help

Environment Variables

[X] Environment variables not added and not required.

 Logs DO NOT write to file.

Documentation - README

[X] A README file has been provided and it follows the README template.

Stunnel needs a config file to run, but I couldn't find any useful defaults, they all appear to be pretty custom fit for specific purposes.
There are a few community images for it, but they all have very specific DSLs based on bash scripts to turn environment variables into config files. None of them appear to be terribly maintained or widely used, so I don't think it's worth copying any.
I kept his simple for now with no config.


[BUG] Not clear what point is in   anim_rotate_around( angle , point)

Describe the bug
The docstring for anim_rotate_around describes
help?> ?anim_rotate_around
search: anim_rotate_around

  anim_rotate_around

  Animate the rotation of the attached object (see act!) around a point. Similiar function: anim_rotate to rotate or spin an object

  Example
  ≡≡≡≡≡≡≡≡≡

  Background(1:100, ground)
  obj = Object((args...) -> rect(O, 50, 50, :fill), Point(100, 0))
  act!(obj, Action(1:50, anim_rotate_around(2π, O)))

  Options
  ≡≡≡≡≡≡≡≡≡

    •  anim_rotate_around(ta::Real, p) define the end angle of the rotation + the rotation center.

    •  anim_rotate_around(fa::Real, ta::Real, p) define the from and end angle + the rotation center.

julia>

However it is not clear what the rotation center is
To Reproduce

Julia Version (i.e. output of julia -v): 1.7.2

Operating system (Mac, Linux, Windows): Linux

Javis version (i.e output of ] status Javis in the REPL) [78b212ba] Javis v0.8.0 ~/Javis.jl

Minimum working code example that led to bug: (above)

using Javis
using Animations

video=Video(150,150)
nframes=100
ext=30
Background(1:nframes+ext, (args...)-> background("white"))

obj = Object(1:nframes+ext,(args...)-> box(O,10,20,:stroke),O+1 )
obj2 = Object(1:nframes+ext,(args...)-> circle(O+50,5,:fill) )
act!(obj, Action(1:nframes÷2 , anim_translate(O+50)))
act!(obj, Action(nframes÷2+1:nframes, anim_rotate_around(2π,O)  ))

render(video, pathname="test.gif")

Expected Behavior and Actual Behavior
what O in anim_rotate_around( 2π, O) should be better documented.
If intended to be a position relative to the canvas then this is a bug .
or it should be documented that the Point is relative to the objects current position.
Screenshots

It was intended to work like this:

obj = Object(1:nframes+ext,(args...)-> box(O,10,20,:stroke),O+10)
obj2 = Object(1:nframes+ext,(args...)-> circle(O,5,:fill), O )
act!(obj, Action(nframes÷2+1:nframes, anim_rotate_around(2π,O)  ))

But you use anim_translate before which doesn't update the start position which is used in anim_rotate_around. I think that would be a proper fix.
Then we make it clear in the documentation that one should use the position of each object in such a way that one draws it at the origin but it's shifted to the start position. That way rotation works as we know exactly where each object is.

From Zulip but to have it here for everyone:
"Nope it rotates around the difference in the positions of the two. So it thinks it is at O+1 and should rotate around O. therefore it rotates with a radius of 1 around O-1 from where it is."


Nothing happens when trying to open a jpeg

Hey,
I've been trying to open a simple JPEG. but I get no error and nothing happens. xdg-open is installed and I've tested to manually open the JPEG, which worked just fine. Any clue why this might happen?

Yeah- this lib only returns an error if cmd.Start() or cmd.Run() return a non-zero exit code.
There is now parsing of stdout or stderr done.
I guess we could proxy other methods in Cmd (like Cmd.Output) so you could get stdout and stderr:
https://golang.org/pkg/os/exec/#Cmd.Output

Maybe there's also a better way than calling xdg-open? Something where error handling is part of the API.

At one point I tried bundling the xdg-open code in this lib and calling it directly.
I see the following node lib checks if xdg-open is available, if it isn't, then it uses a version that is bundled:
https://github.com/sindresorhus/open/blob/45e50caaae4af8f78588bdef017fce3ba818f8f6/index.js#L107-L116
I'm open to PRs, but we need a better way of confirming that changes work on all environments. I wonder if there's a way to use a github action to confirm that the code "works" in different environments/OSes?

At one point I tried bundling the xdg-open code in this lib and calling it directly.

I assume this could lead to problems on it's own.
Regarding testing, I assume we could register a custom handler for a file that sets some state on the harddrive, to check if the file was opened.


Bug: As of Qiskit 0.37.0 Ignis has been deprecated. VQE molecules notebook needs to be updated.

Where does the issue happen?
https://learn.qiskit.org/course/ch-applications/simulating-molecules-using-vqe
What is the content issue?
Qiskit Ignis has been deprecated. import list needs to be updated.
Screenshots
No response
Additional information
No response

I'm not sure if there are other instances where inis is used in the notebook. Those would need to be updated as well.


Variable.GRAPH useless?

I though we removed Variable.GRAPH type when the extension choco-graph was created, but there is still a reference to graph variable in choco.

I believe it can be deleted


[Snyk] Security upgrade @babel/plugin-syntax-do-expressions from 0.0.0-use.local to 7.0.0

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

packages/babel-plugin-proposal-do-expressions/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Directory Traversal SNYK-JS-SOURCEMAPSUPPORT-6112477
  170

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Directory Traversal

:tada: Snyk checks have passed. No issues have been found so far.
:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)
:white_check_mark: license/snyk check is complete. No issues have been found. (View Details)


Support parallel temporaltest executions and non-cgo builds

What changed?

Added support for building with CGO_ENABLED=0 via modernc.org/sqlite
Updated storage driver registration to support concurrent temporaltest executions

Codecov Report

Merging #6 (2f33df8) into main (7986b5b) will decrease coverage by 4.06%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
- Coverage   46.47%   42.41%   -4.07%
==========================================
  Files          23       24       +1
  Lines        2201     2143      -58
==========================================
- Hits         1023      909     -114
- Misses       1109     1172      +63
+ Partials       69       62       -7

Impacted Files
Coverage Δ

cmd/temporalite/main.go
2.19% <ø> (ø)

...rnal/common/persistence/sql/sqlplugin/sqlite/db.go
69.04% <ø> (+4.60%)
:arrow_up:

...mon/persistence/sql/sqlplugin/sqlite/driver_cgo.go
0.00% <0.00%> (ø)

...mmon/persistence/sql/sqlplugin/sqlite/namespace.go
56.63% <ø> (ø)

internal/licensecheck/main.go
0.00% <0.00%> (ø)

server.go
74.46% <0.00%> (+1.39%)
:arrow_up:

.../common/persistence/sql/sqlplugin/sqlite/plugin.go
63.24% <52.94%> (-1.67%)
:arrow_down:

internal/liteconfig/config.go
90.14% <100.00%> (+0.35%)
:arrow_up:

...ommon/persistence/sql/sqlplugin/sqlite/typeconv.go
50.00% <0.00%> (-50.00%)
:arrow_down:

.../common/persistence/sql/sqlplugin/sqlite/events.go
43.83% <0.00%> (-32.88%)
:arrow_down:

... and 4 more

Continue to review full report at Codecov.

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


feat: port data.nat.choose.bounds

Port of data.nat.choose.bounds
based on 550b58538991c8977703fdeb7c9d51a5aa27df11

@arienmalec fyi, you no longer need to record the mathlib3 sha in the PR post.


As a user I want to export the project as PNGs

capturePage can probably be used on the webview to create a image from it

done with #220


feat(#640): Add WithResourceMapping

What does this PR do?
Adds WithResourceMapping to the Docker container builder pattern. The builder method allows to copy files or any binary contents to a created Docker container instance (that is not running).
Why is it important?
Some containers require certain files or configurations before they get started. WithResourceMapping allows to add these files or configurations up front. E.g. we copy the Elasticsearch JVM options to the container before it starts.
Related issues

Closes #640

Follow-ups
Add a more efficient way to bulk copy multiple resource mappings.

@HofmeisterAn  Nice increment.


Docs: How to fuzz multiple drivers and configure multiple Intel PT tracing (IP0-IP3) in kAFL

Raised by https://github.com/IntelLabs/kAFL/issues/227

Hello, i think it would also be beneficial to fix the example for the RANGE_SUBMIT hypercall. In the reference the struct is wrong, the IP filter index should be at index 2 not 0, just as you described here.

Good catch @Gehim12 !
I'll push a fix right away !


adding version and help email to jobsub_ arguments

I added arguments "--version" and ""support-email" to the list of base arguments so that folks can now submit a command such as "jobsub_fetchlog --version" and get the following output back "jobsub_lite version 0.3". The version is stored in lib/version.oy.

pre-commit.ci autofix

Closes #17


Cannot use custom decorator more than once

Let me give a brief description
Here is my decorator:
def test_decorator():
    def decorator(f):
        def wrapper(*args, **kwargs):
            return f(*args, **kwargs)

        return wrapper

    return decorator

This code seem work, but name was generated as "Wrapper" on /docs
@api.get("/endpoint1")
@test_decorator()
def get_endpoint1():
    return "Hello World!"

But when I use that decorator tiwce, I receive AssertionError: View function mapping is overwriting an existing endpoint function: api.wrapper

@api.get("/endpoint1")
@test_decorator()
def get_endpoint1():
    return "Hello World!"

@api.get("/endpoint2")
@test_decorator()
def get_endpoint2():
    return "Hello World!"

I don't know that was a bug or my decorator function has an error, please help me!

Environment:

Python version: 3.7.9
Flask version: 2.1.2
APIFlask version: 1.1.0

The decorator will change the raw function (name, docstring, etc.), try to use functools.wraps to keep the decorated function unchanged.
from functools import wraps

def test_decorator():

    def decorator(f):
        @wraps(f)
        def wrapper(*args, **kwargs):
            return f(*args, **kwargs)

        return wrapper

    return decorator


Does syntax highlighting work with sublime text 3?

(because it isn't for me)
it's installed:

and snippets are there:

but syntax highlighting for JSX isn't there:

I have the same issue ... Snippets are present but no syntax hightliting.


Add Meta-Data to Build for more accurate Container SBOM generation

Title: Add a JSON payload as a .note.package ELF section
Description:
add a JSON payload as a .note.package ELF section.  It looks like there are already bazel rules in envoy that add ELF notes, another rule could be added during the release to include name and version information.
[optional Relevant Links:]

Related issue: Envoy currently missing from SBOM

cc @phlax

sounds reasonable @officerNordberg

one problem you might hit @officerNordberg if you were to follow up on this - im not sure if our linker is sufficiently new
docs here say https://systemd.io/ELF_PACKAGE_METADATA/

They make use of the new --package-metadata flag that is available in the bfd, gold, mold and lld linkers (versions 2.39, 1.3.0 and 15.0 respectively).

checking our current lld im seeing
$ /opt/llvm/bin/ld.lld --version
LLD 14.0.0 (compatible with GNU linkers)

not 100% that im checking the right thing but this might need to wait for a compiler upgrade


Arrays in schemas show up as a separate model

v7.1.0
If I have:
"topten": Joi.array().items(
    Joi.object({
        name: Joi.string().required().label('name').description('user name'),
        score: Joi.number().required().min(0).label('score')
    }).label('TopTen')

I get something like:
{
  topten (topten, optional)
}

topten [
    TopTen
]

TopTen {
    name (string): user name ,
    score (number),
}

I would like to get something like:
{
  topten (Array of TopTen, optional)
}

TopTen {
    name (string): user name ,
    score (number),
}

Hi this relates to wrapping the arrays as definitions in the JSON output. I can switch that off so the code
validate: {
    payload: Joi.array().items(Joi.object({
        name: Joi.string().required().label('name').description('username'),
        score: Joi.number().required().min(0).label('score')
    }).label('TopTen'))
}

Would produce a model
Array[TopTen {
  name (string): user name ,
  score (number)
}]

Its more compact and understandable, but not what you where looking for. How the models are describe is part of SwaggerUI. I can change the JSON output of the plugin, but it only indirectly effects the model descriptions, don't have a lot of control.
I was already considering the above changes as it makes the models more readable. What do you think?

For me, what you suggest would be perfect! Compact, understandable, and readable, as you say.

HI this was a hard problem as because of all the different combination people use when constructing validation objects. The issue #337 also made the Model output I first suggested above not possible.
But hopefully v7.2.0 has a workable solutions. The main change is adding a label to the Joi.array() object.
If you use
validate: {
    payload: Joi.array().items(Joi.object({
        name: Joi.string().required().label('name').description('username'),
        score: Joi.number().required().min(0).label('score')
    }).label('TopTen')).label('TopTenList')
}

Which now gives the models
TopTenList [
   TopTen
]

TopTen {
   name (string): username ,
   score (number)
}

Hope this is OK the ouput is now as closer to your request as I think I can get. Can you download v7.2.0 and tell me if the above fixes your issue

Hi Glenn,
First let me thank you for all the hard work you've put into this over what now amounts to years. I understand the challenge of keeping things in sync with the fast moving Hapi and Joi targets, let along the swagger and swagger-ui changes.
The real goal for me in using this module is to generate clear, understandable API documentation for end-user developers. Unfortunately, we're not there yet and in some ways it seems to be moving away from my goal. I don't claim to understand all the ways people are using this module and for what purposes (code generation seems to be one) but they seem to be different from mine.
For documentation purposes, I don't think it makes sense to break arrays out as separate objects. It's just confusing. As well, I don't understand the use of object definition equality/hashing in the module. For me, if Joi objects have different labels, they are different classes.
Right now if I do:
    a: Joi.object({name: Joi.string().required().label('name')}).required().label('A'),
    b: Joi.object({name: Joi.string().required().label('name')}).required().label('B'),

In the Swagger UI I see:
a (A, optional),
b (A, optional),

A {
  name (string)
}

Apart from them being mislabeled as optional, both are marked as class A when b should be B.
Again, I don't understand how people are using this module but I think a lot can be simplified in new versions by forcing people to be explicit in their labeling and using those labels without doing any kind of equality tests.
I don't know where that leaves me. I see three options:

Make some changes and do a PR. This might entail more configuration options to avoid breaking things for people who want/need currently functionality. I know you want to avoid adding more options so maybe you'll reject this idea.

Do a "hard-fork".

Generate a swagger.json, either manually editing the hapi-swagger output or using another swagger generation tool.

Hi Ian
Been thinking about this over last couple of days. Moving forward there are a couple thing I can do.

I can add tests to cover the model output of SwaggerUI. Yesterday I got JSDOM working with Lab so I can do client-side testing of UI elements. A big issue is that any change to the swagger JSON can be valid and fix one problem, but change the model output in ways I did not foresee.

I will then need to map all the different valid swagger JSON representations which can modify the  model structure and see if I can provide options to control the model UI.  This may not be possible.

I very busy over next 2 weeks will pick it up after that.
I am coming to the point of thinking it would be easier to build a new documentation system for HAPI rather than go though the effort involve in dealing with this! I did start a project a while back
https://github.com/glennjones/waypointer
Breaks UI into templates system much easier to deal with issues like this one. I am hitting the limits with hapi-swagger all the time now and its becoming very time consuming.

Hi guys,
Is it possible to set an option to avoid each array becoming a separate model? In my case it will reduce the number of models significantly.
Joi.object({
    rows: Joi.array().items(Joi.object({
        name: Joi.string()
    }).label('Row'))
}).label('RowList')

The object above shows up like this in the swagger.json:
"Row": {
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        }
    }
},
"rows": {
    "type": "array",
    "items": {
        "$ref": "#/definitions/Row"
    }
},
"RowList": {
    "type": "object",
    "properties": {
        "rows": {
            "$ref": "#/definitions/rows"
        }
    }
},

What I want is to reduce it to the following
"Row": {
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        }
    }
},
"RowList": {
    "type": "object",
    "properties": {
        "rows": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/Row"
            }
        }
    }
},

What is the status with this one?

@vasilianeugen no updates. I don't think anyone has looked into this is quite some time. PRs are welcome.

I will have a look at it.


升级到net7

将项目整合到net7

Similar to #639, the first two commits are not really needed.
The last commit seems to resolve a few issues, and I might cherry pick it instead of accepting the whole pull request.

Projects targeting .NET 5 and above can consume the NuGet package without any problem. So no need to make changes to this code base.


[video_player] Make sure the plugin is correctly initialized

Description
This seemed to have no effect. Was it optimized away because _ was not used?
final VideoPlayerPlatform _ = VideoPlayerPlatform.instance..init();

Related Issues
Fixes https://github.com/flutter/flutter/issues/47524
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

@cyanglaz can I ask you for a review and a tip on how to properly test this?

Added a test to check if init has been called.

@mklim do you have an idea why the test works locally but fails on Cirrus CI? Is there maybe a better way to test this?

@amirh people keep running into issues with the released video_player plugin which already have PRs with simple fixes pending (this and https://github.com/flutter/plugins/pull/2397). Can you help me get the plugin into a good state again or do you know someone else I could ping for a quick review?

This seemed to have no effect. Was it optimized away because _ was not used?

Yes, static initializers are lazily evaluated when the field is first used.

Tests pass. Changelog and version already adapted in the hope that https://github.com/flutter/plugins/pull/2397 would land first.

@amirh does this need to be reviewed by another person?


HHH-13551 StrategyRegistrationProvider does not properly handle implementations from different classloader

https://hibernate.atlassian.net/browse/HHH-13551
I'm honestly not sure this is a legitimate bug. My personal opinion is that users should not expose to Hibernate ORM two classloaders that have a different version of the same class. But I suppose one can view things differently, so here is a fix.
The major risk is that we'll be catching exceptions that should have been thrown and noticed by the user, because their service really is misconfigured (a META-INF/service/* file that contains invalid class names, for example). I tried to mitigate the problem by logging the exceptions we ignore at the WARN level, but even then I'm really not sure it's a good idea...
Maybe we should add a feature flag? But then the feature wouldn't make much sense if it's disabled by default...

thanks @yrodiere and @snicoll : rebased and merged!


Build onnx-mlir error: MLIRMlirOptMain NOTFOUND

I bumped into an error while running for build onnx-mlir:
export LLVM_PROJ_SRC=/mypath/llvm-project/
export LLVM_PROJ_BUILD=/mypath/llvm-project/build
mkdir onnx-mlir/build && cd onnx-mlir/build
cmake ..
The error is:

-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MLIRMlirOptMain
linked by target "compiler" in directory /mypath/onnx-mlir/src
linked by target "compiler" in directory /mypath/onnx-mlir/src
linked by target "onnf_onnx_decompose" in directory /mypath/onnx-mlir/src
linked by target "onnf_onnx_decompose" in directory /mypath/onnx-mlir/src
linked by target "onnf_shape_inference" in directory /mypath/onnx-mlir/src
linked by target "onnf_shape_inference" in directory /mypath/onnx-mlir/src
linked by target "onnf_lower_frontend" in directory /mypath/onnx-mlir/src
linked by target "onnf_lower_frontend" in directory /mypath/onnx-mlir/src
linked by target "onnf" in directory /mypath/onnx-mlir/src
linked by target "onnf" in directory /mypath/onnx-mlir/src
linked by target "onnf_transform" in directory /mypath/onnx-mlir/src/transform
linked by target "onnf_transform" in directory /mypath/onnx-mlir/src/transform
linked by target "onnf-opt" in directory /mypath/onnx-mlir/src/tool/onnf_opt
linked by target "onnf-opt" in directory /mypath/onnx-mlir/src/tool/onnf_opt
linked by target "builder" in directory /mypath/onnx-mlir/src/builder
linked by target "builder" in directory /mypath/onnx-mlir/src/builder
-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

I have already built llvm successfully and installed gcc, cmake and libprotoc with ZLib.
Why I encountered this error? Did I forget to install or export something?
Thanks!

It sounds like you are using an older version of MLIR.
Can you try cloning it from https://github.com/clang-ykt/llvm-project?

It sounds like you are using an older version of MLIR.
Can you try cloning it from https://github.com/clang-ykt/llvm-project?

I was using the latest version of llvm-project.
Besides, I just tried to rebuild llvm-project with https://github.com/clang-ykt/llvm-project.
Unforunately, I still encountered the same error: MLIRMlirOptMain NOTFOUND.
Maybe it is because I built it in Windows?

Hi @jacky82226 MLIR is being actively developed (and thus modified in non-backward-compatible ways), so using the latest version of llvm-project may actually bring more harm than good.
Let's check if you have MLIRMlirOptMain, can you visit llvm-project/build/lib and do the Windows equivalent of:
ls | grep MLIRMlirOptMain.a

You should find MLIRMlirOptMain.a there. If not, you didn't install our supported version lf llvm-project (from clang-ykt) right.

Hi @jacky82226 MLIR is being actively developed (and thus modified in non-backward-compatible ways), so using the latest version of llvm-project may actually bring more harm than good.
Let's check if you have MLIRMlirOptMain, can you visit llvm-project/build/lib and do the Windows equivalent of:
ls | grep MLIRMlirOptMain.a
You should find MLIRMlirOptMain.a there. If not, you didn't install our supported version lf llvm-project (from clang-ykt) right.

Thank you for the instruction! I agree it is because I have not installed onnx-mlir successfully.
Therefore, I tried to reinstall onnx-mlir several times, but I still cannot find MLIRMlirOptMain.a in my llvm-project/build/lib
It did not pop out any error message while building onnx-mlir in Windows and it only encountered a failure while testing.
I am thinking maybe I need to try other cmake building parameters in Windows or I have to install something additionally.
P.S. My ls under llvm-project/build/lib is as below:

@jacky82226 thanks for the screenshot, it looks like there's indeed no MLIRMlirOptMain.a in your build directory. If it helps, here's a link to where this library is defined: https://github.com/clang-ykt/llvm-project/blob/076475713c236081a3247a53e9dbab9043c3eac2/mlir/tools/mlir-opt/CMakeLists.txt#L14 .
For what is worth, you may want to try
cmake --build . --target

which essentially builds all targets.

@jacky82226 thanks for the screenshot, it looks like there's indeed no MLIRMlirOptMain.a in your build directory. If it helps, here's a link to where this library is defined: https://github.com/clang-ykt/llvm-project/blob/076475713c236081a3247a53e9dbab9043c3eac2/mlir/tools/mlir-opt/CMakeLists.txt#L14 .
For what is worth, you may want to try
cmake --build . --target
which essentially builds all targets.

I tried cmake --build . --target and it built successfully with MLIRMlirOptMain.
Thanks to @tjingrant !

Hi,now I have installed the onnx-mlir.But when I test the tool,use ./onnx-mlir --EmitONNXIR add.onnx,it occurs a error,like this
onnx-mlir: /home/yajuan.zhao/onnx-mlir/src/Builder/FrontendDialectTransformer.cpp:1109: void onnx_mlir::ImportFrontendModelFile(std::__cxx11::strit&, mlir::OwningModuleRef&, onnx_mlir::ImportOptions): Assertion `parse_success && "Onnx Model Parsing Failed."' failed.
Aborted (core dumped)
I want to konw how can I solve this question?Thanks!

when I used onnx-mlir tool,
./onnx-mlir --EmitLib add.onnx
I meet this question,
Error message: Executable "/home/yajuan.zhao/llvm-project/build/bin/opt" doesn't exist!
Program path: /home/yajuan.zhao/llvm-project/build/bin/opt
Command execution failed.
UNREACHABLE executed at /home/yajuan.zhao/onnx-mlir/src/MainUtils.cpp:196!
Aborted (core dumped)
Can anyone help me ?

Hi @czlsccz,
I haven't worked with onnx-mlir for a while and your error looks quite different from mine so I have no clue... My suggestion would be please make sure your llvm version is same as what README mentioned. Otherwise, please open another new issue under onnx-mlir to get the best help. Thanks.


zz_generated.deepcopy.go not generated locally

Issue
The script ./script/update-gen.sh generates a new zz_generated.deepcopy.go but within the $GOPATH project and not locally
ls -la $GOPATH/src/github.com/snowdrop/component-operator/pkg/apis/component/v1alpha2/zz_generated.deepcopy.go
-rw-r--r--  1 dabou  staff  10604 May 16 06:45 /Users/dabou/Code/go-workspace/src/github.com/snowdrop/component-operator/pkg/apis/component/v1alpha2/zz_generated.deepcopy.go

pwd
/Users/dabou/Code/snowdrop/component-operator

k8s code-generator only works for project in $GOPATH at the moment so this is expected. Modifications have been made to be able to build the project when checked-out in $GOPATH

I will then update the script to copy the file generated from $GOPATH/..../zz_generated.deepcopy.go within the current directory


No error when 'password' value and 'repeat password' value are different

Hi! @bkimminich @J12934
When I try to sign up, if I enter different values for Password and Repeat Password, it shows no error. Also, it signs me up with the password I enter in the 'Password' field. Is this a bug or a part of a challenge. I wasn't able to find any.
Thanks!

I'm not exactly sure, it might have been validated in the old UI and this check got lost? It's not really worth a challenge, I think. So we could just fix it and add the error.

Sure! I'll get to work :+1:  asap.

You can just make it client side validation, but please similar to other form validations, ok? Thanks! 👌

I'll keep that in mind :+1:

I checked implementation options today, and it seems there is nothing out of the box in Angular for this. Probably needs a custom Validator or some 3rd party directive that works with FormControl fields.

Hey @bkimminich !
I tried implementing something earlier too and wasn't able to find an optimal solution as well. I apologise for the delay, I got a little busy with the proposal. Thanks for your suggestions :smiley: , I'll start working on them.

Hi! @aaryan01, are you working on it presently? If not, I can take this issue up? @bkimminich

Hi @supra08 , go ahead, I am currently working on another issue so you can take this if you want.
Thanks

@supra08 I played with the registration a bit, and found a case when the equal check doesn't work as expected:

Type in aaaaa as password
Type in aaaaa as repeat password
"Do not match" error vanishes when you hit the fifth a as expected
Go back to password field and add a b to the password
The error "Do not match" does not appear as would be expected.

We could either fix this or make it a :star: challenge asking "Register without repeating yourself." ... 😁

Aah!, I should have seen it coming, the validator is subscribing to repeatPasswordControl only, therefore the bug. The :star: challenge looks a cool idea for this :grin: .


Allow moduleSymbolToValidIdentifier to be uppercase for JSX tags

Fixes #47110

Actually, I think I have a way to make this slightly simpler


When generating for CPP target, .srcjar is an inappropriate output artifact

Would be great to just generate the individual outputs into genfiles instead.

That is not an option because the output depends on quite a few variables and it seems like too much effort to implement the analysis in Skylark.
I was not aware that .srcjar is not a general Bazel concept, but specific to Java. There might be an alternative that works across different languages though. I'll look into it.

@jondo2010
Unfortunately there currently is no uniform way to feed rules with output that is not known at analysis phase. Some rules support archives, but not C++ and it probably won't be added. But an alternative is coming and seems to be nearly ready (for C++ at least).
In the meantime I propose the following workaround that should support most use cases: specify the generated files in the BUILD file. It's a bit cumbersome but as the filenames usually don't change often, it should be sufficient until Bazel has matured.
It would look like this:
antlr4(
    name = "generated",
    srcs = ["src/antlr4/Hello.g4"],
    language = "Cpp",
    output = [
        "HelloParser.h",
        "HelloLexer.tokens",
        "HelloBaseListener.h",
        "Hello.tokens",
        "HelloParser.cpp",
        "HelloLexer.cpp",
        "HelloLexer.h",
        "HelloLexer.interp",
        "HelloListener.h",
        "HelloBaseListener.cpp",
        "Hello.interp",
        "HelloListener.cpp"
    ],
)

To make things a bit easier, the rule could print the list of generated files that one can copy&paste in the BUILD file. So initially you would specify some random output and invoke the antlr rule to gain the actual list for inclusion.
Does that sound viable?


addons for halo

添加Halo 数据库的addons ，然后有个问题在 validate configmap,最后报错
报错误是： failed to validate configmap: [missing ',' in struct literal: 1127:29 expected '}', found 'EOF': 1133:2]
我是在office-postgresql这个文件的基础上进行的修改，不知道为什么创建集群的时候就一直卡在这里，能帮忙给看一下吗

Can you provide more detailed information an error occurs during HEML installation or when creating a cluster through kb？

types and values are inconsistent in cue file
a boolean parameter cannot accpet 'on' and 'off'

volumeMount paths  cannot be duplicated
volume 'data' and 'halo-config' are mounted to the same path '/data/halo'

update image

Contributor

thank you very much

types and values are inconsistent in cue file
a boolean parameter cannot accpet 'on' and 'off'

3. volumeMount paths  cannot be duplicated
   volume 'data' and 'halo-config' are mounted to the same path '/data/halo'

5. update image

thank you very much

我每次启动集群的时候，查看pod都会出来这样一句：

我每次启动集群的时候，查看pod都会出来这样一句：0/3 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.. 是我的集群配置有问题还是我写的配置文件有问题？
我用的是minikube, 每个节点的配置是：

cpus: 2
disk-size: 50G
memory: 4G
我是按照文档要求配置的，就不知道为什么总会报这个错误出来

原文信息： Events: Type Reason Age From Message
Warning FailedScheduling 3m23s default-scheduler 0/3 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.. Normal Scheduled 3m21s default-scheduler Successfully assigned default/halo-halo-0 to minikube-m03

Have you checked your local StorageClass, PV, and PVC status?
Looks like PVC cannot be created.


Naveen- Take Home

Design Concepts

Followed the POM. Declared elements as private and element actions as public. Methods return the same page object to follow the
Builder Design Pattern. If click on some element navigates to new Page then it returns new Page Object with the same driver.
Explanation is given in Login Page Object
Gave element identifying priority as ID, Name, CSS , XPath etc for better performance and stability of the code
Used Gradle build tool as it is much faster than Maven and easy to manage multi projects. Easy to integrate with jenkins pipeline. Easy to handle Android Projects etc.
Used JUnit5 Tests. Can be used Cucumber or TestNG depends on the project requirement.
Used Junit5 Tags and Order
Injected Driver from Test Case Level.
Used @BeforeEach and @AfterEach annotations to instantiate and teardown the browser
gradle-wrapper.jar is provided to run gradle projects with out depending on the local gradle set up
We can write different gradle tasks to run smoke, regression suits
Used Java 8 Functionalities for better code maintenance
Used Awaitility functionality to wait until the file is downloaded before driver closes the browser
Followed the Ideal Gradle Project structure for the project
Config files are provided to better maintain common properties which change for different environments
Created Makefile to integrate with Jenkins.

Required:

MacOS
Java 8
IntelliJ
Gradle 6
Git

How to run

Clone the Project
Import to intelliJ as Gradle Project
Download Dependencies(use Gradle refresh)
run cmd in terminal './gradlew test' or './gradlew build' or 'gradle build' or 'gradle test'
Run specific test on @Test method level in SeleniumTest class by right click
Reports can be seen in 'build/reports/tests/test/index.html' after running './gradlew test'
Not sure runs in Windows but provided the code
All tests are passing


Added VSCode project's config

This PR adds configuration of VSCode for lint on save.
The web part is copied from h5web (what else?).
See commit https://github.com/silx-kit/jupyterhub_moss/pull/43/commits/aada2d8ca745f57060003840c1448b0c05a36811 for the actual change.
The remaining is applying those rules to existing code and md.
related to #42

There's an issue with indent, the usual Python indent being 4...

You can probably add an override like for Markdown but with the option tabWidth.

Indeed, that was easy to fix.


feat(sources): update stateful-resources

⚠ This Pull Request updates daily and will overwrite all manual changes pushed to the branch

Updates the stateful-resources source from upstream. See details in workflow run.

Automatically created by projen via the "update-source-stateful-resources" workflow

Closing this because this should have never been created. See https://github.com/cdklabs/awscdk-service-spec/pull/1331.


Connection Timeout

Hello
I always get the message "Connection Timeout", but the connection works and i get values from the opc server for a while. I also have to replace the password after a restart.

Some times it depends OPC server type.
Did you try to connect over Matrikon Explorer?
25 Kas 2021 Per 18:35 tarihinde uc-david @.***> şunu
yazdı:

Hello
I always get the message "Connection Timeout", but the connection works
and i get values from the opc server for a while. I also have to replace
the password after a restart.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/emrebekar/node-red-contrib-opcda-client/issues/14,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC2NOAVUQ45EKWLHGYN6N2LUNZJTLANCNFSM5IY2F7HQ
.

Matrikon opc  is installed localy and its working.
node-red-contrib-opc-da is also working.

@uc-david Are you using Matrikon test server ? Can you please share the server setup, i am getting invalid username/password error

@uc-david Are you using Matrikon test server ? Can you please share the server setup, i am getting invalid username/password error
Sorry, i have only the opc explorer from matricon, not the opc server. Did you put the user into the opc or dcom usergroups in Windows?

@uc-david I followed setting up DCOM as per instructions here - https://www.matrikonopc.com/support/docs/MatrikonOPC-Windows-XP-DCOM-Configuration.pdf
I am running this on windows 10, don't know what else to try.
Posted screenshots here - https://github.com/emrebekar/node-red-contrib-opcda-client/issues/18

@uc-david how do ia put user into opc or dcom usergroups in windows ?

WIndows + R then compmgmt.msc in users and groups you can see the groups.


Only using push remote as the base for remote override

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1014
#1013  👈
#1012
#1011
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CatChen and the rest of your teammates on  Graphite

Merge activity

Jul 22, 1:51 AM EDT: @CatChen merged this pull request with Graphite.


Merge branch 'master' of https://github.com/btcsuite/btcd

This should correctly pull in and reference the latest commits made to btcd.

Some minor issues I noticed when diffing ltcd against btcd.  It would be great if someone could weigh-in on these, as I'd like to see them cleared up.

btcjson/chainsvrcmds_test.go - 'getcfilter' and 'getcfilterheader' are implemented twice, this is a duplication whereas in btcd they are only implemented once.
integration/rpctest/rpc_harness_test.go - func 'testGenerateAndSubmitBlockWithCustomCoinbaseOutputs' is implemented twice, this is a duplication whereas in btcd it is only implemented once.
version.go - there is a comment about intentionally ignoring an error, however no error is returned from WriteRune and I see no reason why this line of code should differ from the BTCD reference implementation.
log.go - I think we should change the logging identifier from 'BTCD' to 'LTCD' at line 61.  this would make the lines written to the logfile begin with [LTCD] instead of currently [BTCD] which is confusing.


kdevelop: 4.7.1 -> 4.7.3

Tested on channels/nixos-15.09 but not this PR as-is (I have cherry-picked it to master).
The new patches fix some cmake error having something to do with a target name conflict related to gettext.

Could you also please add a commit to update the meta.homepage attribute for kdevelop to use HTTPS? (i.e. https://www.kdevelop.org/) Refs #13809.

@aneeshusa, done.

I tried building this on current nixpkgs-unstable, but it fails during the patch phase:
applying patch /nix/store/czasppzmbkvaq5nzg0jsaa28xdmqxbix-svn-1.9.patch
patching file plugins/subversion/kdevsvncpp/client_ls.cpp
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file plugins/subversion/kdevsvncpp/client_ls.cpp.rej
patching file plugins/subversion/kdevsvncpp/dirent.cpp
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file plugins/subversion/kdevsvncpp/dirent.cpp.rej
patching file plugins/subversion/kdevsvncpp/dirent.hpp
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/subversion/kdevsvncpp/dirent.hpp.rej

@joachifm, I removed the problematic patch, please try again. I am trying to build myself on nixpkgs master but it will take time due to dependencies.

Have you tried checking out channels/nixpkgs-unstable? Much closer to master, with binary substitutions available.

This now builds for me on nixpkgs-unstable, but it fails to run (I don't use kde, though, so might be unrelated to this change).

It builds for me too, but I didn't even try to run it because it needs to be in the proper environment (e.g. not with KDE from stable nixpkgs running alongside on my system). I'll test it with my whole system and report back.
If you use NixOS it should run fine if you install it with nix-env and don't have incompatible KDE software also installed, only you may need to run "kbuildsycoca4".

Actually, the run-time error turned out to be caused by PaX, so probably needs some paxmarkings. Anyway, that's a different issue entirely.

I confirm this works on top of channels/nixos-unstable, I think it's OK to merge.

Let's do it.

@ambrop72 This caused a build error on hydra: https://hydra.nixos.org/build/33306016/nixlog/1/raw
/tmp/nix-build-kdevplatform-1.7.3.drv-0/kdevplatform-1.7.3/plugins/filetemplates/classidentifierpage.cpp:22:25: fatal error: ui_newclass.h: No such file or directory
 #include "ui_newclass.h"
                         ^
compilation terminated.
plugins/filetemplates/CMakeFiles/testfiletemplates.dir/build.make:134: recipe for target 'plugins/filetemplates/CMakeFiles/testfiletemplates.dir/classidentifierpage.cpp.o' failed
make[2]: *** [plugins/filetemplates/CMakeFiles/testfiletemplates.dir/classidentifierpage.cpp.o] Error 1
CMakeFiles/Makefile2:10309: recipe for target 'plugins/filetemplates/CMakeFiles/testfiletemplates.dir/all' failed
make[1]: *** [plugins/filetemplates/CMakeFiles/testfiletemplates.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
builder for ‘/nix/store/igqclxd96635wz9y20czs89jbyzgph7j-kdevplatform-1.7.3.drv’ failed with exit code 2

@joachifm Please try removing enableParallelBuilding=true.

I would rather revert and await a new patch or receive a hotfix

@joachifm I suspect this is not a regression from 4.7.1 but caused either by chance or due to upgraded environment, posibly CMake. I've asked on #kdevelop@freenode and they haven't seen the issue before, but pointed to CMake as a possible culprit.
Anyway it's not economical for me to do any further testing of this locally. I recommend removing enableParallelBuilding and seeing if that works around the issue.

It's typical that missing *_ui.h is due to parallel make. Those are generated during build.

Alright, completed a sandboxed build of both kdevelop and kdevplatform, with the suggested change. Pushing it now. If this doesn't work, I'll just revert, I have no interest in building this any more, it takes forever.

That fixed it. Thanks for your help


Lineage pull request for: skeleton

Lineage Pull Request
Lineage has created this pull request to incorporate new changes found in an
upstream repository:
Upstream repository: https://github.com/cisagov/skeleton-generic.git
Check the changes in this pull request to ensure they won't cause issues with
your project.

Note: You are seeing this because one of this repository's maintainers has
configured Lineage to open pull requests.
For more information:
🛠 Lineage configurations for this project are stored in .github/lineage.yml
📚 Read more about Lineage

This repo could use some branch protection.

This repo could use some branch protection.

I just created it!

Oh.  I had no idea.  Welcome to the world new repo.  🍼

I can't even get my first cut at this stuff tested and out the door before lineage starts hammering me!


[issue-111] added environment variable to enable console logging

Change log description
Added environment variable to enable console logging in Travis
Purpose of the change
To log the connector build/test execution results

The log file size is exceeding 4 MB limit of Travis. I am thinking of changing the log level to ERROR from INFO. I wanted to know if there any other options we have other than changing the level?


Escrow Contract Issues (Solidified)

Solidified raised two concerns about v1 of the Escrow contract:
(1) Failure to handle non-compliant ERC20 tokens
There are several tokens that bill themselves as "ERC20" tokens but do not always return true upon a successful call to token.transfer and token.transferFrom. When such tokens interact with the Escrow contract unexpected behavior can occur (funding of a trade may always reject, non-compliant tokens could be locked in the Escrow contract forever, etc.). See this article for a full explanation.
(2) Signing scheme (see _verifySignatures) is not pre-image resistant
Quoting Solidified:

The signed message hash includes two arrays of dynamic length - destinations and amounts. When the hash is calculated, those arrays are packed encoded one after another. As a result, if a user mistakenly signs a message with 3 destinations and 1 amount, such signed message could be validated as 2 destinations and 2 amounts message (one destination would become an amount).

Considerations
Non-compliant "ERC20"
As for (1), it is not clear that this is an issue that we should address at the contract level (at least in v1). Should "non-compliant ERC20 tokens" even be considered "ERC20 tokens" at all? Supporting such tokens is out of the original scope of the Escrow contract.
Moreover, the OB multiwallet (and therefore the OB UI) will only work with ERC20 tokens that we've approved and added to the multiwallet code. And, naturally, we won't add any "ERC20" tokens the multiwallet if they don't comply to the ERC20 standard.
That being said, third-party builders may not be aware of these risks and may assume that any token that fits the ERC20 interface can be used with the Escrow contract. This could result in loss of the non-compliant tokens.
If we do decide we want to handle non-compliant tokens then we have several ways to address this. Whitelisting token contract addresses that can be used with the Escrow contract is my personal favorite. Although, that would require launching a new Escrow contract every time we wanted to support a new token, or we would have to give someone the authority to add (but not remove) new token addresses to the whitelist. The former is a minor nuisance. The latter may not be "politically" appealing because the Escrow contract is one contract we want OB1 to have zero control over.
I've added a "important note" about this in the Escrow contract specification so any third parties building on the contract are aware of this. I think we should revisit this for v2, but I don't think this warrants changes to v1 as non-compliant tokens are out of scope.
Signing scheme isn't pre-image resistant
I agree that this should be changed, however I think it is very low priority and we should hold off until v2 of the contract. This vuln is not exploitable unless an attacker can (a) trick a user into signing a bad message and (2) owns an address that is interpretable as an amount of tokens less than the number of tokens in that trade's escrow.  In general, I don't think we should take on the responsibility of users signing bad messages. An attacker that can trick a user into signing a bad message can simply steal all of the user's funds anyway.
That being said, we should want there to be zero ambiguity wrt to the signing user's intentions. So I think we should fix this in v2.

We can fix the second issue (non-unique parsing) by modifying the data being signed.
This a small change. It would touch both the Escrow contract code and the multiwallet code.
In the _verifySignatures function we would compute txHash as follows:
    abi.encodePacked(
        "\x19Ethereum Signed Message:\n32",
        keccak256(
            abi.encodePacked(
                byte(0x19),
                byte(0),
                address(this),
                destinationsAndAmountsHash,
                scriptHash
            )
        )
    )
);

where destinationsAndAmountsHash = H(H(destinations)||H(amounts)) and H is the keccak256 hash function.
If we make this change then there would be no ambiguity wrt what the signer intended to sign.

Adding
https://github.com/OpenBazaar/smart-contracts/commit/4686e1236adc87d0bf9a40a0bcb1e919216df195#commitcomment-32988369
for the reference
Now txHash will look something like
bytes32 txHash = keccak256(     abi.encodePacked(         "\x19Ethereum Signed Message:\n32",         keccak256(             abi.encodePacked(                 byte(0x19),                 byte(0),                 address(this),                 destinationsAndAmountsHash,                 scriptHash             )         )     ) );
where destinationsAndAmountsHash = H(H(destinations)||H(amounts)||H(noOfReleases)) and H is the keccak256 hash function.

Looks good. Maybe we can shorten the variable name destinationsAndAmountsHash, perhaps to something like releaseHash?

I haven't kept noOfReleases while calculating destinationsAndAmountsHash.
So I think the name is just fine. What do you say? Should I put noOfReleases while calculating destinationsAndAmountsHash or current structure in above comment looks good?
@Austin-Williams

I think what you have above is fine. 👍

A warning has been added in both the Escrow spec and Escrow code comments regarding non-compliant ERC20 tokens.
The signature scheme has been changed to address the pre-image resistance problem.


Consider JTS geometry types as simple types.

Here's a quick PR that makes spring-data-r2dbc work with the native JTS types useful for work with PostGIS. These are natively supported in the r2dbc-postgresql driver and should be picked up automatically now if the JTS dependencies are installed.
See: https://github.com/spring-projects/spring-data-relational/issues/1711
I've tested this locally and found that it removes the need for at custom postgres dialect. No additional dependency on JTS is necessary.

Thank you for your contribution. That's merged, polished, and backported now.


Inner and Outter Class Prefixes inverted

When the password strength is low, the css classes are inverted. This is what the html looks like when the strength is low:

vs what the html looks like when the strength is medium or high:

Looks like you're setting inner to scope.outterClassPrefix and outter to scope.innerClassPrefix here.
Also, the alert class is being used incorrectly here for Bootstrap mode (looks like the "alert" class in Foundation is equivalently to the "danger" class in Bootstrap). Right now, because the outer class is set to "alert", the progress bar is blue instead of red when the password strength is low. Both the inner and outer class should be set to prefix + "danger" for Bootstrap mode.

is there a workaround for this?

I'll try to make the changes this week though I'm quite busy at the moment. Or else you can change it and do a pull request.

Fixed in #16

Any idea if this will make it into a release? This PR does not appear in the latest in bower (0.2.1).

I should probably make a release. I'll have a look at all pull requests and make a new release.

Just a reminder that this can be closed as it was fixed in my PR #16


无法加载网络模型 | Not Able to Load Mesh Items in Resoursepack Creator

As the title said.
(even when i grouped the mesh items together)

Related to #428


LMDB embeddings creation is very slow on spinning drive

It is very slow on a spinning drive (40 it/s) compared to an SSD (4000 it/s). It is caused by frequent commits (and LMDB not being write optimized).
For the moment I can't find any evidence supporting the fact LMDB will or will not exclusively use RAM when writing all data in the same transaction. It does not seem likely though.  As far as I understand, those parameters will have an impact on actual RAM consumption.

Thank you @bfreuden !
Indeed without the frequent commits, it's considerably faster, even with SSD it's going for me from 2600 it/s up to 9000 it/s. I observed that without commits, more RAM is used as we could expect (around 1GB is used).

PR #55 has been merged


fix upload

Addresses issue #1191

This is much needed, thanks @aeftimia!
@saleweaver Are there any blockers for this merge / release?


Added word "Apotheosis"

The Pull Request resolves Issue #2516
Description:
Added word "Apotheosis"

Added word "Apotheosis"


Union a select and query will panic

Describe the bug
The might be caused by project_row_id. It exist in BoundSelect but will be eliminate from output in  BoundQuery
dev=> select unnest(Array[1,2,3]) union all select unnest(Array[1,2,3]);
 unnest
--------
      1
      2
      3
      1
      2
      3
(6 rows)

dev=> select unnest(Array[1,2,3]) union all (select unnest(Array[1,2,3]));
ERROR:  Panicked when handling the request: assertion failed: Schema::all_type_eq(inputs.iter().map(|x| x.schema()))
This is a bug. We would appreciate a bug report at:
  https://github.com/risingwavelabs/risingwave/issues/new?labels=type%2Fbug&template=bug_report.yml
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.

Error message/log
No response
To Reproduce
No response
Expected behavior
No response
How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
No response

somehow similar to https://github.com/risingwavelabs/risingwave/issues/17448. The handling of the hidden column has flaws/