[vim9script] Error when function argument is created at invocation time

Steps to reproduce
Source this script:
vim9script

class Widget
endclass

def F(widget: Widget, lnum: number)
enddef

def G(lnum: number, widget: Widget)
enddef

def H(w1: Widget, w2: Widget)
enddef

def Draw()
  var foo = Widget.new()
  F(foo, 1)                      # OK
  G(1, foo)                      # OK
  H(foo, foo)                    # OK
  F(Widget.new(), 1)             # OK
  G(1, Widget.new())             # ERROR
  H(Widget.new(), Widget.new())  # ERROR
enddef

Draw()

The last two function invocations inside Draw() fail with:
E1013: Argument 1: type mismatch, expected number but got class<Widget>

and
E1013: Argument 1: type mismatch, expected object<Widget> but got class<Widget>

respectively.
Expected behaviour
It should be possible to create objects inside function arguments under all circumstances.
Version of Vim
9.0.1626
Environment
macOS 13.4
Apple Terminal
xterm-256color
ZSH 5.9
Logs and stack traces
No response

Possibly related:
this works
vim9script

class Test
	this._name = ""

	def new(this._name)
	enddef

	def GetName(): string
		return this._name
	enddef
endclass

var t = Test.new("testname")
setreg('"', t.GetName())

this doesn't (same E1013 error)
vim9script

class Test
	this._name = ""

	def new(this._name)
	enddef

	def GetName(): string
		return this._name
	enddef
endclass

var t = Test.new("testname")

def Setreg()
	setreg('"', t.GetName())
enddef

Setreg()

This works again:
vim9script

class Test
	this._name = ""

	def new(this._name)
	enddef

	def GetName(): string
		return this._name
	enddef
endclass

var t = Test.new("testname")

def Setreg()
	var n = t.GetName()
	setreg('"', n)
enddef

Setreg()

So it's not possible to invoke a class method in functions, directly as arguments in function calls, but it works if you assign it to a variable and then pass the variable.

So it's not possible to invoke a class method in functions, directly as arguments in function calls

Reported in #12081
This is probably a duplicate

closing as duplicate then


src: fix -Wshorten-64-to-32 warnings

https://redmine.openinfosecfoundation.org/issues/6186
https://github.com/OISF/libhtp/pull/397 with more fixes for more architectures (size_t != int)

This is good enough for libhtp

@victorjulien could we merge the 2 approved libhtp PRs ?

Merged in #399, thanks!


Pedantic white space preservation not supported.

In the following xml the whitespace in text, which happens to be a space character, is stripped.
<tspan font-weight="bold"> </tspan>
This happens when XMLNode::ParseDeep() calls XMLDocument::Identify(), which in turn calls XMLUtil::SkipWhiteSpace().
If a character comes anywhere after the whitespace Identify() correctly creates a text element and backs up to the 1st character, correctly keeping the space character along with the following character.
<tspan font-weight="bold"> a</tspan>
The result is that whitespace is not fully preserved in text - which doesn't match the documentation. This example isn't just an exercise, it's an actual shipstopper when reading legacy files in a well known application that has been migrated to tinyxml2.

Next example shows that whitespace only is not preserved:
#include "tinyxml2.h"

using namespace tinyxml2;

int main( int argc, const char ** argv )
{
    // leading and trailing whitespace is preserved
    static const char* test1 = "<element>  leading and trailing whitespace   </element>";
    XMLDocument doc;
    doc.Parse( test1 );
    doc.Print();

    // whitespace only is not preserved !!
    static const char* test2 = "<element2>      </element2>";
    XMLDocument doc2;
    doc2.Parse( test2 );
    doc2.Print();

    return 0;
}

Gives output:
<element>  leading and trailing whitespace   </element>
<element2/>

Leaving open in case someone wants to submit a patch for this. TinyXML2 is working as intended; it would need a new whitespace mode to fix.

I agree that a new whitespace preservation option is needed, because currently legitimate HTML like this one, fails to be parsed as expected. This:

formatted text with link

is printed as:

formatted text withlink

which is loss of meaningful information.
I am trying to patch it myself, but so far, I can't manage to do it, because to work properly, such PEDANTIC_WHITESPACE option requires context knowledge of the surrounding nodes (whitespace should be interpreted as text only if it is inside the  tag, no in the .

@ minimum, should support xml:space="preserve", as mentioned @ https://github.com/JayXon/Leanify/issues/3.

@leethomason @jodyp12 @peterbiglr @petko https://github.com/zeux/pugixml/issues/74 shows how https://github.com/zeux/pugixml has a mode that might be helpful to y'all, though it's not preciselyxml:space="preserve"support.

I've looked at this and created a few supporting unit tests. Latest pull request: https://github.com/leethomason/tinyxml2/pull/938
IMHO it is a problem just for some rare legacy systems such as ours. It is essential to some but only rare use-cases. As a result rather than relying on current whitespace options, I've created one called PRESERVERRAW_WHITESPACE. White space being just space at present. Seems the only use-case for legacy systems.
So   becomes " " if whitespace is PREVESERVERRAW_WHITESPACE is used. Otherwise, it will be "".

 is obviously still "".
I didn't worry about  \r\n because I haven't seen a need for this. My guess is it'll still show as space, but can't imagine a legacy system that is lazy enough to not put quotes would bother to put a CrLf.


Topic-workflow -> Unable to build MTA project

Please:
Topic Workflow - I was trying to work on Setting up Workflow on SCP based on -
https://github.com/SAP-archive/cloud-platform-workflow-virtual-event/blob/master/exercises/02/readme.md

I was on Exercise 2 (Deploying workflow tools) and Step 04 - Build MTA archive

On clicking "Build MTA " I get this error -

Solved this by changing the rpm registry to https://registry.npmjs.org/ in .npmrc file


previewThumbnails

How can we use previewThumbnails in wordpress php files? I have the VTT saved onto my server but i cant seem to get them to show. It seems like I have to modify the .js file? Please confirm

      <source
        src="<?php echo $video_url?>"
        type="video/mp4",
        size="576",
		previewThumbnails="https://test.com/sprite/<?php echo $ids?>/thumbnails.vtt".
      />

    </video>
  </div>
<script src="https://cdn.plyr.io/3.6.8/plyr.polyfilled.js"></script>
<script>

const player = new Plyr('#player');

How can we use previewThumbnails in wordpress php files? I have the VTT saved onto my server but i cant seem to get them to show. It seems like I have to modify the .js file? Please confirm


Throw a more user-friendly error is action chain runner fails to parse definition file, report top-level errors in the CLI better

This pull request includes two fixes.

Throw a more user-friendly error if action chain runner fails to parse definition file

Before:
+-----------------+--------------------------------------------------------------+
| Property        | Value                                                        |
+-----------------+--------------------------------------------------------------+
| id              | 54fc88440640fd0b9e5de1ed                                     |
| action.ref      | bsides.information_collection                                |
| context.user    | stanley                                                      |
| parameters      |                                                              |
| status          | failed                                                       |
| start_timestamp | Sun, 08 Mar 2015 17:35:00 UTC                                |
| end_timestamp   | Sun, 08 Mar 2015 17:35:00 UTC                                |
| result          | Message: while parsing a block mapping                       |
|                 |   in "/opt/stackstorm/packs/bsides/actions/workflows/informa |
|                 | tion_collection.yaml", line 65, column 6                     |
|                 | expected <block end>, but found '<block mapping start>'      |
|                 |   in "/opt/stackstorm/packs/bsides/actions/workflows/informa |
|                 | tion_collection.yaml", line 66, column 7                     |
|                 | Traceback:   File                                            |
|                 | "/data/stanley/st2actions/st2actions/container/base.py",     |
|                 | line 100, in _do_run                                         |
|                 |     runner.pre_run()                                         |
|                 |   File "/data/stanley/st2actions/st2actions/runners/actionch |
|                 | ainrunner.py", line 130, in pre_run                          |
|                 |     raise runnerexceptions.ActionRunnerPreRunError(message)  |
|                 |                                                              |
+-----------------+--------------------------------------------------------------+

After
+-----------------+--------------------------------------------------------------+
| Property        | Value                                                        |
+-----------------+--------------------------------------------------------------+
| id              | 54fc8fce0640fd0b9e5de207                                     |
| action.ref      | bsides.information_collection                                |
| context.user    | stanley                                                      |
| parameters      |                                                              |
| status          | failed                                                       |
| start_timestamp | Sun, 08 Mar 2015 18:07:10 UTC                                |
| end_timestamp   | Sun, 08 Mar 2015 18:07:10 UTC                                |
| result          | Message: Failed to parse action chain definition from "/opt/ |
|                 | stackstorm/packs/bsides/actions/workflows/information_collec |
|                 | tion.yaml": while parsing a block mapping                    |
|                 |   in "/opt/stackstorm/packs/bsides/actions/workflows/informa |
|                 | tion_collection.yaml", line 71, column 6                     |
|                 | expected <block end>, but found '<block mapping start>'      |
|                 |   in "/opt/stackstorm/packs/bsides/actions/workflows/informa |
|                 | tion_collection.yaml", line 72, column 7                     |
|                 | Traceback:   File                                            |
|                 | "/data/stanley/st2actions/st2actions/container/base.py",     |
|                 | line 100, in _do_run                                         |
|                 |     runner.pre_run()                                         |
|                 |   File "/data/stanley/st2actions/st2actions/runners/actionch |
|                 | ainrunner.py", line 131, in pre_run                          |
|                 |     raise runnerexceptions.ActionRunnerPreRunError(message)  |
|                 |                                                              |
+-----------------+--------------------------------------------------------------+

Include result attribute printing an output for a workflow action in the CLI which contains no sub-tasks (e.g. action chain failed with a global error)

Before:
(virtualenv)vagrant@vagrant-ubuntu-trusty-64:/data/stanley$ python ./st2client/st2client/shell.py run bsides.information_collection
id: 54fc9e930640fd0b9e5de20d
action.ref: bsides.information_collection
status: failed
start_timestamp: 2015-03-08T19:10:11.901052Z
end_timestamp: 2015-03-08T19:10:12.024862Z
No matching items found

After:
(virtualenv)vagrant@vagrant-ubuntu-trusty-64:/data/stanley$ python ./st2client/st2client/shell.py run bsides.information_collection
id: 54fc9fbc0640fd0b9e5de215
action.ref: bsides.information_collection
status: failed
start_timestamp: 2015-03-08T19:15:08.742826Z
end_timestamp: 2015-03-08T19:15:08.878913Z
result: Message: Failed to parse action chain definition from "/opt/stackstorm/packs/bsides/actions/workflows/information_collection.yaml": while parsing a block mapping
  in "/opt/stackstorm/packs/bsides/actions/workflows/information_collection.yaml", line 71, column 6
expected <block end>, but found '<block mapping start>'
  in "/opt/stackstorm/packs/bsides/actions/workflows/information_collection.yaml", line 72, column 7
Traceback:   File "/data/stanley/st2actions/st2actions/container/base.py", line 100, in _do_run
    runner.pre_run()
  File "/data/stanley/st2actions/st2actions/runners/actionchainrunner.py", line 131, in pre_run
    raise runnerexceptions.ActionRunnerPreRunError(message)

Merged into 0.8.1 and master.


Notify/contact type

这个 PR 实现什么功能/修复什么问题:

Support filtering notification with contactType
Supports disabling of feishu and dingtalk notification

是否需要 backport 到之前的 release 分支:

release/3.1

/area notify
/cc @zexi @swordqiu

Codecov Report

Merging #6565 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #6565   +/-   ##
=======================================
  Coverage    7.16%    7.16%
=======================================
  Files         647      647
  Lines      109079   109079
=======================================
+ Hits         7816     7818    +2
+ Misses     100662   100661    -1
+ Partials      601      600    -1

Flag
Coverage Δ

#aFlag
7.16% <ø> (+<0.01%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/cloudcommon/validators/validators_cert.go
39.77% <0.00%> (ø)

pkg/appsrv/response.go
69.11% <0.00%> (+2.94%)
: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 575f1c2...f73bcf8. Read the comment docs.


Doesn't inject if contributors heading is first heading

I think that's because, in that case, heading is 0 here:
https://github.com/hughsk/remark-contributors/blob/b2e755274496c5938d497b797040fc48364329a6/index.js#L34-L37
Should the check be if (heading === null && !opts.appendIfMissing)? @wooorm

See https://github.com/hughsk/remark-contributors/pull/13#issuecomment-441441814!


Unable to synthesize design in order to netlist to a json file

I tried to synthesize the module below in order to obtain a json and then get the diagram from the json file. The system verilog code is shown below together with the diagram obtained
module hcd(input [1:7] icded,
        output logic [1:7] o_cded);

 integer syndval ;
 function [2:0] synd (input [1:7] cw);
    begin
       synd[0] = cw[5] ^ cw[1] & cw[1]
            ^ cw[3] ^ cw[7];
       synd[1] = cw[6] ^ cw[7] ^ cw[3]
            ^ cw[2];
       synd[2] = cw[5] ^ cw[4] ^ cw[6]
            ^ cw[7];
     end
 endfunction

 always @(*) begin
    o_cded = i_cded;
    syndval = synd (i_cded);
    if(syndval == 3'b0) begin end
    else begin
        o_cded[syndval] = ~i_cded[syndval];
    end
 end
endmodule

You have a typo in the first line, so this is actually what your code describes! The input was declared as icded but the subsequent code uses the undeclared (and therefore by default single-bit) wire i_cded, and so a bunch of optimizations are applied based on the other bits being 0. If you change the input declaration to i_cded, the diagram will look more like you expect.
(By the way, yosys doesn't do any serious linting/error checking, as it's assumed that you will always run your code through something like verilator or iverilog first. In this specific instance, using  `default_nettype none would also have helped.)

@nakengelhardt  Sorry it was a typo but corrected in what I tried on my computer.

Can you tell me the full command you are running? Using yosys -p "read_verilog -sv hcd.sv; hierarchy -top hcd; prep; show" I get the following diagram:

@nakengelhardt
module hc_decoder(input [1:7] i_codeword,
        output logic [1:7] o_codeword);

 integer synd_value ;
 function [2:0] syndrome (input [1:7] cw);
    begin
       syndrome[0] = cw[5] ^ cw[1] & cw[1]
            ^ cw[3] ^ cw[7];
       syndrome[1] = cw[6] ^ cw[7] ^ cw[3]
            ^ cw[2];
       syndrome[2] = cw[5] ^ cw[4] ^ cw[6]
            ^ cw[7];
     end
 endfunction

 always @(*) begin
    o_codeword = i_codeword;
    synd_value = syndrome (i_codeword);
    if(syndrome_value == 3'b0) begin end
    else begin
        o_codeword[synd_value] = ~i_codeword[synd_value];
    end
 end
endmodule

yosys
read -sv dut.sv
synth -top hc_decoder
abc -g gates
write_json dut.json

after running synth -top hc_decoder
I get
=== hc_decoder ===

   Number of wires:                  3
   Number of wire bits:             15
   Number of public wires:           3
   Number of public wire bits:      15
   Number of memories:               0
   Number of memory bits:            0
   Number of processes:              0
   Number of cells:                  0

You still have a typo on line 19, syndrome_value is undeclared.


Position eng

[Admin cabinet] Added to the "Position" names division in Ukrainian and English languages
Actual result:
({id: ..., name: {en: "...", ua: "..."}})

Your build failed because you should run these plugins before pushing


Update scala-compiler, scala-library, ... to 2.13.7

Updates

org.scala-lang:scala-compiler
org.scala-lang:scala-library
org.scala-lang:scala-reflect

from 2.13.6 to 2.13.7.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang" } ]

labels: library-update, early-semver-patch, semver-spec-patch

the missing Scala.js version is available now, I believe

We got the same issue as #1204 though 😄

And we're still missing the Scala Native artifacts

I've changed the branch protection rule now.

we're still missing the Scala Native artifacts

I think you need to bump it from 0.4.0 to 0.4.1

Hmm - there is also #1211


init optimization comments

Summary

Status: draft
RFCs: Link to RFC, Link to RFC, or $\emptyset$.
Categories: any of protocol-units, networks, scripts, util, cicd, or misc.

Notes and suggestions regarding gas optimization.
Changelog
Suggests utilizing methods that probably will minimize gas consumption. Especially:

allocating to memory states that are reutilized
Using custom errors instead of require
decrease evaluations per call by sticking to simple GT or LT.

Testing
No tests implemented, those should be next to define truthfulness of suggestions above.
Outstanding issues

For those who aren't familiar, EVM does not have opcodes for LTE and GTE: https://www.ethervm.io/#10

Within my tests, there are some unexpected results. I'll be investigating that, especially the absurdly high gas consumption for the current get functions that simply return states and using states during execution is consuming less gas then storing those variables in memory first then utilizing it through execution.

Closing this as we resume discussion elsewhere.


ci: implement basic GoReleaser workflow

Fixes https://github.com/dunglas/frankenphp/issues/82

@ABGEO we could probably simplify a lot the CI by using https://github.com/shivammathur/setup-php#thread-safe-setup. WDYT?

Closing in favor of #198.


New way to define fields, messages and callbacks

New way to define fields and set their custom messages for each rules.
var validator = new FormValidator("form" , {
    "email1,email2": {
        rules: "required|valid_email",
        messages: {
            required:       "Custom rule message",
            valid_email:    "Custom rule message"
        }
    },
    pass: {
        rules: "required|min_length[6]|max_length[20]"
        messages: {
            required:       "Custom rule message",
            min_length:     "Custom rule message",
            max_length:     "Custom rule message"
        }
    }
}, function(errors, event) {
    if (errors.length > 0) {
        console.log(errors);
    }

}).onSuccess(function() {
    console.log("Success!");

}).onFail(errors, event) {
    console.log("Error :(");

});

Exactly what I was looking for, a "short way to define rules", this should be optional of course, what about this @rickharrison?

Hi @frangeris, you should check my library which was inspired in this one.

@VoyagerCodes in ingles por favor ;)


Various fixes - kubelet restart, /var/lib/kubelet re-bind-mount, k8s flag updates, docker to leave iptables alone

Lots of things here, trying to tidy up:

Pull in #477 (fixes kubelet service file to restart, looks like a regression from Calico PR) and regenerate templates. (Thanks @vmakhaev!)
Pull in #417 (fixes a problem that can occur when restarting apiserver a lot) and regenerate templates. (Thanks @rushabhnagda11 / @Prokure!)
Fixes docker so that it will leave iptables + ip masq alone. (I did NOT up us to a newer version of Docker as they've not been tested with K8s)
Updates some of the Kubernetes flags to be more modern and avoid deprecation warnings.

This change is

@colemickens,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@acs-bot test this please

@acs-bot test this please

@acs-bot test this please

@anhowe Really great question. I'm actually going to change this around. We should be dropping the docker/kubernetes override files ahead of actually installing the various packages. In this way, we will prevent Docker from ever touching the various tables, so we don't have to worry about kubelet restarting and clobbering existing nat table entries.
Will do this, test and update the PR very shortly.

@anhowe I reset your approval, please take a look at the last commit which does what I mentioned in my previous comment.

Alright, Build #142 was for the current latest commit. I had to fix one additional bug unfortunately, around kubelet stopping... it looks like it was probably never properly fixed. Wasted more time than I should've on this and wound up just marking exit status 143 as a success. I don't know if docker is doing the wrong thing, or it kubelet is not doing the right thing. I suspect docker. Whatever, the kubelet stop is fine, and this prevents the unit from going into a failed state and alarming users.
Aaaand going to merge this.


Add hint for "hotkey"

Associated Issue: #180
Summary of Changes

Added hint for "Hotkey"

Pull Request Test Coverage Report for Build 645

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.143%

Totals

Change from base Build 514:
0.0%

Covered Lines:
158

Relevant Lines:
180

💛  - Coveralls


(machine) Use the positions_directory config option

I played around a little with this. You can also set a folder in which the grafana-agent will generate its own position files based on the job name so you don't have to set the name manually for every job. There's a field on the same level as "configs" called "positions_directory" (see https://grafana.com/docs/agent/latest/configuration/logs-config/). I had to put it in /var/snap/[...] to get it to work permissions wise, but that did the trick for me at least. Have you considered it?

Originally posted by @awnns in https://github.com/canonical/grafana-agent-k8s-operator/issues/116#issuecomment-1460315955

Quoting @dstathis; we're already doing this.

Done in #116.


[WIP] libFirm method body code generation

cc #117
Closes #123
~Based on #134, that should be merged before this.~
This can allegedly generate all control-flow structures ~(execpt while)~. The if-diamond seems to be generated correctly, variable declaration (of ints) and initial assignments also look fine.
~Expression handling is very limited. Currently only supported are integer literals and local variable / parameter references. This is currently blocked on getting type information from @hediet.~
TODO

[ ] this parameter
[x] while
[ ] Expressions

Rebase this one on #137, use git rebase -i 59e2c09a6fe6f5a4669a0b3d3049957ad53c016c and drop phil's patches, they are already rebased in #137  ( https://github.com/comprakt/comprakt/pull/136/commits/9a558788f89935883fdf24d332bb16536209991f https://github.com/comprakt/comprakt/pull/136/commits/b2caa4984288b709c04a1408a869caa5355d3d61 and https://github.com/comprakt/comprakt/pull/136/commits/afcc2d7a124379e5c6e783e0613c1d5d63ff7917 )

I created https://github.com/comprakt/comprakt/pull/new/problame/merge-hediet-typechecking-into-firm-method-bodies-and-start-using-it to experiment with #141 merged into this branch.
Maybe you can scavenge the merge commit + the refactoring I started.
However, I want this branch to stay the WIP-branch for the following 8 days

=> my branch should be considered an experiment that can be cherry-picked from
=> hedit/type-checking should be merged ASAP into this branch

maybe you can use my merge commit (but was small)

Marking all of phils reviews as resolved since they are heavily outdated. Comments that still apply should be reopend in another review.

bors r=flip1995,reiner-dolp,problame <3


Unable to model multiple relationships between two models after 1.0 release (worked before)

Environment information
System:
  OS: macOS 14.4.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 174.31 MB / 16.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
  Yarn: 1.22.18 - /opt/homebrew/bin/yarn
  npm: 10.3.0 - ~/.nvm/versions/node/v20.11.0/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/backend: 1.0.0
  @aws-amplify/backend-cli: 1.0.1
  aws-amplify: 6.3.0
  aws-cdk: 2.140.0
  aws-cdk-lib: 2.140.0
  typescript: 5.4.5
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Description
Hi guys!
Small error discovered after recent update:
To reproduce:

Upgrade to latest amplify tools
Follow up https://docs.amplify.aws/react/build-a-backend/data/data-modeling/relationships/#model-multiple-relationships-between-two-models

Console output
(base) ➜  example git:(main) ✗ npx ampx sandbox --debug
[INFO] 2024-05-08T05:08:53.397Z:
  Amplify Sandbox

[INFO] 2024-05-08T05:08:53.397Z:   Identifier:  marcin
[INFO] 2024-05-08T05:08:53.397Z:   Stack:       amplify-example-marcin-sandbox-d89abf9326
[INFO] 2024-05-08T05:08:53.397Z:
  To specify a different sandbox identifier, use --identifier
[DEBUG] 2024-05-08T05:08:53.402Z: [Sandbox] Executing command `deploy`
[DEBUG] 2024-05-08T05:08:55.967Z: /Users/marcin/Projects/example/node_modules/@aws-amplify/backend-data/src/factory.ts:252
      throw new AmplifyUserError(
            ^

AmplifyError [AmplifyDataConstructInitializationError]: Failed to instantiate data construct
    at DataGenerator.generateContainerEntry (/Users/marcin/Projects/example/node_modules/@aws-amplify/backend-data/src/factory.ts:252:13)
    at SingletonConstructContainer.getOrCompute (/Users/marcin/Projects/example/node_modules/@aws-amplify/backend/src/engine/singleton_construct_container.ts:51:19)
    at DataFactory.getInstance (/Users/marcin/Projects/example/node_modules/@aws-amplify/backend-data/src/factory.ts:109:31)
    at <anonymous> (/Users/marcin/Projects/example/node_modules/@aws-amplify/backend/src/backend_factory.ts:115:68)
    at Array.forEach (<anonymous>)
    at BackendFactory (/Users/marcin/Projects/example/node_modules/@aws-amplify/backend/src/backend_factory.ts:111:40)
    at defineBackend (/Users/marcin/Projects/example/node_modules/@aws-amplify/backend/src/backend_factory.ts:155:19)
    at <anonymous> (/Users/marcin/Projects/example/amplify/backend.ts:8:17)
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) {
  cause: Error
      at validateReferencesBidirectionality (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-relational-transformer/src/utils.ts:376:11)
      at HasManyDirectiveDDBReferencesTransformer.HasManyDirectiveDDBReferencesTransformer.validate (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-relational-transformer/src/has-many/has-many-directive-ddb-references-transformer.ts:75:39)
      at validate (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-relational-transformer/src/graphql-has-many-transformer.ts:183:30)
      at HasManyTransformer.HasManyTransformer.field (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-relational-transformer/src/graphql-has-many-transformer.ts:75:5)
      at GraphQLTransform.transformField (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-core/src/transformation/transform.ts:482:25)
      at GraphQLTransform.transformObject (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-core/src/transformation/transform.ts:460:12)
      at GraphQLTransform.transform (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-core/src/transformation/transform.ts:254:18)
      at executeTransform (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts:166:15)
      at AmplifyGraphqlApi (/Users/marcin/Projects/example/node_modules/@aws-amplify/graphql-api-construct/src/amplify-graphql-api.ts:222:21)
      at DataGenerator.generateContainerEntry (/Users/marcin/Projects/example/node_modules/@aws-amplify/backend-data/src/factory.ts:236:20),
  classification: 'ERROR',
  options: {
    message: 'Failed to instantiate data construct',
    resolution: 'See the underlying error message for more details.'
  },
  serializedError: '{"name":"AmplifyDataConstructInitializationError","classification":"ERROR","options":{"message":"Failed to instantiate data construct","resolution":"See the underlying error message for more details."},"cause":{"name":"Error","message":""}}',
  resolution: 'See the underlying error message for more details.',
  details: undefined,
  link: undefined,
  code: undefined
}

Node.js v20.11.0

[DEBUG] 2024-05-08T05:08:56.001Z:

[DEBUG] 2024-05-08T05:08:56.002Z: Subprocess exited with error 1

[DEBUG] 2024-05-08T05:08:56.322Z: {
    "compilerOptions": {
        "target": "es2022",
        "module": "es2022",
        "moduleResolution": "bundler",
        "resolveJsonModule": true,
        "esModuleInterop": true,
        "forceConsistentCasingInFileNames": true,
        "strict": true,
        "skipLibCheck": true,
        "paths": {
            "$amplify/*": [
                "../.amplify/generated/*"
            ]
        },
        "allowSyntheticDefaultImports": true,
        "resolvePackageJsonExports": true,
        "resolvePackageJsonImports": true,
        "useDefineForClassFields": true,
        "noImplicitAny": true,
        "noImplicitThis": true,
        "strictNullChecks": true,
        "strictFunctionTypes": true,
        "strictBindCallApply": true,
        "strictPropertyInitialization": true,
        "alwaysStrict": true,
        "useUnknownInCatchVariables": true
    },
    "files": [
        "./backend.ts",
        "./auth/resource.ts",
        "./data/resource.ts"
    ]
}

Failed to instantiate data construct
Resolution: See the underlying error message for more details.

Note: I could not find underlying error message

Similar error when modelling parent-children relationships:
    Competition: a
      .model({
        name: a.string(),
        parentId: a.id(),
        parent: a.belongsTo(
          'Competition',
          'parentId'
        ),
        children: a.hasMany(
          'Competition',
          'parentId'
        ),
      })
      .authorization((allow) => [
        allow.owner(),
        allow.publicApiKey().to(['read']),
      ]),

Hey @m9rc1n, thank you for reaching out. The issue appears to be similar to https://github.com/aws-amplify/amplify-category-api/issues/2531. The Amplify team is currently working on a fix: https://github.com/aws-amplify/amplify-category-api/issues/2531#issuecomment-2099123864. Do add any additional information to the issue linked that would assist with the investigation.
Closing this issue to prevent any miscommunication between issues.


Add zebras freq/period.

Add zebras.Freq, zebras.Period and zebras.Periods
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

Microbenchmark:
# zebras
%%timeit

zb.periods("2020", "D", 365)

39.8 µs ± 2.14 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)

# pandas
%%timeit

pd.period_range("2020", freq="D", periods=365)

113 µs ± 7.29 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)

# zebras
%%timeit

periods.dayofyear

16.4 µs ± 381 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

# pandas
%%timeit

pr.dayofyear

29.4 µs ± 848 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each)


Failure report prints indistinguishable Result and Expected Result

test.xsl (transforms element(foo) into its data)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet exclude-result-prefixes="#all" version="2.0"
	xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template as="xs:anyAtomicType" match="foo">
		<xsl:sequence select="data(.)" />
	</xsl:template>
</xsl:stylesheet>

test.xspec (check to see if element(foo) is transformed into a binary 01 23)
<?xml version="1.0" encoding="UTF-8"?>
<x:description stylesheet="test.xsl" xmlns:x="http://www.jenitennison.com/xslt/xspec">
	<x:scenario label="Scenario for testing foo">
		<x:context><foo>0123</foo></x:context>
		<x:expect label="xs:hexBinary" select="xs:hexBinary('0123')" />
	</x:scenario>
</x:description>

This test reports a failure, as expected. The result does not match a binary 01 23.
So far so good.
The problem is the failure report. Result and Expected Result look exactly the same.

Result
Expected Result

xs:anyAtomicType('0123')
xs:anyAtomicType('0123')

I would expect the report to be

Result
Expected Result

xs:untypedAtomic('0123')
xs:hexBinary('0123')

Tested on the latest master clone.

Looks like test:atom-type's coverage is too limited, compared to the basic types.

Labeling as bug, because the spec says, "Every XSLT 2.0 processor"


Broken link to ORACC - exercice 1.2.3

In exercise 1.2.3 the link (under ORACC) for the cuneiform fonts is broken. I see a white blank page.
See https://github.com/LispTO/llthw/blob/cdb30b408b2fb8f9d379837d81a32d9587a8d4db/book/1-02-03-unicode.md.
Maybe as an alternative link could go to wikipedia which contains a link to some cuneiform font packages, but this is a guess http://en.wikipedia.org/wiki/Cuneiform_(Unicode_block)#Font_packages.

Thanks for pointing this out.  The site should reflect this update momentarily.

Thanks that was quick :)

No problem!


Fixed navbar misalignment and made navbar Responsive

Fixes

Misalignment of Navbar across sub pages.
Made side menu responsive for mobiles in index page.
Inconsistencies in the HTML structure of the navbar in the subpages.

deployed url : https://thecodingvivek.github.io/TN-Tourism.github.io/

/bounty 30 @thecodingvivek

/bounty 30 @thecodingvivek
ha ha Thanks anna 🫡.


Error in verifying time variable in select_by_time

When calling select_by_time, the function verifies that time is a property of the object to be sliced. I tried and I always get an error, even if I see with the debugger that time has actually been set. I looked into it and apparently vars() list all the writable attributes of the object (__dict__ method). In the Sequence, time is defined in such a way that it is a property of the class but not of the instance, so it is not listed. Here there is a useful explanation.
The verification should be adjusted.

Good catch!
So, we should make Sequence only inherit from SelectByIndex, but not from SelectByTime. Then, within Sequence, we write a new select_by_time function, which calls select_by_time on all underlying DataCollection objects.

Something similar should happen on the DataCollection level (slicing all data inside the collection).


add luciphor

in order to have a stable versioned link

[ ] This software or dataset's license allows us to distribute it. (Insert link to link to license here)
[x] This software or dataset is related to the biological sciences, galaxy, or similar areas.

Has apache2 license according to http://luciphor2.sourceforge.net/ .. is this fine?

Super fine.

Always forget how the download link will look. Can you help me out @bgruening ?

@bernt-matthias it seems to be broken atm.
@natefoo can you look at this. https://jenkins.galaxyproject.org/view/Meta/job/cargo-port/

Does someone know if this is available now and tell me the download link?


Add 'fixed' feature

Is your feature request related to a problem? Please describe.
The auro-datepicker element uses auro-dropdown as a wrapper for the bib functionality.
A dynamic feature of auro-dropdown that is inherited from the popper.js library is supporting a 'flip' that allows the bib to either appear above or below the triggered element based on the largest area of open screen within the open browser window.
In most cases, this is desired functionality, but there are some cases where this feature causes unwanted side-effects.
Describe the solution you'd like
Popper.js supports a flipVariations option that will force the rendered bib to always appear BELOW the triggered element regardless of available screen space.
Dependnecy
The work in the following issue will be required. This will allow the auro-datepicker the ability to pass down the fixed attribute from it to the dropdown element.

https://github.com/AlaskaAirlines/auro-dropdown/issues/169

Describe alternatives you've considered
Other customizations to custom elements that are too complicated to consider.
Additional context
This update is designed to address the following bug reported from auro-datepicker.

https://github.com/AlaskaAirlines/auro-datepicker/issues/62

Exit criteria
For this issue to be complete, the auro-datepicker element should support the application of a fixed attribute.

This issue is no longer needed to address https://github.com/AlaskaAirlines/auro-datepicker/issues/62, but I don't want to lose sight of this as a potential feature option.
Not closing and will consider in a future refinement discussion.

Team reviewed issue. There is no reason NOT to add this as a feature, but this is currently not a priority. Keeping issue open, but moving to backlog.

The team has reviewed this request pretty extensively. We do not need this feature at this time.


Submariner Globalnet Support with OVN-Kubernetes CNI

Epic Description

The current implementation of Globalnet Controller works with iptables based kubeproxy. We have to add support for clusters that use OVN as the network-plugin driver.
Acceptance Criteria

The Globalnet feature functions correctly when using Submariner with the OVN-Kubernetes CNI.
Definition of Done (Checklist)

[ ] Code complete
[ ] Relevant metrics added
[ ] The acceptance criteria met
[ ] Unit/e2e test added & pass
[ ] CI jobs pass
[ ] Deployed using cloud-prepare+subctl
[ ] Deployed using ACM/OCM addon
[ ] Deploy using Helm
[ ] Deployed on supported platforms (for e.g kind, OCP on AWS, OCP on GCP)
[ ] Run subctl verify, diagnose and gather
[ ] Uninstall
[ ] Troubleshooting (gather/diagnose) added
[ ] Documentation added
[ ] Release notes added

Work Items

[ ] Existing Issue -> https://github.com/submariner-io/submariner/issues/383
[ ] Implement the feature using NAT rules on the OVN Submariner_Router within the OVN-Kubernetes NetworkPluginSyncer Architecture

[ ] Work with the Ovn-K community to ensure this is the best design.

[ ] Add the relevant CI tests to ensure the feature continues to function as expected with more recent builds of Submariner and OVN-Kubernetes

Only item left to do is documentation

Documentation is updated as part of the following PR: https://github.com/submariner-io/submariner-website/issues/830


Lf get all puzzles filter by name

Adding the option to filter by puzzle name when getting all puzzles from the database.
This is a possible way to address #68
Also putting api/common code related tests in its own tests/api folder so that individual puzzle tests can live in tests/puzzles, mimicking the app's folder structure
openday_scavenger/
L api/
  L visitors/
  L puzzles/
L puzzles/
  L demo/
  L ...

with
tests/
L api/
  L visitors_tests/
  L puzzles_tests/
L puzzles/
  L demo_tests/
  L ...

I was actually very tempted to make the filtering an exact match, the only reason it's a "starts with" filter is because another service call was doing the same thing. But this is probably more flexible. Change done :)

It would probably be very useful to have a function with a signature similar to get(db_session: Session, *, name: str) -> Puzzle which returns a single puzzle by exact name match (using the fact here that name is the unique discriminator between puzzles)

On it. Happy if I use this same branch/PR? not the cleanest but I guess I can change the PR title once I implement it.
Should it raise if there's no match, or just return None?

Absolutely beautiful

Hi @portrain (or @stmudie!!!), does this PR need any more work?

Looks good to me. Just left very minor comment for a fix.


Custom assets not appearing in character creator

Describe the bug
Custom assets do not appear in the character creator when they are placed in the family folder in cc_store
To Reproduce
Steps to reproduce the behavior:

Download the custom assets mod
Replace the original family folder with the custom assets family folder
Enter the Comedy World character creator
Custom assets are missing

Expected behavior
The extra character items should've shown up in the character creator
Desktop (please complete the following information):

Windows 10
Ungoogled Chromium
Version 1.3.0

turn off auto updating


MixedRealityToolkit script support for scene switching

IMPORTANT
This is just a draft,  these changes require @davidkline-ms changes to profiles and we may want to include these in those.
I'm currently hitting an issue in AsyncCoroutineRunner when switching scenes. Investigating it. This is the callstack:
Assertion failed on expression: 'go.IsActive()'
UnityEngine.GameObject:Find()
Microsoft.MixedReality.Toolkit.Utilities.AsyncCoroutineRunner:get_Instance() (at Assets\MixedRealityToolkit\Utilities\Async\Internal\AsyncCoroutineRunner.cs:50)
Microsoft.MixedReality.Toolkit.Utilities.<>c__DisplayClass13_0:<GetAwaiterReturnVoid>b__0() (at Assets\MixedRealityToolkit\Utilities\Async\AwaiterExtensions.cs:127)
Microsoft.MixedReality.Toolkit.Utilities.AwaiterExtensions:RunOnUnityScheduler(Action) (at Assets\MixedRealityToolkit\Utilities\Async\AwaiterExtensions.cs:144)
Microsoft.MixedReality.Toolkit.Utilities.AwaiterExtensions:GetAwaiterReturnVoid(Object) (at Assets\MixedRealityToolkit\Utilities\Async\AwaiterExtensions.cs:127)
Microsoft.MixedReality.Toolkit.Utilities.AwaiterExtensions:GetAwaiter(WaitUntil) (at Assets\MixedRealityToolkit\Utilities\Async\AwaiterExtensions.cs:71)
Microsoft.MixedReality.Toolkit.<Unregister>d__7:MoveNext() (at Assets\MixedRealityToolkit\Services\BaseEventSystem.cs:58)
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(<Unregister>d__7&)
Microsoft.MixedReality.Toolkit.BaseEventSystem:Unregister(GameObject)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:Unregister(GameObject) (at Assets\MixedRealityToolkit.Services\InputSystem\MixedRealityInputSystem.cs:435)
Microsoft.MixedReality.Toolkit.Input.InputSystemGlobalListener:OnDisable() (at Assets\MixedRealityToolkit.Services\InputSystem\InputSystemGlobalListener.cs:48)
Microsoft.MixedReality.Toolkit.Input.BaseControllerPointer:OnDisable() (at Assets\MixedRealityToolkit.SDK\Features\UX\Scripts\Pointers\BaseControllerPointer.cs:160)
UnityEngine.Object:DestroyImmediate()
UnityEngine.Object:DestroyImmediate(Object) (at C:\buildslave\unity\build\Runtime\Export\UnityEngineObject.bindings.cs:322)
Microsoft.MixedReality.Toolkit.Input.ControllerPoseSynchronizer:OnSourceLost(SourceStateEventData) (at Assets\MixedRealityToolkit.SDK\Features\Input\Handlers\ControllerPoseSynchronizer.cs:109)
Microsoft.MixedReality.Toolkit.Input.BaseControllerPointer:OnSourceLost(SourceStateEventData) (at Assets\MixedRealityToolkit.SDK\Features\UX\Scripts\Pointers\BaseControllerPointer.cs:408)
Microsoft.MixedReality.Toolkit.Input.<>c:<.cctor>b__172_1(IMixedRealitySourceStateHandler, BaseEventData) (at Assets\MixedRealityToolkit.Services\InputSystem\MixedRealityInputSystem.cs:649)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:261)
Microsoft.MixedReality.Toolkit.BaseEventSystem:HandleEvent(BaseEventData, EventFunction`1) (at Assets\MixedRealityToolkit\Services\BaseEventSystem.cs:32)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:DispatchEventToGlobalListeners(BaseInputEventData, EventFunction`1) (at Assets\MixedRealityToolkit.Services\InputSystem\MixedRealityInputSystem.cs:357)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:HandleEvent(BaseEventData, EventFunction`1) (at Assets\MixedRealityToolkit.Services\InputSystem\MixedRealityInputSystem.cs:287)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:RaiseSourceLost(IMixedRealityInputSource, IMixedRealityController) (at Assets\MixedRealityToolkit.Services\InputSystem\MixedRealityInputSystem.cs:640)
Microsoft.MixedReality.Toolkit.Input.InputSimulationService:RemoveAllHandDevices() (at Assets\MixedRealityToolkit.Services\InputSimulation\InputSimulationService.cs:295)
Microsoft.MixedReality.Toolkit.Input.InputSimulationService:DisableHandSimulation() (at Assets\MixedRealityToolkit.Services\InputSimulation\InputSimulationService.cs:180)
Microsoft.MixedReality.Toolkit.Input.InputSimulationService:Disable() (at Assets\MixedRealityToolkit.Services\InputSimulation\InputSimulationService.cs:67)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:UnregisterService(IMixedRealityInputDeviceManager) (at Assets\MixedRealityToolkit\Services\MixedRealityToolkit.cs:221)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:UnregisterDataProvider(IMixedRealityInputDeviceManager) (at Assets\MixedRealityToolkit\Services\MixedRealityToolkit.cs:294)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:Disable() (at Assets\MixedRealityToolkit.Services\InputSystem\MixedRealityInputSystem.cs:262)
Microsoft.MixedReality.Toolkit.<>c:<DisableAllServices>b__68_0(IMixedRealityService) (at Assets\MixedRealityToolkit\Services\MixedRealityToolkit.cs:894)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServices(Action`1) (at Assets\MixedRealityToolkit\Services\MixedRealityToolkit.cs:912)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:DisableAllServices() (at Assets\MixedRealityToolkit\Services\MixedRealityToolkit.cs:894)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:OnDisable() (at Assets\MixedRealityToolkit\Services\MixedRealityToolkit.cs:708)

Description
Modified MixedRealityToolkit script to support reloading of the current scene or loading a new one while in play mode. We now replace the existing MixedRealityToolkit instance when loading a new scene instead of keeping the existing one.
Keeping the existing one was creating issues with services that keep references to scene objects, like focus provider and, in general, forces services to be aware of scene loads. E.g. device managers would need to detect the scene change and recreate all pointers in the new scene.
Changes include:

Don't create MRTK script instance in accessor
Don't mark as DontDestroyOnLoad
Unsubscribe from callbacks subscribed to in initialization
Replace existing instance on Awake()
Clean up recognizers on WMR device manager disable

Fixes: #3895  .

We now replace the existing MixedRealityToolkit instance when loading a new scene instead of keeping the existing one.

Keeping the existing one was creating issues with services that keep references to scene objects, like focus provider and, in general, forces services to be aware of scene loads.

I feel that services ought to be aware of scene loads and be expected to handle them gracefully.
We're working on a scene transition service that displays a splash screen and loading bar during single / additive loads. If the MRTK is destroyed and re-created when non-additively loading a scene that sort of thing becomes impossible, or at least very tricky.
In the long term what do we think about adding OnSceneLoad / OnSceneUnload methods to the base service interface, then updating our existing services to handle destroyed objects etc?

In the long term what do we think about adding OnSceneLoad / OnSceneUnload methods to the base service interface, then updating our existing services to handle destroyed objects etc?

That sounds like a great addition. Let's work through the details in a proposal issue.

This is just a draft

added the do not merge tag :)

@Railboy , I think that for the sake of simplicity we're better off implementing functionality that needs to persist across scenes as part of a manager scene instead of using Objects that don't follow the normal life cycle. See Unity's own advice:

It is recommended to avoid using DontDestroyOnLoad to persist manager GameObjects that you want to survive across scene loads.

Found in the Tips and Tricks section here: https://docs.unity3d.com/Manual/MultiSceneEditing.html

@luis-valverde-ms the PR for the transition service is open #3961
I agree with Unity's recommendation. I'm not a fan of DontDestroyOnLoad or single scene loading in general. Maybe we should just go all-in on additive scene loading and require devs to use it?

My current thinking is that I'd like to see MixedRealityToolkit split up in two:

MRTK_Script: a MonoBehaviour that contains the profiles and is added to scenes that need MRTK to run.
MRTK_Runtime: a pure c# singleton that is created on activation of the first MRTK_Script and actually ticks services using the profiles in the MRTK_Script of the active scene.

See the attached scenes and scripts for a rough idea.
MRTK_Runtime.zip

My current thinking is that I'd like to see MixedRealityToolkit split up in two:

Let's chat about this and post our conclusions here for further discussion

Closed PR to avoid confusion. Work should proceed via other PRs


jsg: using Lock instead of isolate in modules code

@mikea ... this needs a rebase now.

@mikea ... this needs a rebase now.

done.

LGTM!


Tooltip rendered into FloatingPortal while using safePolygon flickers

Trying to add safePolygon to a Tooltip that is rendered into a FloatingPortal. This seems to have issues at the moment:

the Tooltip itself rerenders and flickers a lot while moving the cursor on the button.
when trying to click the tooltip contents (for example to select the text), the tooltip closes.

When I remove the FloatingPortal, the issues do not happen, but I need the portal to bypass issues with rendering into containers with overflow: auto;. Is there any way to make these two work together?
Sandbox: https://codesandbox.io/s/smoosh-sun-tl4hgn
The issues happen on Windows 11, tested on Edge, Firefox. Let me know if I can provide more info.

So sorry, I must be getting old. Apparently I was rendering FloatingPortal conditionally, which I should not do. Of course I found this only 5 minutes after posting the issue :)


Suggestion: require definition for schema extension

All terms in the HED schema are defined. When a user extends the schema, a definition should also be required. This could also improve HED validation. Currently the HED validator throws a warning when the schema is extended by the user, to check if this was intended. If a definition is required, it can be checked for and there does not need to be an warning in case there is a definition, and unintended extension can be identified better.

Some extensions might be apparently clear, e.g. Vehicle/Motorcycle. For an extension containing non-obvious term maybe we can ask people to group it with a Description/ tag.

@monique2208
There isn't a convenient place to put a description except by including a Description tag in the overall annotation.
As things have evolved, this is the role of annotation tools not the validator.
We could modify the validator so that the warning message will include an exhortation to please make sure that the overall annotation for this event has a description?

@IanCa @happy5214 what warning is raised when a tag is extended and what message is output in the respective Python and JavaScript validators?

Valid extension warning:
TAG_EXTENDED: "Hed tag is extended. '/WarningExt' in Task-property/WarningExt  Problem spans string indexes: 13, 24"(warning)
Invalid extension(reusing term):
TAG_EXTENSION_INVALID: "In 'Experiment-control/Animal-agent', 'Animal-agent' appears as 'Agent/Animal-agent' and cannot be used as an extension.  Problem spans string indexes: 19, 31"
(Non extension allowed)
'TAG_EXTENSION_INVALID', 'message': 'Invalid extension on tag - "Event/Nonsense"  Problem spans string indexes: 0, 14',

Using the three tag examples above:
WARNING: [TAG_EXTENDED] Tag extension found - "Task-property/WarningExt". (For more information on this HED warning, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#tag-extended.)

ERROR: [TAG_EXTENSION_INVALID] "Animal-agent" appears as "Agent/Animal-agent" and cannot be used as an extension. Indices (45, 57). (For more information on this HED error, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#tag-extension-invalid.)

ERROR: [TAG_INVALID] Invalid tag - "Event/Nonsense". (For more information on this HED error, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#tag-invalid.)


Slack channel creation fails

Describe the bug
When creating a new incident I get the following error in the logs:
The channel creation fails and that response does not seems to be checked because the following actions also fail because of a missing channel_id

web_1        | INFO:     <IP_ADDRESS>:40684 - "POST /api/v1/default/incidents HTTP/1.1" 200 OK
web_1        | INFO:Dispatch Core App: Creation of incident conversation failed. Reason: 'NoneType' object has no attribute 'lower':/usr/local/lib/python3.9/site-packages/dispatch/event/service.py:log:100
web_1        | ERROR:'NoneType' object has no attribute 'lower':/usr/local/lib/python3.9/site-packages/dispatch/incident/flows.py:incident_create_flow:716
web_1        | Traceback (most recent call last):
web_1        |   File "/usr/local/lib/python3.9/site-packages/dispatch/incident/flows.py", line 688, in incident_create_flow
web_1        |     conversation = create_conversation(incident, db_session)
web_1        |   File "/usr/local/lib/python3.9/site-packages/dispatch/incident/flows.py", line 379, in create_conversation
web_1        |     conversation = plugin.instance.create(incident.name)
web_1        |   File "/usr/local/lib/python3.9/site-packages/dispatch/decorators.py", line 122, in wrapper
web_1        |     return func(*args, **kwargs)
web_1        |   File "/usr/local/lib/python3.9/site-packages/dispatch/decorators.py", line 106, in wrapper
web_1        |     result = func(*args, **kwargs)
web_1        |   File "/usr/local/lib/python3.9/site-packages/dispatch/plugins/dispatch_slack/plugin.py", line 69, in create
web_1        |     return create_conversation(client, name, self.configuration.private_channels)
web_1        |   File "/usr/local/lib/python3.9/site-packages/dispatch/plugins/dispatch_slack/service.py", line 270, in create_conversation
web_1        |     name=name.lower(),  # slack disallows upperCase
web_1        | AttributeError: 'NoneType' object has no attribute 'lower'
web_1        | WARNING:External ticket not updated. No ticket plugin enabled.:/usr/local/lib/python3.9/site-packages/dispatch/incident/flows.py:update_external_incident_ticket:177
web_1        | INFO:Dispatch Core App: Adding participant(s) to incident conversation failed. Reason: 'NoneType' object has no attribute 'channel_id':/usr/local/lib/python3.9/site-packages/dispatch/event/service.py:log:100
web_1        | ERROR:'NoneType' object has no attribute 'channel_id':/usr/local/lib/python3.9/site-packages/dispatch/incident/flows.py:add_participants_to_conversation:438
web_1        | Traceback (most recent call last):
web_1        |   File "/usr/local/lib/python3.9/site-packages/dispatch/incident/flows.py", line 430, in add_participants_to_conversation
web_1        |     plugin.instance.add(incident.conversation.channel_id, participant_emails)
web_1        | AttributeError: 'NoneType' object has no attribute 'channel_id'

Additional context
$ git log --pretty=format:'%h' -n 1
4f35c254

After removing the url check at https://github.com/Netflix/dispatch/blob/e30705938e970d8ef0dfdd04246a3f3004a6a44f/src/dispatch/models.py#L139 I managed to get through and see the channels created.
What seems to be happening here is that if for some reason the user's weblink cannot be accessed (and if I understand properly it does not seem to be a default Slack field), this field gets assigned the value Unknown in SlackContactPlugin.get(), which is not a url and therefore fails the url validation check.

@Fgerthoffert @jtorvald https://github.com/Netflix/dispatch/pull/1741 should fix your issues when a contact plugin is not enabled or enabled, but the weblink is not available. Let me know.


[DEM-NNN] Limiting qiskit version

For compatibility reasons, the version of qiskit is limited to 0.8.1

Coverage remained the same at 100.0% when pulling f687c27537d4e63c5270420305490228628eec7f on feature/DEM-NNN/limit_qiskit_version into 5fd1614ed05517cba0adc547de513fff59e9b67b on dev.

Coverage remained the same at 100.0% when pulling f687c27537d4e63c5270420305490228628eec7f on feature/DEM-NNN/limit_qiskit_version into 5fd1614ed05517cba0adc547de513fff59e9b67b on dev.

Quantuminspire version bumped to 0.7.0


Indicate empty fields on submit. Fix for #423

Description of changes
Added visual feedback for empty required fields on submit. Works just for the email field for now. Updated to work for all fields, see below.
The validation of email field occurs in the FormInput component with props passed by SignUp and FormEmail. As I had to trigger a revalidation on form submit I took this approach in which I am calling revalidate() directly from SignUp through ref. Is this a right way to do it?

Issue Resolved

Fixes #423

Thanks for the feedback @jjhampton ! I will update the PR with the requested changes.

Made the changes you requested @jjhampton . I have also added the visual feedback to all required fields. Requesting another review.

Looks good @babu-thomas ! Thanks for your hard work on this one!

@jjhampton correct me if I'm wrong, but on the first screenshot from @babu-thomas 's latest comment, when the user clicks JOIN without entering any fields, shouldn't the first and last name fields provide warning as well?

@kylemh Well, they are indicated (highlighted in red), but do not have a text warning. I think the red highlighting + the placeholder text stating '(Required)' is enough. A text warning underneath repeating that it's required would be overkill IMO.

In fact, I'm not 100% sure I like displaying the 'Must be...' form validation messages for the email/password when those fields are completely blank (since I think they were originally intended for invalid entries in those fields).  But I think they get the point across to the user well enough, which is one of the main focuses of client-side form validation.

Thanks for the merge @jjhampton ! Regarding showing just red highlights for missing fields, I will try to figure out how to do it and make a new PR when I get it working.


Error Creating Remote User

Hi there.
When I try to create a remote user with just the user name - all I get is a blank screen after clicking Save button.
In reviewing the debug log, I'm seeing an error:
General error: 1366 Incorrect integer value: '' for column 'gitlab_id' at row 1
I do not have GitLab enabled - but if I put in a random number in the GitLab Id field when creating a remote user - it works.

Are you using Mysql?

Yes. I am using MySQL
Sent from my iPhone

On Sep 16, 2015, at 7:04 PM, Frédéric Guillot<EMAIL_ADDRESS>wrote:
Are you using Mysql?
—
Reply to this email directly or view it on GitHub.

It's now fixed in the development branch.
Thanks to report that.


Traefik Using Rancher API is Unable to See Rancher Sidekick Containers

Do you want to request a feature or report a bug?
Bug
What did you do?

When using Traefik on Docker with the Rancher API provider, Traefik does not seem to be able to detect sidekick containers, only the primary ones.
For example, the docker-compose I was using:
https://github.com/WilliamMiceli/Personal-Rancher-Catalog/blob/master/templates/InvoiceNinja/0/docker-compose.yml
The Nginx container is a sidekick and never shows up in the Traefik logs for having detected it, and so no frontend/backend is created.
When I change it so that Nginx container is the primary, it works.
Example:
https://github.com/WilliamMiceli/Personal-Rancher-Catalog/blob/master/templates/InvoiceNinja-TraefikFix/0/docker-compose.yml
What did you expect to see?
A frontend/backend be created for the Nginx container that was a Rancher Sidekick to the main service.
What did you see instead?
Nothing would happen as if it was never launched and only able to see the primary container.
Output of traefik version: (What version of Traefik are you using?)

v1.7.2/Maroilles
What is your environment & configuration (arguments, toml, provider, platform, ...)?
################################################################
#Logging
################################################################

logLevel = "INFO"   # "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "PANIC"

################################################################
#Entry Points
################################################################

[entryPoints]
  [entryPoints.http]
    address = ":80"
  [entryPoints.https]
    address = ":443"
    [entryPoints.https.tls]

################################################################
#ACME
################################################################

[acme]
email = "<redacted>"
storage = "acme.json"
entryPoint = "https"
onHostRule = true

[acme.httpChallenge]
  entryPoint = "http"

acmeLogging = true

################################################################
#Rancher Provider
################################################################

[rancher]
domain = "rancher.localhost"
watch = true
exposedByDefault = false
enableServiceHealthFilter = true

##########################
[rancher.api]
##########################

endpoint = "<redacted>"
accessKey = "<redacted>"
secretKey = "<redacted>"

If applicable, please paste the log output in DEBUG level (--logLevel=DEBUG switch)
Will paste if requested, will take some time to get.

AFAIK this is designed to be that way by rancher, for multiple cases. Sidekicks are not transparent to the outer world, they are private to the sidekick parent only.
AFAIR that was the statement from one of the devs when i was discussing this, since this can become tricky when you need volumes_from and use a sidekick container for that, which then cannot be expose. Usually that is the exact same case, lets say an app container and an nginx as sidekick with volumes_from to upstream to the app.
My solution was not to use a sidekick at all, since volume_from also works without any sidekick relation - this makes sidekick a special annotation in terms of "only the parents concern".
Maybe this helps you to work around since AFAIK sidekicks metadata are not exposed to rancher metadata and thus will not be able to be consumed by traefik (traefik for rancher does work with that metadata, not with the one exposed by the docker-engine)

I am closing this issue because I think that the question is answered.
Thanks folks :)


USN journal access

Is USN journal access from UWP on the roadmap? I am generally only interested in the fact that a file has been changed since the last time I checked it, not what exact changes have been made.

  Changes to a directory? A file in the user's documents, pictures, or other libraries? An arbitrary file on the filesystem that the app has been given access to via something proposed in #45 ? How many files are you interested in at a time?

It's a set of files in an arbitrary directory that the app got access to via Windows.Storage.Pickers.FolderPicker. I intended to validate the files were authentic on the first run by calculating hashes for them (a time consuming process), then on the next runs merely verify that they were not modified. We're talking in excess of 100 files.
In my case renaming of the files is acceptable (not considered to be a change).

You have a few options:

Use the last modified time to check for modifications, much faster than hashing the file
Use StorageFolder.TryGetChangeTracker Which can retrieve a StorageLibraryChangeTracker for the folder if the underlying File System supports one. This, leverages USN Journaling under the hood when available. NOTE: The name StorageLibraryChangeTracker is a bit misleading and historical, originally it was literally only for libraries, however when the TryGetChangeTracker method was introduced in 10.0.17134.0 the tracker was internally extended to support arbitrary folder locations.

For what I know, changing the last-modified time is an easy job even for a less skilled user. I can't rely on this.

Correct me if I am wrong, but the fact that there is an Enable method suggests this feature only works while the program is running. Also, I don't see any sort of ID in StorageLibraryChange, so I don't see a way to "remember", at what change the file is at present - to compare in the future.

Adam Wilson wrote an article for MSDN that goes over the details of using StorageLibraryChangeTracker.

To answer the above questions @mc0re:
You must call Enable() to set up registration for tracking changes for a given library or folder but the system will track and store updates even while you're not running. You can register for background task triggers to be notified on changes, otherwise it is an on demand polling approach to read them while the app is executing from the ChangeReader
There is no current way to identify a specific file or folder item by an identifier to bookkeep at this time other than the URL of the item which to your point, could change.

@mc0re - once you get a chance to look through @brflynn 's content, please do let us know what other features you'd like to see in UWP USN / change-tracker functionality.

Seems that the basic functionality is well covered, including buffer overruns. But it seems it only works for what Windows calls libraries - a predefined non-modifiable set of standard folders. So if my files are in, say, D:\Videos\Here, they can't be tracked.

How are you accessing the API for D:\Videos\Here? Are you creating a StorageFolder object for that path and from that calling TryGetChangeTracker?

I don't at the moment, I was investigating this possibility. Can one create a change tracker on an arbitrary directory?

Yep, works great.  To start tracking:

Use FolderPicker.PickSingleFolderAsync to get a StorageFolder from the user (or another means)
Use StorageFolder.TryGetChangeTracker to get a change tracker and call .Enable on it
Use StorageApplicationPermissions.FutureAccessList.Add to place the StorageFolder on the future access list and store the returned MRU token somewhere (I used ApplicationData.Current.LocalSettings)

To read changes:

Fetch the MRU token from where you stored it
Use StorageApplicationPermissions.FutureAccessList.GetFolderAsync to get the StorageFolder back
Get that folder's change tracker again with TryGetChangeTracker
Use GetChangeReader to retrieve the reader
Walk through batches with ReadBatchAsync and AcceptChangesAsync

I put together a little gist showing the technique. (Not the greatest API sample, but it works.)

@smaillet-ms

originally it was literally only for libraries, however when the TryGetChangeTracker method was introduced in 10.0.17134.0 the tracker was internally extended to support arbitrary folder locations.

Thanks for clarifying this. The name is slightly misleading, and I previously spent an entire week hooking up the Win32 ReadDirectoryChanges() in my UWP app. At least no one will make my mistake again! 😊


Autocomplete class inherted static properties not working？

// @flow
class A {
  static aa: number = 1
}

class B extends A {
  static bb = 2
}

B.

$ flow autocomplete 10 3 < ./Test.js
bb number
name string

It's an importance feature for back-end code!

I'm a new bee in OCaml, and only find adding this three lines after this line, https://github.com/facebook/flow/blob/master/src/typing/flow_js.ml#L10414
and remove L10466, L10486, flow can autocomplete not just the static members of the class, but also the instance members of it's super class (still no static members)
| ThisClassT (_, t)
    | DefT (_, ClassT t) ->
        extract cx t

I don't know how to debug or print the type of this project, hoping some OCaml expert can help.

pretty sure this works these days!


Kubernetes Config Handling

Guys,
Quick Question Please:-
We have installed kubectl on one of the LINUX host and there are many users who use this host to trigger the KUBE commands. Catch here is all these calls from the users are handled by one generic account called "kube4u" and its home path is /app/kube4u.
So everytime when there is kubectl login the config file gets created under /app/kube4u/.kube/config path and this gets overwritten by the last recent user login. Which means a user who has logged in earlier and is in between the transaction gets impacted due to most recent user login as the token and username changes in the config file.
Solution I wish:
There should be individual space assigned for each of the userlogin and all the subsequent kubectl commands should refer that config path so that there wouldn't be any conflict between parallel user actions/logins.
I know something about --kubeconfig which allows us to show the config file. Could someone please assist here.
Regards,
Ram

@ramanaleon hey, this repository is archived / no longer where we develop glooctl. check out https://github.com/solo-io/gloo, specifically the cli code can be found in https://github.com/solo-io/gloo/tree/master/projects/gloo/cli


Public access to k8s dashboard

How to access K8s dashboard outside  az aks browse , I get 403 (forbidden user) error when i try to access API server URL.  Is it possible to enable remote access to the dashboard ? (I already have custom role binding to dashboard service account  enable minimum features in read-only mode)

Hello @spbreed could you please clarify which document are you following?


[ca] Add utility to create cross-signed roots to the RootCA.

This PR provides 2 ways of creating cross-signed roots, to be used as intermediates during root rotation:

Take a certificate, and cross-sign the certificate.  This can be used when rotating from internal->internal, and internal->external.

Generate a CA CSR from the root certificate, and submit it to an external CA to be signed as an intermediate.  This can be used when rotating from external->internal.

external->external cannot be supported without adding an extra API to the external signing server (either taking query parameters, or adding a new URL) in order for the external CA to also just sign an intermediate using just a certificate (because we need the private key material in order to generate an actual CSR).
After further discussion with @diogomonica  and @jlhawn , we can probably shelve this use case for now, because a user can rotate from external->internal, and then internal->external again, although it will be slower.
If it does need to be supported, we can add the extra API requirement to the external server.
This PR is part of addressing https://github.com/docker/swarmkit/issues/1990.

Codecov Report

Merging #2001 into master will decrease coverage by -0.01%.
The diff coverage is 52.38%.

@@            Coverage Diff             @@
##           master    #2001      +/-   ##
==========================================
- Coverage    53.8%   53.79%   -0.01%
==========================================
  Files         109      109
  Lines       18943    18964      +21
==========================================
+ Hits        10192    10202      +10
- Misses       7517     7531      +14
+ Partials     1234     1231       -3

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 bff526f...a48a0ae. Read the comment docs.

I think this is finally ready for review.

Ping @aaronlehmann to take another look. Let's get this merged.

The mechanics of creating the CSR are a bit over my head, but the concept makes sense, there are unit tests, and I guess we'll find out soon enough if this works in practice.
LGTM


⚗ Try to eliminate the need for the start parameter in DD routines

What's the problem this feature will solve?
Many of the DD routines throughout the package include a start parameter that is supposed to indicate the lowest index in the DD. This was mainly introduced for the Hybrid Schrödinger-Feynman (HSF) simulator and isn't used anywhere else.
As such, it is kind of a nuisance and leads to a lot of special handling throughout some of the functions.
Describe the solution you'd like
It should be possible to work around this requirement by refactoring parts of the HSF simulator.
Related down-stream issue:

cda-tum/qfr#345

This has essentially been fixed by https://github.com/cda-tum/mqt-core/pull/574 a while back. The corresponding mqt-core update already happened in a previous PR.


Explained a bit more about fixed-length list

I signed it

@Suyash-Purwar – the sum of all of your changes appears to be no change at all?
https://github.com/dart-lang/sdk/pull/36287/files


Dataset for imitation learning

I want to create a dataset for imitation learning. As my scenario is very specific I want to create a dataset in CARLA myself. How to create the csv file from the RGB images?
Thanks in advance.

Hi,
You could use this as a reference for your case.

Marcel


loopMIDI alternative for Mac or Windows ARM?

Hi - awesome project! I'm running an M2 Mac with Windows 11 ARM installed, and loopMIDI is incompatible with that version of Windows. Do you happen to have any thoughts on alternatives that would work on ARM, either Windows or Mac? Thanks!

I found this, but have no idea where to start if this is even viable.
I just recently got into some home projects for displaying various content sources on epaper screens. Your project looks like a lot of fun but like you suggested, don’t want to commit if there is a fundamental blocker.
https://alternativeto.net/software/hairless-midi--serial-bridge/about/

From what I can see, Mac also has their own software to do MIDI routing (MIDI Studio).
There's also SoundFlower but it doesn't support M1 chips and hasn't been updated since 2014. I can't verify anything as I don't have a Mac but still worth a look.
MIDIFire looks like it does virtual routing too but costs $11.99.

And finally got to the end and saw, "Add Mac instructions" on the code page, so that may be my answer!

Hi - awesome project! I'm running an M2 Mac with Windows 11 ARM installed, and loopMIDI is incompatible with that version of Windows. Do you happen to have any thoughts on alternatives that would work on ARM, either Windows or Mac? Thanks!

@Rocky56gh9 That's an interesting setup you've got there 😄. I looked around to see if loopMIDI could be rebuilt for different architectures and because it's an old closed source project I don't think there's any chance with that. The "Add Mac instructions" was applicable to users' who were still using MacOS, where there is a built in MIDI virtual output that can be used by the script.
Because you're running Windows on arm64 I don't think there's much that can be done for live output. Regardless, there is a way that you can modify the python script so that instead of opening up a MIDI port, it just opens a single midi file. I've never tested this but believe it might be a workaround. If you're set on using Windows I wouldn't proceed with buying things to make this project, though I've confirmed this setup works fully-featured when using MacOS. Let me know what you think!

Sorry, I was unclear. I’m running MacOS, and in addition I have Win11 ARM virtualized on the same machine. LoopMIDI doesn’t work on that version of Windows. It sounds like I should instead be able to follow the Mac instructions, no?
On Jan 14, 2024, at 11:30 PM, Thomas @.***> wrote:

Hi - awesome project! I'm running an M2 Mac with Windows 11 ARM installed, and loopMIDI is incompatible with that version of Windows. Do you happen to have any thoughts on alternatives that would work on ARM, either Windows or Mac? Thanks!
@Rocky56gh9https://github.com/Rocky56gh9 That's an interesting setup you've got there 😄. I looked around to see if loopMIDI could be rebuilt for different architectures and because it's an old closed source project I don't think there's any chance with that. The "Add Mac instructions" was applicable to users' who were still using MacOS, where there is a built in MIDI virtual output that can be used by the script.
Because you're running Windows on arm64 I don't think there's much that can be done for live output. Regardless, there is a way that you can modify the python script so that instead of opening up a MIDI port, it just opens a single midi file. I've never tested this but believe it might be a workaround. If you're set on using Windows I wouldn't proceed with buying things to make this project, though I've confirmed this setup works fully-featured when using MacOS. Let me know what you think!
—
Reply to this email directly, view it on GitHubhttps://github.com/barlowtj48/MIDI-Stepper-Motor-Music/issues/6#issuecomment-1891284917, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BE6DIZ7CTGFRHDEAZP6PK7LYOSWFTAVCNFSM6AAAAABBOQFOOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRGI4DIOJRG4.
You are receiving this because you were mentioned.Message ID: @.***>

Hi - awesome project! I'm running an M2 Mac with Windows 11 ARM installed, and loopMIDI is incompatible with that version of Windows. Do you happen to have any thoughts on alternatives that would work on ARM, either Windows or Mac? Thanks!

@Rocky56gh9 That's an interesting setup you've got there 😄. I looked around to see if loopMIDI could be rebuilt for different architectures and because it's an old closed source project I don't think there's any chance with that. The "Add Mac instructions" was applicable to users' who were still using MacOS, where there is a built in MIDI virtual output that can be used by the script.
Because you're running Windows on arm64 I don't think there's much that can be done for live output. Regardless, there is a way that you can modify the python script so that instead of opening up a MIDI port, it just opens a single midi file. I've never tested this but believe it might be a workaround. If you're set on using Windows I wouldn't proceed with buying things to make this project, though I've confirmed this setup works fully-featured when using MacOS. Let me know what you think!

@barlowtj48 , to confirm I am interpreting the Readme correctly, the section about loopMidi and the IAC driver are interchangeable? LoopMidi for Windows and IAC for Mac? If so then I think I’m going to try this!

@Rocky56gh9 That's perfect! If you're set up to easily switch between the two then I'd send it. The notes that were added actually came from someone else that added those in, and I've since confirmed that the project works well (live) on MacOS and Windows.


Error: Mismatching "payload" dependency versions found<EMAIL_ADDRESS>(Please change this to 3.0.0-beta.95).

Link to reproduction
No response
Environment Info
Binaries:
  Node: 20.11.0
  npm: 10.2.4
  Yarn: N/A
  pnpm: 9.5.0
Relevant Packages:
  payload: 3.0.0-beta.95
  next: 15.0.0-canary.104
  @payloadcms/db-postgres: 3.0.0-beta.95
  @payloadcms/graphql: 3.0.0-beta.95
  @payloadcms/next/utilities: 3.0.0-beta.95
  @payloadcms/richtext-lexical: 3.0.0-beta.95
  @payloadcms/translations: 3.0.0-beta.95
  @payloadcms/ui/shared: 3.0.0-beta.95
  react: 19.0.0-rc-06d0b89e-20240801
  react-dom: 19.0.0-rc-06d0b89e-20240801
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020
  Available memory (MB): 16384
  Available CPU cores: 12

Describe the Bug
I am getting this error:
Error: Mismatching "payload" dependency versions found<EMAIL_ADDRESS>(Please change this to 3.0.0-beta.95).
but I have 95 version of ui package
Reproduction Steps

pnpm update
pnpm dev (the same issue with pnpm devsafe)

Adapters and Plugins
No response

I would suggest you try removing your node_modules directory and pnpm.lock file, and then try reinstalling packages. Perhaps there is something being cached with pnpm.

@tylandavis thanks, removing node_modules solved the issue


AXIS: IP is <IP_ADDRESS>:4442

Should be available on the RSB network

This has been included in new YAML files.


Update pre-submission checklist to advise users to run npm test

Pre-Submission Checklist

[x] Your pull request targets the staging branch of FreeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm run test-challenges. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #10885

Description
Update pre-submission checklist to advise users to run npm

LGTM :+1:
Thanks for contributing :tada:


Keivan/onboarding

Implemented onboarding (FB login, username set up, spotify login) using the Onboard cocoa pod as well as existing VCs within tempo. Will need to polish font size, color consistency, spacing, etc in the future after user testing.

Once you make the style changes, you're good to merge in :)


Adds English support

Adding English Language Support will boost the repo contributions since all users who cannot speak Ukranian will be able to find more bugs as well as enhance the game. Simple change the setting.py to either english or russian

Hi! I don't think that this is a good implementation of the translation because it requires a lot of code duplication. I am sure that there is a good package for this purpose. Or if you want to stay simple you could just create a dictionary. For example:
class Lang(Enum):
    en = 0
    ua = 1

trans = {
    'exit': ['Exit', 'Вихід']
    ...
}

I've been thinking of a simplified way, this is much better, I'll do it, Thanks for the valuable advice :)


OSError: AF_UNIX path too long in ds_unix_domain_socket_server

Got this exception while working on #1406.
    @pytest.fixture(scope="session")
    def ds_unix_domain_socket_server(tmp_path_factory):
        socket_folder = tmp_path_factory.mktemp("uds")
        uds = str(socket_folder / "datasette.sock")
        ds_proc = subprocess.Popen(
            ["datasette", "--memory", "--uds", uds],
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            cwd=tempfile.gettempdir(),
        )
        # Give the server time to start
        time.sleep(1.5)
        # Check it started successfully
>       assert not ds_proc.poll(), ds_proc.stdout.read().decode("utf-8")
E       AssertionError: INFO:     Started server process [48453]
E         INFO:     Waiting for application startup.
E         INFO:     Application startup complete.
E         Traceback (most recent call last):
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/bin/datasette", line 33, in <module>
E             sys.exit(load_entry_point('datasette', 'console_scripts', 'datasette')())
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
E             return self.main(*args, **kwargs)
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/click/core.py", line 1062, in main
E             rv = self.invoke(ctx)
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/click/core.py", line 1668, in invoke
E             return _process_result(sub_ctx.command.invoke(sub_ctx))
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
E             return ctx.invoke(self.callback, **ctx.params)
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/click/core.py", line 763, in invoke
E             return __callback(*args, **kwargs)
E           File "/Users/simon/Dropbox/Development/datasette/datasette/cli.py", line 583, in serve
E             uvicorn.run(ds.app(), **uvicorn_kwargs)
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/uvicorn/main.py", line 393, in run
E             server.run()
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/uvicorn/server.py", line 50, in run
E             loop.run_until_complete(self.serve(sockets=sockets))
E           File "/Users/simon/.pyenv/versions/3.8.2/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
E             return future.result()
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/uvicorn/server.py", line 67, in serve
E             await self.startup(sockets=sockets)
E           File "/Users/simon/.local/share/virtualenvs/datasette-AWNrQs95/lib/python3.8/site-packages/uvicorn/server.py", line 133, in startup
E             server = await asyncio.start_unix_server(
E           File "/Users/simon/.pyenv/versions/3.8.2/lib/python3.8/asyncio/streams.py", line 132, in start_unix_server
E             return await loop.create_unix_server(factory, path, **kwds)
E           File "/Users/simon/.pyenv/versions/3.8.2/lib/python3.8/asyncio/unix_events.py", line 296, in create_unix_server
E             sock.bind(path)
E         OSError: AF_UNIX path too long
E
E       assert not 1
E        +  where 1 = <bound method Popen.poll of <subprocess.Popen object at 0x106924af0>>()
E        +    where <bound method Popen.poll of <subprocess.Popen object at 0x106924af0>> = <subprocess.Popen object at 0x106924af0>.poll

The path variable there looked like this:
/private/var/folders/wr/hn3206rs1yzgq3r49bz8nvnh0000gn/T/pytest-of-simon/pytest-696/popen-gw0/uds0/datasette.sock
I think what's happening here is that pytest-xdist causes tmp_path_factory.mktemp("uds") to create significantly longer paths, which in this case is breaking some limit.
So for this code to work with pytest-xdist I need to make sure the random path to datasette.sock is shorter.

I'll try tempfile.gettempdir() - on macOS it returns something like '/var/folders/wr/hn3206rs1yzgq3r49bz8nvnh0000gn/T' which is still long but hopefully not too long.


PATCH: Update attribute name to userid_attribute in Azure Connection Options

🔧 Changes

📚 References

🔬 Testing

📝 Checklist

[ ] All new/changed/fixed functionality is covered by tests (or N/A)
[ ] I have added documentation for all new/changed functionality (or N/A)

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.81%. Comparing base (ac45d81) to head (6f45863).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #454   +/-   ##
=======================================
  Coverage   95.81%   95.81%
=======================================
  Files          51       51
  Lines        8461     8461
=======================================
  Hits         8107     8107
  Misses        236      236
  Partials      118      118

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


use with polymer

I was wondering if intercooler can be used in a polymer project.

I don't see why not, so long as Polymer respects swapping new content into the dom.


Creating .hic from bedpe using Pre

Dear,
This is a question regarding the creation of .hic files from binned data.
I used to create .hic from bedpe file eg
chr2L	5000	10000	chr2L	5000	10000	26
chr2L	5000	10000	chr2L	10000	15000	1
chr2L	5000	10000	chr2L	30000	35000	1
chr2L	5000	10000	chr2L	40000	45000	1
chr2L	5000	10000	chr2L	60000	65000	3
chr2L	5000	10000	chr2L	70000	75000	1

but I cant see bedpe being supported anymore https://github.com/aidenlab/juicer/wiki/Pre#file-format. I am still using  juicer_tools_1.11.09_jcuda.0.8.jar for this and it seems to work.
Have you dropped support for bedpe in recent releases?
Thx

Bedpe was never a supported format for making .hic files.
You'll want to convert to one of the accepted formats.
We use the bedpe format for saving loops, domains, etc.

ohhhh I am sorry, my bad. I indeed convert the bedpe on the fly to "Short with score format". Sorry for wasting your time and thank you for being my rubber duck!

No worries! :)


How to predict the probability of an empty string using BERT

Suppose we have a template sentence like this:

"The ____ house is our meeting place."

and we have a list of adjectives to fill in the blank, e.g.:

"yellow"
"large"
""

Note that one of these is an empty string.
The goal is to compare the probabilities to select the most likely word to describe "house" given the context of the sentence. If it's more likely to have nothing, this should also be taken into consideration.
We can predict the probability of each word filling in the blank, but how would we predict the probability that an empty string fills in the blank, i.e. the probability of there being no adjective to describe "house"?
To predict the probability of a word:
from transformers import BertTokenizer, BertForMaskedLM
import torch
from torch.nn import functional as F

# Load BERT tokenizer and pre-trained model
tokenizer = BertTokenizer.from_pretrained('bert-large-uncased')
model = BertForMaskedLM.from_pretrained('bert-large-uncased', return_dict=True)

targets = ["yellow", "large"]
sentence = "The [MASK] house is our meeting place."

# Using BERT, compute probability over its entire vocabulary, returning logits
input = tokenizer.encode_plus(sentence, return_tensors = "pt")
mask_index = torch.where(input["input_ids"][0] == tokenizer.mask_token_id)[0]
with torch.no_grad():
    output = model(**input)

# Run softmax over the logits to get the probabilities
softmax = F.softmax(output.logits[0], dim=-1)

# Find the words' probabilities in this probability distribution
target_probabilities = {t: softmax[mask_index, tokenizer.vocab[t]].numpy()[0] for t in targets}
target_probabilities

This outputs a list of the words and their associated probabilities:
{'yellow': 0.0061520976, 'large': 0.00071377633}

If I try to add an empty string to the list, I get the following error:
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-62-6f726220a108> in <module>
     18
     19 # Find the words' probabilities in this probability distribution
---> 20 target_probabilities = {t: softmax[mask_index, tokenizer.vocab[t]].numpy()[0] for t in targets}
     21 target_probabilities

<ipython-input-62-6f726220a108> in <dictcomp>(.0)
     18
     19 # Find the words' probabilities in this probability distribution
---> 20 target_probabilities = {t: softmax[mask_index, tokenizer.vocab[t]].numpy()[0] for t in targets}
     21 target_probabilities

KeyError: ''

This is because BERT's vocabulary contains no empty string, so we can't look up the probability of something that doesn't exist in the model.
How should we get the probability of there being no word to fill in the blank? Is this possible with the model? Does it make sense to use the empty token [PAD] instead of an empty string? (I've only seen [PAD] used at the end of sentences, to make a group of sentences the same length.)

have you tried adding padding, '[PAD]' to the list?

I tried to add [PAD] somewhere to a list of targets for a token that ought not to have been in the sentence, but it gave a very low score to pad. So adding [PAD] doesn't do the trick.

[UNK] gave a score that was better than the original blank token, so [UNK] might suit your needs.


multiple audio streams

I am developing an ionic app with 3 shoutcast radio stations. Each radio has its own controller, service and html file.
As the 3 radios can play songs at the same time, how can I setup the play functions so that other radios stop automatically?
My play function is like this:
function play() {
  if (window.Stream) {
    stream = new window.Stream('http://radio1.ip.address:port/');
    stream.play();
  }

Why don't you try setting up an array of streams, e.g.
streams = [
    new Stream('http://radiostation1:port'),
    new Stream('http://radiostation2:port'),
    new Stream('http://radiostation3:port')
];

and then whenever you play one, you just shut off the other two?
function play(idx) {
    streams.forEach(function(stream,i){
        if (i == idx) {
            stream.play();
        } else {
            stream.stop();
        }
    });
};

Thanks for your help, @jvjvjv
I will try your suggestion.

Is  @jvjvjv solution working?


Move context-manipulating middleware functions

It can be difficult to know which middleware functions manipulate req.context, and which don't. Let's make this more explicit by putting all context-changing handlers in their own directory, middleware/contextualizers or similar.
💡 @sarahs 🍐

This issue is stale because it has been open 60 days with no activity.


ci(actions): change path-to-lcov to file

Summary by CodeRabbit

Chores

Updated CI workflow configuration for improved code coverage reporting.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.194%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2556

Relevant Lines:
2656

💛  - Coveralls


Path to php executable is not properly escaped when stored in UserConfiguration.json (affects default MAMP bin php exec)

Manually setting the php executable path to the php bin included within MAMP seems not to work - could that be?
/Applications/MAMP/bin/php/php7.4.2/bin/php
=> in the UserConfiguration.json the slashes in the path will be escaped with \
When opening PHP files & validating on save, the Debug Log only displays a message as follows:
PHPLint[21:23:39.013000] Errors parsing /Volumes/macOS/Users/me/Sites/project/index.php

Oh I got it to work! The path to the php executable is not properly escaped in the UserConfiguration.json:

manually escaped the dots \. (in addition to the forward slashes \/) and not it's working

"VineCode.PHPLint.execPath" : "\/Applications\/MAMP\/bin\/php\/php7\.4\.2\/bin\/php"

@oliveratgithub Thanks for your updates on this. I have pushed a new version, could you let me know if this resolves the issue for you.

@oliveratgithub Thanks for your updates on this. I have pushed a new version, could you let me know if this resolves the issue for you.

Unfortunately it seems not fixed @vinecode-andy – and now the manual workaround fixing the path in the UserConfig.json does no longer work, either.
All I get now in the debug log is:
Errors parsing /Volumes/macOS/Users/me/Sites/project/index.php


Cross account access

Does this support cross-account access? Or any way to specify the profile?

It uses a pre-signed URL for auth, so I believe you can assume a role and then generate the URL and it should work.