Unable to cancel invitation

Describe the bug
Steps to reproduce the behavior:

Set const bool testnetMode = true;.
Login as testingseeds.
Go to Explore > Invite a Friend > ⚙.
Tap Any existing invite > Cancel Invite.

Current behavior
Observe Oops, something went wrong error message.
Expected behavior
A successful cancellation of invite is expected.
Platform / Build

Android
2.5.0 (6x - latest release/2.5.0)

@buildc0de I did the fix could you test it

✅ Test Case 1

Set const bool testnetMode = true;.
Login as testingseeds.
Go to Explore > Invite a Friend > ⚙.
Tap Any existing invite > Cancel Invite.
Observe Invite Canceled.


Conditional types are not correctly resolved on object fields in generic functions

Bug Report
🔎 Search Terms
function generic extends type conditional
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about generic, extends, function, conditional.

⏯ Playground Link
Playground link with relevant code
💻 Code
type Id = number;

interface WithId {
  id: Id;
}

interface Base extends WithId {
  name: string;
  ref: Other;
}

interface Other extends WithId {
  otherField: number;
}

interface Child extends Base {
  childField: boolean;
}

type Elem<T> = {
  getValue(): T;
}

type Ref<T extends WithId> = Elem<Id> & {
  getRef(): T;
}

type Wrapper<T extends WithId> = {
  [TKey in keyof T]: T[TKey] extends WithId ? Ref<T[TKey]> : Elem<T[TKey]>;
}

// this works as expected
function test(t: Wrapper<Base>) {
  // `id` and `name` are Elem<>
  // `ref` is Ref<>

  t.id.getValue().toFixed();
  t.name.getValue().charAt(1);
  t.ref.getValue().toFixed();
  t.ref.getRef().otherField;
}

// problem - field types are incorrect
function testGeneric<T extends Base>(t: Wrapper<T>) {
  // all fields are with type `Ref<> | Elem<>`

  t.id.getValue().toFixed();
  t.name.getValue().charAt(1); // error: Property 'charAt' does not exist on type 'number | T["name"]'.
  t.ref.getValue().toFixed(); // error: Property 'toFixed' does not exist on type 'number | T["ref"]'.
  t.ref.getRef().otherField; // error: Property 'getRef' does not exist on type 'Ref<T["ref"]> | Elem<T["ref"]>'.
}

🙁 Actual behavior
In testGeneric(), all fields of t are of type Ref<T[...]> | Elem<T[...]>.

t.id is Ref<T["id"]> | Elem<T["id"]>
t.name is Ref<T["name"]> | Elem<T["name"]>
t.ref is Ref<T["ref"]> | Elem<T["ref"]>

🙂 Expected behavior
In testGeneric(), the fields of t should have types correctly resolved, as they are in test().

t.id should be Elem<number>
t.name should be Elem<string>
t.ref should be Ref<Other>

Same as #46155. The type for T is not known, so resolving of the conditional type is deferred.

So, conditional types are not resolved on generics, and this is expected behavior?

They're not resolved unless the actual type is known. For example:
type Test<T> = T extends boolean ? string : number

function fn<T>(arg: () => Test<T>) { }

fn<boolean>(() => 'str')

In this case the T part of Test<T> is known to be boolean at the callsite, so the conditional type is resolved to string. Passing a callback that returns a number would be an error.
In your example within testGeneric the function the type of T is not known. It will be provided at the callsite, but the implementation of the function is unaware of it. That's why the conditional type is not resolved.

Thanks for your time!
I was confused because inside testGeneric() TypeScript knows that t extends Base, so it has the fields name, id and ref. Also, TypeScript correctly resolves that T["ref"] is of type Other (as well all other fields of T).
This example brings even more confusion to me (playground):
function testGeneric<T extends Base, TRef extends T["ref"] = T["ref"]>() {
  let tref: TRef;
  tref!.otherField.toFixed(); // this works - tref is `Other`

  let condTref: TRef extends WithId ? Ref<TRef> : Elem<TRef>;
  condTref!.getRef().otherField; // this works - condTref is `Ref<Other>`

  type MyRef = T["ref"];
  let myref: MyRef;
  myref!.otherField.toFixed(); // this works - myref is `Other`

  let condMyref: MyRef extends WithId ? Ref<MyRef> : Elem<MyRef>;
  condMyref!.getRef().otherField; // error - 'getRef' does not exist - condMyref is `Ref<Other> | Elem<Other>`
}

TypeScript knows that T is a type that has the same fields as Base, but it does not always resolve the conditional types when generics are used.
I'm sure that the team has good reason to do it this way, but I am curious to know why.
Is there any documentation page or FAQ where this is explained in more detail?
Looking at the issue which you mentioned, seems that this is confusing a lot of people.

I understand that, but I am curious to know which are the use cases, and why is that.
IMO this should be documented somewhere, to prevent creating new and duplicate issues (like this one).
I personally do not find any significant difference between the TRef and MyRef types but it seems that am missing something.

It's not sound to use constraints to resolve conditional types because the type can be aliased in a way that renders it incorrect relative to a concrete instantiation. Here's a shorter example:
type WithId = {
  id: number;
};
type Wrapper<T> = {
  [TKey in keyof T]: T[TKey] extends WithId ? string : number;
}

type Base = {
  name: { first: string }
};

function generic<T extends Base>(obj: Wrapper<T>) {
  // Alleged: this is OK
  obj.name.toFixed();
}

// Legal call
generic<Base & {name: WithId}>({
  name: ""
});

Responses in the issue tracker are a part of the documentation; if your reaction to that is that the issue tracker is too long to read and too hard to search given how big it is, consider how big and hard to search the documentation would be if every "why" discussion here were part of it 😅

@RyanCavanaugh, thanks!
This example helped a lot!
A workaround is something like this, which will prevent passing a type that overrides the Base fields.
But maybe we should consider not using generics at all. Depends on the use case.
function generic<T extends Base>(obj: Wrapper<T> & Wrapper<Base>) {
  obj.name.toFixed();
}

// error
generic<Base & {name: WithId}>({
  name: ""
});

Thank you both. I'll close this issue, since I do not have any more questions :)


Update README to scope jsEnv to Test

Some people want it for run too. I think we should mention both in this case?

Ah, yes. How about I change it to something like this ?
// Apply to the 'run' command
jsEnv := new org.scalajs.jsenv.selenium.SeleniumJSEnv(BROWSER)

// Apply to tests
jsEnv in Test := new org.scalajs.jsenv.selenium.SeleniumJSEnv(BROWSER)

Sounds good.

Updated. Please take another look.

LGTM


Readme update

Made a more clear overview of the team members and added a small description for running the visualizer independently.

This is useful as part of the instruction, the team members' names in the table also looks nice
:+1:

Thanks for removing the stars, they looked bad :tongue:  Having some instruction on how to start the visualizer is a good idea.


[paper] Outline proposal

Here is a proposal for restructuring the outline of the paper. Tell me what you think.

Motivation

Introduction section, mostly the same as before:

likelihood free setup
searches for particles at LHC as an example
brief and clear description of the contribution of this paper (i.e., density ratio estimation with calibrated classifiers, as an alternative to other methods for parameter inference)
outline

I would postpone the paragraph on Whiteson's work and inference with nuisance parameters for later in the text (for new section 4).
The introduction currently states that the method offers a way to evaluate p(x|theta). This is not true...

Likelihood ratio tests

Introduce the mathematical problem with notations (was 1.1 and 1.2 before)
I would keep some of the comments of 1.3, but I feel some are not necessary

Approximation with calibrated classifiers

Core of the paper (was section 2 + my note on slack)
Derive theorem for the ratio of transformed densitites
Show that consistent regressors minimizing the squared error loss fulfill conditions of the theorem
Discuss about the need of calibration in case of imperfect classifiers (was first paragraphs of section 5)

Generalized likelihood ratio tests

mathematical problem (was section 4)
maximum likelihood estimator inference from ratios
discussion on parameterized classifier and practicalities regarding embedding (was sections 5.2 and 5.3)

Applications

typical usage in HEP with a concrete experimental example.

illustrate the method for several classifiers (new)
illustrate the method for several calibration routines (new)
compare with other methods (new)

ratio of mixtures and decomposition (special case of generalized likelihood rario tests when parameters only affect the mixture coefficients => no need for parametrized classifiers)
measure of particles properties, with a concrete example. Comparison with other likelihood-free inference methods (new)

Related works

add related works from ML on density ratio estimation

Conclusions

Hi Kyle! I updated the above outline with some more details. In the end, I dont think we need to change much of the current content. Changes mostly concern the ordering of ideas.
What do you think of this? If this is okay with you, I will start preparing a first draft, from which we can then iterate.
Also, for section 5, would you have some concrete suggestion of examples that we could use to illustrate the method? I could then also prepare these little experiments with carl.
Thanks!
G

Hi
I think it might make sense to pull out the decomposed ratio. Also, maybe a
toy example instead of a HEP one (easier to do and explain, faster to
perform, and more agnostic). The HEP section was largely motivated by the
initial journal. Can make sense to keep it, but we can modify it.
I've been busy with other things most of the week, sorry.
Kyle
On Fri, Jan 15, 2016 at 3:54 AM Gilles Louppe<EMAIL_ADDRESS>wrote:

Hi Kyle! I updated the above outline with some more details. In the end, I
dont think we need to change much of the current content. Changes mostly
concern the ordering of ideas.
What do you think of this? If this is okay with you, I will start
preparing a first draft, from which we can then iterate.
Also, for section 5, would you have some concrete suggestion of examples
that we could use to illustrate the method? I could then also prepare these
little experiments with carl.
Thanks!
G
—
Reply to this email directly or view it on GitHub
https://github.com/cranmer/parametrized-learning/issues/3#issuecomment-171904837
.

Okay, thanks! Then I'll go and start working on a draft. I'll think about an illustrative example, though I still believe we should at least mention HEP as a direct use case. I keep you posted :)

Closing this


Generate schema doc from vr.yaml

Using sphinx-jsonschema fails to work with our schema document (likely due to changes from jsonchema v0.4, which was used to develop the sphinx-jsonschema package). Look into programmatically reproducing this in rst with sphinx as a future enhancement.

Yeah, I tried this ~2 months ago. I remember thinking it was a dead end. Lack of support for oneOf floats around my head behind a think fog, but I don't really recall for sure.

Yeah, I agree with that assessment. I think it would be useful down the road, but we'll probably have to roll our own sphinx extension to do it.

I looked again at the sphinx-jsonschema extension as a way to synchronize the schema and docs.
The extension output is poorly formatted and doesn't handle the obvious things that we want, like inter-class links (which we currently can implement manually with .rst). (Technically, there is a way to generate such links, but it requires adding special tags to the json schema defs.)
So, I'm dropping this from 1.1.
I think the way forward will be to implement a custom rst generator from the schema, then include that in the source tree.


issue about metrics and VG datasets

Hi, I'm new to SGG. Thank you for sharing this incredibly useful project.
I have a couple of questions:
1.Where can I find the code for calculating the evaluation metrics?
2.While using the VG dataset, I noticed that some images seem to be corrupted. For example, images 2397804.jpg, 2347067.jpg, and 2344194.jpg. How did you handle these corrupted images? Could this be an issue with my download?
Thank you!

Hi @focus1224, the metrics are computed here:
https://github.com/Maelic/SGG-Benchmark/blob/main/sgg_benchmark/data/datasets/evaluation/vg/sgg_eval.py
If you find more corrupted images for VG, you can add their names to this list:
https://github.com/Maelic/SGG-Benchmark/blob/6b4c713c990d5e7ff2e2421b2e8a5e1142889a0f/sgg_benchmark/data/datasets/visual_genome.py#L422

Closing due to inactivity


IT reference

IT Reference page to be used as study guide and on the job reference.
Needs adjustments to side navigation and flexbox, but layout seems fine otherwise.
Content to be added with future updates.

I'll keep this branch open as I continue working on this page.


Crash when app goes in background.

Hi,
I am using this project in my app to record videos and save them to the camera roll. However, I am facing an issue. When the app moves to the background, it crashes and gives "gpus_ReturnNotPermittedKillClient" error which I think comes due to OpenGL calls.  I searched on the internet for a solution and found a solution here: http://www.cocos2d-iphone.org/forum/topic/30419
I am unable to understand how to implement that solution since GPU Image project doesn't have an app delegate class. Can you please help me out in this?
Thanks

https://developer.apple.com/library/content/qa/qa1766/_index.html

I do like this,but it also crash sometimes when app enterbackground in older iOS devices.  self.movie is a instance of GPUImageMovie.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(willResignActive) name:UIApplicationWillResignActiveNotification object:nil];

(void)willResignActive {
[self.movie cancelProcessing];
}


Hosted services package reference

Fixes #15649

I think we can merely call out the package is added/present for the Worker SDK and implicit for the Web SDK.
Strip out the bits on a Web Host and Generic Host pair of samples. Those went away recently (3.0 updates era), so those bits no longer apply.

How about that :point_up"?


Cannot compare mutable container (array, set, etc.) and immutable containers

Reproducible code
i = !{1, 3}
i.add! 3
print! i
assert i == {1, 3}

a = ![1, 3]
a.push! 3
print! a
print! a == [1, 3, 3]

Expected behavior
Passed.
Result
Error[#0595]: File examples/set_b.er, line 4, in <module>
4│ assert i == {1, 3}
          ^^^^^^^^^^^
TypeError: Set({1, 3, }, 2) or Set!(?T(:> {3, }, <: {3, 1, }), !2) does not implement Eq(Set({1, 3, }, 2) or Set!(?T(:> {3, }, <: {3, 1, }), !2))
Error[#0595]: File examples/set_b.er, line 9, in <module>
9│ print! a == [1, 3, 3]
          ^^^^^^^^^^^^^^
TypeError: Array({3, 1, }, 3) or Array!(?T(:> {3, }, <: {3, 1, }), !3) does not implement Eq(Array({3, 1, }, 3) or Array!(?T(:> {3, }, <: {3, 1, }), !3))

This code should also be passed.
j: {Int; 2} = !{1, 2}

but:
Error[#0052]: File <stdin>, line 1, in <module>
1│ j: {Int; 2} = !{1, 2}
   ^
TypeError: the type of j is mismatched:
expected:  Set(Int, Nat(2))
but found: Set!((?T(<: {Nat(2), Nat(1), }(cyclicity: Not))[0]), !Nat(2))

It seems that Set! is not recognized as a subtype of Set.


feat: Add Sink.none operator

Motivation:
refs: https://github.com/apache/pekko/issues/1613
refs https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.10.0 too.
Result:

add Sink#none operator
The doc renders OK

If there will be a 1.2.0 release, I suggest we delete some deprecated code and maybe drop Java 8 and Scala 2.12 too.

But if we only delivery features in minor release , that will slow us down
I agree that we should only delete things in minor release.

Seems like a nice utility.
I agree we shouldn't slow ourselves down.
In this case following semver strictly just means the 'since' tag should be 1.2.0 and the next release will be 1.2.0, right? That seems fine to me?

Seems like a nice utility.
I agree we shouldn't slow ourselves down.
In this case following semver strictly just means the 'since' tag should be 1.2.0 and the next release will be 1.2.0, right? That seems fine to me?

Having a 1.2.0 release does come with an overhead of adding extra testing in our other repos to test with 1.0, 1.1, 1.2 jars but it is achievable.

Maybe we can relax that, which means only removing things in the minor version, this way, we can move faster, otherwise , any contributor will waiting a little longer to have their contributions been released.


Create Yahoo social provider

Has a really nice messenger API that gives you complete programmatic control over their IM network
https://developer.yahoo.com/messenger/guide/
Depends on
https://github.com/uProxy/uproxy/issues/579

Closing as this is not a priority right now


Functional test: atomicSet: "Cannot update 'chapters.0.name' and 'chapters' at the same time"

I'm still blocked trying to get atomicSet to integrate with my codebase. I am currently blocked on a bug that emerges when you try to edit an embedded document and also add new embedded documents at the same time. This is similar to @malarzm 's https://github.com/doctrine/mongodb-odm/pull/1141
repro:
phpunit ./tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GH1156Test.php

returns:
PHPUnit 4.1.6-9-gbe3530d by Sebastian Bergmann.

Configuration read from /mongodb-odm/phpunit.xml

E

Time: 449 ms, Memory: 3.25Mb

There was 1 error:

1) Doctrine\ODM\MongoDB\Tests\Functional\Ticket\GH1156Test::testReplacementOfIdentifiedEmbedManyElements
MongoWriteConcernException: localhost:27017: Cannot update 'chapters.0.name' and 'chapters' at the same time

/mongodb-odm/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Collection.php:1335
/mongodb-odm/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Collection.php:783
/mongodb-odm/lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php:407
/mongodb-odm/lib/Doctrine/ODM/MongoDB/UnitOfWork.php:1179
/mongodb-odm/lib/Doctrine/ODM/MongoDB/UnitOfWork.php:427
/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:526
/mongodb-odm/tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GH1156Test.php:27

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.

@blockjon the test passes when ran against #1155, please have a look over there :) I'll include it there

I've cherry picked the test into #1155


[feat]: Make table header sticky or allow scrollarea to contain tablebody

Feature description
<ScrollArea className="h-96 w-full rounded-md border">

      <TableHeader>
      </TableHeader>
      <TableBody>
      </TableBody>

    </ScrollArea>

This is not ideal because the header is lost as you scroll down on a variable list
Repositioning scrollArea to contain just <TableBody/> results in a hydraton error

      <TableHeader>
      </TableHeader>
      <ScrollArea className="h-96 w-full rounded-md border">
      <TableBody>
      </TableBody>
      </ScrollArea>

error message
Unhandled Runtime Error
Error: Hydration failed because the initial UI does not match what was rendered on the server.
See more info here: https://nextjs.org/docs/messages/react-hydration-error

Expected server HTML to contain a matching
 in
.

...

    ^^^^^

As a hack, the Table.tsx component can accept a containerClassname prop, overflow-y-auto
This is on Table, not DataTable.
Affected component/components
Table, ScrollArea
Additional Context
No response
Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues and PRs

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

would also like a solution for this

same!

same


In problems window, quick fix is shown on the wrong item

Type: Bug
When a problem is reported by two separate extensions on the same line. The quick fix for onw of the issue is shown on both the problems, even though the fix itself is not related to the problem reported.
Issues: See line 13

The quickfix from the spell check extension is show on the flake8 problem:

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2304)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
undefined

Memory (System)
63.78GB (45.18GB free)

Process Argv
--folder-uri file:///c%3A/GIT/linters/vscode-pylint --crash-reporter-id 8a06823c-8219-469b-a5be-5ad36c5c7a1c

Screen Reader
no

VM
0%

Extensions (22)

Extension
Author (truncated)
Version

tsl-problem-matcher
amo
0.6.2

vscode-eslint
dba
2.2.6

gitlens
eam
13.0.3

EditorConfig
Edi
0.16.4

prettier-vscode
esb
9.9.0

codespaces
Git
1.12.0

copilot
Git
1.54.7077

remotehub
Git
0.44.0

vscode-pull-request-github
Git
0.52.0

azure-pipelines
ms-
1.208.0

vscode-docker
ms-
1.22.2

python
ms-
2022.16.1

vscode-pylance
ms-
2022.10.30

remote-containers
ms-
0.255.4

remote-ssh
ms-
0.90.1

remote-ssh-edit
ms-
0.84.0

remote-wsl
ms-
0.72.0

vscode-remote-extensionpack
ms-
0.21.0

azure-account
ms-
0.11.2

remote-repositories
ms-
0.22.0

vscode-github-issue-notebooks
ms-
0.0.124

code-spell-checker
str
2.10.1

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
2144e591:30553903
pyindex848:30577860
nodejswelcome1:30587005
fc301958:30573243

@sandy081 Currently code actions are requested for the range of the diagnostic:
https://github.com/microsoft/vscode/blob/6de5257b642a24b7cffbb146f691d65b015b2323/src/vs/workbench/contrib/markers/browser/markersTreeViewer.ts#L620
The code action providers may return any quick fixes that happen to overlap with that range
I suspect the markers tree view needs to look at the returned code actions to find the one that fixes the target diagnostic. It may also be a good idea to pass the specific diagnostic to the code action provider (although the internal getCodeAcitons api would have to be updated to accept a diagnostic in addition to range.

Could this be related to #161331?

I am also seeing it, here is a screenshot as another verification:

Hi,
I am encountering this issue on my side as well.
Would this fix be considered for future releases?


Error: no JSON

like in the older remote2 plugin, i get
this both errors sometimes...

Similar here, been battling this for ages and can't understand what's causing it or why.
I normally don't get it during authentication though but while running routines. Same commands, sometimes works for weeks, other times fails every day

Same here... I switched from node-red-contrib-alexa-remote2 to this repo, but getting same authentication failures.  Failed to load... "No JSON".   then after several attempts, I get the message "Authentication failed: "Timeout".

What I find works for me is the following workaround:

In every flow with an Alexa Remote routine, I use a catch node specifying all of them.
I use a switch node to examine the errors, e.g.no Json, Authentication failed: "no body", etc and execute an "initialise"
if it's an error I haven't checked for, it goes to the debug line.  If re-initalising cures it, it goes in the check list.


matplotlib window disappearing

I used the exemple scipt and a data set of mine and in both cases the graph plot popped and terminated itself very quickly. I have no issues with matplotlib anywhere else.
Using python 3.6, all modules are up to date since I reinstalled them with markov_clustering

I'm having the same issue.
Python 3.5.2
Networkx 2.1
Matplotlib 2.2.2

Thanks for reporting this issue.
I normally use the module from within a Jupyter notebook, and so have not encountered this.
The drawing code assumes an interactive session is being used (e.g. python interactive interpreter / Jupyter notebook). However, when the script is run non-interactively, the matplotlib window closes when the python interpreter exits (which is normal behavior for matplotlib).
I will add an option to the draw_graph function which can be used to specify whether or not the interpreter should wait until the matplotlib window is closed before exiting.
A quick workaround that you can use in the mean time is to add this to the end of your script:
input("Press Enter to continue ...")
Now the matplotlib window will stay open until you hit the enter key, causing the program to complete.


Discussion: How to aggregate time spent in different sleep states?

Since 'Sleep state' is a sensor with text data states, how would I aggregate the time spent in every state to satisfy new sensors for length of entire sleep, length of light sleep, length of deep sleep, length of awake?

Right now I kinda have it jerry rigged together with these History Stats configs:
- platform: history_stats
  name: "Oakley in 'Light sleep'"
  entity_id: sensor.owlet_baby_care_sock_sleep_state
  state: "light_sleep"
  type: time
  end: "{{ now() }}"
  duration:
    hours: 4
- platform: history_stats
  name: "Oakley in 'Deep sleep'"
  entity_id: sensor.owlet_baby_care_sock_sleep_state
  state: "deep_sleep"
  type: time
  end: "{{ now() }}"
  duration:
    hours: 4
- platform: history_stats
  name: "Oakley in 'Awake'"
  entity_id: sensor.owlet_baby_care_sock_sleep_state
  state: "awake"
  type: time
  end: "{{ now() }}"
  duration:
    hours: 4

Then these template helpers
(length actually asleep)
{{ states('sensor.oakley_in_light_sleep') | float + states('sensor.oakley_in_deep_sleep') | float }}
(length since starting "sleep time")
{{ states('sensor.oakley_in_light_sleep') | float + states('sensor.oakley_in_deep_sleep') | float + states('sensor.oakley_in_awake') | float }}
My issue here is that this is set to a static 4 hours, so will only work for naps. I'd like to find a way to grab the last time it went from unknown to something else and use that as the starting point.
Is this a feature that this integration could provide as new sensors?

This isn't really something I'd look at providing as a new sensor, the integration is purely there to expose the information that already exists in the API as sensors.
You might be able to do this using the history stat below:
Having the start time as the last time the state changed from charging to not charging (i.e the sock was taken off the base station or put back on the base station). I got this idea from this forum post https://community.home-assistant.io/t/history-stats-from-last-triggered/432194/3 which uses an automation last trigegred.

platform: history_stats
name: Light Sleep
entity_id: sensor.owlet_baby_care_sock_sleep_state
state: "awake"
type: time
start: "{{states.binary_sensor.owlet_baby_care_sock_charging.last_changed}}"
end: "{{ now() }}"

To be honest you might be better posting this on the homeassistant forum as you will get more responses, I know very little about history stats and have never used them, the above is my best guess. Aside from that you might be looking at helpers and automations to do this.


Possible to use with rclone?

Hello 👋 ,
I was searching around for a open source lightweight media server and came across yours, It looks super pretty but I was wondering it it's possible to make it use rclone mount as a media folder? Without the radarr and sonarr integration

Hi!
Thank you for your query. Midarr depends on Radarr / Sonarr integrations for an index to your media, there is currently no plans yet for Midarr to handle this exclusively.
As a stopgap in the meantime, could you mount your rclone to a Radarr / Sonarr instance instead?

Yeah sure, I'm trying to with docker-compose but I keep getting this error:
When using COPY with more than one source file, the destination must be a directory and end with a /
ERROR: Service 'midarr' failed to build : Build failed```

Using the default docker-compose from your repository. Ubuntu server on arm

Thanks for reporting back. I have tagged a new version which should fix the error you were seeing.
Please use the new tag v1.16.1 or rebuild latest
ghcr.io/midarrlabs/midarr-server:v1.16.1

https://github.com/midarrlabs/midarr-server#volumes
Remember also to mount your rclone into both Radarr / Sonarr and Midarr for your media location to resolve.


Update hifiasm on usegalaxy.org

@galaxybot deploy this

@galaxybot deploy this

This actually did deploy correctly, merging.


updating with comments about private EDB docker images

Green run via : https://github.com/liquibase/liquibase-test-harness/actions/runs/847364445. Merging to main.


2.0/Improve conversions handling

Conversions are scattered everywhere and should preferably only happen in two places, binding to cql operator method when arguments are matched/converted against existing methods, and then again on the return type if necessary
This is a big task, so all work will be done across several PR's and on a side branch develop-2.0-bindings
TODO's

[x] Synchronize names between ICqlOperators methods, and the values on the CqlOperator enum
[x] There is no need to call methods...OrNull(...) e.g. SelectOrNull(...), since nullability hints are available in the result type of the method. (Causes all generated c# output to change)
[x] Park the Choice type generator in another branch, until needed

Comments from PR #303

[x] Fix the unnecessary casts from a value type to its nullable value type e.g. var o_ = context.Operators.Quantity((decimal?)40m, "%");
[x] The generated code that handles choice elements is wrong.  These were treated as DateType in the old code, but are now turned into an object. Instead of calling Convert on them (which invoked specific logic to turn a DateType into a string), this has changed into a as string now, which will not invoke the specific logic in the TypeConverter.
[ ] Converting Enums to Strings in CqlOperatorsBinding.Conversions.cs : This is not good enough for the fhir pocos, and we should involve the model, probably by asking the specific type converter to convert the enum to a string (e.g. in the firely pocos, you need to call GetLiteral() on an enum value to get to the code).
[x] The new algorithm actually translates Code to a string instead of to an enum. That should be an improvement, but maybe some parts of the code was dependent on this. Something to keep in mind if we see difference in behaviour when dealing with enums.This can be changed to going through the Convert method again, if necessary, by commenting out this code in ExpressionBuilder.PropertyHelper.

[ ] Converting DataType into a string requires scrutiny: a DataType has become an object, then in the old code the datatype is converted using Convert to a string, then assigned to display. In the new code, this object is just cast to a string, without call to Convert - which is almost certainly wrong, unless the SelectOrNull converts this - but the lambda ae_ does not seem to do that.
[x] Remove that abstract class and just have a CqlContextBinder. Likewise, the same for the base type of CqlOperatorsBinder
[x] Remove the ReSharper settings file
[ ] Add code documentation as to what the difference is between the LibrarySetDefitions and LibraryDefinitions

SelectOrNull exists because if you call the standard LINQ Select method with a null source you get an ArgumentNullException.  In CQL, if you attempt to do the equivalent of a Select (i.e., a Query) when the source is null, the result is null, not an exception.


Support other simulators than schelling-org

[ ] A base class that Simulators inherit from an override the things they want to override


UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'kind' of undefined

While trying to transform the following file using the CLI command:
https://github.com/marijnh/orderedmap/blob/master/index.js
I get the following error:
$ yarn run cjstoesm transform index.js dist
yarn run v1.19.1
$ /home/X/Projects/prosemirror-esm/orderedmap/node_modules/.bin/cjstoesm transform src/index.js test
(node:20706) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'kind' of undefined
    at Object.isExpressionNode (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/typescript/lib/typescript.js:11368:33)
    at isExpression (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/@wessberg/cjs-to-esm-transformer/dist/cli/transform-task-29d3bc0d.js:1743:15)
    at visitBinaryExpression (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/@wessberg/cjs-to-esm-transformer/dist/cli/transform-task-29d3bc0d.js:1898:97)
    at visitNode (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/@wessberg/cjs-to-esm-transformer/dist/cli/transform-task-29d3bc0d.js:2117:16)
    at ts.visitEachChild.cbNode (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/@wessberg/cjs-to-esm-transformer/dist/cli/transform-task-29d3bc0d.js:2388:37)
    at visitNode (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/typescript/lib/typescript.js:70904:23)
    at Object.visitEachChild (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/typescript/lib/typescript.js:71187:59)
    at Object.childContinuation (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/@wessberg/cjs-to-esm-transformer/dist/cli/transform-task-29d3bc0d.js:2387:23)
    at visitNode (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/@wessberg/cjs-to-esm-transformer/dist/cli/transform-task-29d3bc0d.js:2122:20)
    at ts.visitEachChild.cbNode (/home/X/Projects/prosemirror-esm/orderedmap/node_modules/@wessberg/cjs-to-esm-transformer/dist/cli/transform-task-29d3bc0d.js:2388:37)
(node:20706) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:20706) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Hey there. Thanks for reporting this issue. It has been fixed and released as part of v0.0.13.


ipp-everywhere.test fails when run with top-of-trunk ippsample code

Steps to reproduce:

Run docker file to setup, build, and run latest ippsample code
Run ippserver

Run ipptool from client

Expected output:
All tests complete successfully (or are skipped)
Actual output snippet from client below:

Comment from Mike:

printer-config-change-{date-time,time} are explicitly supported and should be returned, and printer-icons is normally populated with a default value.  The printer-supply* attributes are currently commented out since I haven't had a chance to update that code from the original CUPS sources which only supported a single printer and canned supplies.  We do want ippserver to pass the self-cert tests so it can serve as an example of a conforming implementation... :)

[master e0826d8] Fix missing printer-config-change-[time,date-time] (Issue #26)


Confilict in secret between cert-manager and kuberentes-dashboard

/kind feature
What happened:
Trying to deploy kuberentes-dashboard with ingress enabled in helm raised a conflict with certManager as both of them tried to save a secret with template full name .
CertManager wanted to save the certificate as the ingress name and same goes for dashboard helm
What you expected to happen:
If there is a way to customize the secret name instead of being just as ingress name
How to reproduce it (as minimally and precisely as possible):
Install certmanager and enable shim and try to install kuberentes-dashboard with ingress enabled

OK i see , i got confused between certificate resource name and secret name .


fix(#2256): use consistent units of time

Description
Update timing fields using the suffix _ms to be in milliseconds.
Doing a quick grep through the repo I only found a few instances of this in the delete.rs file.
Related Issue(s)
Closes #2256
Documentation

@cmackenzie1 the metrics are optional anyways but just to get some consistency across other implementations, do you know if spark uses milli or micro precision?

@ion-elgreco looks like Milliseconds https://github.com/delta-io/delta/blob/2fddb8b0b87b08ec57b13e86fcd2feec83ea10f1/connectors/standalone/src/main/java/io/delta/standalone/Operation.java#L178


SSH to Raspibolt with Google Router

Just got a Google Wifi Router and went to reconnect my Raspibolt and can't seem to SSH into it.
I've reserved the IP address and forwarded the 8333, 18333 and 9735 ports.
I have an 8-port D-Link switch to which both the Raspibolt and my computer connect and which connects to the router.
When I try to SSH into it using PUTTY, I get the error "Network error: Connection timed out"
Anyone else have theirs setup using the Google router? Any issues?
Any help is appreciated! Thanks!

Are you trying to connect from within the same home network? Is the IP subnet still the same? An issue could be if you still have 192.168.0.* configured in UFW and the new subnet is nos 192.168.1.*

What's the IP address of your regular computer (with the SSH client) and the RaspiBolt?
Can you ping the Pi from your regular computer? (see here)
What is your UFW configuration on the Pi?

Are you trying to connect from within the same home network? Is the IP subnet still the same? An issue could be if you still have 192.168.0.* configured in UFW and the new subnet is nos 192.168.1.*

Hmm, that may be it, looking at that part of the guide, seems that my hardening of the Pi may not be allowing the connection from my computer with the new ip address. Looks like my subnet has changed from  192.168.1.* to 192.168.86.*
If that is the case, any way for me to get back into the Pi to revise these settings?

What's the IP address of your regular computer (with the SSH client) and the RaspiBolt?

IP address of computer with the SSH client is <IP_ADDRESS>
IP address of the Raspibolt is <IP_ADDRESS>

Can you ping the Pi from your regular computer? (see here)

Looks like I was able to ping the Pi. Ping results below:
ping <IP_ADDRESS>
Pinging <IP_ADDRESS> with 32 bytes of data:
Reply from <IP_ADDRESS>: bytes=32 time=1ms TTL=64
Reply from <IP_ADDRESS>: bytes=32 time=1ms TTL=64
Reply from <IP_ADDRESS>: bytes=32 time=1ms TTL=64
Reply from <IP_ADDRESS>: bytes=32 time=1ms TTL=64
Ping statistics for <IP_ADDRESS>:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms

What is your UFW configuration on the Pi?

Per above, looks like my UFW configuration would be based on my previous router's subnet. I had this pi set up and running successfully with my Netgear N900 router using the instructions in the guide under Hardening your Pi.
https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md

That seems to be the issue. You can just connect the Pi to a keyboard and screen and work locally on it to change these settings.


outdated: option to check only direct/explicit dependencies?

We're running bundle outdated automatically against our code base to find and report any outdated dependency, let's say, as a part of the CI build.
To notice that there is a new version that's falling out of our version constraints specified, we also use --no-strict (it's unnecessary right now, ofc, but may be necessary later).
Some pretty useful gems, like pry or even actionable, are depending on not-the-latest-version of some gems. For instance, at the time of the posting, running bundle outdated with pry 0.10.5 and actioncable 5.0.1 in project produces:
Outdated gems included in the bundle:
  * nio4r (newest 2.0.0, installed 1.2.1)
  * slop (newest 4.4.1, installed 3.6.0)

It would be nice to have a flag (like with --strict/--no-strict) to check only top-level/direct/explicit dependencies. This way the bundle check we use can be set up in two separate checks: 0) for direct dependencies, not strictly and 1) for all dependencies, strictly.
Is there anyone else also interested in this feature?

I think I should also share the workaround that we use right now, it's based on the fact that bundle outdated accepts the list of gems to check and, in our case, it is called from the shell script.
So, instead of the flag, we can launch first check like this:
cat Gemfile | grep -v '^#' | grep gem | grep -o "[\'\"][a-z0-9_-]*[\'\"]" | grep -o "[a-z0-9_-]*" | xargs bundle outdated --no-strict

The second check ("for all dependencies strictly") is done via regular bundle outdated --strict ofc.

Seconding this feature request. I always run throughbundle outdated before upgrading rails and it would be nice to have a switch that shows only the actionable items.

Would definitely love to see this feature as well; we are, similarly, running bundle outdated at the CI level to signal warnings on branches.

If you mean, ignore version constraints specified in my Gemfile but still respect constraints specified in gems' metadata, then +1
My current workaround is to manually make temporary clone of repository, remove version constraints from Gemfile. run bundle update and see what is updated.

@grv87 in a way.
I mean limit the check to only your direct dependencies, completely ignoring their own dependencies.
As an example, if you have a gems A, B and C in your Gemfile, and they depend on some other gems that you haven't specified, like X, Y and Z, with requested flag it would check only A, B and C.
This way you can combine it with already existing flags to customize the checks to suit your particular need.
For example, if you want to NOT ignore the version contstraints specified in Gemfile, you can use the --strict flag, which, according to documentation:

Only list newer versions allowed by your Gemfile requirements.

@ivan-kolmychek, suppose that:

Your Gemfile hasgem 'A', '~> 1.0'
gem 'B', '~> 1.0'

There is a newer version of gem B version 2.0
Gem A 1.0 depends (directly or indirectly) on gem B 1.0
should Bundler report that gem B is outdated? I believe, no.

Should Bundler still respect their dependencies, just exclude them from output?

I think it really depends on your use-case.
We use this "top-level" non-strict outdated check as a way to  detect that we have outdated top-level gems, regardless of why exactly are they outdated.
Even if A depends on  B 1.0 when there is a newer version, B will not magically become up to date just because of that.

Should Bundler report that gem B is outdated?

Recently we've hit almost exactly the situation you've described - one of the gems we use depended on old version of faraday, but we also use faraday, so "direct update" is not possible.
Which means that we needed to evaluate what our options are (including submitting PR to update the version constraints, forking the gem, replacing faraday with something else in our code, ditching out that dependency if it's not critical, adding faraday to exceptions, etc. etc).
What's the most optimal course of action in similar situation can depend on variety of factors, like what gems are those A and B, how important they are for your project, how wide are they used, etc. etc. So I believe this should be evaluated on case-to-case base, when the situation arises.
But important part is, the notification from check gives you the chance to do that.

I believe, no

If you want it to actually respect dependencies, I think that some kind of an additional flag can also be used, like the --strict or even some new one.

I'm mostly under Windows, so no Shell scripts.

That's actually fine, you can still use shell scripts under the Windows in a variety of ways:

first of all, bash is bundled with Git for Windows, so you probably already have it installed on your machine anyway if you're using Git (official download page for Windows uses links to dists from "Git for Windows")
and even if you don't use Git for Windows, there are Cygwin, that Ubuntu-on-Windows-10 initiative and Docker for Windows, all of them run bash

(I personally used Cygwin on a few occasions when I was limited to Windows machine by circumstances and it worked pretty well for me.)
Or you can even write the analog in PowerShell and share it here, it's probably not hard.

@ivan-kolmychek, ok. So we have two different use cases and require two different solutions.
I won't open new issue for now, until this is resolved.
I know about Git bash and Cygwin and gnuwin32 and so on. Probably I'm lazy enough to go this way for this specific task :) Let's stop this discussion as off-topic.

I also would be interested in this. I'm sure there's a use case somewhere, but I'm struggling to see what's the benefit of bundle outdated returning non-actionable results.
I can see @segiddins marked this as a feature request back in January. Forgive my ignorance, but I couldn't find an answer in the contribution guide: is there a process after that, or is it simply a case of "it's done when it's done"?

@Simbul that generally means "seems like a cool idea, we'd be happy to merge a PR adding it"

I would also love to see this feature added and took the liberty to prepare a PR!

For what is worth, as a sort of workaround, I currently use bundle outdated --groups and ignore the gems listed under ==== Without group ====.


All syntax is grey

All of my syntax is grey for html, sass, and css. this is one of my favorite syntax themes please fix soon thanks.

U need to upgrade Atom version to 1.13.0, or downgrade package version to 1.2.0 apm install<EMAIL_ADDRESS>http://flight-manual.atom.io/using-atom/sections/atom-packages/


Horizontal sliding doesn't work in portrait mode

I'm trying to get this work in portrait mode but it only seems to be working in vertical mode.
My html:

JS:
var mySwiper = $(".swiper-container").swiper({
		    mode: "horizontal"
		});

Note, this is called by another function after the above HTML is dynamically inserted to the DOM.
Note that the images are not full screen, there are other elements in the window outside of the swiper-container.
When I swipe left, the swipe happens, the html element gets activated but the images are not shown but whitespace instead.

Do you have a live link so i can take a look?

Unfortunately no, but when I scroll to the left my HTML is like this:
'''

'''
So the active marker moves to the second swiper-slide element and the first picture moves out of the window, but the second picture is not shown. There is only whitespace there.
If I swipe back, the first picture comes back.
Any idea?

It looks like the pictures are stacked up on top of each other rather than next to each other.

I guess problem could be in CSS, but sorry, can't say much without live example or jsfiddle. Closing for now


python311Packages.google-cloud-dlp: 3.14.0 -> 3.15.1

Changelog: https://github.com/googleapis/python-dlp/blob/v3.15.1/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

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

2 packages built:

python311Packages.google-cloud-dlp
python311Packages.google-cloud-dlp.dist


running openssl from command line, it isn't finding the default 'config'

This might be a user error... But I had to do:
openssl req -x509 -newkey rsa:4096 -config=/fultonm/prod/ssl/openssl.cnf -keyout key.pem -out cert.pem -sha256 -days 365

instead of just
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365

so I don't know if I built it wrong or if people have to set up their own config in practice.

@ejratl i don't know if you have peeked at this, but if you have and things have changed, please add an update.


Use CODEOWNERS along with module-level dependency configs for default reviewers in monorepo

I am working in a monorepo that uses maven with a file structure like so:
/pom.xml
/a/pom.xml
/b/pom.xml
/c/pom.xml

where a, b, and c are <modules> defined in the root /pom.xml. Versions are defined in the root pom and the module-level poms simply state whether or not they use those dependencies in that module.
and a CODEOWNERS like so:
/a/ @team-a
/b/ @team-b
/c/ @team-c

The feature I am looking for is for dependabot to assign default reviewers based on A) what module(s) use the dependency being upgraded and B) what CODEOWNERS are defined for those modules/directories. For example, if dependabot upgraded a dependency in /pom.xml that /a/pom.xml and /c/pom.xml use, then assign @team-a and @team-c as default reviewers to the version bump PR.
I googled it and couldn't find any documentation on it but would be delighted to know it already exists.

This one would be really tricky, and I don't think the requested solution is in-scope for Dependabot to solve... we'd rather stay focused on parsing packages and creating PR's rather than supporting really complex review inheritance structures.
As a workaround I'd suggest a GitHub action that parses the subfolder manifests to generate the list of deps they inherit from the top level manifest and then watches the PR's opened by Dependabot against that list of deps in order to assign custom reviewers. You may also find https://github.com/dependabot/fetch-metadata helpful for wiring up this custom workflow.
If that doesn't provide what you want, there may be a way we could extend Dependabot to better expose the information you need, although we'd still leave the custom code reviews for you to wire up yourself based on that information. But I'm not coming up with something obvious right now that we could expose that we don't already... could also potentially leverage this Dependency Graph API to analyze the commitson the Dependabot PR's to see what specifically changed.
I'm going to close because not in scope, but if there's information we could expose to make it easier for you to wire up your custom actions workflow, feel free to file an issue. For something like this, we'd want to give you the raw data / building blocks, but then what you do with that is up to you because when we get to long-tail use cases like this, everyone's needs are slightly different.


Added: Portal post-paste fixing issue #53

could I get an explanation of what this does? I'm not aware of a "post paste fixing issue" or what it is

Hey, @meetric1
Any progress on this ?


Hydra doesn't open after install

I disabled antivirus, install the hydra, and after nothing open, i tried open for the shortcut, and for the fold, and failed.

Did any error message show up? Does it show in the process list?

I have the same problem, when installing version 1.1.0 my Hydra does not open, but I tried installing the previous version 1.0.1 and it opens normally

@jaodeda how do u install games in 1.0.1?

@zamitto any messages

@Luixxxxxxx, not 100% sure, but this might be a known bug that will be fixed in the next release.
You can try to download the 1.0.1 as @jaodeda said.

@zamitto i downloaded the 1.0.1 and can't install games, only elden ring appears, and i search, don't works

@jaodeda how do u install games in 1.0.1?

I still haven't found a way to solve this, I can just open it but cant install games, I tried updating Hydra directly through the program and still, when I update, it stops opening again

Could you try to add the -no-sandbox option and run the 1.1.0 again?

@zamitto i tried -no-sandbox in 1.1, and works, ty bro

Someone help me, this error started appearing a few hours ago. Whenever I start hydra through setup, this error appears and I can't log in, I've already tried to solve it and I couldn't. If anyone can help me, I would be grateful.

Could you try to add the -no-sandbox option and run the 1.1.0 again?

thx bro, i had the same problem and this worked

This has been (most likely) solved with the migration to electron-builder.


Consider distribution via custom Homebrew Tap

TL;TR of our private discussion of this thing: I'm personally kinda not sure about that, we'll have to be very conservative once we release mainframer to something like Homebrew since we'll need to provide a lot of backward compatibility which is not that easy when you write in bash.
Good example of such a problem is git, it has lot's of weird things (though I love it) because of backward compatibility.

@ming13 you can probably contribute formula into central repo

@thevery hello there lol 😸, surely we can, but it's more a question of "should we"?
I see this very similar to things like gradlew and other kinds of wrappers, how would you keep all team members up-to-date? What if we release v3.x with breaking changes, how would we update it in homebrew/etc without breaking it for old users?
Another point is that team members don't have to install anything to make it work once it in the project repo, while with brew/etc it's an additional step for everyone.
Moreover, once we publish mainframer into homebrew, we'll have to do the same for all Linux distros which is much more complicated…

I like the idea of having sth like mainframer wrapper which will work analogically to gradlew.
In such aprroach you don't force users to update but still they can do it very easly.

Yup. mainframer.sh itself already works as gradlew so we don't need to change anything for now.

I was thinking about something else.
The mainframerWrapper could delegate all normal invocations to mainframer.sh, but in addition it could check some mainframerWrapper.properties file (where there version of mainframer would be defiend) and update mainframer.sh if needed.

Hm, that's interesting, let us think about it for couple days
On Fri, Jan 27, 2017, 19:40 Kasper Kondzielski<EMAIL_ADDRESS>wrote:

I was thinking about something else.
The mainframerWrapper could delegate all normal invocations to
mainframer.sh, but in addition it could check some
mainframerWrapper.properties file (where there version of mainframer
would be defiend) and update mainframer.sh if needed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/gojuno/mainframer/issues/32#issuecomment-275710843,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7B3JneXKSk2akefQC-6K2-7TOsTMr-ks5rWh3pgaJpZM4LUCvK
.

@artem-zinnatullin I was thinking about writing Mainframer in Go. It's easy to provide binaries for every system that way and making backwards-compatible changes are a lot easier because of all the benefits you get when using almost any programming language. There would also only be a single binary.

That would require us to make ssh and rsync compatible clients which is
much more complicated than current version of Mainframer. Or you want to
call ssh and rsync from it? If so, I'm not sure benefits worth it %)
Also binary will be heavier than text file in terms of size and would
require to make some kind of wrapper (like gradlew) which basically removes
all the benefits of rewriting Mainframer from bash to other languages since
we'll still need some shell.
On Sat, Apr 15, 2017, 17:05 Andreas Backx<EMAIL_ADDRESS>wrote:

@artem-zinnatullin https://github.com/artem-zinnatullin I was thinking
about writing Mainframer in Go. It's easy to provide binaries for every
system that way and making backwards-compatible changes are a lot easier
because of all the benefits you get when using almost any programming
language. There would also only be a single binary.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gojuno/mainframer/issues/32#issuecomment-294295408,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7B3CCvqyXb4s34mlRmIxIQHcMW6mUEks5rwM6ygaJpZM4LUCvK
.

For a simple port I'd start with simply calling ssh and rsync from it. In the future we could implement these directly using Go libraries and the benefit would then be that no setup is necessary on the client machine. We could have brew install mainframer and it would be ready for use. Using Go would also allow us to extend mainframer more easily, we could then add commands more easily.
I do think that the size of binary is negligible, it would then be system-wide and not per-project. Could you explain why you would want to create a wrapper for mainframer when using a binary? I don't see a mainframer as an essential part of a project.

Update: we're considering publishing Mainframer to brew and other repos in some near future since tool is so mature and stable now that it's hard to work on projects without it  (it's like git/etc).


Testing code present in the official owasp/modsecurity-crs docker image

We use the owasp/modsecurity-crs:4.2-nginx-202405060805 image as a base image for our application. We deployed an application on Azure and the EDR (Microsoft Defender for Endpoint) has detected potential malwares in the following path on hosting machine:
/var/lib/docker/overlay2/…/diff/opt/owasp-crs/tests/regression/tests/REQUEST-933-APPLICATION-ATTACK-PHP/933111.yaml.
Currently, the files used to build modsecurity-csr images use the full contents of the rules repository and therefore, the test files are present in one of the layers of the created docker image.
Related issue was raised some time ago on the core rule set repository and it seems like there exists minimalistic pack of ruleset produced (without tests files). However this minimalistic version is not used in the Dockerfile for owasp/modsecurity-crs build process. The ideal solution for us would be if official images would use minimal core rule set without tests files.

Ah, makes sense. Let's switch then to minimal.
Thanks for rising this up.

Thank you very much for your quick response

BTW, the code should be update in the release/20240913. It is in the build process, you'll see the release coming out in 4-5 hours.


WorkspaceSymbols index after successful build

Previously WorkspaceSymbols depended on a side-effect of running Dialyzer:
https://github.com/elixir-lsp/elixir-ls/pull/110#discussion_r376827177
Now that the Build step loads all modules (added in #227) we need to change the WorkspaceSymbols index to be rebuilt after a successful compile.

Need to fix the test error:
** (Mix.Error) Cannot access build without an application name, please ensure you are in a directory with a mix.exs file and it defines an :app name under the project configuration

    (mix) lib/mix.ex:323: Mix.raise/1

    (mix) lib/mix/project.ex:521: Mix.Project.compile_path/1

    (mix) lib/mix/tasks/compile.all.ex:24: anonymous fn/1 in Mix.Tasks.Compile.All.run/1


quay.io/opstree/druid-exporter:latest is not up to date

Using docker image with latest tag, POST request to /druid endpoint gives "404 page not found".
For tag v0.8, it works fine.

Made the necessary changes in quay


fix: Dumpshards fix #1

After numerous local checks it works locally.
It still needs to be tested once its merged.
Test Plan

How do we know the code works?
We test.

Checklist
All testing was done locally.
-Windows 👍

Linux: 👍
MacOS 👍

@pawelpasterz I have run it locally and they pass. Will attach some logs if i can shortly.


No config file generated

I'm running the app on my machine where I have local admin rights, and an output file is generated by there's no config.ini file generated.
The output file shows:
2023-11-20T13:31:44.705790100+11:00  INFO teams_status - --------------------
2023-11-20T13:31:44.706111700+11:00  INFO teams_status - Application starting
2023-11-20T13:32:39.449729500+11:00  INFO teams_status - --------------------
2023-11-20T13:32:39.450053+11:00     INFO teams_status - Application starting
Could something like Defender be blocking it?

Seems like I broke something in the configuration file generation in the last version.
While I resolve it you can create a file names conf.ini in the same folder and paste/fill the below:
[Teams]
URL=ws://localhost:8124
API Token=

[Home Assistant]
URL=
Long Live Token=

[Home Assistant Icons]
In a Meeting=mdi:phone-in-talk
Not in a Meeting=mdi:phone-off

[Home Assistant Entities]
Meeting Id=binary_sensor.teams_meeting
Meeting Friendly Name=Teams Meeting
Video Id=binary_sensor.teams_video
Video Friendly Name=Teams Video

[MQTT]
URL=
Port=1883
Topic=teams-status
Username=
Password=

[MQTT Entities]
Meeting=in_meeting
Video=video_on

Thanks for reporting this!

Scratch that I seem to have broken the tray icon? I will run a few tests and get back to you.

Alright v0.2.1 fixes the issue you encountered!
(Fixed by 44d730a96d19f68ca3a5c204ecff8c64a3d2c0a3)


Update Samba Release to latest stable release

Hi @crazy-max thank you for your work on this container, I have been using it successfully for a long time!
In February the latest stable release of the Samba 4.16 release series came out: https://www.samba.org/samba/history/samba-4.16.9.html
Also, from march 08, 2023 the first stable release of the Samba 4.18 release series is available https://www.samba.org/samba/history/samba-4.18.0.html that comes with SMB Server performance improvements.
Shall I open a new PR to upgrade to one of these versions? Would you rather stay in the 4.16 branch?
Thanks again

Atm I'm installing samba through the Alpine repo, not from sources. Latest stable is still 4.16.8 in Alpine 3.17: https://pkgs.alpinelinux.org/packages?name=samba&branch=v3.17&repo=&arch=&maintainer= on Alpine 3.17.
We might need to wait for next Alpine 3.18.

Seems that latest stable has been updated to 4.16.9!
https://pkgs.alpinelinux.org/packages?name=samba&branch=v3.17&repo=main&arch=&maintainer=
I'm closing this issue, thank you


marker addListener weird behavior

check out this plnkr:
https://plnkr.co/edit/qkrcSe1urtn2XAF3bMGA?p=preview
no matter which marker you click, it thinks it is the last one.
The effect is the same if markerclusterer is not used.
I suspect the problem is that the click listener is added "manually" to the marker instead of specifying "on-click" on a marker directive but how to use markerclusterer in that case. Even if if try to use a marker directive it's way to slow for thousands of markers.

never mind, this has to be used instead of marker inside the listener function


A strange line in defense.py

code:
output_long = tf.to_int32(tf.ceil(
1. * tf.to_float(output_short) * tf.to_float(input_long) / tf.to_float(input_short)))
Was the '1.*' wrong ?
Why is there three ')'?
Maybe I miss some important key points.
Could you plz give me some help ?
Thank you !

We are trying to compute the long side of the output by ceil(out_short*in_long/in_short).
I am not sure the 1.* is necessary but I think keeping it won't make it wrong.
There are three ')'s because there are two '('s in the previous line, and there is another '(' for the last 'tf.to_float'.


Error [ERR_MODULE_NOT_FOUND]: Cannot find module ConnectionProvider imported from @solana/wallet-adapter-react/lib/esm/index.js

I have a starter setup with NextJS and tRPC for my backend logic.  I haven't added many libraries except for ChakraUI.  I have added the quick start code for the solana-labs/wallet-adapter, but ran into this issue when trying to start the application.  I have also added all of the libraries mentioned in the README for the wallet adapter.
To Reproduce
Steps to reproduce the behavior:
Start the application with a basic setup
Expected behavior
The application should start up with no error
Screenshots

Desktop (please complete the following information):

OS: macOS Monterey 12.5
Browser Brave
Version 1.42.97

Additional context
Below is the _app.tsx file I am using.
import { ChakraProvider } from '@chakra-ui/react';
import { httpBatchLink } from '@trpc/client/links/httpBatchLink';
import { loggerLink } from '@trpc/client/links/loggerLink';
import { withTRPC } from '@trpc/next';
import { NextPage } from 'next';
import { AppProps } from 'next/app';
import { AppType } from 'next/dist/shared/lib/utils';
import { ReactElement, ReactNode, useMemo } from 'react';
import superjson from 'superjson';
import { AppRouter } from '~/server/routers/_app';
import { SSRContext } from '~/utils/trpc';
import {
  ConnectionProvider,
  WalletProvider,
} from '@solana/wallet-adapter-react';
import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
import { FakeWalletAdapter } from '@solana/wallet-adapter-wallets';
import { WalletModalProvider } from '@solana/wallet-adapter-react-ui';
import { clusterApiUrl } from<EMAIL_ADDRESS>
// Default styles that can be overridden by your app
require('@solana/wallet-adapter-react-ui/styles.css');

export type NextPageWithLayout = NextPage & {
  getLayout?: (page: ReactElement) => ReactNode;
};

type AppPropsWithLayout = AppProps & {
  Component: NextPageWithLayout;
};

const MyApp = (({ Component, pageProps }: AppPropsWithLayout) => {
  // The network can be set to 'devnet', 'testnet', or 'mainnet-beta'.
  const network = WalletAdapterNetwork.Mainnet;

  // You can also provide a custom RPC endpoint.
  const endpoint = useMemo(() => clusterApiUrl(network), [network]);

  const wallets = useMemo(
    () => [
      /**
       * Select the wallets you wish to support, by instantiating wallet adapters here.
       *
       * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
       * That package supports tree shaking and lazy loading -- only the wallets you import
       * will be compiled into your application, and only the dependencies of wallets that
       * your users connect to will be loaded.
       */
      new FakeWalletAdapter(),
    ],
    [],
  );
  return (
    <ConnectionProvider endpoint={endpoint}>
      <WalletProvider wallets={wallets} autoConnect>
        <ChakraProvider>
          <WalletModalProvider>
            <Component {...pageProps} />
          </WalletModalProvider>
        </ChakraProvider>
      </WalletProvider>
    </ConnectionProvider>
  );
}) as AppType;

function getBaseUrl() {
  if (typeof window !== 'undefined') {
    return '';
  }
  // reference for vercel.com
  if (process.env.VERCEL_URL) {
    return `https://${process.env.VERCEL_URL}`;
  }

  // // reference for render.com
  if (process.env.RENDER_INTERNAL_HOSTNAME) {
    return `http://${process.env.RENDER_INTERNAL_HOSTNAME}:${process.env.PORT}`;
  }

  // assume localhost
  return `http://localhost:${process.env.PORT ?? 3000}`;
}

export default withTRPC<AppRouter>({
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  config() {
    /**
     * If you want to use SSR, you need to use the server's full URL
     * @link https://trpc.io/docs/ssr
     */
    return {
      /**
       * @link https://trpc.io/docs/links
       */
      links: [
        // adds pretty logs to your console in development and logs errors in production
        loggerLink({
          enabled: (opts) =>
            process.env.NODE_ENV === 'development' ||
            (opts.direction === 'down' && opts.result instanceof Error),
        }),
        httpBatchLink({
          url: `${getBaseUrl()}/api/trpc`,
        }),
      ],
      /**
       * @link https://trpc.io/docs/data-transformers
       */
      transformer: superjson,
      /**
       * @link https://react-query.tanstack.com/reference/QueryClient
       */
      // queryClientConfig: { defaultOptions: { queries: { staleTime: 60 } } },
    };
  },
  /**
   * @link https://trpc.io/docs/ssr
   */
  ssr: true,
  /**
   * Set headers or status code when doing SSR
   */
  responseMeta(opts) {
    const ctx = opts.ctx as SSRContext;

    if (ctx.status) {
      // If HTTP status set, propagate that
      return {
        status: ctx.status,
      };
    }

    const error = opts.clientErrors[0];
    if (error) {
      // Propagate http first error from API calls
      return {
        status: error.data?.httpStatus ?? 500,
      };
    }
    // For app caching with SSR see https://trpc.io/docs/caching
    return {};
  },
})(MyApp);

same issue for me

Please check out the starter project provided for Next:
https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/nextjs-starter
I just tested this today, so I know it works. You can drag that directory out of the repo, run npm install and npm run dev and it should work.

I could fix it by transpiling modules.. Just put it in next.config.js
`
/** @type {import('next').NextConfig} */
const withTM = require('next-transpile-modules')([
'@solana/wallet-adapter-react',
'@solana/wallet-adapter-base',
'@solana/wallet-adapter-wallets',
'@solana/wallet-adapter-react-ui',
'@solana/wallet-adapter-react-ui',
'@solana-mobile/wallet-adapter-mobile',
'@solana/wallet-adapter-bitkeep',
'@solana/wallet-adapter-bitpie',
'@solana/wallet-adapter-blocto',
'@solana/wallet-adapter-brave',
'@solana/wallet-adapter-clover',
'@solana/wallet-adapter-coin98',
'@solana/wallet-adapter-coinbase',
'@solana/wallet-adapter-coinhub',
'@solana/wallet-adapter-exodus',
'@solana/wallet-adapter-glow',
'@solana/wallet-adapter-huobi',
'@solana/wallet-adapter-hyperpay',
'@solana/wallet-adapter-ledger',
'@solana/wallet-adapter-mathwallet',
'@solana/wallet-adapter-neko',
'@solana/wallet-adapter-nightly',
'@solana/wallet-adapter-nufi',
'@solana/wallet-adapter-phantom',
'@solana/wallet-adapter-safepal',
'@solana/wallet-adapter-saifu',
'@solana/wallet-adapter-sky',
'@solana/wallet-adapter-slope',
'@solana/wallet-adapter-sollet',
'@solana/wallet-adapter-solflare',
'@solana/wallet-adapter-solong',
'@solana/wallet-adapter-spot',
'@solana/wallet-adapter-tokenpocket',
'@solana/wallet-adapter-torus',
]);
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: { images: { allowFutureImage: true } },
output: 'standalone',
productionBrowserSourceMaps: true,
}
module.exports = withTM(nextConfig);
`

Transpiring modules shouldn't be required (the starter project doesn't do this). But glad you found something that worked! I'm going to close this since it's a build config issue.

@jordansexton the starter project does not work.. same issue

Dropping by to say I'm having the same issue. I can even redeploy prior working builds of my project and hit the same failure. Last working deploy seems to be on Tuesday Aug 16.
Haven't been able to find many other leads and no build changes on my end since then.

@jordansexton I'm not sure this solves my problem though.  I won't always be starting with your starter project, so I need to have a way to add the wallet to an existing project.  In addition, the starter project that you have extends tsconfig files that include relative paths to your root project, which makes it harder to pull it out of your project and use it as is.
I guess I just want to get an understanding of what the issue is.  Is it a dependency problem, is it a typescript problem?  VsCode finds the ConnectionProvider fine, but it seems like there is an issue with the export in the esm file.  It looks like someone else opened up a ticket for this as well about 4 hours ago

@jordansexton
The starter project also doesn't work outside of monorepo.
I just removed pnpm-workspace.yaml and tried building a starter project. And then I got errors.

Reopened, but can you thread replies in #532?

Update: https://github.com/solana-labs/wallet-adapter/issues/532#issuecomment-1221687443


The animation is changing the height of the page

The animated circles seem to be changing the height of the page, which ends up moving the scrollbar around. This can cause the page to move with certain positions. The same issue is present with the vibrant-acryl theme but on that repo, issues are disabled.

My apologies for the late response! i have implemented the fix and it should now not occur in either one of the themes. also thank you for letting me know about closed issues. i have opened them :)
PR fixing this:
https://github.com/midikeyboard/vibrant-acryl-fluidd-mainsail-theme/pull/5


Adding page on Architecture and TOC entry

Adds a page on Architecture with diagram and TOC entry

The text in the I/O Runtime Extension B is truncated
Not truncated, the ellipsis is meant to indicate A, B, C... that the extensions can continue. I'll just remove it.


🌱 switch to logicalcluster.v3

Summary
Related issue(s)
Fixes #

do we want to create v2 for this pkg?

do we want to create v2 for this pkg?

mhm, it looks like first we would have to fix the dependency cycle between code-generator (https://github.com/kcp-dev/code-generator/blob/17d4a705cf1535f7864974b7c806f3e56148d6ed/pkg/internal/clientgen/fake_group.go#L58) and client-go, see https://github.com/kcp-dev/code-generator/issues/75 for more info

/assign @sttts

/lgtm
/approve


Bug fix/8701 sr find usage issue for heavy solution

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 3
- Added 2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 3
- Added 1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 3
- Added 1

See the complete overview on Codacy


Workload form saves incorrect settings for workloads with multiple containers

Rancher version: v2.6.8
When users edit workloads with multiple containers, the commands, arguments and environment variables are not populated correctly in the form.
When the selected container is changed, the UI does not switch the command/args/environment variables properly. The view for one container shows the settings that the user entered for a different container.
To reproduce:

Create a Deployment with two containers in the spec, container A and container B. Enter different commands, arguments and environment variables for each container

After the Deployment is created, go to it again and click Edit Config.

Go to the config for container B and see that in the form, all the commands/args/variables for container A have overwritten the values for container B

Click Edit as YAML - you can see that the values for container B are still there.

Click Back to Form - you can see that now the opposite has happened. Both containers are showing the container B values, so it looks like values for container B have overwritten container A.

Expected behavior:

After creating a deployment, you can edit it and see different sets of values for each container

This bug was originally reported in the Rancher Users Slack. https://rancher-users.slack.com/archives/C3ASABBD1/p1662559987818299 The user provided this gif showing the behavior:

Added to the v2.6.9 milestone because it is a regression.

Verified on v2.6-head Commit ID: 68215bc
I tried deployments with two, three, and four containers and after saving them and editing the config they all had the correct commands and variables. Editing as YAML and going back to form also caused no changes on the UI.


Update GCP authentication docs

Changes regarding AN-464 and PR #773.
You will also need to update a picture at airnode/v0.4/grp-providers/guides/build-an-airnode/configuring-airnode.html

@wkande Can this be merged? The functionality already is.

I am merging this now. @amarthadan I added a comment to AN-464: just wanted to know if prettier was giving you issues as I see you make changes packages.json script field.


No option for SES configuration/email like slack configuration when setting up notifications

Summary
There's no option for email/SES configuration when adding notifications, but there is one for slack configuration which makes it a bit confusing on how to add emails(currently we have to type emails, and it takes a while to figure that out) . If there could be same option for emails like slack configuration, it would make user interaction better.

AB#369

Added support in https://github.com/devtron-labs/notifier/pull/7


Demo multithreaded is 10-20x slower

I'm running an M1 Mac with Chrome (Version 92.0.4515.159 (Official Build) (arm64)) and find that both the hosted demo (https://rreverser.com/wasm-bindgen-rayon-demo/) and a locally compiled version do not behave the way I anticipated they would.
single thread: 275ms
all threads: 3000-7000ms
I was expecting the demo to demonstrate the threading capability both by it working and by it being meaningfully faster. If my expectations are misguided, apologies.
I asked others to try. Non M1 Macs are getting results that are 2-6x faster.  This smells like the compiled demo is not behaving properly with M1 architecture.
Is there anything  else I can share that might help better understand this issue?
Thank you!

Yes, someone mentioned it to me some time ago on Twitter and I raised a issue on Chromium repo as it appears that's where the cause is. https://bugs.chromium.org/p/chromium/issues/detail?id=1228686&q=reporter%3Arreverser%40google.com&can=1
Feel free to add any details you have there (or subscribe otherwise).

Any updates on the chromium issue? The link provided gives me a permission denied, and I still notice the same problem in my web app.

Oh I didn't realise it wasn't public.
There has been some progress recently. The current theory is - it appears it's not as much of a bug, but more of a scheduling problem caused by how M1 works. It has 4 cores that are perf cores, while the other 4 are efficiency cores.
navigator.hardwareConcurrency counts all of them and returns 8, but then splitting work equally between those 8 cores results in worse performance than with single thread, because 4 energy-saving cores drag everything down.
Changing number of threads (configurable via initThreadPool) manually to 4 on M1 seems to provide best performance (better than single-threaded and better than 8-threaded).
Unfortunately, I don't have M1 to test this further on and mainly relying on other V8 engineers to dig into that, but you can try this approach in your web app and let me know if it helps.

UPD: I made the issue public.

Thanks, I appreciate it! I see quite a bit of activity on the issue, hope it gets resolved soon.

As I said, it would be also helpful if you tried initializing the thread pool with just 4 threads for now and reporting back if it improves performance in your app.
The more data points, the better :)

Except for the 4 threads problem, it seems like WASM atomics is much slower on M1 compared to my other machines

Please report any issues with atomics on M1 either to the same linked Chromium bug above, or create another one if problems are sufficiently different.
Either way, unfortunately, it's not something I can fix or control from this library.

Ya, I know you can't fix this in this lib. Just thought you worked closely with the guys in Chromium. Thanks, I reported it to the Chromium.

Ya, I know you can't fix this in this lib. Just thought you worked closely with the guys in Chromium. Thanks, I reported it to the Chromium.

Used to work a little more closely, but no longer at Google. Plus, it's still easier to track those things on Chromium issue tracker, rather than ask them to look at random Github repo like this one :)

FWIW I'm happy to report this is finally fixed in Chrome 112.


[mgmt] guestconfiguration release

https://github.com/Azure/sdk-release-request/issues/5141
swagger pr: https://github.com/Azure/azure-rest-api-specs/pull/28832

/azp run prepare-pipelines

/azp run js - guestconfiguration - mgmt - ci

/azp run js - guestconfiguration - mgmt - ci

/azp run prepare-pipelines

/azp run js - guestconfiguration - mgmt - ci

/azp run js - guestconfiguration - mgmt - ci

/azp run js - guestconfiguration - mgmt - ci

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure/arm-guestconfiguration


Include SET-SYMBOLIC module

Branchings with VV0_addr_123:Int in .Set take place. Imported the SET-SYMBOLIC module, which has simplifications for the Set sort.

My guess after 2 failures in a row we need to actually inspect the proofs that are taking longer. Maybe we've introduced a looping simplification.

Locally, all the proofs passed in 75 minutes. I'll look at the simplifications.


[SPIKE] Describe pros and cons using type-graphql

Expected result
It is possible to describe fields by the decorators provided by delivery API:

https://github.com/Kentico/kentico-cloud-js/blob/master/packages/delivery/lib/fields/field-types.ts
https://github.com/Kentico/kentico-cloud-js/blob/master/packages/delivery/lib/fields/field-models.ts

Then implement the functionality to generate the schema by providing the schema definition from the delivery client.

https://19majkel94.github.io/type-graphql/docs/emit-schema.html

Questions to answer:

How to implement this functionality to the delivery SDK?
Is it possible/beneficial to make a separate package for that?
Is it OK to implement the only type generation and let users so implement queries + resolvers for these queries their own? ..suggest an approach

Additional context
Mind the Kentico repository: https://github.com/Kentico/kentico-cloud-graphql-schema-generator/tree/master
Resources

https://github.com/19majkel94/type-graphql
https://medium.com/@19majkel94/graphql-typescript-typegraphql-ba0225cb4bed
https://19majkel94.github.io/type-graphql/

I'm guessing this should be covered somewhere else in our docs, so I'm closing this issue for this SDK.


php artisan route:clear command throws InvalidArgumentException

whenever I try to clear the route caches with rpc endpoint, i get the InvalidArgumentException exception

   InvalidArgumentException

  Attribute [rpc] does not exist.

  at vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:107
    103▕      */
    104▕     public function attribute($key, $value)
    105▕     {
    106▕         if (! in_array($key, $this->allowedAttributes)) {
  ➜ 107▕             throw new InvalidArgumentException("Attribute [{$key}] does not exist.");
    108▕         }
    109▕
    110▕         if ($key === 'middleware') {
    111▕             foreach ($value as $index => $middleware) {

      +2 vendor frames
  3   routes/api.php:28
      Illuminate\Support\Facades\Facade::__callStatic()

      +4 vendor frames
  8   app/Providers/RouteServiceProvider.php:46
      Illuminate\Routing\RouteRegistrar::group()

I can't reproduce the problem you describe. I am using the following versions:
"laravel/framework": "v9.41.0"
"sajya/server": "5.3.0"

Do you have any details?

I amusing the following versions:
"laravel/framework": "^8.75"
"sajya/server": "4.0.5"

My bad, turns out that composer hadn't installed the package properly 😕


Development Build Failure Error - code deploy: 521 - Origin Down!

Hi,
when deploying code via Jenkins (OCAPI used here for code upload and data), getting below error frequently on a development instance, can you please provide inputs on this?
Below is the brief log. Attached full log file
code deploy: 521 - Origin Down!
hudson.AbortException: 521 - Origin Down!
at org.jenkinsci.plugins.osfbuildersuiteforsfcc.deploy.OpenCommerceAPI.unzipCartridge(OpenCommerceAPI.java:927)
at org.jenkinsci.plugins.osfbuildersuiteforsfcc.deploy.DeployBuilder$DeployCallable.invoke(DeployBuilder.java:871)
at org.jenkinsci.plugins.osfbuildersuiteforsfcc.deploy.DeployBuilder$DeployCallable.invoke(DeployBuilder.java:442)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3122)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to build-agent-01
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:1001)
at hudson.FilePath.act(FilePath.java:1070)
at hudson.FilePath.act(FilePath.java:1059)
at org.jenkinsci.plugins.osfbuildersuiteforsfcc.deploy.DeployBuilder.perform(DeployBuilder.java:267)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
... 4 more

+1 , i am experiencing a similar issue, although it appears intermittent. we're getting error 521 response code when uploading data files.

@mukul-kulshrestha On which CLI command are you receiving this? I can see java files referenced. The CLI is implemented in Node, not Java. So is this question related to the CLI at all?

@mukul-kulshrestha is this issue still relevant or can we close it?

@mukul-kulshrestha Quick check-in: were you able to resolve the issue and can we close the ticket?


Terraform Format step fails: exited with code 3, completed with exit code 1

I created a new environment with my existing Terraform configuration and created a pull request to test the Terraform Unit Tests action from this repo.  When it runs, the Terraform Format step fails without much information given:
                Run terraform fmt -check -recursive
                /home/runner/work/_temp/072c7c7a-217c-434b-bcca-602d7f2dfc94/terraform-bin fmt -check -recursive
                AzureVDI.auto.tfvars
                AzureVDI.tf
                OpenAI.auto.tfvars
                OpenAI.tf
                openai-test.auto.tfvars
                main.tf
                modules/openai-test/main.tf
                modules/openai-test/variables.tf
                modules/client-test/main.tf
                variables.tf
                Error: Terraform exited with code 3.
                Error: Process completed with exit code 1.

I can't find any details as to what code 3 denotes other than "it's used because code 1 and 2 are already in use" from 2017.
I know the code is correctly formatted since I've run it locally plenty of times.

Terraform fmt is just checking to see that your terraform code follows the official recommendations for formatting from Hashicorp. (see https://developer.hashicorp.com/terraform/cli/commands/fmt). The code could very well still run just fine even if this step reports a failure (e.g. if you indent differently). You could either:

Just remove this step if you don't care to enforce canonical formatting standards.
Run terraform fmt -recursive locally before pushing up your terraform code. This will reformat the code for all of your files and will let the check pass.


Try to fix #4352.

Fix #4352.
~Guard against dealloc being cleared.~
Actual cause is when numba activate externally-attached cuda context, the Context object is not fully initialized (.deallocations attribute is not setup yet).  This is unrelated to the GC in CPython interpreter.

started smoke test on buildfarm

passed smoke test


Use synckit

Thank you for commenting!
I have already joined the chat (but haven't posted yet). @delucis introduced me to the chat.
Also, in the chat, it seems that @delucis and @Princesseuh have already informed users about this parser, and I'm grateful that I don't need to comment 😄


Add training data for TF1, TF2, and TF3

Add the training data files and a short read me with the training commands

At the moment all the data is being kept outside of version control (in the dropbox folder etc), I'm happy to include this in, just checking that's what you want.

That's fine for now. There was no external backup for two of these files so I put it here for safe keeping.


Porky-Jonathan

Hi! I am a grade 11 student that has recently gotten into computer science! I learned how to code in c++ at a recent hackathon (HawkHacks) and ever since then have been obsessed with learning new things computer science! Recently I came across this ship and I decided to take part. Trying to create a porcupine was definitely hard, as I was brought upon a language I have never seen before. With a ton of googling and reading documentation, I made a randomly generated porcupine in around 5 hours! This porcupine has a random number of scales, and also has a random radius for the angle of where the scales are placed.

It's simple but definitely evokes a hedgehog. Congrats you've earned your Blot. You can order it here.


[WARN] This Redis server's default user does not require a password, but a password was supplied

The url is look like:
redis://user:password@localhost:30000/0
even :
redis://:password@localhost:30000/0
used : new Redis('redis://user:password@localhost:30000/0')
I know, it's just a warning, but I wanna a clean log.
And my redis server needs a password.
"ioredis": "^4.19.2"
node v12.19.0
redis v6.0.9

Issue is still presented

According to the logs, I think the cause is a password is provided to the server whereas the default user doesn't have a password set. Does removing the password part from the URL or the config fix the issue?

The default user has a password in the redis config file.
The log appeared with an user and the default user.
Removing the password from URL doesn't enable connection.
Removing it from config does the thing but a password is wanted for the redis server config.

Hey @lukats 👋 ,
Thanks for the follow-up! However, I still don't get it. The warning [WARN] This Redis server's default user does... is printed whenever ioredis receives replies from the server like ...without any password configured for the default user.
Do you have reproducible steps for it so I can test it on my side?

redis.conf.template:
requirepass {PASSWORD}

dockerfile:
FROM redis:6.0-alpine
ARG password
ENV PASSWORD=$password
COPY redis.conf.template /
CMD sed -e "s/{PASSWORD}/$PASSWORD/g" < redis.conf.template 1> /usr/local/etc/redis/redis.conf && redis-server /usr/local/etc/redis/redis.conf

index.js:
new Redis(`redis://:${process.env.PASSWORD}@<IP_ADDRESS>:6379/0`);

ioredis 5.0.6
Still getting this, [WARN] This Redis server's 'default' user does not require a password, but a password was supplied
I am using sentinel, is this the reason?  requirepass and masterauth these two parameters set in redis.conf same sentinel.conf.
While making connection, providing only  sentinelPassword won't help, you have to add password parameter in options.

Got same issue.

any idea how to fix this?

any fix for it ?

se logro solucionar? [WARN] This Redis server's 'default' user does not require a password, but a password was supplied

@nadris: I have the same error message. Anybody fixed this?

please fix it :/


fix: compatible if PodAvailableConditionsAnnotation already exist dur…

…ing creation

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):
fix #24

[ ] N
[x] Y

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[x] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

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

Comparison is base (f603dea) 66.07% compared to head (dfd9fcb) 64.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
- Coverage   66.07%   64.95%   -1.12%
==========================================
  Files           4        4
  Lines         896      896
==========================================
- Hits          592      582      -10
- Misses        232      239       +7
- Partials       72       75       +3

Flag
Coverage Δ

unittests
64.95% <ø> (-1.12%)
:arrow_down:

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

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


Waiting on new Marvell Card

replacement for an existing card with working 1G interface for management

New card pending 7/10


cargo melpo doesn't compile when in repo root, due to multiple tracing versions

After checking out the repo and running cargo melpo, I get hundreds of errors similar to this:
error[E0659]: `Instrument` is ambiguous
   --> source/kernel/src/services/forth_spawnulator.rs:156:5
    |
156 |     #[tracing::instrument(skip(kernel, vms))]
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous name
    |
    = note: ambiguous because of multiple glob imports of a name in the same module

The issue seems to be that both<EMAIL_ADDRESS>and<EMAIL_ADDRESS>are included in the dependency graph.
When I run the command in the ./sources/melpomene directory, it works.

ugh, that's annoying. we should either try to fix that, or change the cargo alias into a just recipe that cds into the correct directory...

now that mnemos-alloc supports liballoc, we could just cut over to tracing 0.1.x everywhere...


Shortened the shell code.

 Big improvements. I've got lots to learn :) Thank you!


Sandstone: CoR with image sharpness fails if user changes choice of slice

In the sandstone notebook the user is encouraged to try out different slice numbers
However, if they do this, the CoR later fails.
Slice selection is in cell [10]:
filename = "slice_0270_data.mat"  # Slice numbers to choose from: 0270, 0540, 0810, 1080
Failure occurs in cell [37]:
'data5 = CentreOfRotationCorrector.image_sharpness(backend='astra', search_range=100, tolerance=0.1)(data4)'
We need to check all of these slice numbers and only keep the suggestions for ones that we know we can run with the ImageSharpness method

For 0270 CofR.image_sharpness finds Rotation axis position: [44.48700389,  0.        ] but it fails for all the other slices
If I manually apply the same rotation axis position to 0540, the offset artefacts go away so we can assume the centre of rotation should be the same.
If I turn on the CofR.image_sharpness debug.
For 0270 there is a small minimum

With the same settings on 0540, there is also a small minimum in the same position. But it's less than the value away for a very negative rotation offset so it isn't selected by the algorithm.

Tried reducing the data binning in the first search but the algorithm still wants to select a very negative rotation offset. I don't think there's a combination of parameters that will work because increasing the search range increases it in both positive and negative directions.

I'm not sure what is the cause of the 'background' in the debug plot, the y axis is
ag_shift = data.geometry.copy()
ag_shift.config.system.rotation_axis.position = [offset, 0]

reco = self.FBP(ig, ag_shift)(data)
return (reco*reco).sum()

I also tried x_correlation for 0540 and it found
Rotation axis position: [0.08, 0.  ]
which isn't correct either.

This is expected behaviour, image sharpness isn't always expected to work on parallel beam data. It was used because xcorrelation fails in this case. The update #195 closes this issue.