bitcoin private keys import to cleos

If you import a compressed format(leading K or L) private key with cleos wallet import, it shows you the uncompressed(leading 5) format in cleos wallet private_keys.  If you paste the same compressed format private key(leading K or L) into the BP key checker tools, they give a different public key than cleos wallet keys and private_keys has.  Can we make cleos and the key checker tools match?  I think we'd just need to make the key checkers convert the compressed format(leading K or L) to uncompressed(leading 5) first, then generate the public key and make sure the public key matches cleos.
repro steps:

create any bitcoin private key from any bitcoin source like https://iancoleman.io/bip39/ or https://www.google.com/search?q=bitcoin+private+key+generator
Notice that bitcoin private keys don't have a leading 5.  They start with K or L, which is the compressed format.
https://www.reddit.com/r/Bitcoin/comments/4br5ip/bitaddressorg_all_private_keys_starts_with_k_or_l/

EOSIO v1.1
2. run cleos wallet import command and import the compressed format(leading K or L) bitcoin private key.
Notice cleos imports the key and gives you a matching public key

run cleos wallet private_keys command.
notice the private key imported is now changed to have a leading 5 and does not match the private key you imported.

I don't think earlier versions of cleos wallet changed the private key to have a leading 5, but I'm not sure.
Ref:
These three key checkers all give a different public key than cleos, but they all match each other.
https://github.com/eoscafe/eos-key/issues/1
https://github.com/webdigi/EOS-Offline-Private-key-check/issues/3
https://github.com/eosamsterdam/eos-keypair-check/issues/1
I registered 170 EOS to the wrong public key with the keycheckers above.
https://www.reddit.com/r/eos/comments/8so7ef/bp_key_checkers_have_a_bug/
https://www.reddit.com/r/eos/comments/8qzcwa/seems_like_i_lost_170_eos/

I generated compressed and uncompressed matching bitcoin private keys and imported both into cleos wallet.  both gave the same public key so there is no current bug in cleos.  The bug is in the key check tools only.  They give public keys that don't match cleos when the compressed format private key(leading K or L) is imported.
The most current details are at https://github.com/eoscafe/eos-key/issues/1
Closing this issue on eosio side though.


parse registrant organization in priority for .fr tld

Hello,
I got an issue while trying to get registrant with .fr, the whois format with .fr give you many registrant, some are PERSON type, some are ORGANIZATION. The current WhoisDomain implementation is quite random and unpredictable, sometimes it give you the first ORGANIZATION, sometimes the first PERSON. In order to make it more suitable for my needs (I rather prefer organization registrant than persons) and to be more consistent and predictable, I make it always return the first organization found when available and fallback to the first registrant found otherwise.
regards

as the tld_regex has already changed today, i implemented your change directly in the code, you can review and close this PR

also small fix in testFR.py so that mypy will not complain

note that things can be even more interesting:
whois meta.fr shows multiple sections type ORGANIZATION with different contacts ;-)
nic-hdl:                       OM8520-FRNIC
type:                          ORGANIZATION
contact:                       Operations Manager
nic-hdl:                       UDL201-FRNIC
type:                          ORGANIZATION
contact:                       101domain DAS Limited

and the order of the type items depends on the whois server response, there is no defined priority in the whois rfc protocoll so there will allways be variations
perhaps in the future i will also look at the newer whois http/https where the  response is more organized

code has been integrated already


Update to latest seti-ui for .eslintrc.cjs and cert extension icons

This PR downstreams https://github.com/jesseweed/seti-ui/pull/613 and https://github.com/jesseweed/seti-ui/pull/615.
Previews:

Closed since seti theme has been updated.


Checkstyle and findbugs refactoring

Checkstyle warnings: 1 -> 0
Findbugs warnings: 1 -> 0

Coverage increased (+0.3%) to 89.091% when pulling 798bc4a55cb3b8cf98f46b81d40702572e5d9fba on checkstyle-refactoring into 5bf7890db26d04d44471aa9912e1757d28e4c2b9 on master.


Fix two minor typos

Typos
Checklist

[X] My code follows the style guidelines of this project
[X] Checks (StandardRB & Prettier-Standard) are passing
[X] This is not a documentation update

Please note that the best way to suggest changes or updates to the documentation is to join Discord and leave a note in the #docs channel. Any documentation updates posted as PRs cannot be accepted at this time. :heart:

Nice catch!


Method: "Any"

How can I not discriminate against a method name.
Sometimes I don't care if it's POST or GET or whatever. I just want the url to link to the handler. How can I do that?

Just wondering; why would you want this?

You could always add the same Handler for both GET and POST if you really wanted to do it, but I would feel like it would encourage bad behavior.
(Also, I do not mean to offend you / anyone else, and would like to reminder you that I am not a contributor of this repo)

See also #72

A valid use case for this is for a reverse proxy. I have a few endpoints for SAML auth, but any other request to any other endpoint I want to go through the reverse proxy. Maybe i'm approaching this wrong?

@sevoma It sounds like you should use the NotFound handler ('Chaining with the NotFound handler' - README.md) for the proxy and register the SAML endpoints with the router.


Add Setting For Model Directory Path

This adds an input box into Setting under [ONE] section,
where end-user can enter directory path for model files.
for #330
ONE-vscode-DCO-1.0-Signed-off-by: Hyun Sik Yoon<EMAIL_ADDRESS>

with @yunjayh 's comment,


XML syntax check and OSIS validation

Currently the XML fails syntax check. That needs fixing.
Then in order to validate the OSIS to the remote schema, please replace line 1 with

See http://www.crosswire.org/wiki/OSIS_Bibles#Tools

btw. Although I'm a member of the modules list, I don't participate in the IRC for CrossWire.

Okay, I shall see if I can get the XML corrected. I now recall having to do that for the Catena module as well. It's been a while.

Okay, I have corrected all the issues the XMl validators gave me, except that it still complains about the closing tag , but I can't seem to fix that.

Which XML Editor do you use?
I general use Notepad++ together with the XML Tools Plugin.

I suspect you have a missing  or something like that.
XML Syntax Check still fails. This doesn't depend on the file being OSIS.
This has to pass before one performs the OSIS validation testing.

I've got the file to pass XML syntax check. There are now 74 of each.
There are 73 book divisions and Daniel has a section division.
I've not forked, so I'll email you the correction.

Ah, I think I have corrected it on my end too.

some s that should have been

To write any XML elements in a comment here, replace the opening "<" by "& l t ;" without the spaces.
Preview first to check.

Well, I think you understood what I meant in any case.
Anyway, to rephrase it, the issue in my XML validator concerned <div> tags which should have been </div> tags. I also made some significant changes to the footnotes, after a conversation with Peter von Kaehne.

XML now validates to OSIS. Closing issue.


MB-5744 remediation g106 ssh host key violation

Description
The static analysis review uncovered a G106 gosec warning in our code which was introduced by #5039. This is related to the SSH Host Key. This PR resolves it by reading the host key from environment variables set via chamber.
Reviewer Notes
There are tests for the session service, one of which as a real looking host key. However, this host key was generated specifically for the purpose of this test and is not used by any servers. Only the public key was saved. It was generated using the command ssh-keygen -q -N "" -t ecdsa -f /tmp/ssh_host_ecdsa_key
Setup
Ensure things are still functioning TBD
echo "Code goes here"

Code Review Verification Steps

[X] Code follows the guidelines for Logging
[X] Request review from a member of a different team.
[X] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change
this slack thread explains more about the approach used.
Original PR #5039
PR with relevant discussion #5373

Warnings

:warning:
It looks like you are attempting to bypass a linter rule, which is not a sustainable solution to meet
      security compliance rules. Please remove the bypass code and address the underlying issue. cc: @transcom/Truss-Pamplemoose

Messages

:book:
:link: MB-5744

  Generated by :no_entry_sign: dangerJS against c8065754aaa3c5a1dcfa468a83cf995b7c24698d


Provide a way for better for batch operation in stemcell

There are two relatively atomic commits in this PR:

Provide a more generic way to run batch operation against AWS instances (you can treat it as an enhanced way to do instances.each), which is flexible and reports much more detailed batch-related error message.
Based on the first commit, this commit add a retry mechanism to address the previous notorious "eventual consistency": set_tags may failed because AWS thinks these instances are not yet launched.

cc: @igor47 @jtai

Also cc @nelgau

looks generally ok. i left a bunch of feedback on implementation details.

@igor47 thanks for the comprehensive review. I submitted a new diff for the fix.

I simplified run_batch_operation as way we discussed, except that I still prefer the batch retry over the individual retry. The reason is to make sure the retry time is somehow "constant", though at the adding a bit complexity to the code.

this looks a lot better on casual inspection; haven't had a chance to do a second in-depth read

@jtai to make the review easier, this is the diff that ignores the white spaces: https://github.com/airbnb/stemcell/commit/df07ba04c72f920ae33fce389ae84a2d917df9e0?w=1

A few tiny things, then :speedboat:

Addressed comments and rebased commits. Thanks @jtai for the great reviews!


[BENCH-1412] Remove verily server config from DSP/terra-cli

@zloery @marikomedlock fyi - your personal server config was removed in this PR


Can't sort my extension by the "Works with" column

On the view where you manage your extensions, you can sort the columns by clicking the column headers. However, that doesn't work for the "Works with" column. It would be helpful to quickly identify the extensions that either work with many versions, or only work with one.

aha, sure thing, I will add it to the backlog. It should be a quick fix


New nav post-launch checklist

[ ] Figure out Metro Extracts login stuff https://github.com/mapzen/metro-extracts/pull/283
[ ]  Keep dropdown open on mobile https://github.com/mapzen/metro-extracts/issues/284
[ ] Centralize where docs-generator & metro-extract get header from

Docs-gen and Extracts both get their headers and footers from a central location:

https://github.com/mapzen/mapzen-docs-generator/blob/master/Makefile#L89-L93
https://github.com/mapzen/metro-extracts/blob/master/App/util.py#L84-L88

Moved here https://github.com/mapzen/website/issues/1259


Closest Pair Of Points

Feature ✅
Description
An array of n points in the plane, and the problem is to find out the closest pair of points in the array.
Example
Input :
N = 6
Array =[ {2, 3}, {12, 30}, {40, 50},
{5, 1}, {12, 10}, {3, 4} ]
Output :
Smallest Distance = 1.414214
Checklist:

[x] I have read the project guidelines.
[x] I have checked all the existing projects, before submitting a new project issue.
[x] This issue will be meaningful for the project.
[x] I will contribute more in future

Contributors are supposed to mention their coding language while asking for assignment

I will like to solve this using cpp

I would like to solve this using CPP

can you assign this to me to in python?


Update e3dc-rscp to 1.2.5

Please update my adapter ioBroker.e3dc-rscp to version 1.2.5.
This pull request was created by https://www.iobroker.dev c0726ff.

1.2.3 created 17.11.2023

1.2.5 created 17.11.2023
59 user
OK


Does not work in Basilisk v2021.04.27

It shows only a blank page (with all adblocker/umatrix etc. disabled).
Web console says:
12:22:39.359 SyntaxError: test for equality (==) mistyped as assignment (=)?  web.js:8:76
12:22:39.359 SyntaxError: expected expression, got '.'  web.js:224:52

Unfortunately, PaleMoon-based browsers still don't support ES6.

PaleMoon browsers do support ES6 from v27. As a matter of fact Basilisk even "Implemented several ECMAScript 2019 features". So the issue is with some particular features that are used by search.hyoo.ru but not implemented in Basilisk. Unfortunately, I do not know js well enough to check this myself. May I kindly ask you to identify the missing feature(s) to report it to PaleMoon/Basilisk developers for implementation or (much more appreciated way) to make a workaround for your quite useful service to avoid using features, that cause malfunction in in Basilisk v2021.04.27?
Thank you in advance!

I have found 2 unimplemented features:

dynamic import
optional chaining operator


env issue please help

This environment always cannot be configured. When executing this code, an error will be reported:

$.../common/scripts/api_env.
/usr/bin/bash.
Please create an application credentials file here:
/usr/bin/api_app_credentials.
For more information, see the "Put your app ID and secret" section of the top-level README in this repo.

However, I have already set this ID and secret.

Can you say more about your configuration? This is pretty straightforward shell code.
Also, it's . ../common/scripts/api_env not .../common/scripts/api_env.

Please try this branch to see if it fixes your problem: https://github.com/pinterest/api-quickstart/tree/dc_fix_issue_128

Yeah thanks, we found that problem and i would say there were a lot of different between Win and Mac, for another example the makefile in python>tests.

I see. Any chance you would consider submitting a pull request with Windows support? Alternatively, can you say a bit more about what Windows environment you're using? For example, what version of WSL are you using (assuming you're using WSL)?

Yeah ok, there's a lots of different,,, I will answer this question in future and btw I was wondering if pinterest api can get the public picture??(Like I would like to get the related picture from public pin when users input their search keywords? that's seems a very simple requirements) I have tried a lot of times but it seems can just get the picture what user's or the account already have? That's not good for us to get inspirations.... or what's wrong i have done? can give me some helps?

emmmmm here's response

$python get_pin.py -p<PHONE_NUMBER>565480716
,
it seems it didn't read the ACCESS_TOKEN, is this caused?

I'm not quite sure what you mean by "public picture." If you're referring to an account's profile picture, the OAuth tutorial here shows how to get it.
If you're referring to the Search tab and/or the "More to explore" features in the Pinterest app, I can submit a feature request. Can you say a bit more about the use case you're trying to support?

Thanks for your kindly response, I mean the second one, search tab. Actually i dont know how you define the bussiness account but we guys(designer) are just using pinterest for user to get what they want in VISUAL level and knowing the related picture characteristics for knowing their like and generate something based on their like, for customization and design for their own, and we trying to develop tools for this pipeline. We guys using pinterest for grabing the cutting-edge aesthetic information/inspiration something like this. Because you know that not every user already have something in their boards or pin if they have a new task in life or they face something new, so they absolutely need to search for new.^_^

Thanks for describing your use case! I'll pass the request along to our product team.

Waiting for you………and now we are not using your API and get your pictures from mock search…………but i think it is unfair for bussiness account and API user also it was so bad quality.

Hello! I forwarded your feedback to your product team. I think that we understand your use case, but the decision to provide API access to search capabilities is a big one for us.
In the meantime, I'm going to close this issue because this topic isn't related directly to the code in this repo.


实际任务相关的问题

老哥，这个插件，有没有 针对实际的一些任务做过测试，比如QA，summary。

Hi! Sorry, I don't speak Mandarin. I translated your question and I will reply in English.
ReLoRA was developed and tested for LM-based pre-training. We have then compared ReLoRA-pretrained models to usual full-rank models by fine-tuning them (in a regular way) to GLUE tasks. The results are available in the appendix our updated paper on arxiv.
In terms of applying ReLoRA directly for downstream tasks, we are currently working on it and we see small, but consistent improvements over LoRA. We are currently planning to release the downstream fine-tuning with ReLoRA paper in October.

Hi @Guitaricet,
Could you kindly inform me when the code for downstream fine-tuning will be released?


Feature Request: Ability to dynamically update Info Box with data

--infobox make it possiable to turn this on and off in a preexisting dialog and also to have the text updatable from a command file.
This would allow for updtes like hostname, user name etc to be sent to the info box while the dialog is open.

While I've never tried to "turn off" --infobox, with version <IP_ADDRESS>48, it's currently possible to update it.

--infobox is always there. whether it is "on" or "off" depends if there's is anything to show.
echo "infobox: " >> /var/tmp/dialog.log
will cause nothing to show
echo "infobox: some text here  \\\n## A Heading\\\nAnd some **bold** text" >> /var/tmp/dialog.log
will update the contents whether you launched dialog with and existing infobox or not.

@bartreardon: I just noticed infobox isn't listed on the Updating Dialog with new content Wiki page.


Not all configurations working

It looks like not all configuration values are working. I reported a similar issue in https://github.com/stephenafamo/bob/issues/201 Others like output and uuid_pkg are working for me.
I am setting the following values and they don't have any impact on the generated code. Is there something wrong with my approach?
  tags:
    - json
  struct_tag_casing: camel

the generated code is:
type User struct {
	ID              uuid.UUID           `db:"id,pk" `
	CreatedAt       time.Time           `db:"created_at" `
	UpdatedAt       time.Time           `db:"updated_at" `
        // ....
}

Expected
json tags as part of the generated model
Note: The current tags end with a whitespace, even if not tags configuration is set
Version
$ bobgen-psql --version
bobgen-psql version v0.25.0

The config file has the wrong strucutre, found it in https://github.com/stephenafamo/bob/issues/174#issuecomment-1932840669


Update calico systemd.service template for EL7

Proposed fix for #306

Seems ok to me thank you @aLostEngineer


Ability to define split points in config

We are migrating from RequireJS to Webpack and one pattern of "code-on-demand" that we've been using with RequireJS makes migration really hard.
// First:
function applyScript(deps, domContainer, options) {
    require(deps, function() {
        // do something useful
    })
}

// Then somewhere else in code base:
applyScript(moduleNameFromServer, element);

There are two problems here:

"require" with dynamic dependencies (which produces a warning, but at least works if split point is known by webpack)

these dependency names may come from server, so it's impossible for webpack to know that it is a split point (even by scanning whole js codebase)

I realize that it is a bad approach, but rewriting is not an option yet.
If we could at least hint webpack about all possible split points somewhere in config - it would solve the pain of migrating until we deprecate old stuff.
Is it possible? I thought about some plugin like ExplicitSplitPointsPlugin, but couldn't find anything relevant. Could probably write such plugin myself, but there are no docs yet on writing custom plugins.
Any help? Or maybe I am missing something?

Ignore it. Solution is ContextReplacementPlugin.


[1.12] Hydrator dupe bug

Minecraft version & Mod Version:
1.12
Cyclic 1.7.8
Single player or Server:
Found on server (Enigmatica 2 modpack)
Replicated on Single Player with only Cyclic/JEI/JourneyMap
Describe problem (what you were doing / what happened):
If you shift click an item into the Hydrator with water in it, it has a high chance of duplicating (Double the amount gets inserted).
It was inconsistent in the single player test, but very consistent on the server
Crash log (if any):
(If this is a suggestion and not a bug report, delete all this and just write your suggestion!)

At first this wasnt happening with some items but now i see it happen.
First I filled it with water and turned the machine on.
Then i put a stack of dirt in there.
Some of the dirt turned to farmland, and then when it got down to about 58 from 64, I shift click out the dirt, then back in, the same stack.
Suddenly its up to 63 now, but the farmland is still there. So dirt was duped.

Forgot to note that I set the machine to Always On, if that's relevant.
Items I managed to dupe:
Ice (Server)
Buckets (Server)
Marble (Server)
Iron Doors (Single Player)
Beacons (Single Player)

Fixed in latest version https://minecraft.curseforge.com/projects/cyclic/files/2466488

Hey again.
So our server just updated Cyclic to 1.7.9 (pack update happened right before 1.7.10 released), and this did not get fixed with the latest releases (neither 1.7.9 or 1.7.10 (tested in stand-alone)).
I did manage to find the consistent method for this dupe though. If you shift-click anything in from the Inventory (so not Hotbar), it will dupe in the Hydrator. Redstone mode, water/no water doesn't matter. The Hotbar not being affected is probably what lead it to be inconsistent in the first place (didn't really think about that as a factor).


Include the FIFA un-canonicalized TokenScript file and supporting files in this repo?

[x] A yes or no from @colourful-land or if there's a better place to put it.
[ ] Rename title
[ ] Someone do it

I agree that fifa is an example, but it's far more complicated than other examples and should not be mentioned in tutorial #103.
I fancy that it should be the last example in the order demonstrated by #110

the answer is no. @hboon I feel we should keep our work on fifa-ticket token in the contracts repo and submit the final result to https://github.com/AlphaWallet/TokenScript-Repo


RLP-956: integrate new rif-comms version

This PR solves issue RLP-956, which is about integrating the new version of the RIF Comms Pub-sub node into Lumino.
Overview
Besides adding the new proto files, the RIF Comms client code had its signatures updated.
With the aim of validating these new functionalities, the integration test suite for RIF Comms transport was extended.
Details
RIF Comms client

the connect method does not have a return statement anymore; it was unneeded and unused.
the _get_peer_id method was added back to the client. it is currently only used to verify correctness in the integration tests.
subscribe_to and unsubscribe_from have had their signatures updated to match the latest pubsub implementation.
is_subscribed_to is now an internal function. it is currently only used to verify correctness in the integration tests; we no longer check for subscription in order to send a raiden message.
disconnect no longer calls EndCommunication, as the latest version for this call does nothing. see pending issue here

RIF Comms integration tests

3 separate tests for the client connect function were added.

since we don't want automatic connection for the comms nodes in these tests, the existing fixture was not used here.
an auto_connect field was added to the Config and Node test classes in order to re-use them without automatic connection. its default value is True so that this is all compatible with the existing comms_nodes fixture.
the aforementioned tests are:

boot up a comms node and create a client with an RSK address. first, check that the address cannot be found in the comms node. then, connect and check that it can. this test currently fails because of an incorrect exception.
boot up a comms node and create a client with an RSK address. connect to the node and get the correspondent peer id. then, repeat the connection call, and check that the peer id remains the same.
boot up 2 comms nodes and connect separate clients with different RSK addresses for each of them. then, try to locate the peer ID from each client based on the other client's address.

since the client method _is_subscribed_to is (now) internal, its separate tests were removed. however, the logic in these tests was merged into the related subscribe_to tests, which now use this internal function as a means of verification.

test_is_subscribed_to_invalid logic is now in test_subscribe_to_invalid
test_is_subscribed_to_self logic is now in test_subscribe_to_self
test_is_subscribed_to_peers logic is now in test_subscribe_to_peers

a new test_send_message_shutdown test was added, which verifies no exception is raised when sending a message to an address which was registered in a comms node which is shut down immediately before sending the message.
test_send_message_subscription now sends a message before subscribing to a topic, as well as after doing so. both are expected to work based on the latest pubsub implementation.

Untested scenarios

full coverage for exceptions raised by the comms node or through the comms client. this should be completed through RLP-900
multiple connections on the same node. this should be solved through RLP-969 and #185, and eventually RLP-955
we are still missing a test case for a connection failure, see RLP-974
attempting to connect with the same RSK address on different nodes is not currently being tested. i believe this should be tackled when implementing RLP-943
tests for disconnect. these should be solved through RLP-925 and RLP-926

TODO

[x] verify pytest results
[ ] verify manual test cases

Solved issues
Besides RLP-956, this PR will also close:

RLP-897: fix connect
RLP-957: test connect

Pending related issues

RLP-900: handling exceptions
RLP-925: fix disconnect
RLP-926: test disconnect
RLP-936: rif comms test flakes, which is blocked by RLP-941
RLP-941: rif comms ping/healthcheck call
RLP-937: rif comms test coverage; this one is partially resolved in this PR but not fully
RLP-943: rif comms handshake
RLP-955: rif comms edge case tests
RLP-969: rif comms basic test cases
RLP-971: send message to invalid address
RLP-972: locate invalid peer ID error
RLP-973: invalid subscription error
RLP-974: failed connect
RLP-975: invalid unsubscription error

@marcosmartinez7 @JONAF2103
please take a look at raiden/tests/integration/network/transport/rif_comms/test_client.py in your IDE; the diff in this PR is too messy to properly review the changes in this module.
thanks

Great work. Lgtm in general.
I have reviewed the test cases mainly, and i have merge them into the PR that builds on this https://github.com/rsksmart/lumino/pull/192
Some things to keep in mind:

i was using test_is_subscribed_to_self to check that scenario in multiaddr environment, now is called test_multiple_subscriptions_same_node and only checks the scenario with 2 clients into the same node (this actually fails)
same with test_is_subscribed_to_peers, i have renamed to test_subscribe_to_peers_multi_address, same behaviour as 1.
From 1 and 2, now we have merged the _is_suscribed_to behaviour as you said, and new tests with suscription checking are added for multi addr scenarios.
i have manually merged the rest of the test cases but now using the multi scenario cluster
i added the new test cases (connect repeat, shutdown) to the  PR #192

From the 5 points above, i think the PR #192 has all the changes of this PR but we can compare it later.
I have the manual test pending too.


Solos Dataset draft

Did you delete your fork?
Should we close this PR to make a new one?

This doesn't use Asteroid at all for now.
Let's start from a fresh PR when this will be the case. Closing this.


Overhaul chunk pre-generation

SpongeAPI | SpongeCommon
This PR is designed to open up the World PreGeneration code to allow plugins to effectively monitor and manipulate the pregeneration. It is also designed to try to make performance gains by skipping over chunks that have already been generated. This is based off my experience with NucleusMixins, and should allow all plugins to control the pre generation more effectively - and I'm offering this after being asked by @bloodmc to do so in https://github.com/NucleusPowered/Nucleus/issues/528
Details of the API are discussed on the API PR - most of the changes here support the API and so won't be repeated here.
What has NOT been done
The basic routine that generates the chunks has not changed (apart from skipping some chunks), nor has how Sponge loads chunks. The algorithm for the actual generation is exactly the same.
The system does not save the chunks at any point either. This is considered to be something that the calling plugin should offer at the moment, though there probably is a valid argument to add this to the API.
The system does not offer a way to save the state of the generation, nor a way to resume it.
Movement of pre-gen code into its own package
As I added a second class that only required friend access, I opted to move the code into its own package. This can be moved back if you prefer.
Skipping chunks
One of the biggest frustrations is when a pregeneration has stopped, it has to start from the beginning. Sponge's routine, in the past, just loaded every chunk, without caring whether or not it already exists. This wastes a lot of time if you wanted to resume a generation - when I wrote NucleusMixins, I found that checking for whether a chunk has already been generated improved performance in the early stages massively.
A new internal method has been added to MixinChunkProviderServer, doesChunkExistSync. Originally, I was intending to use the doesChunkExist method, but because I'm always needing this information synchronously, there was a lot of overhead to creating an async task, only to block on it. Thus, a custom method in the pre-generator exists - and I found through testing on my PC that I was able to generate about 21 chunks per tick. If I had used the async method, I was lucky to get 4.
The pre-gen routine loads chunks in groups of four in order to coax Minecraft into populating the chunks with structures. This PR only skips generating a chunk if all four target chunks have been generated, otherwise, all four will be loaded.
Test code & log results (same as API)
I will try to add more later - for now, this tests the listeners work as expected - both single task listeners, and global listeners.
https://gist.github.com/dualspiral/2664950914056f5a3ce005fba78811c8

This issue should be closed when this is merged.

@bloodmc You should merge this one also.

@liach I'm in direct contact with @bloodmc about this and I'm updating it for the latest bleeding for quick merge.

Updated to include Sponge API submodule bump.


Change queryied OpenAI model

We’re currently using querying the gpt-3.5-turbo-instruct as the LLM to generate our responses. But this model only have a context window of 4,096 tokens, which is no a lot compared to some other model like gpt-4-turbo-preview which can take over 128,000 tokens (and also the training data is more recent).

As the experiment already have been achieved, I'm closing this issue.


How to disable apparmor (disable_apparmor in the CRI config, but presence of apparmor_parser binary is still checked)

Description
containerd  running kubernetes
ubuntu not install apparmor
tips : Oct 13 22:12:14 racknerd-4f290c kubelet[31773]: E1013 22:12:14.361653   31773 remote_runtime.go:442] "CreateContainer in sandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to create containerd container: get apparmor_parser version: exec: "apparmor_parser": executable file not found in $PATH" podSandboxID="78deccd920aee3c81f6dab8e0eae710d7ffc3cbd96694a3217792657547d9afd"

This change doesn't seem to take effect.
Steps to reproduce the issue
No response
Describe the results you received and expected
disable apparmor, kubelet running pod  in containerd
What version of containerd are you using?
1.6.2
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response

https://github.com/labring/sealos/issues/1755

apparmor_parser is provided by the apparmor package on Ubuntu. You'd need to either install that or disable apparmor in kernel boot params. Similar issue faced here, apparently some Ubuntu kernels are enabling apparmor by default:
https://github.com/rancher/k3os/issues/702#issuecomment-850246749

apparmor_parser is provided by the apparmor package on Ubuntu. You'd need to either install that or disable apparmor in kernel boot params/grub config. Similar issue faced here, apparently some Ubuntu kernels are enabling apparmor by default:
rancher/k3os#702 (comment)

apparmor_parser should not be needed when disable_apparmor is specified in the containerd config.
The kernel param does not need to be modified.

apparmor_parser is provided by the apparmor package on Ubuntu. You'd need to either install that or disable apparmor in kernel boot params/grub config. Similar issue faced here, apparently some Ubuntu kernels are enabling apparmor by default:
rancher/k3os#702 (comment)

apparmor_parser should not be needed when disable_apparmor is specified in the containerd config. The kernel param does not need to be modified.

But after I set disable_apparmour =true, the installation containerd does not seem to take effect on k8s, or does the error prompt apparmor_parser does not exist?

apparmor_parser should not be needed when disable_apparmor is specified in the containerd config.
The kernel param does not need to be modified.

Yes, but it seems disable_apparmor will not stop the check for the existence of apparmor userland utilities, though it does disable apparmor functionalities.
As mentioned in https://github.com/rancher/k3os/issues/702#issuecomment-849513559, we can either disable apparmor at kernel boot or install the apparmor userland. And https://github.com/rancher/k3os/pull/709 fixed this in the former way. However, we're not likely to tamper with kernel params and will provide a package for installing apparmor offline in the future.
A temporary fix for Ubuntu/Debian would be:
$ sudo apt install apparmor apparmor-utils

@AkihiroSuda I would like to work on this

I checked the implementation of containerSpecOpts  in both pkg/cri/sbserver and pkg/cri/server, It looks fine.
Steps:

If the DisableApparmor property in cri/config is set to true
Then apparmorEnabled()  of the criService will return false
And then If we look at this code, generateApparmorSpecOpts()  will return nil for apparmorSpecOpts since apparmorEnabled() is false.

Now that means the apparmorSpecOpts is nil  which means it will not be appended in specOpts.
if apparmorSpecOpts != nil {
	specOpts = append(specOpts, apparmorSpecOpts)
}

Not sure why this issue occurred.

Thank you very much. I tested it again yesterday, and it actually passed. Just modify disable_apparmor=true.

@cuisongliu Thanks for confirming 👍🏻


Typescript spaces with generic type

I don't know if this can be solved within the scope of this project,  since it seems to be typescript specific. But whenever i place a use something like: let myArray :Array<string> = [] and i beatify it it changes to 'let myArray :Array < string >  = []'

Sorry @Riuujin, seems this isn't supported by js-beautify, which is the tool we use behind the scenes. Not sure what other options are out there for ts formatting.


http_archive: allow remote execution

In OSS, SHA256 is a lot more popular than SHA1.

@krallin - given the support for Blake3 as well, what should be the logic here?

@ndmitchell Perhaps we should expose the supported hash algorithms via host_info and make this dependent on whether the available hash is supported?

No objection to returning the hash algorithms on host-info. Instead of exposing a way to find out if you can defer it, why not have an option to download_file that says defer if you can, else don't?

Instead of exposing a way to find out if you can defer it, why not have an option to download_file that says defer if you can, else don't

We do have that actually, this is trying to do something a bit different: it wants to figure out if we should run the action locally vs. remotely based on whether we expect the download to be deferrable.
TBH, maybe that code should just be deleted now that we have hybrid execution

Sorry for the delay here ... I landed https://github.com/facebook/buck2/commit/186f296227b09d00da54a8c945c459cd228d6662 to expose the digest config as I was mentioning
Now that we have that, I'll land the changes to have http_archive look at it once it ships internally (next Monday)


Quotes missing after decoding LinkedHashMap

Hi,
Im facing this issue on 2.2.0
When decoding the "value", which is of type LinkedHashMap, the quotes are missing and hence unable to parse the json
private CustomTypeAdapter dataMapTypeAdapter = new CustomTypeAdapter() {

    @Override
    public LinkedTreeMap decode(@NotNull CustomTypeValue value) {
        return new Gson().fromJson(value.value.toString(), LinkedTreeMap.class);
    }

    @Nonnull
    @Override
    public CustomTypeValue encode(@Nonnull LinkedTreeMap value) {
        return new CustomTypeValue.GraphQLString(new Gson().toJsonTree(value).getAsJsonObject().toString());
    }
};

value is of type LinkedHashMap and after converting to string it comes as {test=value}

Hi! That might be the expected behaviour. It looks like your server is returning a json object and not a string?
{
  "key": {
    "test": "value"
  }
}

vs
{
  "key": "{\"test\": \"value\"}"
}

If that's what the server is sending, you can get a LinkedTreeMap from a GraphQLJsonObject with something like this:
LinkedTreeMap map = LinkedTreeMap()
map.putAll(((CustomTypeValue.GraphQLJsonObject)value).value) // value.value should be a map

@anup1245 I'm closing this issue, let me know if you want me to reopen it.


⚠ Nextcloud has degraded performance

In 9bb4beb, Nextcloud ($SERVER_BASE/nextcloud/) experienced degraded performance:

HTTP code: 200
Response time: 5850 ms

Resolved: Nextcloud performance has improved in 4fb54ec after 15 minutes.


missing path as token

Hi could you implementa path toen in order to get it in the output format or in the where clause ?

Hi, I don’t really understand what you’re asking. Can you provide an example of what you’re running and what you wish to be running with this feature request?

I don’t write much Go anymore, so I might not get around to this any time soon. I’d be happy to review/merge a PR if you wanted to submit one.

You can get the FULLPATH/SHORTPATH in the output, but can't use it in the WHERE clause yet. We'll throw a not-implemented-error here: https://github.com/kashav/fsql/blob/7e90fdf4797a38a80726eecd6e9aadb189db7f9c/transform/parse.go#L59-L75
Making it work in WHERE clauses requires applying the Modifier function to the filename when doing the comparison here: https://github.com/kashav/fsql/blob/7e90fdf4797a38a80726eecd6e9aadb189db7f9c/evaluate/evaluate.go#L44-L55
I might take a look at this at some point but let me know if you decide to.

even if i use FULLPAH(name) in select i only get relative path + file name when using . in from.
PATH is normally the location of the file and should no contain file name. FULLNAME is more appropriate as format function.

Let me think about this more


Please add the code link of TinyBERT

Hi,
We have released the code of TinyBERT here (https://github.com/huawei-noah/Pretrained-Language-Model/tree/master/TinyBERT). Could you please add it?
Thanks

Added. Thanks for the good work:)


App not able to be started up with PowerToys search

Microsoft PowerToys version
"<IP_ADDRESS>"
Running as admin

[ ] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce
-Search up app to be opened
-Click enter
Should reproduce the error, however I did this when the name was autocompleted for me so i had nothing to type
✔ Expected Behavior
The app to be opened
❌ Actual Behavior
Error Message pops up with title of "Something went wrong."
Error message:
Version: <IP_ADDRESS>
OS Version: Microsoft Windows NT 10.0.19043.0
IntPtr Length: 8
x64: True
Date: 30/06/2021 14:16:20
Exception:
System.InvalidCastException: Unable to cast object of type 'System.Windows.Documents.Run' to type 'System.Windows.FrameworkElement'.
at PowerLauncher.MainWindow.SuggestionsList_PreviewMouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnPreviewMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Other Software
No response

Looks for me like #11898

we're have a fix checked in are tracking in #11898 and hope to have a fix out shortly.


UTF-8 Encode the string before using len() to avoid UTF-8 errors

Fix for #271

no, len works as intended here.


[Queue] clear data when releasing the queue

Code clean, remove duplicated code to clear data.
Signed-off-by: Jaeyun<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #148. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.


Will windows platform be provided later?

Unfortunately we currently have no plan to work on Windows support. We would of course gladly accept pull requests on this!


Step 3 of "Create enrollment group" is out of date with the Azure portal

Azure portal has changed since this page was last updated; the instructions in step 3 of "Create enrollment group" section no longer match what the user sees in the portal. Both can be seen side by side in the picture below.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 61ad5c72-71ab-26ef-fcf0-0d6deca4d7c1
Version Independent ID: 4c8133f4-543b-c8e4-9a7f-ada9eba87a42
Content: Tutorial - Configure Enrollment over Secure Transport Server (EST) for Azure IoT Edge
Content Source: articles/iot-edge/tutorial-configure-est-server.md
Service: iot-edge
GitHub Login: @PatAltimore
Microsoft Alias: patricka

@patheikkinen
Thanks for your feedback! We will investigate and update as appropriate.

Hi @patheikkinen Thank for bringing this issue to our attention. We have made changes to the article with the PR 112335. Changes will be reflected once the PR is merged. We will now proceed to close the issue.
Thank you for contributing to improving the document experience.
Best regards,
Leela Rajesh.


Running vue-cli-service fails with an exception "Cannot read property 'replace' of null"

Version
3.0.0-rc.3
Reproduction link
https://github.com/jaromero/vue-cli-service-error-demo
Steps to reproduce

vue create my-app
Select any options you want and let the project be created
cd my-app && yarn run serve (or npm if chosen)
Try running any vue-cli-service command, like npx vue-cli-service serve

What is expected?
No errors; vue-cli-service should run as expected.
What is actually happening?
When vue-cli-service is run with npx, the output is simply:
Cannot read property 'replace' of null
With yarn, the output is:
yarn run v1.7.0
$ vue-cli-service serve
/home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:73
      if (!(ex instanceof URIError)) throw ex
                                     ^

TypeError: Cannot read property 'replace' of null
    at /home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:61:63
    at Array.map (<anonymous>)
    at fromUrl (/home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:45:39)
    at Function.module.exports.fromUrl (/home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:32:18)
    at Object.<anonymous> (/home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/fixer.js:150:36)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/fixer.js:144:31)
    at Array.forEach (<anonymous>)
    at Object.fixDependencies (/home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/fixer.js:137:41)
    at /home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/normalize.js:32:38
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

(npm shows largely the same information, plus npm-specific info like this is not a problem with npm, debug log at /path/to/wherever/debug.log etc.)
Even with pnpm (and installing dependencies with the --shamefully-flatten flag) this fails and produces the same error as npm.

Node: 10.6.0
npm: 6.1.0
yarn: 1.7.0

I've got the same error.

Same, getting this on two different Windows computers

Looks like this was an issue with hosted-git-info, and they just merged a quick fix an hour ago.
https://github.com/npm/hosted-git-info/issues/35
Updating hosted-git-info resolved the issue for me

@chasebank Thanks, worked for me too.

We'll leave this open for a while so people with the same problem find this info more easily, but this could be closed.


Increase pressable area on Add an ID results

A user should be able to tap the taxon photo, common name, scientific name, and i button to open the taxon detail screen. Right now, only the i button is tappable.

Closed by PR #285


Added missing italian translations

Fixes #
Changelog Entry

Description

Specific Changes

[ ] Testing Added

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

Coverage decreased (-0.8%) to 65.786% when pulling 3e21651f587d7b622be7b45e139792e4dc752e44 on AntoT84:italian-translation into eb2a555d05e99653bf8295f6435c2c1282079ef8 on microsoft:master.


Always try to flush the async queue in at_exit

For async clients having:

retry > 0: will have no change in behavior
retry <= 0: will now try to flush the queue with retry=0

Addresses issue #198

Version 0.4.1 was just released with this patch. Thank you very much!


Revert the temporary change on the runtime image tests

https://github.com/valory-xyz/open-autonomy/pull/1973#discussion_r1200078833

Addressed https://github.com/valory-xyz/open-autonomy/pull/2051


Can't load LuckPermsBungee

When loading the plugin, it throws an exception:
Cannot create property=softdepends for JavaBean=PluginDescription(name=LuckPerms, main=me.lucko.luckperms.bungee.LPBungeePlugin, version=2.16.60, author=Luck, depends=[], softDepends=[], file=null, description=A permissions plugin)
 in 'reader', line 1, column 1:
    name: LuckPerms
    ^
Unable to find property 'softdepends' on class: net.md_5.bungee.api.plugin.PluginDescription
 in 'reader', line 6, column 14:
    softdepends: [PowerfulPerms] # For migration
                 ^

    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:307)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:340)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
    at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475)
    at bungeepluginmanager.PluginUtils.loadPlugin(PluginUtils.java:115)
    at bungeepluginmanager.Commands.execute(Commands.java:51)
    at net.md_5.bungee.api.plugin.PluginManager.dispatchCommand(PluginManager.java:169)
    at net.md_5.bungee.api.plugin.PluginManager.dispatchCommand(PluginManager.java:116)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:118)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'softdepends' on class: net.md_5.bungee.api.plugin.PluginDescription
    at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:132)
    at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:121)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.getProperty(Constructor.java:317)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:240)
    ... 13 more

Happened because I wanted to load the plugin with BungeePluginManager, it doesn't seem to work with LuckPerms, unfortunately =/
Don't know if it still a issue, but I'm closing since it worked after a proxy restart.

BPM seems to load the plugin description in a different way, maybe it expects "softDepends" instead of "softdepends"

Strange. The code is seemingly identical.
https://github.com/Shevchik/BungeePluginManager/blob/master/src/bungeepluginmanager/PluginUtils.java#L115
https://github.com/SpigotMC/BungeeCord/blob/master/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java#L327


Avoid restarting and restore state after performing landscape

When the phone is rotated into landscape the material-intro not only starts from the beginning, it creates a new instance of all the slides that is the intro is showed 2 times.

I can't reproduce this behavior on my devices. Which library version and which device are you using?

I'm using SNAPSHOT of material-intro.
Regards
,
Akshay Chordiya
On Mon, Mar 7, 2016 at 8:11 PM, Heinrich Reimer<EMAIL_ADDRESS>wrote:

I can't reproduce this behavior on my devices. Which library version and
which device are you using?
—
Reply to this email directly or view it on GitHub
https://github.com/HeinrichReimer/material-intro/issues/20#issuecomment-193276294
.

For me, it doesn't show the startup two times, but he is right with recreation. The FragmentManager normally cares about retaining Fragments, etc. This is broken with this library, which means Fragments are recreated each rotation, and that wastes power and CPU cycles.

Fun fact: if you rotate the device, the Fragments get recreated, but onCreateView doesn't get called, means permissionGranted is false, and doesn't get true, means you can't go forward anymore after rotation.

Sadly, my fix doesn't fix the problem of my last comment. So we definitely need to rewrite the IntroActivity for proper instance saving and restoring support.

I switched from using FragmentPagerAdapter to using FragmentStatePagerAdapter in e6fe290. This should keep Fragments in memory. I have to look into restoring pager position though.

The main issue is that the displayed Fragment is the old one loaded from FragmentManager and the code that checks if  users are allowed to go to the next page is the new one returned because onCreate() gets called on IntroActivity

We could either try to detect if an old but matching Fragment is already existing in FragmentManager in SlideAdapter.addSlide(). But that would require us to save a unique ID with every Slide which I don't like as it's extra effort for developers implementing this library ...
... or we simply don't use Fragment retaining at all but instead create every Fragment again after an orientation change. That's not a problem in particular as the fragments used in an intro won't be very complicated and thus the recreation process would not take too much time...

(Accidentially closed the issue. Sorry for that!)

Finally found a solution for the first approach without requiring an ID. Needs some polishing and will be a breaking change so stay tuned for a fix soon.


Multicorn aggregation/grouping pushdown support

Enable aggregation/grouping support offered in Multicorn through the accompanying PR https://github.com/splitgraph/Multicorn/pull/1.

Provides a response to can_pushdown_upperrel with relevant details so that Multicorn can decide whether and what to push to the Python side.
Takes care of differences in the query and responses for the cases with and without aggregations.

Here are two instructive examples of the translated aggregation queries:

With GROUP BY

sgr@localhost:splitgraph> explain select column5, column4, min(column2) from es.iris group by column4, column5
+--------------------------------------------------------------------------------------------+
| QUERY PLAN                                                                                |
|--------------------------------------------------------------------------------------------|
| Foreign Scan  (cost=1.00..1.00 rows=1 width=1)                                             |
|   Multicorn: Elasticsearch query to <Elasticsearch([{'host': 'es01-test', 'port': 9200}])> |
|   Multicorn: Query: {                                                                      |
|     "aggs": {                                                                              |
|         "group_buckets": {                                                                 |
|             "composite": {                                                                 |
|                 "sources": [                                                               |
|                     {                                                                      |
|                         "column5": {                                                       |
|                             "terms": {                                                     |
|                                 "field": "column5"                                         |
|                             }                                                              |
|                         }                                                                  |
|                     },                                                                     |
|                     {                                                                      |
|                         "column4": {                                                       |
|                             "terms": {                                                     |
|                                 "field": "column4"                                         |
|                             }                                                              |
|                         }                                                                  |
|                     }                                                                      |
|                 ],                                                                         |
|                 "size": 1000                                                               |
|             },                                                                             |
|             "aggregations": {                                                              |
|                 "min.column2": {                                                           |
|                     "min": {                                                               |
|                         "field": "column2"                                                 |
|                     }                                                                      |
|                 }                                                                          |
|             }                                                                              |
|         }                                                                                |
|     }                                                                                |
| }                                                                                |
+--------------------------------------------------------------------------------------------+

Without GROUP BY

sgr@localhost:splitgraph> explain analyze select sum(column4), max(column4), sum(column4), min(column2), avg(column3)  from es.iris
+--------------------------------------------------------------------------------------------+
| QUERY PLAN                                                                                |
|--------------------------------------------------------------------------------------------|
| Foreign Scan  (cost=1.00..1.00 rows=1 width=1) (actual time=2.344..2.350 rows=1 loops=1)   |
|   Multicorn: Elasticsearch query to <Elasticsearch([{'host': 'es01-test', 'port': 9200}])> |
|   Multicorn: Query: {                                                                      |
|     "aggs": {                                                                              |
|         "sum.column4": {                                                                   |
|             "sum": {                                                                       |
|                 "field": "column4"                                                         |
|             }                                                                              |
|         },                                                                                |
|         "max.column4": {                                                                   |
|             "max": {                                                                       |
|                 "field": "column4"                                                         |
|             }                                                                              |
|         },                                                                                |
|         "min.column2": {                                                                   |
|             "min": {                                                                       |
|                 "field": "column2"                                                         |
|             }                                                                              |
|         },                                                                                |
|         "avg.column3": {                                                                   |
|             "avg": {                                                                       |
|                 "field": "column3"                                                         |
|             }                                                                              |
|         }                                                                                |
|     }                                                                                |
| }                                                                                |
| Planning Time: 3.123 ms                                                                    |
| Execution Time: 2.467 ms                                                                   |
+--------------------------------------------------------------------------------------------+

CU-1t1wycg

Would be nice to have some unit tests for this ES query handling (converting aggs/group_clauses into ES queries and back) + handling the EXPLAIN/get_rel_size in Multicorn as you mentioned. LGTM otherwise.


Teleporting off objects

Since Teleporting is possible as long as the laser hits an object, using two controllers and attempting to teleport to my controller with the grip buttons pressed, will teleport me higher or lower depending where I hold the other controller when teleporting

I think this is out of scope for newtonvr. There's a lot of different things people want teleporting to do.


File "/home/ywc/temp/DetFusion/mmdet/models/bbox_heads/fusion_head_bbox.py", line 72, in forward     enc_fusion = enc_fusion + enc_fusion * up_att_w  RuntimeError: The size of tensor a (640) must match the size of tensor b (608) at non-singleton dimension 3

Dimension mismatch

File "/home/ywc/temp/DetFusion/test.py", line 31, in
save_fusion_result('./configs/DetFusion.py', './work_dirs/DetFusion/model.pth', img_dir='./evaluateimgs/')
File "/home/ywc/temp/DetFusion/test.py", line 26, in save_fusion_result
image_fusion = inference_detector(model, img_path_r, img_path_i)
File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 60, in inference_detector
return _inference_single(model, imgs_r, imgs_i, img_transform, device)
File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 120, in _inference_single
result_r, result_i, image_fusion = model(return_loss=False, rescale=True, **data)
File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 116, in forward
return self.forward_test(img_r, img_i, img_meta, source_img_r, source_img_i, **kwargs)
File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 107, in forward_test
return self.simple_test(imgs_r[0], imgs_i[0], img_metas[0], source_img_r[0], source_img_i[0], **kwargs)
File "/home/ywc/temp/DetFusion/mmdet/models/detectors/detfusion.py", line 556, in simple_test
im_fusion = self.fusion_head(source_img_r/255.0, source_img_i/255.0, att_rgb, att_tir)
File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/ywc/temp/DetFusion/mmdet/models/bbox_heads/fusion_head_bbox.py", line 72, in forward
enc_fusion = enc_fusion + enc_fusion * up_att_w
RuntimeError: The size of tensor a (640) must match the size of tensor b (608) at non-singleton dimension 3

你也在复现这篇论文吗，如果成功的话能不能发我一份，谢谢！

It may be that the dimensions of "up_att_w" and "enc_fusion" do not match, and you should check your input data to debug it.

File "/home/ywc/temp/DetFusion/test.py", line 31, in save_fusion_result('./configs/DetFusion.py', './work_dirs/DetFusion/model.pth', img_dir='./evaluateimgs/') File "/home/ywc/temp/DetFusion/test.py", line 26, in save_fusion_result image_fusion = inference_detector(model, img_path_r, img_path_i) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 60, in inference_detector return _inference_single(model, imgs_r, imgs_i, img_transform, device) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 120, in _inference_single result_r, result_i, image_fusion = model(return_loss=False, rescale=True, **data) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 116, in forward return self.forward_test(img_r, img_i, img_meta, source_img_r, source_img_i, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 107, in forward_test return self.simple_test(imgs_r[0], imgs_i[0], img_metas[0], source_img_r[0], source_img_i[0], **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/detfusion.py", line 556, in simple_test im_fusion = self.fusion_head(source_img_r/255.0, source_img_i/255.0, att_rgb, att_tir) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/bbox_heads/fusion_head_bbox.py", line 72, in forward enc_fusion = enc_fusion + enc_fusion * up_att_w RuntimeError: The size of tensor a (640) must match the size of tensor b (608) at non-singleton dimension 3

It may be that the dimensions of "up_att_w" and "enc_fusion" do not match, and you should check your input data to debug it.

你也在复现这篇论文吗，如果成功的话能不能发我一份，谢谢！

请问你成功了吗

File "/home/ywc/temp/DetFusion/test.py", line 31, in save_fusion_result('./configs/DetFusion.py', './work_dirs/DetFusion/model.pth', img_dir='./evaluateimgs/') File "/home/ywc/temp/DetFusion/test.py", line 26, in save_fusion_result image_fusion = inference_detector(model, img_path_r, img_path_i) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 60, in inference_detector return _inference_single(model, imgs_r, imgs_i, img_transform, device) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 120, in _inference_single result_r, result_i, image_fusion = model(return_loss=False, rescale=True, **data) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 116, in forward return self.forward_test(img_r, img_i, img_meta, source_img_r, source_img_i, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 107, in forward_test return self.simple_test(imgs_r[0], imgs_i[0], img_metas[0], source_img_r[0], source_img_i[0], **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/detfusion.py", line 556, in simple_test im_fusion = self.fusion_head(source_img_r/255.0, source_img_i/255.0, att_rgb, att_tir) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/bbox_heads/fusion_head_bbox.py", line 72, in forward enc_fusion = enc_fusion + enc_fusion * up_att_w RuntimeError: The size of tensor a (640) must match the size of tensor b (608) at non-singleton dimension 3

Pls how to solve this problem, I am also experiencing such a problem

File "/home/ywc/temp/DetFusion/test.py", line 31, in save_fusion_result('./configs/DetFusion.py', './work_dirs/DetFusion/model.pth', img_dir='./evaluateimgs/') File "/home/ywc/temp/DetFusion/test.py", line 26, in save_fusion_result image_fusion = inference_detector(model, img_path_r, img_path_i) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 60, in inference_detector return _inference_single(model, imgs_r, imgs_i, img_transform, device) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 120, in _inference_single result_r, result_i, image_fusion = model(return_loss=False, rescale=True, **data) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 116, in forward return self.forward_test(img_r, img_i, img_meta, source_img_r, source_img_i, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 107, in forward_test return self.simple_test(imgs_r[0], imgs_i[0], img_metas[0], source_img_r[0], source_img_i[0], **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/detfusion.py", line 556, in simple_test im_fusion = self.fusion_head(source_img_r/255.0, source_img_i/255.0, att_rgb, att_tir) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/bbox_heads/fusion_head_bbox.py", line 72, in forward enc_fusion = enc_fusion + enc_fusion * up_att_w RuntimeError: The size of tensor a (640) must match the size of tensor b (608) at non-singleton dimension 3

File "/home/ywc/temp/DetFusion/test.py", line 31, in save_fusion_result('./configs/DetFusion.py', './work_dirs/DetFusion/model.pth', img_dir='./evaluateimgs/') File "/home/ywc/temp/DetFusion/test.py", line 26, in save_fusion_result image_fusion = inference_detector(model, img_path_r, img_path_i) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 60, in inference_detector return _inference_single(model, imgs_r, imgs_i, img_transform, device) File "/home/ywc/temp/DetFusion/mmdet/apis/inference.py", line 120, in _inference_single result_r, result_i, image_fusion = model(return_loss=False, rescale=True, **data) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 116, in forward return self.forward_test(img_r, img_i, img_meta, source_img_r, source_img_i, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/base.py", line 107, in forward_test return self.simple_test(imgs_r[0], imgs_i[0], img_metas[0], source_img_r[0], source_img_i[0], **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/detectors/detfusion.py", line 556, in simple_test im_fusion = self.fusion_head(source_img_r/255.0, source_img_i/255.0, att_rgb, att_tir) File "/home/ywc/miniconda3/envs/detfusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/ywc/temp/DetFusion/mmdet/models/bbox_heads/fusion_head_bbox.py", line 72, in forward enc_fusion = enc_fusion + enc_fusion * up_att_w RuntimeError: The size of tensor a (640) must match the size of tensor b (608) at non-singleton dimension 3

Pls how to solve this problem, I am also experiencing such a problem


Delete ${PREFIX}/lib/libg*-2.0${SHLIB_EXT} from libglib

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


ImportError: cannot import name 'get_world_size'

run infer.py and get error

Traceback (most recent call last):
File "D:/PycharmProject/depth_estimate_2/scripts/infer.py", line 16, in
from mono.datasets.utils import readlines
File "D:\PycharmProject\depth_estimate_2\mono\datasets_init_.py", line 1, in
from .loader import build_dataloader
File "D:\PycharmProject\depth_estimate_2\mono\datasets\loader_init_.py", line 5, in
from .build_loader import build_dataloader
File "D:\PycharmProject\depth_estimate_2\mono\datasets\loader\build_loader.py", line 10, in
from .sampler import GroupSampler, DistributedGroupSampler, DistributedSampler
File "D:\PycharmProject\depth_estimate_2\mono\datasets\loader\sampler.py", line 11, in
from torch.distributed import get_world_size, get_rank
ImportError: cannot import name 'get_world_size'

It seems that your torch isn't installed correctly or you didn't install the GPU version.

I will close this issue, if you have further question, you are welcome to reopen it.


merge dsWriteDynaSimSolver and dsWriteMatlabSolver

Most of the code seems to be the same in both files. It would be better to create specific functions that could be called in different conditions.

Actually this may not be the best approach, closing for now...


Allow lower values in Spinbox

Wave SDK Version, OS
0.21.1, Ubuntu
Actual behavior
Setting minimum and step values to 1e-7 in ui.spinbox does not work, as all the changes are giving either 0 or 1e-7 value:
https://user-images.githubusercontent.com/25034016/176399405-cd27814d-ac5e-429b-9647-beac9b2b4bc9.mov
With 1e-6 min and step values everything looks good:
https://user-images.githubusercontent.com/25034016/176399502-8f34a9d0-e5d1-4931-8929-124a97f0414b.mov
Expected behavior
Allow lower values in ui.spinbox
Steps To Reproduce

Create a ui.spinbox with 1e-7 as min and step values
Try changing the value

I would also appreciate the ability to choose smaller values than 1e-6.
Current learning rates for fine-tuning LLMs are often in the 1e-7 range and the spinbox would be the best fit to do such things in a H2O Wave UI. The current lower limit of 1e-6 makes this impossible.

@mturoci any plans for this to be addressed or any workaround?
also running into it

@marek-mihok please prioritize.


Drop Down Option

Do you think its worth while having a drop down option like you can get on some of the tile cards

Duplicate of #56


Sklearn on other languages

I have the MITIE trained for Portuguese.
However, I aiming a big dataset and for this reason I'm interested on MITIE+SKLEARN usage.
It's not really clear to me how SKLearn works and if it has any language dependency. It's Sklearn language dependent? How to prepare SkLearn to deal with Portuguese?

Scikit-learn is a machine learning library. Among other things it contains classification algorithms allowing you to identify intents in the RASA context.
To summarize quickly, your language model that you built using MITIE allows you to get features vector from your input sentences that can be used by any ML classifier trained over the sets of intents you defined.
A pure MITIE pipeline use MITIE words features and its own classifier (a linear SVM) for intent recognition whereas MITIE + Sklearn use MITIE words features and a Scikit-learn classifier (also a linear SVM).

Thus, SKLearn is language agnostic, right?

Like any ML algorithm, (the classifier used by RASA)[http://scikit-learn.org/stable/modules/svm.html] is data agnostic


Fix GMT6 library not found error

Everyone who is getting this error, please subscribe to this issue (link on the side). You'll be notified of any progress we make.
This is happening because some of our dependencies on conda-forge got updated and are now incompatible with the current build of GMT6. I've been working hard to get it back up but there have been some problems along the way.
Right now, this is all hanging on conda-forge/gmt-feedstock#51. Once that is done, things should be back to normal.
For the moment, if you want to give GMT/Python a try, you can do so online at http://try.gmtpython.xyz/
Thanks for your patience!

I finally found the problem and am running a fix in conda-forge/gmt-feedstock#52. Once that is passing and merged, things should be back in order. Thanks for all your patience!

Thank for your hard work.
Today I give a try, from a new conda env.
Still some error after import gmt in ipython, but it looks better than last time.
`Python 3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 09:53:17)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import gmt
/home/user/anaconda3/envs/gmt-python/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
/home/user/anaconda3/envs/gmt-python/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
Segmentation fault (core dumped)
`

Yeah, that's something that will get fixed by #224 But I'm having some trouble getting the CIs to pass on that. The state of conda-forge has been very unstable lately. See conda/conda#7656

Success! After #224 and conda-forge/gmt-feedstock#53 all CIs are passing! I just hope it will stay that way for at least a week :disappointed:

Thank you, at least GMT 6.0 can run alone, only it shows no module gmt in
notebook.
Regards
Chia-Yu
Leonardo Uieda<EMAIL_ADDRESS>於 2018年8月18日 週六 上午5:35寫道：

Closed #221 https://github.com/GenericMappingTools/gmt-python/issues/221
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GenericMappingTools/gmt-python/issues/221#event-1795606971,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALEdtpv-brUzgNS-Sey9_arDlQnpBNOhks5uRzc5gaJpZM4VnXGb
.

--
Lu Chia-Yu
Department of Geosciences,
National Taiwan University
245,Choushan Road, Taipei, 106
<EMAIL_ADDRESS>

@luchiayu make sure you have GMT/Python installed as well.

thank you, I reinstall GMT/Python and get the following message in notebook
GMTCLibError Traceback (most recent call last)
 in ()----> 1 import gmt
~/anaconda3/lib/python3.6/site-packages/gmt/init.py in ()
23      24 # Start our global modern mode session---> 25 _begin()
26 # Tell Python to run _end when shutting down     27
_atexit.register(_end)
~/anaconda3/lib/python3.6/site-packages/gmt/session_management.py in
begin()     15     """     16     prefix = "gmt-python-session"---> 17
with Session() as lib:     18         lib.call_module("begin",
prefix)     19
~/anaconda3/lib/python3.6/site-packages/gmt/clib/session.py in
enter(self)    170     171         """--> 172
self.create("gmt-python-session")    173         # Need to store the
version info because 'get_default' won't work after the    174
session is destroyed.
~/anaconda3/lib/python3.6/site-packages/gmt/clib/session.py in
create(self, name)    318             "GMT_Create_Session",    319
argtypes=[ctp.c_char_p, ctp.c_uint, ctp.c_uint,
ctp.c_void_p],--> 320             restype=ctp.c_void_p,    321
)    322
~/anaconda3/lib/python3.6/site-packages/gmt/clib/session.py in
get_libgmt_func(self, name, argtypes, restype)    268         """
269         if not hasattr(self, "_libgmt"):--> 270
self._libgmt = load_libgmt()    271         function =
getattr(self._libgmt, name)    272         if argtypes is not None:
~/anaconda3/lib/python3.6/site-packages/gmt/clib/loading.py in
load_libgmt(env)     41     try:     42         libgmt =
ctypes.CDLL(libpath)---> 43         check_libgmt(libgmt)     44
except OSError as err:     45         msg = "\n".join(
~/anaconda3/lib/python3.6/site-packages/gmt/clib/loading.py in
check_libgmt(libgmt)    144                 ]    145             )-->
146             raise GMTCLibError(msg)
GMTCLibError: Error loading libgmt. Couldn't access function GMT_Get_Enum.
Regards
Leonardo Uieda<EMAIL_ADDRESS>於 2018年8月21日 週二 上午4:20寫道：

@luchiayu https://github.com/luchiayu make sure you have GMT/Python
installed as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GenericMappingTools/gmt-python/issues/221#issuecomment-414449820,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALEdtoGKh3lUWVc-wHiD8O8Yr3R0jCjQks5uSxoegaJpZM4VnXGb
.

--
Lu Chia-Yu
Department of Geosciences,
National Taiwan University
245,Choushan Road, Taipei, 106
<EMAIL_ADDRESS>

@luchiayu could you please open a new issue to discuss this? Also, please make sure that you have the very latest GMT by running conda update gmt -c conda-forge/label/dev.


Show development tools

I was trying to implement the window.webContents.openDevTools() method. It's not trivial programmatically but can be open manually if the developerExtrasEnabled flag is set to TRUE.
    WKWebView *webView = [[WKWebView alloc] initWithFrame:window.contentView.bounds configuration:wkConf];
    [webView.configuration.preferences setValue:@(TRUE) forKey:@"developerExtrasEnabled"];

Now you can right click on the page and inspect an element :)
This requires USE_WKWEBVIEW to be set to 1 and I had to modify this code:
- (void)webView:(WebView *)webView didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame
{
#if !USE_WKWEBVIEW
    if (frame == self.webView.mainFrame) {
        self.window.title = title;
    }
#endif
}

Because mainFrame doesn't exist on WKWebView.
Btw, why do you want to support both WKWebView and WebView?

Thanks for implementing that!
Actually I don't really want to support both WebKit interfaces... I started out using WKWebView, but then realized that it's not possible to add custom JavaScript objects into the JSContext because WebKit2 runs the browser in a separate process. (In other words, - (void)webView:didCreateJavaScriptContext:forFrame: only exists for the old WebKit1 WebView.)
I'm still hoping that we might be able to use WKWebView without crippling the Electron browser-side API.
Some of those APIs could just be loaded as plain JavaScript, as they don't really require a native implementation (e.g. "process"). For ones that do need to call back to the native side, WebKit2 provides an async message-passing interface (window.webkit.messageHandlers) which could be enough of a building block. I'll need to research this further.


[pl] Updated resources of README.md

en PR https://github.com/kubernetes/website/pull/43043/files
/assign @mfilocha

/language pl

Thanks @Arhell
/lgtm

/approve

/assign @sftim

Still no way to let localization owners to also own this one README-pl.md in the main folder?

@sftim

/approve


Complex Environmental Name Replacements

Description
Change environmental replacement options to regex capture groups

Added Regex Substitution in Place of flat replace
Added function to iterate matching groups
Updated templates to match new syntax

Issue reference
The issue this PR will close: #156
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[X] Code compiles or validates correctly
[X] BASH scripts have been validated using shellcheck
[X] All tests pass (manual and automated)
[X] The documentation is updated to cover any new or changed features
[X] Markdown files have been linted using the recommended linter. (See .vscode/extensions.json.)
[X] Relevant issues are linked to this PR

Looks like we can update -eastus- in all the *.front.json with -${env:MLZ_LOCATION}- too, right?

  Done!


Made JSONField use the new included JSONField in 1.9 if the mixins to…

… create the Feincms one are missing in django.

Thanks. Unfortunately this change will break for everyone who is not using PostgreSQL. While I somewhat do like that ;-) we still want to support other database engines.
Is there a smart way of making this optional? Maybe without introducing even more settings :-(


Workaround selfhost Windows

Hi I finally got it working and I'm going to share my step by step to make this work.
My system:
RTX 3060 12GB
CUDA 12.1
Windows 10
PHPSTORM 2023.2.4
Step 1 - Install TGI
Follow the step by step here: https://huggingface.co/docs/text-generation-inference/quicktour and make/test your docker
I'm using this rn: docker run --gpus all --shm-size 1g -p 8080:80 -v C:/data:/data ghcr.io/huggingface/text-generation-inference:1.3 --model-id TheBloke/CodeLlama-7B-GPTQ --quantize gptq
Test it using:
curl http://<IP_ADDRESS>:8080/generate  -X POST -d "{\"inputs\":\"What is Deep Learning?\",\"parameters\":{\"max_new_tokens\":20}}"  -H "Content-Type: application/json"
Step 2 - Install the plugin
Install and configure, don't forget to update the model to the docker url:

Also set the log level to info.
If something is missing/not working you can edit the config later here :
%appData%/JetBrains/ MY IDE /options/LlmSettingsPlugin.xml
Step 3 - PATH Hell
Right now the plugin ignore the llm-ls path setting on startup, so it always try to re-install from github, and to do so it is using some commands that not all windows machines have
https://github.com/huggingface/llm-intellij/blob/2972e337497cd3df9325f0c10a231693ef8ea13d/src/main/kotlin/co/huggingface/llmintellij/lsp/LlmLsLspServerDescriptor.kt#L84-L88
So configure a new folder into your system path (mine C:/mybins/ )
Download/grab a random .exe ( please, don't use doom ), I grabbed the gzip windows bin here: https://gnuwin32.sourceforge.net/packages/gzip.htm .
And duplicate for these commands: chmod,gunzip,mv,rm Like this:

Step 4 - Restart the IDE and logs
Restart your IDE and open the logs:
%LOCALAPPDATA%/JetBrains/ MY IDE /log/idea.log
Look for something like this:
2024-01-07 01:46:07,650 [   4200]   WARN - #c.i.p.l.i.LspServerImpl - LlmLsLspServerDescriptor@aaa(RUNNING;0): Failed to start server
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Users\p\.cache\llm_intellij\bin\llm-ls-amd64-pc-windows-msvc-0.4.0": CreateProcess error=2, O sistema não pode encontrar o arquivo especificado
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:356)
	at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:84)
	at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:44)
	at com.intellij.platform.lsp.api.LspServerDescriptor.startServerProcess(LspServerDescriptor.kt:95)
	at com.intellij.platform.lsp.impl.connector.Lsp4jServerConnectorStdio.<init>(Lsp4jServerConnectorStdio.java:19)

Get the file name (in this case llm-ls-amd64-pc-windows-msvc-0.4.0 ), rename the current llm-ls bin (the .exe file in the .zip) to match this file ( v0.4.0 Here ).
Close the IDE, and put the new file in %HOME%/.cache/llm_intellij/bin/ (or whatever path the log indicates )
Step 5 - Open the IDE and test
Open a file, type something and wait ~3 seconds. It should trigger a request to the docker api.
You can check too in the llm-ls log %HOME%/.cache/llm_ls/llm-ls.log.
It should look like this in the log:

And like this in the IDE:

Important notes
Right now there isn't so much info about the plugin, and this guide is a workaround for testing the plugin.
I didn't find a hotkey to ask to generate, or to make an manual input if you find it please tell me.
Good luck

I ran the method as written (but API server is external) and now I don't get any errors, but I only get the message below and it doesn't generate any code.
2024-01-17 19:19:16,101 [  40408]   INFO - #c.i.p.l.i.LspServerImpl - LlmLsLspServerDescriptor@test_src(RUNNING;10): {llm-ls} file changed

The request never arrived on the server. llm-vscode works fine, so it doesn't seem to be a server issue. Something doesn't seem to be sending the modifications to the server.
Does anyone else have the same problem?

I ran the method as written (but API server is external) and now I don't get any errors, but I only get the message below and it doesn't generate any code.
2024-01-17 19:19:16,101 [  40408]   INFO - #c.i.p.l.i.LspServerImpl - LlmLsLspServerDescriptor@test_src(RUNNING;10): {llm-ls} file changed

The request never arrived on the server. llm-vscode works fine, so it doesn't seem to be a server issue. Something doesn't seem to be sending the modifications to the server. Does anyone else have the same problem?

Can you print the config?
What appear in the llm-ls.log ?

LlmSettingsPlugin.xml
<application>
  <component name="co.huggingface.llmintellij.LlmSettingsState">
    <option name="fim">
      <FimParams>
        <option name="middle" value=" <MID>" />
        <option name="prefix" value="<PRE> " />
        <option name="suffix" value=" <SUF>" />
      </FimParams>
    </option>
    <option name="lsp">
      <LspSettings>
        <option name="binaryPath" value="C:\Users\changesong\.cache\llm_intellij\bin\llm-ls-amd64-pc-windows-msvc-0.4.0" />
        <option name="logLevel" value="info" />
      </LspSettings>
    </option>
    <option name="model" value="http://localhost:8000/api/generate/" />
    <option name="tlsSkipVerifyInsecure" value="true" />
    <option name="tokensToClear">
      <list>
        <option value="<EOT>" />
      </list>
    </option>
  </component>
</application>

Use port forwarding to forward requests to localhost to the server. Currently, the server is not receiving any requests.
llm-ls.log
{"timestamp":"2024-01-18T02:50:32.481981Z","level":"INFO","message":"received completion request for file:///C:/Users/changesong/Downloads/test/test.cpp","document_url":"file:///C:/Users/changesong/Downloads/test/test.cpp","cursor_line":"8","cursor_character":"13","language_id":"cpp","model":"http://localhost:8000/api/generate/","ide":"jetbrains","max_new_tokens":60,"temperature":0.20000000298023224,"do_sample":true,"top_p":0.949999988079071,"stop_tokens":"None","target":"llm_ls","line_number":556,"spans":[{"request_id":"7e077c74-3279-4e8a-8da9-a8e6a46e297d","name":"completion_request"}]}
{"timestamp":"2024-01-18T02:50:32.482012Z","level":"INFO","message":"completion type: SingleLine","completion_type":"single_line","target":"llm_ls","line_number":582,"spans":[{"request_id":"7e077c74-3279-4e8a-8da9-a8e6a46e297d","name":"completion_request"}]}
{"timestamp":"2024-01-18T02:50:32.482384Z","level":"ERROR","err_msg":"파일 이름, 디렉터리 이름 또는 볼륨 레이블 구문이 잘못되었습니다. (os error 123)","target":"llm_ls","line_number":248,"spans":[{"request_id":"7e077c74-3279-4e8a-8da9-a8e6a46e297d","name":"completion_request"}]}

'파일 이름, 디렉터리 이름 또는 볼륨 레이블 구문이 잘못되었습니다.' is 'The filename, directory name, or volume label syntax is incorrect' in Korean
Thanks to you, I found the error message.
When using the Korean environment, many programs will throw that error if there is Korean in the path. But this time, I got that error even though I don't have a Korean path, so I need to figure out the problem.


how to extend contract response types

Now, the response type of contract can accept zod.ZodSchema or c.type<>(), like this:
responses: {
  200: c.type<{ posts: Post[]; total: number }>(),
},

I want to pass a class-transformer class, are there any ways to extend it.

hi @bingtsingw !
Have you tried passing the class-transformer in that type? Curious to know what it says?
Perhaps you can derive an interface from the class and pass that?


Combine packet with packet command workers

Closes: #1715
Description

PR author checklist:

[ ] Added changelog entry, using unclog.
[ ] Added tests: integration (for Hermes) or unit/mock tests (for modules).
[ ] Linked to GitHub issue.
[ ] Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

LGTM, will leave it to @adizere to approve it.

I think what's left that is important is to make sure we have reproduced reliably the error (as signaled in #1715), whether is it in an automatic test or a manual recipe. Soares did you manage to reproduce it?

I setup a branch (soares/packet-worker-recovery-master)[https://github.com/informalsystems/ibc-rs/tree/soares/packet-worker-recovery-master] that run the same supervisor test on master. The thing is the test also pass and the account sequence mismatch error has already been handled at the lower level.
2022-01-05T09:58:13.946115Z  INFO ibc_relayer::link::relay_path: [ibc-beta-afac1f12:transfer/channel-0 -> ibc-alpha-f85845b8] scheduling op. data with 1 msg(s) for Destination (height 0-43)
2022-01-05T09:58:14.143605Z  INFO ibc_relayer::link::relay_path: [ibc-beta-afac1f12:transfer/channel-0 -> ibc-alpha-f85845b8] relay op. data of 1 msgs(s) to Destination (hei
ght 0-43), delayed by: 197.413671ms [try 1/5]
2022-01-05T09:58:14.143762Z  INFO ibc_relayer::link::operational_data: [ibc-beta-afac1f12:transfer/channel-0 -> ibc-alpha-f85845b8] prepending Destination client update @ height 0-43
2022-01-05T09:58:14.237145Z DEBUG ibc_relayer::foreign_client: [ibc-beta-afac1f12 -> ibc-alpha-f85845b8:07-tendermint-1] MsgUpdateAnyClient from trusted height 0-28 to target height 0-43
2022-01-05T09:58:14.237570Z  INFO ibc_relayer::link::operational_data: [ibc-beta-afac1f12:transfer/channel-0 -> ibc-alpha-f85845b8] assembled batch of 2 message(s)
2022-01-05T09:58:14.237690Z DEBUG ibc_relayer::chain::cosmos: send_messages_and_wait_check_tx with 2 messages
2022-01-05T09:58:14.237788Z DEBUG ibc_relayer::chain::cosmos: [ibc-alpha-f85845b8] send_tx: sending 2 messages using account sequence 10
2022-01-05T09:58:14.238140Z DEBUG ibc_relayer::chain::cosmos: [ibc-alpha-f85845b8] send_tx: max fee, for use in tx simulation: Fee { amount: "3001stake", gas_limit: 3000000}
2022-01-05T09:58:14.247021Z ERROR ibc_relayer::chain::cosmos: [ibc-alpha-f85845b8] estimate_gas: failed to simulate tx. propagating error to caller: gRPC call failed with status: status: InvalidArgument, message: "account sequence mismatch, expected 11, got 10: incorrect account sequence: invalid request", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }
2022-01-05T09:58:14.247087Z  WARN ibc_relayer::chain::cosmos: send_tx failed at estimate_gas step mismatching account sequence: dropping the tx & refreshing account sequence number
2022-01-05T09:58:14.250578Z DEBUG ibc_relayer::chain::cosmos: [ibc-alpha-f85845b8] send_tx: retrieved account sequence=11 number=3
2022-01-05T09:58:14.250775Z  WARN ibc_relayer::util::task: task PacketWorker(ibc-beta-afac1f12:transfer/channel-0 -> ibc-alpha-f85845b8) encountered ignorable error: link errror

Caused by:
   0: failed with underlying error
   1: gRPC call failed with status: status: InvalidArgument, message: "account sequence mismatch, expected 11, got 10: incorrect account sequence: invalid request", details:
 [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }

Location:
    /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/flex-error-0.4.4/src/tracer_impl/eyre.rs:10:9
2022-01-05T09:58:14.848052Z DEBUG ibc_integration_test::chain::exec: Executing command: gaiad --node tcp://localhost:35408 query bank balances cosmos18qr5vjak8zfdxrqzan4gsvq6dcajnjeplye63v --denom ibc/2D7DF22C789B9FB98A6B311760F5077E86A490D437F3FECEBC65A8CB00EA41A7 --output json
2022-01-05T09:58:14.963204Z  INFO ibc_relayer::link::relay_path: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] generate messages from batch with 1 events
2022-01-05T09:58:14.964829Z DEBUG ibc_relayer::link::relay_path: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] ibc-alpha-f85845b8 => SendPacketEv(SendPacket - h:0-51, seq:4, path:channel-0/transfer->channel-0/transfer, toh:0-1028, tos:Timestamp(2022-01-05T10:07:51.667870412Z)))
2022-01-05T09:58:14.972089Z DEBUG ibc_relayer::link::relay_path: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] ibc-beta-afac1f12 <= /ibc.core.channel.v1.MsgRecvPacket from SendPacketEv(SendPacket - h:0-51, seq:4, path:channel-0/transfer->channel-0/transfer, toh:0-1028, tos:Timestamp(2022-01-05T10:07:51.667870412Z)))
2022-01-05T09:58:14.972154Z  INFO ibc_relayer::link::relay_path: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] scheduling op. data with 1 msg(s) for Destination (height 0-52)
2022-01-05T09:58:15.268832Z  INFO ibc_relayer::link::relay_path: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] relay op. data of 1 msgs(s) to Destination (height 0-52), delayed by: 296.64699ms [try 1/5]
2022-01-05T09:58:15.268880Z  INFO ibc_relayer::link::operational_data: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] prepending Destination client update @ height 0-52
2022-01-05T09:58:15.297196Z DEBUG ibc_relayer::foreign_client: [ibc-alpha-f85845b8 -> ibc-beta-afac1f12:07-tendermint-2] MsgUpdateAnyClient from trusted height 0-48 to target height 0-52
2022-01-05T09:58:15.297448Z  INFO ibc_relayer::link::operational_data: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] assembled batch of 2 message(s)
2022-01-05T09:58:15.297518Z DEBUG ibc_relayer::chain::cosmos: send_messages_and_wait_check_tx with 2 messages
2022-01-05T09:58:15.297605Z DEBUG ibc_relayer::chain::cosmos: [ibc-beta-afac1f12] send_tx: sending 2 messages using account sequence 11
2022-01-05T09:58:15.297814Z DEBUG ibc_relayer::chain::cosmos: [ibc-beta-afac1f12] send_tx: max fee, for use in tx simulation: Fee { amount: "3001stake", gas_limit: 3000000 }
2022-01-05T09:58:15.305878Z DEBUG ibc_relayer::chain::cosmos: [ibc-beta-afac1f12] estimate_gas: tx simulation successful, gas amount used: 137132
2022-01-05T09:58:15.306370Z DEBUG ibc_relayer::chain::cosmos: [ibc-beta-afac1f12] send_tx: using 137132 gas, fee Fee { amount: "151stake", gas_limit: 150846 }
2022-01-05T09:58:15.311807Z DEBUG ibc_relayer::chain::cosmos: [ibc-beta-afac1f12] send_tx: broadcast_tx_sync: Response { code: Ok, data: Data([]), log: Log("[]"), hash: transaction::Hash(53D32AEA34200119CFACD3CFD6C70159DAF1FB5C08CDCECBADD1986A484010BD) }
2022-01-05T09:58:15.311911Z  INFO ibc_relayer::link::relay_sender: [Async~>ibc-beta-afac1f12] response(s): 1; Ok:53D32AEA34200119CFACD3CFD6C70159DAF1FB5C08CDCECBADD1986A484010BD
2022-01-05T09:58:15.311955Z  INFO ibc_relayer::link::relay_path: [ibc-alpha-f85845b8:transfer/channel-0 -> ibc-beta-afac1f12] success

If you look into the body of execute_schedule, the only fallible operation it does is to call relay_from_operational_data, which already have the retry logic in there. So in both cases it would retry on an account sequence mismatch error in the inner logic already.