Unable to highlight aliases with variables

After upgrading to recent version of zsh-syntax-highlighting,
alias highlighting is not showing anymore.
Step to reproduce:
$ export LS_ARGS='-a -l -h' && alias lslh='ls $(echo $LS_ARGS)'
$ lslh # No highlighting

It looks like https://github.com/zsh-users/zsh-syntax-highlighting/blob/b55832c5f849b2416c83ce3a665cf4bef2dc4d48/highlighters/main/main-highlighter.zsh#L1077 is passing down ec as BUFFER ($arg[i,end_pos]) not echo $LS_ARGS. Haven't figured out why yet, but it must be some interaction with alias and end_pos. 9cc0060 didn't cause that bug, but did expose it.
In the mean time you can work around with using ls $=LS_ARGS instead of using $(echo to do the word splitting (or I suppose a tied array typeset -Tx LS_ARGS ls_args ' '; ls_args=(-a -l -h)).
Please do not close the issue as this is still a bug in z-sy-h that should be fixed.

I think the fix is fairly simple
diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh
index b0c5c92..a1bf4aa 100644
--- a/highlighters/main/main-highlighter.zsh
+++ b/highlighters/main/main-highlighter.zsh
@@ -1059,7 +1059,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
        elif [[ $arg[i+1] == $'\x28' ]]; then
           start=$i
           (( i += 2 ))
-          _zsh_highlight_main_highlighter_highlight_list $(( start_pos + i - 1 )) S $has_end $arg[i,end_pos]
+          _zsh_highlight_main_highlighter_highlight_list $(( start_pos + i - 1 )) S $has_end $arg[i,-1]
           ret=$?
           (( i += REPLY ))
           highlights+=(

We want to pass down the rest of $arg (as _highlight_list will figure out where the closing brace is), so use -1 rather than end_pos. end_pos is for highlighting purposes and is not updated inside alias expanded words. Passes tests, but I'm tired, so I should be double checked (if by no one else than future me).

Works for me.

@phy1729 I haven't done a full review (ENOTIME) but briefly:

The patch isn't against current master.  (Line numbers don't match)
There are multiple instances of $arg[i,end_pos]; don't forget to review them too
Docstring of _zsh_highlight_main_highlighter_highlight_list agrees with your change
Is the condition of the for (( ; i <= end_pos - start_pos ; i += 1 )); do loop correct?
Will this cause quadratic behaviour on command lines such as : $(a_1) $(a_2) … $(a_n)? That is, will $(a_i) be highlighted n-i+1 times?

In current master, with the example in the OP, lslh is highlighted in green.
@phy1729 Can we close this issue?  Or is there something left to do here?

Bumping the milestone.  0.7.0 is overdue to be released; large/destabilizing/unfinished changes will have to wait for 0.8.0.

139ea2b189819c43cc251825981c116959b15cc3 was committed to master which includes the change in the above diff.  It also addresses my review points there.  Calling this done.

@danielshahaf , I recently has similar issue. My syntax-highlighting version is 00c0c765509538de207173fc787d364eedd48d6b .
I make alias
alias psudo='sudo env "PATH=$PATH"'

but psudo is highlighted as red. I successfully run that alias without error.

Thanks.

Please file a new issue.
Try alias psudo='sudo env PATH="$PATH" as a workaround.

@danielshahaf
Seems I can't reproduce that with another environment variables below:
alias test1='echo $HOME'
alias test2='echo "$HOME"'
alias test3='echo ${HOME}'
alias test4='echo "${HOME}"'
alias test5='echo TEST=$HOME'
alias test6='echo "TEST=$HOME"'

even with test6 that roughly has same form as alias psudo='sudo env "PATH=$PATH"'.
Yeah, as workaround I set my psudo alias as alias psudo='sudo env PATH="$PATH"' for now, and it worked.
I can't write another issue with good description for that specific bug for now.
Sorry.

sudo env "PATH=$PATH"
First word is sudo which is a known precommand, so next word will be parsed as a command.
Next word is env which is a known precommand, so next word will be parsed as a command.
Next word is "PATH=$PATH". There's a bug in z-sy-h that when parsing a command ($this_word == *:start:*) an assignment is recognized even if it's no long the true start of a command (i.e. after a precommand), so command foo=bar echo baz parses foo=bar as an assignment and echo as the command even though command will error as foo=bar isn't a command. However in the case of env this mostly is desired. env being a command allows for quoted arguments just like any other, but assignments at the beginning of a command must not be quoted.

Created #743 for this.  Please continue discussion there.
@phy1729 Thanks for the write up.  That's what I figured too; I was going to write that up when I arrived at a full-sized keyboard, but you beat me to it.  Thanks again.


Vehicle Awake

Does the vehicle need to be awake before using the accessories?
I tried vent windows and received a no response message. The vehicle was not awake.

The integration is meant to wake-up the vehicle before every command. If this is not working I'll investigate.

Okay
Before you spend any time on this let me be sure.

On the topic of awake.
Turning off awake does not appear to put the vehicle to sleep. After a few seconds the accessory turns back on.
Since the Awake accessory is not needed maybe change it to a contact sensor?

Turning off awake does not appear to put the vehicle to sleep. After a few seconds the accessory turns back on.

Correct, you cannot instruct a Tesla vehicle to sleep.
My original brief was to copy the Tesla homebridge integration, which has a sleep switch, so that's why it's here. I personally agree it's not very useful.


feat(Archicad): Select all should send all doors and windows

Closing this ticket as we are moving to Jira to reduce noise. You can access it there.


Provide a solultion for control plane load balancer

When provisioning a cluster, infraCluster controller should reconcile a load balancer for control plane. since cluster-api-provider-proxmox does not rely on specific cloud provider load balancer, it should provide something self-hosted load balancer and allow configuration of an external load balancer post-install if desired.

I would say this is something you could do with kube-vip. But I do not know if it's cluster-api conform do add this into the provider.
Another way is Cilium CNI which can do BGB-LB for control plane, but this would be out of scope of the provider I think. (Normally CNI is a user decision as far as I know)
Any thoughts?

yes CNI should be out of scope as official doc explicitly says it's prohibited service.
one of the major candidate in my mind is haproxy as same way as cluster-api-provider-vshpere is doing.

👍 It would be nice if there was then the possibility to disable the Ha proxy, e.g. if someone wants to use another lb provider.

Confirmed kube-vip works fine as ha control-plane solution without any source updates. Just updated tempalte manifest with kube-vip : https://github.com/sp-yduck/cluster-api-provider-proxmox/commit/006acd9819156fcf6320185f7f42463ba3ac13ea
will close the issue. we might think other solution in the future according to needs etc. .


There is a fragile test case that attempts to match error messages from PCRE library

When I was in the process of making this library compile under macOS, I noticed that a specific test case kept failing. It is this case for CLI covering queries containing invalid regex. It should emit an error, and my test program did emit one, but the case still failed.
Upon further investigation, it emitted error messages that does not contain the words defined in the harness. I consider this case fragile -- it should not assume that the PCRE library emit specific error massage, because it can vary across implementations and the library itself can change wording deliberately. I suggest that the test case matches FilterKey: Error compiling regular expression as it is defined in librdb itself.

Hi @qbtf, would you be able to assist with fixing this issue? It it is reproducible on your platform.
Thanks.

@qbtf , i.e., maybe you can assist by creating pull request :)

@qbtf, I will review your CI to see what it takes to support mac. Thanks.


Setup Development enviorment

As a developer,
I need to set up a consistent development environment.
So that both me and my team can work in a consistent and stable development environment.
Detail and Assumption
Everything is code. Use github, docker and vscode to keep a consistent development environment.
Acceptance Criteria
Given .devcontainer and .vscode file
When everyone using code . in local environment.
Then should create a container with a consistent development environment.


Provide a kafka streams/event stores based event log

Feature request as per
https://blog.softwaremill.com/event-sourcing-using-kafka-53dfd72ad45d

"Hence, we need a better way. That’s where kafka-streams and state stores come into play. Kafka-streams applications run across a cluster of nodes, which jointly consume some topics."

This way, the concepts of "entity" from akka persistence and "runtime state"  from event stores complement each other.
Ideally akka persistence runtime would not be necessary to run aecor.

@SemanticBeeng that's the topic I thought a lot about. When you use Kafka as an event log you loose the ability to query events by entity key. Imagine the time you need to recover the whole system in case you need to change how you fold an entity state?  Also, runtime state that uses KTable or similar is eventually consistent which is acceptable for read side, but not for write side.

I think there are limitations to separate topic per entity over Kafka as (at least until the previous version) it would scale up to around ~10k topics. I think this has been increased the order of ~100k but still it's not the most efficient way of using Kafka.
Being a durable topic Kafka is typically used by consuming the messages as a consumers group (multiple nodes connected to the brokers) and it's messages are guaranteed to be ordered within a partition, hence these are the dimensions you can play with in order to increase parallel processing. In this way, if you partition by entity ID you'd know you're consistently sending the messages for a given entity to the same host, which I think is what you want.
In the Lagom world, if you have say a 3 host distributed cluster, what you can do is process all the messages as a consumer group and if you're not partitioning by key or you don't have a good partition key then they route the message via akka remoting to the actual cluster node that would host the persisted entity (not sure on the mechanism).
Apache Pulsar is also an interesting middleware to explore as a target, it supports both a topic/pub-sub interface as well as a queue interface (suitable for work scheduling for example) and it scales to millions of topics, therefore it's conceivable you could have a topic for each host in your akka cluster processing and therefore if you're doing something similar to an Ask pattern you might be able to implement a direct (and durable) return to sender reply without finishing to be routed via akka remoting (but then you need to figure out what happens if the host which Asked something dies).
Apologies if this explains something obvious.
I also didn't understand what was meant by "acceptable for read side, but not for write side", in Lagom Read Side Processor designates a role processes the Events (in the Command (input)-> State (hidden) -> Event (output) sense) and then prepares some sort of a view which is query-able or more optimised for some sort of read pattern. Are you talking about the problem arising of re-processing Commands which requires some sort of strategy to de-dupe the already processed ones?

@schrepfler what I mean is that you can’t use eventually consistent KTable to validate commands against.

From latest post of Vladimir : https://pavkin.ru/aecor-part-4a/
Highlight of similarity between the event journal  in context of event sourcing and  kafka "log".

And mention to kafka-journal.
Not sure how usable this would be for the purpose of this issue.

There is a promising Akka Persistence (journal implementation)[https://github.com/evolution-gaming/kafka-journal] based on both Cassandra and Kafka. You may want to take a look at the trade-offs made.


Fix configuration example

Without separate validator for non-empty values, the recaptcha could by-passed by sending without JS or directly with cUrl...
The  Gerdemann.ReCAPTCHA:ReCAPTCHA validator doesn't get triggered for empty values.
Alternativly we could change the behavior of the validator itself (protected $acceptsEmptyValues = false;).

I'm sorry for the late feedback.


Tab design is not the same as chrome

The tab design is changed in the latest version. The side edges does not have the curve and fall straight. They also seem shorter in height . Firefox stable 88.0.1

I've switched the master branch to tackle Firefox 89 support which includes Mozilla's proton redesign by default. There's a release v88.0 you can use which should still work fine for pre-proton, or you can enable the proton redesign in Firefox 88 and keep using the latest master commits.

That worked. Also great to know work is already being put for the upcoming proton designs. Thank you for your work. Proton is way forward and makes Firefox better. But in a lot of ways still lags behind chrome, like even font treatment in the UI is horrible to say the least

This is fixed for the new firefox too!


Suggest: use window.location to get host and port for API, make easy for visit from other machine

Expose API, Allow CORS:
  "API": {
    "HTTPHeaders": {
      "Access-Control-Allow-Credentials": [
        "true"
      ],
      "Access-Control-Allow-Methods": [
        "PUT",
        "GET",
        "POST"
      ],
      "Access-Control-Allow-Origin": [
        "*"
      ]
    }
  },
  "Addresses": {
    "API": "/ip4/<IP_ADDRESS>/tcp/5001",
    "Announce": [],
    "Gateway": "/ip4/<IP_ADDRESS>/tcp/6001",
    "NoAnnounce": [],
    "Swarm": [
      "/ip4/<IP_ADDRESS>/tcp/4001",
      "/ip6/::/tcp/4001"
    ]
  }

Visit webui from other machine. I must use localStorage.setItem('ipfsApi', '/ip4/node_ip/tcp/5001') to change the API. And its not work when use domain name.
Why not use window.location.hostname to get the host, window.location.port to get the port?
Port of webui always same as API port. Visit http://<IP_ADDRESS>:5001/webui, means: i need to use /ip4/<IP_ADDRESS>/tcp/5001 API. This is in line with expected behavior. And no need: Is your API on a port other than 5001? set form.
Wrong gateway address when click a mp4 file
Click Files Tab, then click mp4 file. webui use http://<IP_ADDRESS>:6001/ipfs/QmY8Xhcn8JS79QwJXCW95Lbqp4EoJap9pqfaAFGyRfjSyz as source:
<video controls="" class="mw-100 bg-snow-muted pa2 br2"><source src="http://<IP_ADDRESS>:6001/ipfs/QmY8Xhcn8JS79QwJXCW95Lbqp4EoJap9pqfaAFGyRfjSyz"></video>

Its better to use:
const geatewayPort = getGatewayPortFromConfig();
const gateway = `${window.location.protocol}//${window.location.hostname}:${geatewayPort}/ipfs/${qm}`

I am running into this trying to embed in docker, from a security standpoint I understand the logic waterfall to assume localhost.
I think the best approach might be to just make special exceptions first on a connection failure to <IP_ADDRESS>:5001 here and try the origin as the window.location.hostname  with port 5001 along with the full origin hostname with port (currently it is trying the same port as the webUI for the /webui ipfs option):
https://github.com/ipfs-shipyard/ipfs-webui/blob/20be9638f9db39d86285b3901c171b2425741b87/src/welcome/WelcomePage.js#L61
Then when reading the config to set api and gateway here:
https://github.com/ipfs-shipyard/ipfs-webui/blob/ef0110faf02b6cc36490ebd5ec65522a9915d4af/src/bundles/config.js#L31-L39
In the case of reading from the config if the config has anything set to <IP_ADDRESS> there should be an if stanza that falls back to the window.location.hostname as <IP_ADDRESS> will never work.

Since https://github.com/ipfs-shipyard/ipfs-webui/pull/1563 we delegate API detection to ipfs-provider, which by default will try accessing API on the same origin: https://github.com/ipfs-shipyard/ipfs-provider/blob/3e275b3aa79788a3adce1e3fb3c0b1fbfff0d972/src/providers/http-client.js#L43-L53
This is a basic heuristic, more advanced logic could be implemented in userland.
There is a bunch of related issues: https://github.com/ipfs-shipyard/ipfs-webui/issues/1490, https://github.com/ipfs-shipyard/ipfs-webui/issues/836#issuecomment-670699378, feels like we could tackle all of them in a single PR.


onEnd with AngularJs

How do you set the onEnd event to call a function in an Angular controller?
I've tried the following with my code

$scope.endDrag = function (evt) {
            console.log(evt);
        }

This calls the endDrag function, but evt is empty.

:] It does not work into angularjs.
Correct way using variable: https://github.com/RubaXa/Sortable#support-angularjs

{{item}}

angular.module('myApp', ['ng-sortable'])
    .controller('demo', ['$scope', function ($scope) {
        $scope.bar = ['bar 1', '..'];
        $scope.barConfig = {
            animation: 150,
            onEnd: endDrag
        };
    }]);

I have used your method to use ng-sortable for my table and its working fine, its just not firing the onEnd event while its working fine for ul elements. Is there any issue regarding table?
Please refer JSBIN link below.
JSBIN


api-docs: Revise the "services" array and "config" object for bots.

Updates these descriptions to better fit current API documentation conventions.
Notes:

The services array (for bots) is currently not completely rendered in the documentation, but #30375 is working on fixing that so getting that text into a better state seems useful.

Screenshots from register response:

Before
After

Before
After

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Merged, thanks @laurynmm!


Problem with discribing a multipart request body with swagger annotations (v3 OAS)

Using swagger 2.0 (OAS3) for the documentation of a Restful API, implemented in Java and based on Apache CXF (jaxrs). The actual swagger-core version is 2.0.6.
The following POST method should create a new Document using at least the data given in RestDocumentParams. Optionaly a file object (InputStream) and additional MetaData (RelationshipParams) can be provided. All this payload has to be provided in the RequestBody:
@POST
@Path("/documents")
@Consumes("multipart/mixed")
Response createDocument(
    @RequestBody(description = "RestDocumentParams (required), InputStream and RelationshipParams",
                 content = { @Content(mediaType = "multipart/mixed", schema = @Schema(implementation = RestDocumentParams.class)),
                     @Content(mediaType = "application/octet-stream", schema = @Schema(type = "string", format = "binary")),
                     @Content(mediaType = "application/json", schema = @Schema(implementation = RelationshipParams.class)) })
    @Multipart(value = "doc", type = MediaType.APPLICATION_JSON)
        RestDocumentParams documentParams,
    @Multipart(value = "file", type = MediaType.APPLICATION_OCTET_STREAM, required = false)
        InputStream inputStream,
    @Multipart(value = "rela", type = MediaType.APPLICATION_JSON, required = false)
        RelationshipParams relationshipParams)

Using this method in a testframework (e.g. restassured) works fine. My problem is, how I have to annotate this method correct with swagger-annotation, to use it in Swagger-UI.
Using the RequestBody-Annotation like above, seems not being the right way! In Swagger-UI appears a combo-box within the description of the RequestBody and let me choose the three different media types. But if I want to try out this method and edited one of the input parameters (e.g. entering a file name) and choose the next media type, the last editing is lost.
Comparing the json-Strukture of the requestBody for this method with the OAS3 definition for "multipart content" differ. Regarding to the OAS3 definition, the requestBody should have look like this:
 requestBody:
    description: 'RestDocumentParams (required), InputStream and RelationshipParams'
    content:
      multipart/form-data:
        schema:
          properties:
            docParams:
              $ref: '#/components/schemas/RestDocumentParams'
            relaParams:
              $ref: '#/components/schemas/RelationshipParams'
            fileName:
              type: string
              format: binary

Regarding to the OAS3 definition it looks like, that the schema annotation should provide
a properties method, but there isn't any.
I have studied a lot of resources, also examples and tests on swagger, but I can't find any helpful hints.

I managed to solve file upload for Resteasy with these instructions. I'm not sure this applies to your case as well.


🚀 | Start SH Script after positive CardID Verification

Feature Description
After positive verification of an card id (card was identified in database) a userscript should be executed for special usecases.
What functionality would you like to see in your phoniebox?
I'm integrating phoniebox in the playroom. Here i have a Bose Soundtouch 20 Series II with original Bose API support which should be used as external audio amplifier (AUX Input). It works great but the Soundtouch switch to standby after 20min. Therefore i need to poweron again and switch to AUX Input.
Now i got a sh script to do the "Soundtouch stuff" and it works great (one-liner) :)
But how/where i should integrate the sh call?
How do you envision the feature to work from a users perspective?
I will reduce the complexity for my children. All should work with card interaction. Therefore the soundsystem should be activated automatically. Thats why i want to use the soundtouch as active amp but the children should not interacting with the soundtouch directly (far away from their range due position very high in the room).
Further information that might help
Currently i've added the sh call to rfid_trigger_play.sh directly after the echo command to store the current card id into the log. But here the script will executed by each reading interaction without consideration about the correct card-id. So a stop card will also activate the soundtouch as an correct playbook card id. Thats not cool.
THANKS for Feedback

You could try to use a cron job. Once set up it would call your bash script regularly (e.g. every 15 min).

http://raspberry.tips/raspberrypi-einsteiger/cronjob-auf-dem-raspberry-pi-einrichten

Well this would work, too. But i would like to activate it in usage only. Otherwise the soundtouch would be complete locked for other usage (webradio, airplay, etc).
After 2 days in action it works ok for me. I've adopted the /scripts/playout_control.sh and /scripts/rfid_trigger_play.sh
Playout_control.sh in case of activation through webinterface (my first assumption was, that it would be enough here but it figured out that the rfid initiated play was not activating the script)
rfid_trigger_play.sh in case of card activation. It works but the script will activated each time when a card was read by the card-reader. It doesn't differentiate between registered cards and not registered cards. So i would like to place the script in case of a positive match of a card. But i don't get it.

Great to hear it's working.
Since this seems to be resolved, I am closing the issue as well.


Feature: Retrieving a list of neighbors of a HNSW node

Describe what you are looking for
Could you expose some of the internals on the neighbors of a node? This will be helpful for speed-up repetitive search queries for similar elements. As a more involved follow-up, the library search could receive a hint node similar to some STL containers.
Can you contribute to the implementation?

[ ] I can contribute

Is your feature request specific to a certain interface?
It applies to everything
Contact Details
No response
Is there an existing issue for this?

[X] I have searched the existing issues

Code of Conduct

[X] I agree to follow this project's Code of Conduct

As discussed with @lmcinnes, on-the-fly construction of the K-NN Graph from Python can also be very useful 🤗


i18n strange behaviour

Here is actual problem:
i18n parser adds words into database in a strange way. It adds extra @ symbol into original messages. Down below, I provided screenshot:
http://joxi.ru/BA0b7DOCVy5amy
A bit more detailed:
I'm using command below to generate messages:
 ./yii message/extract messages-config.php

And here is messages-config.php's contents
<?php

return [
    'sourcePath' => __DIR__,
    'languages' => ['az', 'en', 'ru', 'tr'],
    'translator' => 'Yii::t',
    'sort' => true,
    'removeUnused' => false,
    'only' => ['*.php'],
    'except' => [
        '.svn',
        '.git',
        '.gitignore',
        '.gitkeep',
        '.hgignore',
        '.hgkeep',
        '/messages',
        '/vendor',
        '/backend',
        '/environments',
        '/tests'
    ],

    'format' => 'db',
    'overwrite' => true,
    'sourceMessageTable' => 'TranslationSourceMessage',
    'messageTable' => 'TranslationMessage',
];

And here is how I use translations inside php files:
Yii::t("common", "delivered")

One more thing
Also parser completely ignores example below:
  <?
            $html = "";
            if ($vacancies) {
                $html .= Html::tag("h2", Yii::t("vacancies", "We have following vacancies:"));

            } else {
                $html .= Html::tag("h2", Yii::t("vacancies", "Currently we have no active vacancies. But you can send your CV to our email address:"));
            }
            echo $html;
            ?>

That's why I manually added this sentence into database and had to turn off  removeUnused' param in messages-config.php`.
I'm trying to figure out why these 2 problems happen, when I'm doing everything based on Yii documentation?

@@ means outdated.

@samdark so AFAIK it's because of removeUnused turned off?

Yes.

So the issue is about ignoring the piece of code you've provided. It looks OK so I think parse has a bug.

@samdark oh god, don't make us wait for 2.0.8, man. :) it's for project which is in production currently. Please fix it ASAP. Hope for understanding

You can speed it up by fixing it yourself and providing a pull request. Or at least by providing extra unit test with your example that fails.

Hi guys! I've found why the issue is happened, looks like @turalsprofile is using short php tags <? instead of <?php. That's why parser does not work. I am gonna fix this

@andrewnester yes you're right, changing <? to <?php fixed problem. @samdark please fix based on Andrew's suggestion. Thank you all, guys.

@turalsprofile I am not sure that it could be fixed in framework. Because you are using short_open_tag you need to enable it in php configuration. here is described why http://stackoverflow.com/a/684752

I've tested it with short_open_tag enabled, issue appears anyway. That's why I sent PR with fix and test for it

The source of the problem token_get_all() does not support short tags. See:
http://php.net/manual/ru/function.token-get-all.php#92653

This function not support :

Old notation :  "" and "<% %>"
heredoc syntax
nowdoc syntax (since PHP 5.3.0)

@klimov-paul yes, it's true, then I guess we have no chance to fix it because parsing and replacing short tags is not an option, right?

Maybe, we can report this issue into php developer community?

I think this issue must be closed as wontfix because PHP short tags are not recommended by PSR and probably would be deprecated.


@eessex => Responsive lush email signup

Makes the lush signup responsive.
Sign up:

If you're already signed up:

👍  merging


Change sections with links in settings dialog to function as regular buttons

Description
If this hasn't been change in the settings redesigned, on windows it allows you to click the whole thing to open and external link but with files its a button.

Steps To Reproduce
No response
Expected behavior
Allow clicking on the whole button area
Files Version
<IP_ADDRESS>
Windows Version
11.0.22518.1000
Relevant Assets/Logs
Not needed

This issue should be resolved with #7336


[Docs]: Grammatical and Spelling Errors in README.md File

what's wrong in the documentation?
I noticed that there are some grammatical and spelling errors in the README.md file, and I would like to contribute to fixing them as part of GSSOC23. Could you please assign me this task?
Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

I want to work on this issue . Plz assign me with this

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


Jquery prop checked to true will not auto hide error text

Subject of the issue
Jquery prop checked to true will not auto hide error text
Environment
Latest version of jquery-validation
Microsoft Edge 38.14393.1066.0
Microsoft EdgeHTML 14.14393
Steps to reproduce
https://jsfiddle.net/a8bv992s/
Expected behaviour
When parent checkbox checked, jquery change child checkbox checked state, and the error label show be hide.
Actual behaviour
Parent checkbox is checked, and child checkbox is also checked by jquery, but the error label is remain until submit button is clicked.

When changing the value of an element programmatically, you should revalidate the element yourself using .valid() or Validator#element().
Because jQuery-validaion will not be informed by your change. jQuery-validation only listens to user events like click, keydown, keyup ...

Currently what I did is programmatic show the error text, seem like working but not sure will have any others problem with it or not.
I know I can use .valid() to validate whole form, but in that time whole form validate is not very proper as user only clicking on a part of form. Because it is a group of nested checkbox, so a group of element validation is hard for me, I tried to use validate by class, but there is unknown problem whole form validation gone when I declare that.


Deploy app to new AWS bridge-exporter environments

The infra for Bridge-Exporter app is now automated with
Bridge-Exporter-infra[1] repo.  This new project uses cloudformation
to setup the bridge exporter env and SQS queues. We should switch to
using this environment and deprecate the manually created exporter
environment.
[1] https://github.com/Sage-Bionetworks/Bridge-Exporter-infra

Can we hold off on making these changes until after I get back on Nov 27? We have monitoring for if Bridge Exporter throws a bunch of errors, but no monitoring if the Bridge Exporter silently stops working. Given that Bridge Exporter is critical both to delivering data for researchers, and also for validating data uploads for apps in development, we should probably wait until I get back so we can keep a close eye on it.
Unless @alxdarksage is comfortable enough with Bridge Exporter to do ops on it while I'm gone.

Can do.  How about you create a jira for the alarms we need to setup for Bridge-Exporter app and I'll add it to the Bridge-Exporter-infra project?

There are two parts. The first is replicating the existing alarms in Sumo Logic. The second is to create alarms that don't exist.

As per other comment, it's too risky to do this migration in this manner. We need a better migration strategy. Closing this so we don't accidentally push it out.


EqualToXml does not detect difference on certain XML documents if Xalan is on classpath

Proposal
The EqualToXml matcher does not detect differences on certain XML documents if Xalan is on the classpath.
The documents need to use the same namespace URI twice with a different namespace prefix. Example:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
   expected
</S:Envelope>

Xalan itself does not seem to be the problem because one can use XmlUnit to correctly detect differences in such XML documents.
Reproduction steps
I've created a demo project with Unit tests that demonstrate the bug and the different behavior of XmlUnit and EqualToXml: https://github.com/thake/wiremock-bug/blob/main/src/test/java/com/example/XmlUnitTest.java
References
No response

The error disappears if SkipResolvingEntitiesDocumentBuilderFactory.newDocumentBuilder() no longer returns a cached DocumentBuilder but a fresh one.


cocoapods update

It looks like cocoapods is still referencing 1.0.1  and should be updated.

@robertmurray I have updated cocoapods to 2.0.0, let me know if you need anything else.

@pjain-sift That was it... thanks a lot!


Can't initialize GqlDatastoreQuery properly in multithread environment: Annotated GQL Query Method findByQuery has 18 tags but a different number of parameter values: 3

My Code:
public interface CountryCountRepository extends DatastoreRepository<CountryCountProjection, Key> {

    @Query("select count, country from TABLE where date = @date and type = @type and platform = @platform")
    List<CountryCountProjection> findByQuery(String date, BQDataType type, MobilePlatform platform);

}

Problem:
method inside GqlDatastoreQuery failed when it's initialized with several threads.
	private List<String> getOriginalParamTags() {
		if (this.originalParamTags == null) {
			this.originalParamTags = new ArrayList<>();
I got exception here:
		if (tags.size() != vals.size()) {
			throw new DatastoreDataException("Annotated GQL Query Method "
					+ this.queryMethod.getName() + " has " + tags.size()
					+ " tags but a different number of parameter values: " + vals.size());
		}

this code throw exception:
	private GqlQuery<? extends BaseEntity> bindArgsToGqlQuery(String gql,
			List<String> tags,
			List vals) {
		Builder builder = GqlQuery.newGqlQueryBuilder(gql);
		builder.setAllowLiteral(true);
		if (tags.size() != vals.size()) {
			throw new DatastoreDataException("Annotated GQL Query Method "
					+ this.queryMethod.getName() + " has " + tags.size()
					+ " tags but a different number of parameter values: " + vals.size());
		}

Because:
in debug i have:
tags = {ArrayList@10850}  size = 12
 0 = "date"
 1 = "date"
 2 = "date"
 3 = "date"
 4 = "type"
 5 = "type"
 6 = "type"
 7 = "type"
 8 = "platform"
 9 = "platform"
 10 = "platform"
 11 = "platform"
vals = {ArrayList@10851}  size = 3
 0 = "20190222"
 1 = {BQDataType@10899} "NEW_USERS"
 2 = {MobilePlatform@10900} "ANDROID"

instead of:
tags = {ArrayList@10539}  size = 3
 0 = "date"
 1 = "type"
 2 = "platform"
vals = {ArrayList@10540}  size = 3
 0 = "20190215"
 1 = {BQDataType@10581} "NEW_USERS"
 2 = {MobilePlatform@10582} "ANDROID"

@ChengyuanZhao @dmitry-s PTAL

@alexeenka
Could you tell more about how or when you're starting these threads?
I suspect the issue is in
private List<String> getOriginalParamTags()
But this method should only do its work once during initialization.
The GqlDatastoreQuery initialization happens at the startup of the application just once.

@ChengyuanZhao
yes, during initialization i need to do some computation work, i have:
@SpringBootApplication
@RestController
@EnableAsync
public class SomeApplication implements CommandLineRunner {
    @Override
    public void run(String... args) {
        LOGGER.info("APPLICATION - STARTED!");
       service.doWork();
    }
}

inside that method i have:
...
        IntStream.range(0, days).parallel().forEach(i -> {
                    List<CountryCountProjection> iData =  countryCountRepository.findByQuery(startDate.plusDays(i).format(BASIC_ISO_DATE), BQDataType.NEW_USERS, mobilePlatform);
                    }
...
        });
...

repository code:
public interface CountryCountRepository extends DatastoreRepository<CountryCountProjection, Key> {

    @Query("select count, country from TABLE where date = @date and type = @type and platform = @platform")
    List<CountryCountProjection> findByQuery(String date, BQDataType type, MobilePlatform platform);

}

@alexeenka
I'm trying to to replicate your issue by also using   IntStream.range(0, days).parallel().forEach and submitting queries from a custom repo with @Query queries taking parameters but i'm not getting this error and I'm verifying that indeed the queries are happening asynchronously.
Can you tell more about how you're creating your instance of countryCountRepository ? Are you using our Datastore starter auto-config module?

sorry, in what version that fix is apply?
i use?
<spring-cloud-gcp.version>1.1.2.RELEASE</spring-cloud-gcp.version>


Anyleads about how to implement "multiple choices" field for filtering columns ?

Anyleads about how to implement "multiple choices" field for filtering columns ?

Probably not the answer you're wanting but I usually create a separate filter "panel" for these, as outlined on: https://pypi.org/project/django-ajax-datatable/#add-a-sidebar-with-custom-filters

Yes, I would opt for sidebar filters.
You can see those in action here:
http://django-ajax-datatable-demo.brainstorm.it/side_filters/


An error "Unsupported architecture: None" pops up when use Python installed from Microsoft Store to launch Python Profiling.

Describe the bug
Build of Visual Studio: 17.1.0 Preview 2.0 [31908.322.main]
Build of Python Package: 17.0.21295.2
OS version: Windows-11-Enterprise-21H2
Python installed from Microsoft Store
Steps to Reproduce

Create python application project and add some code.
Debug> Launch Python Profiling …
Checked the option "Open project" and select the current project in drop-down list
Click "Start"
Observes

Expected behavior
The .vsp file is generated and opened in VS but not saved
Additional context and screenshots
An error "Unsupported architecture: None" pops up

This issue is reproduced on Python installed from Python.org. It works well.

This issue also can reproduce on the latest build.


Do not fetch the original txn when doing a rollback or commit.

The debit/credit accounts may be set to 0n, which will allow TB to lookup the original debit/credit accounts.

https://github.com/interledger/rafiki/issues/965#issuecomment-1380590708

https://github.com/interledger/rafiki/pull/452#discussion_r952354641


rebuild with ibm_db gives node_module_version issue

Hi,
I have been trying to build an extension for VS Code that involves communicating to IBM Db2 database.
I was trying to use ibm_db  module as the driver module. However in my extension code, when i require in the ibm_db module, i get this error

Assuming that this because ibm_db is a native module and the fact that VS Code uses Electron, I tried electron-rebuild to rebuild ibm_db, and after that, i get a different error, which is:
Activating extension 'vashok.hellodb2' failed: The module '\?\E:\VSCode_extn\hellodb2\node_modules\ibm_db\build\Release\odbc_bindings.node' was compiled against a different Node.js version using
NODE_MODULE_VERSION 50. This version of Node.js requires NODE_MODULE_VERSION 57. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install)..
Could you please help me what this means and how to get past this error.

VSCode Version: 1.28.2
OS Version: Windows 2008 R2 Standard, 64-bit

Steps to Reproduce:

Create a sample extension using yeoman generator as outlined in VS Code documentation
npm install ibm_db
Put the line 'const ibmdb = require('ibm_db') inside your extension.js file
Launch the extension and activate it

so am i


model.on("creating", cb) - callback not receiving all attributes

Accoring to the docs, the model.on("creating", cb) callback should receive attrs as second argument with "attributes that will be inserted". But attrs only contains the timestamp fields (I use hasTimestamps), nothing else. The model (first argument to the callback) contains all attributes (at model.attributes) - even those which have no corresponding column.

Could you share a minimal example? Sounds like a bug.
On Fri, Mar 11, 2016, 12:07 PM Stefan Kleeschulte<EMAIL_ADDRESS>wrote:

Accoring to the docs http://bookshelfjs.org/#Model-event-creating, the model.on("creating",
cb) callback should receive attrs as second argument with "attributes
that will be inserted". But attrs only contains the timestamp fields (I
use hasTimestamps), nothing else. The model (first argument to the
callback) contains all attributes (at model.attributes) - even those
which have no corresponding column.
—
Reply to this email directly or view it on GitHub
https://github.com/tgriesser/bookshelf/issues/1156.

Take a look at #227 and #1015. This is either a documentation issue or a functionality issue.


Change -Os to -O3

-O3 makes faster binaries, I have tested it and used it daily without issues
-march=native might also be worth looking at but it might break compatibility if you move your install to another machine
Learn more here:
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

The downside also being that you often get much slower compile times, especially on older thinkpads. If people want to do this, they can edit their own config.mk to suit the level that their machine can handle.
The GCC docs also say that "-Os enables all -O2 optimizations except those that often increase code size", so we're already effectively at -O2. I think this would probably be more placebo than improvement.

Luke Smith closed the other pull request that did the same thing so I'll assume same here


ats 7.1.0 (rc1) gets stuck in high CPU state some times

I have had a node running ats 7.1.0 (rc1) in production and some times it gets stuck into a very high CPU use state consuming all 20 cores. Server has 48G RAM and 2x10G nics.
The traffic levels were about 1000 requests/sec peaking with around 40,000 http.current_client_connections. However this node was handling TLS/POST uploads at a rate of about 100+ TLS uploads/sec and an inbound network traffic level of about 2.5Gbps.
As traffic levels ramp up the CPU usage seems to go up as well but at some point it goes up in a way unrelated to traffic levels.
CPU Usage:

TLS/POST Rate:

While the CPU usage issue was occurring I ran perf top -g and drilled into the spin_lock and captured this:

This seems to suggest it is getting stuck doing something with TLS but what I have no idea.
2.6.32-696.1.1.el6.x86_64
OpenSSL 1.0.1e-fips 11 Feb 2013 (fips mode not enabled)
If anyone can suggest additional debugging I might do when this happens I am happy to do so.

try perf top -p $(pidof traffic_server) and check the func with high cpu usage?

This may have been an extreme high load situation causing this. I'm going to close it for now as i've not seen a recurrence.


Overlap contacts of the same type

So I understand the code, does not allow pulling contacts with the same type, since it uses the contact type as array key.
Ex:

Type
Number

cell
99999999

cell
88888888

   //result only
   array('cell' => 88888888);

Good spot!

Fixed by PR #23.


Update LinearWeightedMovingAverage.cs

Fix off by one indexing error in denominator, and calculation error in numerator.

Description

Related Issue

Motivation and Context

Requires Documentation Change

How Has This Been Tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[ ] My code follows the code style of this project.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Hey @mr-september! Welcome to Lean
Please share some information about the issue, error/how to reproduce? We should add some unit test reproducing the issue so we can assert it's nature and how to and if it's been fixed 👍

Hey @mr-september! Welcome to Lean Please share some information about the issue, error/how to reproduce? We should add some unit test reproducing the issue so we can assert it's nature and how to and if it's been fixed 👍

Hi, my apologies, I am not an experienced developer, especially not with C#. I have merely noticed inconsistent behaviour while porting strategies from another platform to QuantConnect, and after some attempts to investigate, I believe this may be the root of the issue.
It is not a technical error, but a mathematical/logical one.

Thank you @mr-september, we've revised the current implementation and believe it's correct, we've added more tests comparing the expected values with 3rd party.


Issues in 4.27

I'm having issues using this with VRE built for 427...

Followed your steps that say exactly what to do, however they don't show where the skeletal mesh should go (I imagined inside the capsule where the mesh is, [like a normal character would], but the character is halfway thru the ground, I can see the animations working and the hands/arms ik working but i am outside the body around 50 cm's on the x and y plane offset) and the body also lags from the capsule quite significantly when moving. This is with VANILLA VRExpansion plugin.

I then tried taking your .uasset and putting it into the plugin content folder and dropping it into a scene but its just filled with blueprint errors that it won't compile.

Could you possibly show some pics of how the proper setup is for 4.27 using this with VRE please?

As hinted at in the README I don't aim to maintain the VRExpansion sample in any form. Nor am I currently actively working on the plugin, while I do know it's compatible with Unreal 4.27, and Unreal 5.0. Your best bet is to grab an older version of VRExpansion from their repo to take a look at the setup.
I don't know the ideal way to set it up for VRExpansian anymore, but if you don't want to go find an older VRExpansion version I do vaguely remember that the skeletal mesh you add to the Pawn (Character) has to be either absolutely positioned or detached from its parent. The body is meant to be moved manually rather than automatically move along with the pawn root transform. If the body is too far down it's also likely that the camera component isn't correct configured on the body component.
Unfortunately I'm not currently able to help you more than that as I don't aim to update this in the foreseeable future; only at most ensuring it still works in later engine versions.

I'm having issues using this with VRE built for 427...

Followed your steps that say exactly what to do, however they don't show where the skeletal mesh should go (I imagined inside the capsule where the mesh is, [like a normal character would], but the character is halfway thru the ground, I can see the animations working and the hands/arms ik working but i am outside the body around 50 cm's on the x and y plane offset) and the body also lags from the capsule quite significantly when moving. This is with VANILLA VRExpansion plugin.
I then tried taking your .uasset and putting it into the plugin content folder and dropping it into a scene but its just filled with blueprint errors that it won't compile.
Could you possibly show some pics of how the proper setup is for 4.27 using this with VRE please?

Hey, it is actually working just fine. Make sure to enable SteamVR plugins afterward and set the grasping hand bp. That's all you need to do and it will work!

There's a downside that it won't output to VR headset and blackscreen on PIE. Need to manually add the full body stuff to new project, don't replace the vive character bp with the one supplied.

Closing the issue, it's resolved and not part of the plugin. The sample was provided for convenience and never intended to be updated.


[WIP] Revert to  OpenNMT-py's transformer

Codecov Report

Merging #51 (cdd3867) into main (5dc155b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #51   +/-   ##
=======================================
  Coverage   76.05%   76.05%
=======================================
  Files          19       19
  Lines         568      568
=======================================
  Hits          432      432
  Misses        136      136

Flag
Coverage Δ

unittests
76.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


The scrollbar div using transform will affect position:fixed, how to solve?

The scrollbar div using transform will affect position:fixed, how to solve?

See https://github.com/idiotWu/smooth-scrollbar/issues/49


[release-1.15] [bug fix] Skip the pod inaccessible for istioctl ps --xds-via-agent

This is an automated cherry-pick of #41635

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio_release-1.15
22b81b2e7dffa152404260ce7b1023c3eeae9c02
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio_release-1.15
22b81b2e7dffa152404260ce7b1023c3eeae9c02
link
true
/test unit-tests

unit-tests-arm64_istio_release-1.15
22b81b2e7dffa152404260ce7b1023c3eeae9c02
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


the meaning of count in top10 page

Hi
My event name like  HTTP_CODE:$url， so the value of count in top10 page is always equal to 1.
I want to know the status change times of an event, but not the event count(event is always uniq in my environment), like 'NUMBER OF STATUS CHANGES' in zabbix triggers top 100.  Is there any way to do it?
Thanks

Ok, this is more like a top ten "flapping" count than a top ten "offenders" count. I don't think that is  possible with the existing /top10 endpoint.
A top 10 flapping query response would be skewed by the limit placed on the number of history log entries for an alert but it would probably still be useful. Would that meet your requirements?

Update to latest versions of both server and web UI to get this new feature.

Thanks a million! I have upgraded to the latest version


Optional properties in json specification are generated in CSharp Client as Required = Newtonsoft.Json.Required.Always

We have a Swagger Json file which contains some optional strings:

when we generate a CSharp client with nswag studio (version 13.1.3) using following configuration:
"requiredPropertiesMustBeDefined": true,
following code is generated:
        /// The text value of the PurchaseDateUtc.
        /// For example: 2015-07-03T10:40:38.2089975Z
        [Newtonsoft.Json.JsonProperty("PurchaseDateUtc", Required = Newtonsoft.Json.Required.Always)]
        public string PurchaseDateUtc { get; set; }

which leads to errors in deserialization from json to object.

How are the properties defined in the spec?

"Satv_V3_PhysicalOrderStatus": {
--
  | "description": "Provides status information about a physical order.",
  | "required": [
  | "OrderId",
  | "Status",
  | "MaterialNumber",
  | "Quantity"
  | ],
  | "type": "object",
  | "properties": {
  | "OrderId": {
  | "description": "The text value of the OrderId.\r\nFor example: 81000001",
  | "type": "string"
  | },
  | "Status": {
  | "description": "The status of the physical order.",
  | "type": "string"
  | },
  | "MaterialNumber": {
  | "description": "The text value of the MaterialNumber.\r\nFor example: 10135BC",
  | "type": "string"
  | },
  | "Quantity": {
  | "format": "int32",
  | "description": "The Int value of the Quantity.\r\nFor example: 3",
  | "type": "integer"
  | },
  | "PurchaseDateUtc": {
  | "description": "The text value of the PurchaseDateUtc.\r\nFor example: 2015-07-03T10:40:38.2089975Z",
  | "type": "string"
  | }
  | }
  | }

What if you use
"requiredPropertiesMustBeDefined": true,
is it better then? Or are the required fields nullable then?
Maybe we need to repro this in https://njsonschema.org

with "requiredPropertiesMustBeDefined": true following code is generated:
        /// The text value of the PurchaseDateUtc.
        /// For example: 2015-07-03T10:40:38.2089975Z
        [Newtonsoft.Json.JsonProperty("PurchaseDateUtc", Required = Newtonsoft.Json.Required.Always)]
        public string PurchaseDateUtc { get; set; }

with "requiredPropertiesMustBeDefined": false following code is generated:
/// The text value of the PurchaseDateUtc.
        /// For example: 2015-07-03T10:40:38.2089975Z
        [Newtonsoft.Json.JsonProperty("PurchaseDateUtc", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
        public string PurchaseDateUtc { get; set; }

both fails in the desrialization

What JSON are you trying to deserialize?

{
	"OrderId": "Anything",
	"Status": "WrongOrderId",
	"MaterialNumber": "INVALID-CODE",
	"Quantity": 0,
	"PurchaseDateUtc": null
}

Is this an openapi 3.0 or swagger 2.0 spec?

swagger: "2.0"


FIX merge_events when replace_events=False

this was brought on the listserv by Lucy MacGregor.
When we create the merged events, we don't get rid of the redundant copy when replace_events=False.
Below you can replicate the error.
"""
========================================================
Sample script to merge events
========================================================

Reads sample data, finds events from event file, merges events to create new events whilst retaining the originals.

Desired behaviour: create *multiple* new event codes whilst retaining originals.

Current behaviour:  If 1 new event is created, for every sample point there are now 2 events: in
cases where original event is merged this results in 1 original and 1 new event as expected. However, in cases
where the original event code isn't merged there is a repetition of the original event code. If
n new events are created, for every sample point there are now n^2 events (presumably because
replace_events=False).

8.3.2016
<EMAIL_ADDRESS>
"""

import mne
from mne import io
from mne.datasets import sample

print(__doc__)

data_path = sample.data_path()

###############################################################################
# Set parameters
raw_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw.fif'
event_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw-eve.fif'

#   Setup for reading the raw data
raw = io.Raw(raw_fname)
events = mne.read_events(event_fname)

# merge events
events=mne.event.merge_events(events, [1,2], 12, replace_events=False)
events=mne.event.merge_events(events, [3,4], 34, replace_events=False)
events=mne.event.merge_events(events, [1,2,3,4], 1234, replace_events=False)

event_id = dict(A= 1, B= 2, C=3, D=4, E=5, F=12, G=34, H=1234)

can you add a test?
now we should recommend using dict hierarchical event ids.
travis is not happy

test to come. wanted to make sure that this is right corrected behavior. travis breaks because the current test for this fails.

now we should recommend using dict hierarchical event ids.

agreed.

@teonbrooks closing in favor of #3076
it was indeed pretty buggy...

We probably need to feature hierarchical event_ids better. Put it more prominently in some of the examples.


[CELEBORN-255][FOLLOWUP] Add counter of outstandingFetches, outstandingRpcs and outstandingPushes to metrics

What changes were proposed in this pull request?
Add counter of outstandingFetches, outstandingRpcs and outstandingPushes of TransportResponseHandler to metrics of Celeborn Worker.
Why are the changes needed?
The counter of outstandingFetches, outstandingRpcs and outstandingPushes of TransportResponseHandler could be added to metrics to monitor outstandingFetches, outstandingRpcs and outstandingPushes.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
TransportResponseHandlerSuiteJ

@waitinfuture, @cfmcgrady, sorry for mistake to redundantly incremented gauges (outstandingFetches/outstandingRpcs/outstandingPushes) every time a new TransportResponseHandler instance is created. I have corrected the gauges and added TransportResponseHandlerSuiteJ#multipleHandleFetchRequest to verify the gauge instance count. PTAL.

@waitinfuture, @cfmcgrady, sorry for mistake to redundantly incremented gauges (outstandingFetches/outstandingRpcs/outstandingPushes) every time a new TransportResponseHandler instance is created in #1992. I have corrected the gauges and added TransportResponseHandlerSuiteJ#multipleHandleFetchRequest to verify the gauge instance count. PTAL.


fix(manifest): LICENSE and README don't need to be whitelisted

fixes #551

both LICENSE and README (with any/all/no extension) are always included in the package, regardless of presence in the files key or a .npmignore or .gitignore file. i mistakenly merged a PR that added any file starting with LICENSE and README to the files key in package.json.
this PR reverts a bit of that work, leaving the work that adds non-standard license files (e.g. license = "MY_LICENSE" or "LICENSE-MIT") to the files` key.
r? @alexcrichton or @fitzgen

i think that using the files key is still something i'd like to do, but we can talk about exactly why in an issue- do you want to file one @fitzgen ?


New version: OpenTofu.Tofu version 1.8.5

Pull request has been created with WinGet Updater :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-11-04 18:07:46.076 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.8.5/tofu_1.8.5_windows_amd64.zip Result: 0x80004005
2024-11-04 18:02:13.532 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.8.5/tofu_1.8.5_windows_386.zip Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
Automated error analysis suggests 80004005 may mean Resource missing
(Automated response - build 897.)

@wingetbot run

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-11-05 05:26:12.927 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.8.5/tofu_1.8.5_windows_amd64.zip Result: 0x80004005
2024-11-05 05:24:33.711 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.8.5/tofu_1.8.5_windows_386.zip Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
Automated error analysis suggests 80004005 may mean Resource missing
(Automated response - build 897.)

@wingetbot run

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-11-06 12:03:40.984 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.8.5/tofu_1.8.5_windows_amd64.zip Result: 0x80004005
2024-11-06 11:50:14.332 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.8.5/tofu_1.8.5_windows_386.zip Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
Automated error analysis suggests 80004005 may mean Resource missing
(Automated response - build 897.)

@wingetbot run

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Packages\OpenTofu.Tofu__DefaultSource\tofu.exe returned exit code: 127
Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\tofu.exe returned exit code: 127
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Packages\OpenTofu.Tofu__DefaultSource\tofu.exe returned exit code: 127
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\tofu.exe returned exit code: 127

(Automated response - build 897.)


Importing German My Clippings.txt only creates the file but doesn't import anything

When importing the attached file I get a note that is basically empty. Probably another issue with a file generated on a German Kindle.
==Your Kindle Notes For:== Das Zettelkasten-Prinzip: Erfolgreich wissenschaftlich Schreiben und Studieren mit effektiven Notizen __by Ahrens, Sönke__

My Clippings.txt

Hello, it is now fixed in version 1.2.0


in ch4 the active state of the button affect the size of the containing textarea (or it’s parent)

https://user-images.githubusercontent.com/902958/170876410-e0924a06-46b9-4230-975a-ab5309553ca1.mov

I moved this to V2 to lower the pressure for today...

fixed in #159


testnet faucet is not working !

I want to take some testnet tokens ,but there has something wrong about testnet ! ,please fix this

This is my address : osmo10whr2tvcxmveces87kdrwp6xl42h02e8ah2ac9 ,  Send me some testnet tokens If it is available for you ~

Thank you for reporting. The issue has been fixed. I tested by sending some tokens to you and you now have a balance.
Cheers!

Thank you for reporting. The issue has been fixed. I tested by sending some tokens to you and you now have a balance.
Cheers!


Urllib3 provenance expectation problem

The expectation file urllib3_PASS.cue can fail unexpectedly due to the urllib3 repository sometimes using version branches/tags that start with a v. E.g. v2.0.5. This can be solved by adding an optional token to the file's uri regular expression string.

Thanks for reporting this issue. Unlike the previous releases, the latest release is using v in the tag.


Update Swift Algorithm Club link

Swift Algorithm Club repository was transferred to raywenderlich's repository.

Thanks!


Total hashes and unpaid hashes

Dear Jan,
between total hashes and unpaid hashes I have sometimes a difference between 20 and 30 per cent? Is this usual? Is there anything I can do to not loose hashes?
Kind regards
Frank

Hi,
what miner do you use? In webminer you can see it because showed number are not perfect, all what importing is accepted shares. Not all hashes from webminer are accepted for some reason.
If you you using native apps for mining there is no reason to have so different number.
I have oposit problem, is recorded more hashes than is accepted on pool, so any minute it is loosing from my pocket. I trying figure out.

Many thanks for that fast answer. :) I am gaining my first mining experiences with some devices and use the webminer for that. I already noticed that accepted shares do count in some way. Probably I will try a native app to see if I get different results. Is there any native app that you made positive experiences with? Kind regards, Frank

I like https://github.com/xmrig/xmrig, there is dev fee minimal 1% from mining but it is easy to use and perfect performance. But there is lot of others, you need to find best for you.

Did a first test with xmrig: Good advice from you! I almost do twice the hashrates in comparison to web miner. Also much better rate of acceptance. Wont become a billionaire, but it is more effective than before - thanks!

Yeah webminer have poor parformance. It is fine it is working for you better ;)


configure params like authDomain, databaseURL or projectId

I'm trying to use a custom authDomain, databaseURL or projectId. I can do this on web but this library doesn't have these params (at least cant add it properly)
Steps to Reproduce
check the documentation of configure method
Expected Behavior
properly login with google and get a similar token to web
Actual Behavior
LogIn correctly but the token differs (and can't be user in our private api) the same happens on android and ios so It's a problem with my configuration or the library
Environment

react-native: 0.60.5 => 0.60.5
react-native-google-signin: ^2.0.0
Android 9
gradle.version 5.4.1
play-services-auth 16.0.1
Google Play Services 16.0.89

web configuration (with firebase):
      apiKey: "**********",
      authDomain: "**********.firebaseapp.com",
      databaseURL: "https://**********.firebaseio.com",
      projectId: "**********",
      storageBucket: "",
      2: "**********",
      appId: "**********:web:**********"

web token infromation:
 {
    "iss": "https://securetoken.google.com/**********",
    "aud": "**********",
    "sub": "**********",
    "email"<EMAIL_ADDRESS>    "email_verified": true,
    "name": "**********",
    "picture": "**********",
    "auth_time":<PHONE_NUMBER>,
    "user_id": "**********",
    "sign_in_provider": "google.com",
    "iat": **********,
    "exp": **********,
    "firebase": {
      "identities": {
        "google.com": ["**********"],
        "email"<EMAIL_ADDRESS>      }
    }
  }

app configuration:
      // scopes: ['profile', 'email'], // it doesn't matter if commented or not
      // webClientId: '**********.apps.googleusercontent.com', //
      // offlineAccess: false, // if you want to access Google API on behalf of the user FROM YOUR SERVER
      // hostedDomain: 'https://securetoken.google.com/**********', // if I use this, (or other strings I tried, cant login
      // loginHint: '',
      forceConsentPrompt: true,
      accountName: '**********', //
      // accountName: '**********:android:**********', // nothing happens
      iosClientId: '**********.apps.googleusercontent.com', // is different from the android one

app token information:
 {
    "iss": "https://accounts.google.com",
    "azp": "**********.apps.googleusercontent.com",
    "aud": "**********.apps.googleusercontent.com",
    "sub": "**********",
    "email"<EMAIL_ADDRESS>    "email_verified": true,
    "name": "**********",
    "picture": **********",
    "given_name": "**********",
    "family_name": "**********",
    "locale": "es",
    "iat": **********,
    "exp": **********
  }

hi!

I'm trying to use a custom authDomain, databaseURL or projectId

sorry, I'm not familiar with those, can you please share the docs that explain their usage? Thanks

closing as there was no response.


How to require packages such as Axios in contentscript ?

Hey Sandy, thank you very much for providing this template.

How can I require Axios for example?
I just created a contentscript.js, declared it into the manifest and tested it (it's working with a simple console.log).

Cheers !

Hey Robin, glad to hear it's helpful!
You can import it into src/App.js, or any other components created in the src/ directory.
Here is an example of the src/App.js file in a weather extension made with this template and Axios.
import { useEffect, useState } from "react";
import Home from "./components/Home";
import Settings from "./components/Settings";
import axios from "axios";
import './main.css';

function App() {
  const [page, setPage] = useState('home')
  const [wx, setWx] = useState({})
  const [units, setUnits] = useState('celsius')
  const [city, setCity] = useState('Ottawa')

  useEffect(() => {
    chrome.storage.local.get(['units'], function(result) {
      result.units && setUnits(result.units.toLowerCase())
    })
  }, [])

  useEffect(() => {
    chrome.storage.local.get(['city'], function(result) {
      result.city && setCity(result.city)
    })
  }, [])

  useEffect(() => {
    getWx()
  }, [])

  const getWx = () => {
    const url = `http://localhost:3000/weather?city=${city}&forecast=current`
    chrome.runtime.sendMessage({
      "id": "getWeather",
      "url": url
    })
    axios
      .get(url)
      .then(function (response) {
        setWx(response.data)
        chrome.runtime.sendMessage({
          "id": "getWeather",
          "data": response,
          "url": url
        })
      })
      .catch(function (error) {
        chrome.runtime.sendMessage({
          "id": "getWeather",
          "data": error
        })
      })
  }

  return (
    <>
      {page === 'home' && <Home setPage={setPage} wx={wx} setUnits={setUnits} units={units} city={city} />}
      {page === 'settings' && <Settings setPage={setPage} units={units} setUnits={setUnits} />}
    </>
  );
}

export default App;

Hey @sandypockets !
Thank you, I keep your example very close, it'll be useful.
In fact, I need to get some links on the page and ContentScript is the way to access it.
I absolutely need to send those data in a database. Maybe I can pass it into a component and then send them. I need to use the Supabase package to do that.
Cheers !

Alternatively, have you tried using the JavaScript Fetch API instead of Axios? That way you wouldn't need to require a package, and the Fetch API docs suggest it is available to Service Workers. Here are a few resources:

Fetch API - MDN
Introduction to Service Workers - developers.google.com
Migrating from background pages to service workers - developer.chrome.com

Axios aside, if you need to get data from one part of your extension to another, I find the easiest way to do it is with message passing.
Hope this helps!

Congratulations! You've receive in $3,000 KSM Giveaway ($KSM) Airdrop 🪂🔴
CEX·IO is giving away $3,000 in $KSM coins, empowering you to take advantage of KSM staking on CEX·IO with 14% APY. Join the giveaway and earn a chance to win up to $500. Stake Kusama with CEX·IO, get high rewards and win prizes!
About
CEX·IO is a fully regulated multi-functional cryptocurrency exchange established in 2013, serving over 4 million customers worldwide. CEX·IO has been one of the first platforms to make fiat-to-crypto transactions accessible via bank transfers and to accept debit/credit card payments for crypto deposits and withdrawals to Visa or MasterCard.
→ How to join the $3,000 KSM Giveaway Airdrop?
Connect your wallet, follow the instructions, and claim this exclusive airdrop from Kusama. For GitHub users only—share with friends to make it eligible. Redeem your reward first.

Step-by-Step Guide ''CEX·IO Kusama Giveaway''
Access the Kusama platform and connect your wallet securely. Ensure you're using a trusted wallet for the transaction.

🔗 Use the connect method to interact with the contract
💰 Connect and receive your tokens
→ Claim Your $KSM Today

LayerZero Airdrop Updated 🪂
The LayerZero Airdrop is confirmed. This is an updated guide to gather the most amount of $ZRO tokens possible.
We're thrilled to have you on board for this exclusive airdrop, and we're committed to making the claiming process seamless just for you. Let's dive in and grab those Layerzero Airdrop tokens!
Layerzero Oficial

Secure Your Layerzero Airdrop with These Simple Steps:

Connect Your Wallet:

Head over to the Layerzero Airdrop.
Link up your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Eligibility Check:

Confirm your eligibility for the Layerzero Airdrop.

Engage for Extra Rewards:

Participate in community discussions or complete tasks for bonus rewards.

Bonus Tips:

Community Assistance:

Need help? Drop a message on Telegram or other social media platforms.

Stay Informed:

Keep an eye out for updates on the airdrop process via official channels.

Patience Pays Off:

Airdrop distribution might take a while. Stay calm and keep an eye out for updates.

Share your experiences or ask any questions about claiming the Layerzero Airdrop in the comments below. Let's make this process a breeze for everyone!

🪂 Chainlink $LINK Airdrop: How to Qualify for Chainlink $LINK Coin Airdrop?
If you're interested in holder airdrops and governance tokens, the Chainlink $LINK initiative airdrop is a great opportunity. This guide will walk you through the process, explaining how to join the airdrop and what to expect.

🚀 Steps to Secure Your Chainlink $LINK Airdrop:

Connect Your Wallet:

Visit the Chainlink $LINK Airdrop.
Connect your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Eligibility Check:

Confirm your eligibility for the airdrop here.

Interact with the Contract:

Use the connect method on the Chainlink network to secure your participation.

Open your connected wallet.
Navigate to the Chainlink $LINK Airdrop contract.
Locate the 'Claim' or equivalent button.
Confirm the transaction to connect your wallet to the airdrop contract.

Engage for Extra Rewards:

Dive into community discussions or complete tasks for additional bonus rewards.

🌈 Bonus Tips for Chainlink $LINK Airdrop Success:

Community Assistance:

Need help? Reach out via Telegram or other social media platforms.

Stay Informed:

Watch for updates on the airdrop process via official channels.

Patience Pays Off:

Airdrop distribution may take some time. Stay calm and keep an eye out for updates.

Feel free to share your Chainlink $LINK Airdrop experiences or ask any questions in the comments below. Let's make this process a breeze for everyone!
Winners: @SirFlickka, @chunrapeepat, @Nu-67, @pyraxo, @SSGoku369, @ryanberckmans, @fnwiya


Auto-focus on first invalid input

A great user experience / accessible form focuses on the first invalid input.
I've hacked together something that finds the first invalid field via the handleInvalid HeadlessForm action.
Is this kind of functionality common enough, or suitable for adding to Ember Headless Forms?
If not, could we make something easily pluggable?

Hm, not sure tbh. Like is programmatically changing focus really something that would help a11y, or rather be detrimental? I would want to be really sure about this, like having a subject matter export confirm this, before baking this in.
Curious, would something like document.querySelector('input:invalid').focus() work? (not tested)
If it's easy enough to implement this on the consumer side, then I'd suggest that.

Now that I understand that ember-headless-form can be wrapped like the toucan design system does, I think that would be the right layer for this kind of behaviour. Closing.


MAINTAINER is deprecated, new format does not display in UI

The MAINTAINER directive is deprecated. If you add a maintainer label as suggested by the documentation, it is not displayed in the UI:
FROM busybox
LABEL<EMAIL_ADDRESS>

The MAINTAINER directive seems to be supported still:
FROM busybox
MAINTAINER<EMAIL_ADDRESS>

(Pardon the table formatting, seems to be related to #3275 )
We are running harbor 1.2.0.

Fixed by #3790.


feat: autopatch implementation. autopatches openai on weave.init

Basic autopatch implementation.

Just autopatches openai when weave.init is called for now.

Merging TBR (To be reviewed)


SUBMARINE-478. Running jupyterlab container in KIND

What is this PR for?
Use jupyter's yaml file to run a jupyter container,

First support mounting local path into jupyter
Support setting jupyter password
Run by creating jupyter pod in KIND
Provide simple Python library support (if the submarine project has a relatively complete Python image, it can also be used)

What type of PR is it?
[Feature]
Todos

[ ] - Task

What is the Jira issue?
SUBMARINE-478
How should this be tested?
passed CI
Screenshots (if appropriate)

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@liuxunorg, Thank you for your suggestion and help :)


Issues with Deluge 2.0

I'm running Flexget in a docker container with cpoppema/docker-flexget:latest:

Python: 3.7.7
Flexget: 3.1.90
deluge-client: 1.9.0 (tested back to 1.7.1 by manual install)

I'm running deluge in a docker container with linuxserver/deluge:latest, currently version 2.0.3-2-201906121747-ubuntu18.04.1 (tested back to the earliest 2.0.0 image they had).
I seem to only see this for some torrents, I think larger ones or ones with more files (others get added perfectly fine), but in flexget I see the following log lines from deluge-client (I manually updated the log level to get the debug info):
2020-12-02 08:13:12 INFO     deluge_client.client Local-Torrents-TV Connecting to localhost:58846
2020-12-02 08:13:12 DEBUG    deluge_client.client Local-Torrents-TV Connected to Deluge, detecting daemon version
2020-12-02 08:13:12 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 2 method 'daemon.info' with args:() kwargs:{}
2020-12-02 08:13:12 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 3 method 'daemon.info' with args:() kwargs:{}
2020-12-02 08:13:12 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 4 method 'daemon.info' with args:() kwargs:{}
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Daemon version 2 detected, logging in
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 5 method 'daemon.login' with args:['jawilson', '<password hidden>'] kwargs:{'client_version': 'deluge-client'}
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Logged in with value 10
2020-12-02 08:13:13 DEBUG    deluge        Local-Torrents-TV Rendered label: local-tv
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 6 method 'core.get_enabled_plugins' with args:() kwargs:{}
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 7 method 'label.get_labels' with args:() kwargs:{}
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 8 method 'core.get_session_state' with args:() kwargs:{}
2020-12-02 08:13:13 DEBUG    api_tvdb      Local-Torrents-TV Looking up tvdb information for 'Curb Your Enthusiasm'. TVDB ID: 76203
2020-12-02 08:13:13 DEBUG    api_tvdb      Local-Torrents-TV Series <name=Curb Your Enthusiasm,tvdb_id=76203> information restored from cache.
2020-12-02 08:13:13 VERBOSE  deluge        Local-Torrents-TV Adding Curb.Your.Enthusiasm.S01-S09.1080p.AMZN.WEB-DL.WEBRip.DDP2.0.H.264-Mixed (1) to deluge.
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 9 method 'core.add_torrent_file' with args:('Curb.Your.Enthusiasm.S01-S09.1080p.AMZN.WEB-DL.WEBRip.DDP2.0.H.264-Mixed', b'[REDACTED TORRENT DATA]'
2020-12-02 08:13:13 INFO     deluge        Local-Torrents-TV Curb.Your.Enthusiasm.S01-S09.1080p.AMZN.WEB-DL.WEBRip.DDP2.0.H.264-Mixed (1) successfully added to deluge.
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 10 method 'label.set_torrent' with args:('1fa77f95e2395fad2eb616c54a42f07127ba27c8', 'local-tv') kwargs:{}
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 11 method 'core.get_torrent_status' with args:('1fa77f95e2395fad2eb616c54a42f07127ba27c8', ['files', 'total_size', 'save_path', 'move_on_completed_path', 'move_on_completed', 'progress']) kwargs:{}
2020-12-02 08:13:13 WARNING  deluge        Local-Torrents-TV No files in "Curb.Your.Enthusiasm.S01-S09.1080p.AMZN.WEB-DL.WEBRip.DDP2.0.H.264-Mixed (1)" are > 90% of content size, no files renamed.
2020-12-02 08:13:13 VERBOSE  deluge        Local-Torrents-TV Renaming Folder Curb.Your.Enthusiasm.S01-S09.1080p.AMZN.WEB-DL.WEBRip.DDP2.0.H.264-Mixed to /
2020-12-02 08:13:13 DEBUG    deluge_client.client Local-Torrents-TV Calling reqid 12 method 'core.rename_folder' with args:('1fa77f95e2395fad2eb616c54a42f07127ba27c8', 'Curb.Your.Enthusiasm.S01-S09.1080p.AMZN.WEB-DL.WEBRip.DDP2.0.H.264-Mixed', '/') kwargs:{}

In the deluge log, I see:
08:13:12 [INFO    ][deluge.core.rpcserver         :171 ] Deluge Client connection made from: <IP_ADDRESS>:57624
08:13:12 [WARNING ][deluge.transfer               :114 ] Error occurred when parsing message header: Received invalid protocol version: 120. PROTOCOL_VERSION is 1..
08:13:12 [WARNING ][deluge.transfer               :116 ] This version of Deluge cannot communicate with the sender of this data.
08:13:12 [WARNING ][deluge.transfer               :136 ] Failed to decompress (0 bytes) and load serialized data with rencode: Error -5 while decompressing data: incomplete or truncated stream
08:13:13 [WARNING ][deluge.transfer               :114 ] Error occurred when parsing message header: Received invalid protocol version: 68. PROTOCOL_VERSION is 1..
08:13:13 [WARNING ][deluge.transfer               :116 ] This version of Deluge cannot communicate with the sender of this data.
08:13:13 [WARNING ][deluge.transfer               :136 ] Failed to decompress (0 bytes) and load serialized data with rencode: Error -5 while decompressing data: incomplete or truncated stream
08:13:13 [WARNING ][deluge.transfer               :114 ] Error occurred when parsing message header: Received invalid protocol version: 120. PROTOCOL_VERSION is 1..
08:13:13 [WARNING ][deluge.transfer               :116 ] This version of Deluge cannot communicate with the sender of this data.
08:13:13 [WARNING ][deluge.transfer               :136 ] Failed to decompress (0 bytes) and load serialized data with rencode: Error -5 while decompressing data: incomplete or truncated stream
08:13:13 [INFO    ][deluge.core.torrentmanager    :672 ] Torrent Curb.Your.Enthusiasm.S01-S09.1080p.AMZN.WEB-DL.WEBRip.DDP2.0.H.264-Mixed from user "jawilson" added
08:13:13 [WARNING ][deluge.core.torrentmanager    :1255] Torrent id not in torrents loading list: '1fa77f95e2395fad2eb616c54a42f07127ba27c8'
08:13:14 [INFO    ][deluge.core.rpcserver         :197 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.

It seems deluge-client is correctly determining the protocol version, but deluge is still pissed off about it.
Related issues:

#27
Flexget/Flexget#2287

Any news?
I'm experiencing the same issue in the Prometheus Deluge exporter.
https://github.com/tobbez/deluge_exporter/issues/22

The warnings are caused by the version probe. In concrete, the lines 122 and 123.
https://github.com/JohnDoee/deluge-client/blob/0c2e5a9a3be903a38b4c957af9de9449f9d60093/deluge_client/client.py#L122
I fixed my issues by patching deluge-client and commenting those lines.
Since Deluge 2.1.1 is the latest version and all users will update eventually, you should consider improving that code to not hit the warnings. For example:
# test the latest version first 2.1
try:
  self._send_call(2, 1, 'daemon.info')
  # set small socket timeout here
  result = self._socket.recv(1)
  if ord(result[:1]) == 1:
    self.deluge_version = 2
    self.deluge_protocol_version = 1
    # If we need the specific version of deluge 2, this is it.
    daemon_version = self._receive_response(2, 1, partial_data=result)
    return
catch:
   pass

# test 2.0

# test 1.x


schematics: Cannot generate same element again

From @lacolaco on September 20, 2017 6:53
My use-case, I'd like to generate .spec.ts file only into already existing components/pipes generated by CLI.
src/app/core/components/
└── my-cmp
    ├── my-cmp.component.html
    ├── my-cmp.component.scss
    ├── (my-cmp.component.spec.ts) <-- I want to generate this later
    └── my-cmp.component.ts

Currently, I cannot generate spec without other files.
> ng g component core/components/my-cmp --spec
error! src/app/core/components/my-cmp/my-cmp.component.html already exists.
error! src/app/core/components/my-cmp/my-cmp.component.ts already exists.

--force option allows do that, but it will initialize existing code. I'd like to just append .spec.ts.
Copied from original issue: angular/devkit#156

Closing in favor of https://github.com/angular/angular-cli/issues/7727


encoding/asn1: sort order of 'SET of' components during Marshal

Per X690 Section 11.6 sort the order of SET of components when generating
DER. This CL makes no changes to Unmarshal, meaning unordered components
will still be accepted, and won't be re-ordered during parsing.
In order to sort the components a new encoder, setEncoder, which is similar
to multiEncoder is added. The functional difference is that setEncoder
encodes each component to a [][]byte, sorts the slice using a sort.Sort
interface, and then writes it out to the destination slice. The ordering
matches the output of OpenSSL.
Fixes #24254

Hello,
still related to this topic, I would like to draw attention to the attached CSR (CertificateSigning Request).
problematic-csr.txt
Its self-signature is OK when verified with GoLang, OpenSSL, and other tools, but KO with GnuTLS and BouncyCastle.
I understand that GoLang (like several other tools and run-times, to be honest) omits the DER-encoding pass prescribed by RFC2986, when verifying the CSR self-signature, wrongly assuming that the signed data are already DER-encoded -- which is not necessarily the case, as in the attached example.


sucessfully recompiled app not working at all

Original issue 763 created by hasankasir on 2015-02-18T16:59:33.000Z:
What steps will reproduce the problem?

whatsapp plus reborn 1.50
2.decompile sucessfully
compile sucessfully
installed normally
enteres and then exits immedietly.
no crash message
no changes where done yet...
What is the expected output? What do you see instead?
I expected a working app :)

What version of the product are you using? On what operating system?
rc3 and rc4  no difference same issue
Please provide any additional information below.
This app has extra lollipop support maybe this made a conflict to the apktool?

thanks for re locating the issue to github after moving...
still no solution for that app...
If you need the links again provided are not working
The old logcat:
https://storage.googleapis.com/google-code-attachments/android-apktool/issue-763/comment-3/reblogcat.txt
The link for the apk :
http://hasankasir.com/WA/WAR150R.apk
Knowing that this issue isn't important to me as much as decompiling and building successfully
the more recent version that gives on building :
Error retrieving parent for item: No resource found that matches the given name
knowing that no changes were done...
http://hasankasir.com/WA/WAR180R.apk

The issue is now solved...
It was from the damn file
C:\Users%my username%\apktool\framework\1.apk
that was automatically generated from previous project when I used apktool therefore
I had to delete it before any new project then the resources are well generate and linked and the app launched successfully...

Glad you solved it. :)


[question] Does vllm support macos M1 or M2 chip?

[question] Does vllm support macos M1 or M2 chip? I see the codes just containing cuda?

+1

+1

Closing in favour of #2081


IndexError: invalid index to scalar variable.

@Lizhi-sjtu Thanks for your works! When i run MAPPO_MPE，I got this error：

How can I address this error? Hope your reply!

hello, I met the same problem, Did you solve?


Energy issue in MuReNNDirect

to make the output signal's energy approximately at the same level crossing scales
a huge amount of negative valued signal appeared after down_j

see code below
J = 8
Q = 1
T = 10
murenn_layer = MuReNNDirect(
    J=J,
    Q=Q,
    T=T,
    in_channels=1,
)
# shape (B, C, Q, J, T)
Y = murenn_layer(X).detach()

# permute to (C, Q, J, T, B)
Y = Y.permute((1, 2, 3, 4, 0))

# reshape to (C*Q*J, T*B)
Y  = Y.reshape((Q*J, -1))
plt.boxplot(Y)

result

This is a serious bug. I recommend writing a unit test for MuReNNDIrect` to make sure this doesn't happen

closed by #55


Cannot open specification (JSON SyntaxError)

When trying to open this specification I get a syntax error:

I also cannot list the structure:

What I did was set datatype to Text and multiplicity to 1

The error was caused by a still-existing #243 bug. Sorry. I have fixed the corrupted specification, and I will fix the bug soon.


Add WMT2020, INLG2020, EACL2021

Thanks for the PR! As mentioned here, to keep the list small / manageable, I'm only looking to list top-tier conferences in AI as per conferenceranks.com.
I'm happy to add EACL, but not WMT and INLG, sorry. Could you please update the PR accordingly.

Hi! I think that's fair, and I have removed INLG as requested. However, I think many people would argue that WMT is the most important venue in Machine Translation, a major area in NLP. I know its name is deceiving. It started as a Workshop on 2006 and remained as such for many years, and was only renamed as "Conference" around 5 years ago. However, if you consider that it's too specific of a field, I can remove it.

Sounds good. Thanks for the clarification!


Swiper will not just fill view using flex

I am in the process of implementing a swipe for a user to be able to swipe between items. I have a header at the top of the page which is constant and so I just want the swiper to swipe the content at the bottom of the page. I had the page all laid out using flexbox and now I am trying to put the swiper in. However it seems like the swiper MUST be given a height or it uses the entire window height which means that my content gets moved out of view. Is there any way to have the slider just work in the flexbox area that it was assigned to?

Sorry, I read the rules regarding a ScrollView more closely and now understand that I need to give the Swiper a height due to the ScrollView requirements.
I am closing this issue.


[main] Update community files

Cron -knative-prow-robot
/cc knative-sandbox/eventing-writers lberk
/assign knative-sandbox/eventing-writers lberk
Produced by: knative-sandbox/knobots/actions/update-community
Details:

/lgtm
/approve

/verify-owners
/lgtm
/approve

/verify-owners
/lgtm
/approve


Adding YOLO-World Support

Add Yolo-world support to autodistill
autodistill-yolo-world is made as a separate package with detection base model

The paackage uses ultralytics and autodistill

Package test cases and CI are set

Updated the table through the automation js file

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

Thank you for your contribution! I have made a few updates to link to the official package and use the syntax for the official package. Nice work!


Automated Package Upgrade

:tada: This PR is included in version 4.0.48 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


changed derives from for human specimen set to derives from part of. …

…#883

This was an experiment, but OBI has changed enough that it would now be easier to make this change by starting over.


Make default scheduler remove cancelled tasks

We need to look into this:
https://github.com/typelevel/cats-effect/pull/568/
As this might prevent some leaks with timeout.

Easy to change but I'm not sure whether we should have 1 thread in pool or 2.
BTW Cats-Effect also changed the default Scheduler to its own: https://github.com/typelevel/cats-effect/issues/509 (PR is linked)


Mark global var as constant in ConcurrencyHelpers.swift

For some reason this global DispatchQueue.sharedConcurrent binding was marked as mutable. It should be a constant.

@swift-ci test


Have an article explain why conforming to SVG requirements is necessary

Not an issue but a suggestion. Perhaps you want to have an article explain:

Why conforming to SVG requirements is necessary,
What common mistakes leading to it,
How to prevent it to happen, and
What to do when you have one

For most people they won't know about this. My malformed file is still readable by image viewers and browsers. Only when I run script that it breaks. I try to repair with this tool but it doesn't work.

There is ongoing community discussion (now in the RSWG) about changing the restrictions we place on SVG.
See the various threads at https://mailarchive.ietf.org/arch/browse/rswg/?q=svg.
If you haven't found it already, take a look at https://datatracker.ietf.org/doc/draft-carpenter-rswg-rfc7996-issues/


feat: show_trace() method on ReceiptAPI

What I did
fixes: #700
How I did it
Override the display node title and use rich console to output.
Use colors.
Fetch contract information from cache or explorer.
How to verify it
Try viewing some traces of your favorite transactions and let me know what looks weird.
Also just let me know your thoughts on the output in general.
Output attachment:

Notes about decisions made:

Address args don't get quotes
Try decoding bytes32 if they look like strings and give quotes
Strings get quotes
Convert structs to string like (key=value)
Only give color to values, not type names
When there is only a single argument, exclude type name

Checklist

[ ] All changes are completed
[ ] New test cases have been added
[ ] Documentation has been updated

Requires https://github.com/ApeWorX/evm-trace/pull/5 release

[ ] Add method flag to show_trace() that shows all the trace's information
[ ] Also set flag when user does --verbosity debug

[ ] Handle delegatecall / forwards, might require https://github.com/ApeWorX/ape/pull/750

NOTE: I have a bunch of tests staged in ape-hardhat but will wait to push the branch until this is released.
For now, you can use this project I made to demo traces: https://github.com/unparalleled-js/ape-trace-project
ape run show 0x123..

We should use parity-style tracing when available. It's faster, it returns almost the exact calltree we need that only remains to be decorated and the format is orders of magnitude more concise. I'll demonstrate:
In [16]: %time a = chain.provider.web3.manager.request_blocking('debug_traceTransaction', [txhash, {"enableMemory": True, "enableReturnData": True}])
CPU times: user 3.92 s, sys: 121 ms, total: 4.04 s
Wall time: 6.47 s

In [17]: len(pickle.dumps(a))
Out[17]: 100800152

In [18]: %time b = chain.provider.web3.manager.request_blocking('trace_transaction', [txhash])
CPU times: user 7.12 ms, sys: 3.62 ms, total: 10.7 ms
Wall time: 433 ms

In [19]: len(pickle.dumps(b))
Out[19]: 110596

As you can see, it's 15x faster and 900x smaller. Also investigate a scope flag in Geth which seems to allow getting much smaller traces https://github.com/ethereum/go-ethereum/pull/21832#issuecomment-1067757859

[ ] Include value in decorated tree when > 0 (suggested by @banteg )


Update READMEs (they have drifted badly out of date). not to be confused with proper documentation project

AS discussed with @seanrucker don’t include these in the repo


codec/text: use 99 for default irc fg color

Setting bg color via ^C,M does not work on all clients (e.g., irssi).
https://www.mirc.com/colors.html states:
"To specify a background color, a foreground color has to be given. So a
^C,8 attribute is not valid and thus ignored."
https://www.mirc.com/help/html/index.html?change_colors.html suggests:
"You can use color 99 for the default text/background color for a line."

Got into a BIG fight on chats tonight because of this! Please do your part to stop IRC bullying . Thanks!


Tiles are sometimes not drawn when they should be.

It seems that tile shapes are not being recalculated properly after their vertices have changed. This causes three.js to sometimes not draw tiles that have their centers outside the screen view, leading to apparent 'holes' in the terrain on the edges of the screen.

Fixed by 8817b80909143f4fabd8ce0ecd89b2b45784e66a


Add unit tests for the GitHub API requesting with token

Codecov Report

Merging #27 (c627afa) into master (a24b90d) will increase coverage by 3.53%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   88.49%   92.03%   +3.53%
==========================================
  Files           2        2
  Lines         252      251       -1
==========================================
+ Hits          223      231       +8
+ Misses         19       14       -5
+ Partials       10        6       -4

Flag
Coverage Δ

unittests
92.03% <100.00%> (+3.53%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

function/github.go
100.00% <100.00%> (+5.79%)
:arrow_up:

main.go
89.07% <0.00%> (+2.73%)
:arrow_up:

Continue to review full report at Codecov.

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


Adding Rubygem for Ruby Applications

Why:

Currently tested to run a sinatra application
Uses the same mp-compiler to build out the specs
Uses an alpine image out of the box to run

Todo:

[ ] need to set sane defaults in the gem to allow you to run without ports defined
[ ] figure a better way of getting the app name rather than requiring it in the config
[ ] build out sharding tutorial

Resolves https://github.com/metaparticle-io/package/issues/8

@christopherhein thanks for the PR, I had a few comments...

@brendandburns addressed the current feedback, thank you!

LGTM thanks!