Query customization: Can all where clauses be enclosed in parentheses after they have been added?

Code example
app.service("todos").hooks({
  before: {
    find(context) {
      const query = context.service.createQuery(context.params);
      // Adds an access check. Example "select `todos`.* from `todos` where `text` = ? and `userId` = ?"
      query.andWhere("userId", context.params.user.id);
      context.params.objection = query;
      return context;
    }
  }
});

The above example has a security bug. If the .createQuery(...) generates a query like this:
select `todos`.* from `todos` where `text` = ? or `id` = ?

Then after adding the access check we will get the following query:
select `todos`.* from `todos` where `text` = ? or `id` = ? and `userId` = ?

And this query can return data that doesn't belong to the current user.
To fix this bug, we need to enclose the user-controlled conditions in parentheses:
select `todos`.* from `todos` where (`text` = ? or `id` = ?) and `userId` = ?

But how do I do this with the Objection.js database adapter? I imagine something like this:
const query = context.service.createQuery(context.params);
wrapWhereClauses(query);
query.andWhere("userId", context.params.user.id);

@mikeconley12 createQuery method is meant to be used internally, but in any way, using $or in your context.params.query is the supported way to add OR condition in your query and it will add parentheses around the condition.

@mikeconley12 createQuery method is meant to be used internally.

@dekelev I thought this adapter works like the Knex service adapter and the Knex service adapter has the createQuery method exposed. See Customizing the query in docs.
It would be great to have the same feature here, because this is the only place where I can use SQL subqueries.

I'm not sure what you mean by SQL subqueries. Maybe share your use-case.
You can always call the context.service.find method internally in your
project and achieve the same.
בתאריך שבת, 17 באוק׳ 2020, 14:55, מאת mikeconley12 <
<EMAIL_ADDRESS>
@mikeconley12 https://github.com/mikeconley12 createQuery method is
meant to be used internally.
@dekelev https://github.com/dekelev I thought this adapter works like
the Knex service adapter and the Knex service adapter has the createQuery
method exposed. See Customizing the query
https://github.com/feathersjs-ecosystem/feathers-knex#customizing-the-query
in docs.
It would be great to have the same feature here, because this is the only
place where I can use SQL subqueries.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/feathersjs-ecosystem/feathers-objection/issues/119#issuecomment-710862560,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABB5E3NAKXZ24QOZVP4JPHDSLGA2VANCNFSM4R7EZQWQ
.

I'm not sure what you mean by SQL subqueries. Maybe share your use-case

app.service("events").hooks({
  before: {
    find(context) {
      const query = context.service.createQuery(context.params);
      query.whereIn('calendarId', function() {
        this
          .select('id')
          .from('calendars')
          .where('userId', context.params.user.id);
      });
      context.params.objection = query;
      return context;
    }
  }
});

You can always call the context.service.find method internally in your project and achieve the same

Don't really get it. Could you please explain?

I ment that if you are using createQuery method, which is used internally
by the service find method. So why not just call the find method? The
library was built in a way that if you call the the find method, you can
pass a query param with all sort of supported operators, like $or.
בתאריך שבת, 17 באוק׳ 2020, 15:38, מאת mikeconley12 <
<EMAIL_ADDRESS>
I'm not sure what you mean by SQL subqueries. Maybe share your use-case
app.service("events").hooks({
before: {
find(context) {
const query = context.service.createQuery(context.params);
query.whereIn('calendarId', function() {
this
.select('id')
.from('calendars')
.where('userId', context.params.user.id);
});
context.params.objection = query;
return context;
}
}});
You can always call the context.service.find method internally in your
project and achieve the same
Don't really get it. Could you please explain?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/feathersjs-ecosystem/feathers-objection/issues/119#issuecomment-710901681,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABB5E3JLEZPFJ6YBNFRDPT3SLGF5JANCNFSM4R7EZQWQ
.

So why not just call the find method?

Because I can't use subqueries in the find method

Maybe you can use model's modifiers to use more of ObjectionJS/Knex
features. Check the docs for examples.
בתאריך שבת, 17 באוק׳ 2020, 16:13, מאת mikeconley12 <
<EMAIL_ADDRESS>
So why not just call the find method?
Because I can't use subqueries in the find method
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/feathersjs-ecosystem/feathers-objection/issues/119#issuecomment-710941690,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABB5E3JI2VY6UUDH7U4YSP3SLGJ7FANCNFSM4R7EZQWQ
.

Thanks for the answers!


cue eval incorrectly resolves reference from CUE file to YAML file

What version of CUE are you using (cue version)?

$ cue version
cue version v0.3.0-beta.4 linux/amd64

I installed cue with: GO111MODULE=on  go get -u cuelang.org/go/cmd/cue@master
What did you do?

I tried to run this example: https://github.com/cuelang/cue/discussions/715
There is a file called data.yml with this content:
nodes:
- name: foo
  childs:
  - bar
  - baz

- name: bar
  parent: foo

- name: baz
  parent: foo

And there is the file schema.cue with this content:
import "list"

// We use a hidden field so that this check will not be part of the output.
_checks: {
	// create a map from the list for easy access. We make it a definition
	// to close it, enforcing that a nodes exists for each reference below.
	#map: {for n in nodes {"\(n.name)": n}}

	// create a helper list that checks that
	// 1) for each child name there exists an entry with that name
	// 2) that entry has a parent field
	// 3) that parent field is equal to the child name
	checkChilds: [
		for k, v in #map if v.childs != _|_ for c in v.childs {
			#map[c].parent & k
		},
	]

	// create a helper list that checks that
	// 1) for every parent field there is a node entry with that name
	// 2) that entry contains a reference to the node in childs
	checkParents: [
		for k, v in #map if v.parent != _|_ {
			list.Contains(#map[v.parent].childs, k) & true
		},
	]
}

Then I run cue vet schema.cue data.yml
What did you expect to see?
I would expect not to get any output and the exit code 0.
What did you see instead?
$ cue vet schema.cue data.yml
_checks.#map: reference "nodes" not found:
    ./schema.cue:9:18
$ echo $?
1

Infos
The problem only exists, when the data is in a yaml file. The following works fine:
$ cue def data.yml > data.cue
$ cue vet schema.cue data.cue
$ echo $?
0

If I replace the schema.cue with:
nodes: [...#Node]

#Node: {
	name: string
	childs?: [...string]
	parent?: string
}

And add an mistake in the data.yml:
nodes:
- name: 1 # Mistake: Has to be a string
  childs:
  - bar
  - baz

- name: bar
  parent: foo

- name: baz
  parent: foo

Then it also works as expected:
cue vet schema.cue data.yml
nodes.0.name: conflicting values 1 and string (mismatched types int and string):
    ./data.yml:2:10
    ./schema.cue:1:12
    ./schema.cue:4:8

So the problem only exists, if schema.cue uses a reference from a yaml file

The problem here is that YAML is not treated as a usual CUE file for vet, but as a separate struct to unify, and thus nodes  does not resolve.
Workaround: include a nodes: _ at the top level in schema.cue
This is inconsistent with the behavior of cue eval.  We need to consider what is the right thing to do. In my opinion,  vet is right here and that it is working as intended. Cross-file resolution is only supposed to work across file in the same package. CUE files with an "anonymous" package (no package clause or package _) are intended to be standalone. A YAML or JSON file is equivalent to a CUE file with an anonymous package. This prevents accidental linkage between independent files.
So the bug here is that cue eval does resolve nodes.  As said, one can always introduce a top-level field to refer to get the same result.

This issue has been migrated to https://github.com/cue-lang/cue/issues/736.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Editor behavior

Fixes #540
Fixes #542
The right side of the controls looked too empty without the fullscreen icon. Might need to find something to fill that with. For now, I just added the duration of the video.
Fullscreen behaves the way a native window would
@skllcrn if you have a better idea I'll update

When in fullscreen, you have to hide the custom traffic lights and enable the standard ones. Currently in fullscreen, if I move the mouse to the top of the screen, the titlebar animates down without any traffic lights and it obscures our custom traffic lights, which looks weird.

The traffic lights are much closer to the real ones now, but still not exact. For example, since the traffic lights are used in a dark window, the colors should match macOS dark mode traffic light, so the colors needs to be slightly different (get the colors from my screenshots in #540).
The icons in the button are also slightly off. Here's I have overlaid the Kap traffic lights over the real ones (Kap ones having the black background):

Notice how the position is slightly off and that the icon in the green button should be slightly rounded. And all the icons should be slightly darker.

Am I the only one that found it distracting that we're displaying milliseconds in the duration text? It animates so fast that it just creates noise. We already show milliseconds when you hover over the timeline with a mouse, so I don't think we even need it in the left-side text.

I know I'm adding a lot of unrelated things here, but it's just so inefficient to create a gadzillion new issues for tiny stuff.

[ ] I also think the FPS slider should start at 4. It makes no sense to have FPS below that.

[ ] If the FPS slider has a value of 3. There's no easy way to clear it out to write 4 because of the validation. I expected being able to press Delete when I have a value of 3, and then write 4.

[ ] The Export button is slightly too wide.

[ ] When the width size input shakes from validating invalid input, it slightly overlaps the height input and creates an artifact bug.

[ ] The audio mute icon is larger than the pause icon.

When in fullscreen, you have to hide the custom traffic lights and enable the standard ones. Currently in fullscreen, if I move the mouse to the top of the screen, the titlebar animates down without any traffic lights and it obscures our custom traffic lights, which looks weird.

Sounds good

The icons in the button are also slightly off.

Yeah, I noticed, but when I tried putting them a pixel higher, they were too high.  But I'll see what I can do

Am I the only one that found it distracting that we're displaying milliseconds in the duration text?

Agreed

I know I'm adding a lot of unrelated things here, but it's just so inefficient to create a gadzillion new issues for tiny stuff.

I think it's fine adding them here since the PR addressed that window. I'll work on those as well

Looking into it @sindresorhus!

New custom traffic lights (top is the editor, bottom is Finder in MacOS 10.13 Retina)
@sindresorhus I can't seem to find a way to bring the system buttons back when it's in fullscreen.
I tried using this but it says it's not defined on the window object. There's also no way (from what I can tell) to bring the frame back after creating the window. Thoughts?

New custom traffic lights (top is the editor, bottom is Finder in MacOS 10.13 Retina)

Looks perfect 🙌
I noticed one small behavior difference. The symbols in the traffic lights should only be shown when the mouse is over the traffic lights or between them. Right now they show even if the mouse is some distance below them.

I tried using this but it says it's not defined on the window object.

It's only available in Electron 4. Can you just add a TODO comment in the code about using that API when we use Electron 4?

@sindresorhus I checked the items I completed and are ready for testing. The only one I didn't do is this one:

I also think the FPS slider should start at 4. It makes no sense to have FPS below that.

Especially since validation for fps is not debounced, setting a minimum makes validation harder. For example, when you erase the value and you want to type 14 as soon as you type 1 it's not valid so it will switch it to the minimum (4).
I think we talked about it before with @skllcrn and @albinekb and decided that we can just leave it as is since if fps lower than 4 doesn't make sense, leave it to the users to not select it.
Thoughts?

Can you fix the merge conflict?


Analysis Across Branches?

If I have a branched analysis in aa, can I include modules in the tasklist after the branches and expect the analysis to continue as usual? Specifically, I’m trying to do something like:
<branch>
 	<module>analysis variation 1 </module>
</branch>

<branch>
 	<module>analysis variation 2<module>
</branch>

<module>compare the results of the two approaches</module>

(hopefully my pseudo-xml makes sense). The problem is aa can’t find the output of the branches to use as input to my post-branch comparison, no matter how many permutations of renamestream I try.
The errors I'm getting seem to indicate once a branch is defined in the tasklist, any code appearing after the branch gets treated as if it is replicated inside each branch. That is, the above tasklist gets treated like:
<branch>
 	<module>analysis variation 1 </module>
	<module>compare the results of the two approaches</module>
</branch>

<branch>
 	<module>analysis variation 2<module>
	<module>compare the results of the two approaches</module>
</branch>

Clearly this is no good for my analysis, because I need to compare results across branches.
Is this intended behavior? Is there a workaround?
Thanks much,
Mike

Hi,
Unfortunately, branching is not designed for such usage and branches cannot be merged. Anything written after branching will be applied to all previous branches.
Vale,
Tibor
Auer, Tibor M.D. Ph.D.
Research Fellow in MRI
Department of Psychology
Royal Holloway University of London
Egham
TW20 0EX
United Kingdom
<EMAIL_ADDRESS>+44-1784-27-6594
<EMAIL_ADDRESS>Tibor.Auer<EMAIL_ADDRESS>[royalhollowaylogo]https://www.royalholloway.ac.uk/psychology/home.aspx
From: jones-michael-s<EMAIL_ADDRESS>Sent: Friday, April 28, 2017 5:47 PM
To: rhodricusack/automaticanalysis<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [rhodricusack/automaticanalysis] Analysis Across Branches? (#104)
If I have a branched analysis in aa, can I include modules in the tasklist after the branches and expect the analysis to continue as usual? Specifically, I’m trying to do something like:

    <module>analysis variation 1 </module>

    <module>analysis variation 2<module>

compare the results of the two approaches
(hopefully my pseudo-xml makes sense). The problem is aa can’t find the output of the branches to use as input to my post-branch comparison, no matter how many permutations of renamestream I try.
The errors I'm getting seem to indicate once a branch is defined in the tasklist, any code appearing after the branch gets treated as if it is replicated inside each branch. That is, the above tasklist gets treated like:

    <module>analysis variation 1 </module>

    <module>compare the results of the two approaches</module>

    <module>analysis variation 2<module>

    <module>compare the results of the two approaches</module>

Clearly this is no good for my analysis, because I need to compare results across branches.
Is this intended behavior? Is there a workaround?
Thanks much,
Mike
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/rhodricusack/automaticanalysis/issues/104, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEl8qaeJiiW8VNodq_GMy6YNIAmlGuTBks5r0hgDgaJpZM4NLuNY.

Mike
To compare different pipelines I would put them all in one task list
without branching and then write a comparison module that explicitly
references earlier modules as streams in its XML header (or in the task
list with extraparameters) like this:

aamod_previous_00001.epi
aamod_previous_00002.epi

Does that help?
Rhodri
On 28 Apr 2017 6:08 PM, "Tibor Auer"<EMAIL_ADDRESS>wrote:

Hi,
Unfortunately, branching is not designed for such usage and branches
cannot be merged. Anything written after branching will be applied to all
previous branches.
Vale,
Tibor
Auer, Tibor M.D. Ph.D.
Research Fellow in MRI
Department of Psychology
Royal Holloway University of London
Egham
TW20 0EX
United Kingdom
<EMAIL_ADDRESS>+44-1784-27-6594
<EMAIL_ADDRESS>Tibor.Auer@rhul.ac.uk<mailto:T
<EMAIL_ADDRESS>[royalhollowaylogo]https://www.royalholloway.ac.uk/psychology/home.aspx
From: jones-michael-s<EMAIL_ADDRESS>Sent: Friday, April 28, 2017 5:47 PM
To: rhodricusack/automaticanalysis<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [rhodricusack/automaticanalysis] Analysis Across Branches?
(#104)
If I have a branched analysis in aa, can I include modules in the tasklist
after the branches and expect the analysis to continue as usual?
Specifically, I’m trying to do something like:

analysis variation 1

analysis variation 2

compare the results of the two approaches
(hopefully my pseudo-xml makes sense). The problem is aa can’t find the
output of the branches to use as input to my post-branch comparison, no
matter how many permutations of renamestream I try.
The errors I'm getting seem to indicate once a branch is defined in the
tasklist, any code appearing after the branch gets treated as if it is
replicated inside each branch. That is, the above tasklist gets treated
like:

analysis variation 1
compare the results of the two approaches

analysis variation 2
compare the results of the two approaches

Clearly this is no good for my analysis, because I need to compare results
across branches.
Is this intended behavior? Is there a workaround?
Thanks much,
Mike
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://github.com/
rhodricusack/automaticanalysis/issues/104>, or mute the thread<
https://github.com/notifications/unsubscribe-auth/AEl8qaeJiiW8VNodq_
GMy6YNIAmlGuTBks5r0hgDgaJpZM4NLuNY>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rhodricusack/automaticanalysis/issues/104#issuecomment-298053855,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABfzyUs8zbN1EOeYMH2jf2MvDnnhIOfpks5r0h0FgaJpZM4NLuNY
.

By the way the first stages in your second pipeline may also need to
explicitly reference earlier stages before the first pipeline so that they
don't work on the output of the first pipeline.
On 28 Apr 2017 7:03 PM, "Rhodri Cusack"<EMAIL_ADDRESS>wrote:

Mike
To compare different pipelines I would put them all in one task list
without branching and then write a comparison module that explicitly
references earlier modules as streams in its XML header (or in the task
list with extraparameters) like this:

aamod_previous_00001.epi
aamod_previous_00002.epi

Does that help?
Rhodri
On 28 Apr 2017 6:08 PM, "Tibor Auer"<EMAIL_ADDRESS>wrote:

Hi,
Unfortunately, branching is not designed for such usage and branches
cannot be merged. Anything written after branching will be applied to all
previous branches.
Vale,
Tibor
Auer, Tibor M.D. Ph.D.
Research Fellow in MRI
Department of Psychology
Royal Holloway University of London
Egham
TW20 0EX
United Kingdom
<EMAIL_ADDRESS>+44-1784-27-6594
<EMAIL_ADDRESS>Tibor.Auer@rhul.ac.uk<mailto:T
<EMAIL_ADDRESS>[royalhollowaylogo]https://www.royalholloway.ac.uk/psychology/home.aspx
From: jones-michael-s<EMAIL_ADDRESS>Sent: Friday, April 28, 2017 5:47 PM
To: rhodricusack/automaticanalysis<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [rhodricusack/automaticanalysis] Analysis Across Branches?
(#104)
If I have a branched analysis in aa, can I include modules in the
tasklist after the branches and expect the analysis to continue as usual?
Specifically, I’m trying to do something like:

analysis variation 1

analysis variation 2

compare the results of the two approaches
(hopefully my pseudo-xml makes sense). The problem is aa can’t find the
output of the branches to use as input to my post-branch comparison, no
matter how many permutations of renamestream I try.
The errors I'm getting seem to indicate once a branch is defined in the
tasklist, any code appearing after the branch gets treated as if it is
replicated inside each branch. That is, the above tasklist gets treated
like:

analysis variation 1
compare the results of the two approaches

analysis variation 2
compare the results of the two approaches

Clearly this is no good for my analysis, because I need to compare
results across branches.
Is this intended behavior? Is there a workaround?
Thanks much,
Mike
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://github.com/rhod
ricusack/automaticanalysis/issues/104>, or mute the thread<
https://github.com/notifications/unsubscribe-auth/
AEl8qaeJiiW8VNodq_GMy6YNIAmlGuTBks5r0hgDgaJpZM4NLuNY>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rhodricusack/automaticanalysis/issues/104#issuecomment-298053855,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABfzyUs8zbN1EOeYMH2jf2MvDnnhIOfpks5r0h0FgaJpZM4NLuNY
.

Using a non-branching task list seems to be working. Thanks much!
Mike

@rhodricusack
Would not your solution work even with branched tasklist, when aamod_previous_00001 and aamod_previous_00002 belongs to two branches?

I don't think so, as I think things after a tasklist effectively get added
to each of the individual branches, and so wouldn't be able to see the
other branch.
On 2 May 2017 at 14:56, Tibor Auer<EMAIL_ADDRESS>wrote:

@rhodricusack https://github.com/rhodricusack
Would not your solution work even with branched tasklist, when
aamod_previous_00001 and aamod_previous_00002 belongs to two branches?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rhodricusack/automaticanalysis/issues/104#issuecomment-298643040,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABfzyQ5TRgvtDpW--Jen-pUlEPoN927tks5r1zYegaJpZM4NLuNY
.

--
Rhodri Cusack
www.cusacklab.org
Thomas Mitchell Professor of Cognitive Neuroscience
Trinity College Dublin
College Green
Dublin 2
Ireland

I understand that they are added to each branches, but what do you mean "wouldn't be able to see the other branch"? Would they complain that aamod_previous_ does is not in the tasklist?

Yes, when it searches for outputs from previous stages, it looks back up
the branch, and not into other branches.
On 2 May 2017 at 15:05, Tibor Auer<EMAIL_ADDRESS>wrote:

I understand that they are added to each branches, but what do you mean
"wouldn't be able to see the other branch"? Would they complain that
aamod_previous_ does is not in the tasklist?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rhodricusack/automaticanalysis/issues/104#issuecomment-298645499,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABfzyTYuvTH8v-PMdV6TjpfkbU6qGaY_ks5r1zgkgaJpZM4NLuNY
.

--
Rhodri Cusack
www.cusacklab.org
Thomas Mitchell Professor of Cognitive Neuroscience
Trinity College Dublin
College Green
Dublin 2
Ireland


Change TextField Icon color from onSurface to neutral

As this feedback comment we need to update the color currently used for the Textfield icon/addons

@adevinta/spark-design do you want to check it ?

✅ Reviewed on catalog and now are OK the colors. Thx!


Training example of transformer

Hello,
I am focusing on your nice work and I wanted to know if you performed a quick example about transformer training ?
Best,
Alexis

We haven't got to the training part yet. My plan is to split the video series into 3 parts

[x] Base model development (this is done)
[ ] Dataset preparation (to-do)
[ ] Training and validation (to-do)
[ ] Model deployment and inference (to-do)


Poetry is not working with this plugin when Python 3.8 is used

The pyproject.toml states that the plugin has as dependency Python >=3.8. However, this is not working with python 3.8 because of a missing import.
The effect is that poetry stop working, and this error is shown every time poetry is executed:
'type' object is not subscriptable

By adding this at the beginning of the plugin.py file:
from __future__ import annotations

The plugins tart working again.
It would be nice if the plugin can still work with Python 3.8 instead of increasing the dependency version.

Thanks for your contribution @alejandroclaro !
Your pull-request is merged, I'm closing this issue.


Line 6 of getInferredName.js giving CSP issue for using Function

getInferredName.js line 6 uses Function which is throwing error in CSP. Can anybody please help. I don't want to use unsafe-eval to bypass this error.

Duplicate of #5.


Update kubectl-hyperkube

📊 Metadata *
hyper-kube-config A Serverless API and kubectl plugin providing a storage and retrieval Kubernetes cluster credentials. Hyperkube leverages AWS Secrets Manager for storing credential information.This package is vulnerable for Arbitary Code Execution
Bounty URL: https://www.huntr.dev/bounties/1-other-hyper-kube-config
⚙ Description *
Vulnerable to YAML deserialization attack caused by unsafe loading.
💻 Technical Description *
Fixed by avoiding unsafe loader (useing SafeLodaer instead of Fullloader)
🐛 Proof of Concept (PoC) *
Create the following PoC file:

Execute the commands in another terminal:
xcalc will pop up.
🔥 Proof of Fix (PoF) *

👍 User Acceptance Testing (UAT)
After fix functionality is unaffected.
🔗 Relates to...
https://www.huntr.dev/bounties/1-other-hyper-kube-config

👋 Hello, @sepulworld - @b1nslashsh has opened a PR to us with a fix for a potential vulnerability in your repository. To view the vulnerability, please refer to the bounty URL in the first comment, above.
Ultimately, you get to decide if the fix is 👍 or 👎. If you are happy with the fix, please write a new comment (@huntr-helper - LGTM) and we will open a PR to your repository with the fix. All remaining PRs for this vulnerability will be automatically closed.
If you have any questions or need support, come and join us on our community Discord!
@sepulworld & @b1nslashsh - thank you for your efforts in securing the world’s open source code! 🎉

🔨 Want more security researchers protecting your repository?
Stick our badge on your README.md, and let security researchers know that they can win bounties protecting your repositories. Sounds cool, huh? 😎
Copy this small code snippet and insert it into your README.md:
[![huntr](https://cdn.huntr.dev/huntr_security_badge.svg)](https://huntr.dev)
👇 👇 👇

hey @sepulworld @twonds,
any new updates on this ? 😄
regards ,
muhaimin


CustomPicker does not work in modern React

Seems like there is a problem with CustomPicker higher-order component in React 16+. Can CustomPicker be used in React v16?
Works with React v15.6.1
https://codesandbox.io/s/custom-picker-old-react-forked-o9770
Does not work with React v16.12.0
https://codesandbox.io/s/custom-picker-new-react-ur2z4

Same problem here, would love to have a hot-fix on this.

Commenting getDerivedStateFromProps  in ColorWrap.js has fixed the problem for me

but I am not fully aware of the  root cause, there is one related thread, where it mentioned that there is a dev-dependencies on an older version of react

Root cause is #662 , componentWillReceiveProps can't be changed to getDerivedStateFromProps just like that.
React docs

Note that this method is fired on every render, regardless of the cause. This is in contrast to UNSAFE_componentWillReceiveProps, which only fires when the parent causes a re-render and not as a result of a local setState.

@hzhu @tazhel  if you listen onChange and provide the changed colour to colorpicker through color props then it is working fine, Here is the working  codeSandBox Project forked from your one.

basically it is working in a controlled mode, not in AutoControlled mode or It is kind od providing your own CustomeWrapper over color-picker

Seems like there is a problem with CustomPicker higher-order component in React 16+. Can CustomPicker be used in React v16?
Works with React v15.6.1
https://codesandbox.io/s/custom-picker-old-react-forked-o9770
Does not work with React v16.12.0
https://codesandbox.io/s/custom-picker-new-react-ur2z4

Any solutions on this one?

The same problem with SketchPicker and SketchPicker.
"react": "16.13.1",
"react-dom": "16.13.1",
"react-color": "2.19.3"

Any update on this thread ?

Fix provided in #791


[bug] System tray icon on taskbar disappears when explorer restarts

Describe the bug
On Windows when you create an app with Tauri with a system tray icon and run it, the icon is visible on the system tray in the taskbar. When you restart explorer, the system tray icon disappears. This is problematic when your app runs in the background with no visible window and where the window can only be made visible via the system tray menu. So when explorer restarts, the app is still running but you cannot access it anymore.
The problem is probably caused by Tauri not handling the TaskbarCreated event to register the icon again for the new task bar.
More info about the event can be found here:
https://docs.microsoft.com/en-us/windows/win32/shell/taskbar#taskbar-creation-notification
Another problem related to restarting explorer is when you have set skip_taskbar to true and then restart explorer, suddenly the Tauri app is visible on the taskbar.
On Windows, some applications restart explorer when an update is installed in the background. Therefore it is necessary that Tauri supports this and re-registers the system tray icon when this happens and also handles the skip_taskbar properly.
Reproduction
Create a simple Tauri app with one window with a system tray icon and with a system tray menu where you can close the app and set skip_taskbar to true on the window.
Run the app and notice the system tray icon.
Now restart explorer.exe. You can do this via Task Manager. Run Task Manager, search for "Windows Explorer", select it, and press the restart button at the bottom right.
Notice that Windows Explorer restarts and there is no system tray icon of the Tauri app anymore. Also notice that the app is visible again on the task bar.
Expected behavior
When you have a Tauri app with a system tray icon and where skip_taskbar is set to true, restarting explorer.exe should still show the system tray icon and also it should not make the app visible on the taskbar.
Platform and versions
Environment
  › OS: Windows 10.0.19044 X64
  › Webview2: 103.0.1264.49
  › MSVC:
      - Visual Studio Build Tools 2022
  › Node.js: 16.14.2
  › npm: 8.5.0
  › pnpm: Not installed!
  › yarn: 1.19.1
  › rustup: 1.24.3
  › rustc: 1.62.0
  › cargo: 1.62.0
  › Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
  › @tauri-apps/cli [NPM]: 1.0.4
  › @tauri-apps/api [NPM]: 1.0.2
  › tauri [RUST]: 1.0.4,
  › tauri-build [RUST]: 1.0.4,
  › tao [RUST]: 0.12.1,
  › wry [RUST]: 0.19.0,

App
  › build-type: bundle
  › CSP: default-src 'self'
  › distDir: ../dist
  › devPath: http://localhost:5173/
  › framework: Vue.js

App directory structure
  ├─ .idea
  ├─ .vscode
  ├─ dist
  ├─ node_modules
  ├─ src
  └─ src-tauri

Stack trace
No response
Additional context
No response

Thank you for the detailed bug report and the relevant docs.


Create winamp

Hello,
This pull request fixes #. The main changes are:

Please proceed with a review as soon as all the status checks are valid.

/deploy test

/deploy test


vertx-setup does not add junit

the vertx-setup command does not add junit dependency as part of the generated pom.xml

Fixed by #3.


referencia-tesztelése.md

[Enter feedback here]

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

ID: 823a4e41-1c11-bdb6-8efe-9b50a5c630f0
Version Independent ID: 2ea84238-9763-d95b-9e6a-d11ca0bffba9
Content: Maintenance and updates - Azure Virtual Machines
Content Source: articles/virtual-machines/maintenance-and-updates.md
Service: virtual-machines
GitHub Login: @shants123
Microsoft Alias: shants

@haaami01 Thanks for the feedback! We will review and update accordingly.

@haaami01 Can you please elaborate the issue a bit to assist your better.

@haaami01 Any update on the issue?

We will now close this issue. Please tag me in a comment once you have the requested information. I will reopen the issue and we will continue the discussion.


Fix fixtures for Intel Macs

We transition --cpu to darwin_x86_64 for the fixture tests.

Workflow failure is because #28 isn't merged yet. This change is needed to unblock it.


randNumber auto detect fraction

Description
When using randNumber with min & max options, randNumber will auto-detect if a fraction is needed.
If the fraction option is passed the function will use that value.
Example
// Current state
randNumber({min: 0.1, max: 1}); // 1, we are not passing the fraction option.

// With auto-detect
randNumber({min: 0.1, max: 1}); // 0.1, 0.2, 0.3, ..., 1
randNumber({min: 0.11, max: 1}); // 0.11, 0.12, 0.13, ..., 1
randNumber({min: 0.1, max: 1, fraction: 3}); // 0.101, 0.102, 0.103, ..., 1

Proposed solution
No response
Alternatives considered
No response
Do you want to create a pull request?
No

@shaharkazaz in case randNumber({min: 0.10, max: 1}) produced 0.50, would you expect 0.5 or 0.50 ?

I don't think it is possible to implement and it also breaks single responsibility principle.

@czlowiek488 Can you share what makes you think that's not possible to implement?

It's because JavaScript doesn't recognize 1.0 as decimal.
It will not work in all cases.
Also I personally prefer to have one way of achieving something, it makes all users using the same approach and make codebase consistent. Also you don't need to create additional documentation.

@czlowiek488 I agree that this might cause some confusion around this function. The benefits o in some cases doesn't worth the confusing API.


Refactor and extend CMS-server driver test

I have extended the CMS-Server tests at development of cmake-file-api(7) implementation.
This PR contains

Bug fix in the test infrastructure.
The CI script downloads a CMake version but not all tests used the downloaded CMake version. In some parts the cmake version provided by OS viaPATH environment variable is used.
Extend tests for cmake configure (check error behavior)
Add test for invalid preferred cmake generator (define a expected error behavior)
Prepares test suite for reuse at legacy or file api driver tests.

Thanks @KoeMai !

This should address #641


IPv6 interface configuration: track6 and dhcp6c are mutually exclusive, but should probably not be

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[x] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe.
When using dhcp6c over a PPPoE link, if the ISP hands out IPv6 prefixes only, but no IPv6 interface address (i.e. "send ia-na 0" is not honored), the WAN interface gets no IPv6 assignment at all.
Thus, one is limited to the IPv6 addresses of other interfaces that use "track6".
However, without an IPv6 on the WAN interface, FreeBSD does not honor the "highest address" rule of IPv6 in case that several other IPv6 addresses are available for use as a source address. Thus, you basically have no control over which interface's address will get used for outgoing connections from the firewall itself - e.g., assigning a higher IPv6 prefix ID does nothing.
If you register with a dynamic DNS service, you probably want to identify the IPv6 prefix for a specific VLAN interface. The prefix will be arbitrary, though.
Describe the solution you'd like
It would be nice if track6 and dhcp6c were not mutually exclusive. If the interface configuration that originates from "track6" could also be generated for "dhcp6c" via a GUI checkbox, one could hand out an IPv6 prefix to the WAN interface even if the ISP does not offer a separate IPv6 for the interface itself. In that case, the WAN IPv6 would get used unconditionally before any other IPv6 addresses.
Describe alternatives you've considered
I can see no option to assign IPv6 to the WAN interface in this situation.
Additional context
It would also be nice to be able to use IPv6 privacy extensions from the firewall itself. This is not possible with dhcp6c or track6, I believe.

I think that's what "advanced" is for... check "Identity Association" section of the settings.

The section for "id-assoc pd 0" does not contain the WAN interface, though. The content of that section is exactly described by all interfaces that use "track6". I can only modify the sla-len, but not the interfaces listed there.

Correct. That is my point. My ISP (M-Net) does not honor "send ia-na 0". They give out only a /56 prefix via "send ia-pd 0", but not an additional IPv6 for the PPPoE interface itself. Thus, it would be nice to use part of the prefix range for the PPPoE interface, like I can for all other interfaces.

However, without an IPv6 on the WAN interface, FreeBSD does not honor the "highest address" rule of IPv6 in case that several other IPv6 addresses are available for use as a source address.

How is this tested locally on the command line? I'm happy to test.


Zero byte output file and pure white png

Hi!  When using pgsrip with a BD3D, Walk, the output files are 0 bytes.  After a bit of digging, it appears the PgsImage class is creating an object of all 255.  The rle_data appears to contain data (I don't know how to interpret it).  The pgs in the mkv appear fine since the subtitles work in a player and SubtitleEdit.
I'm stuck on troubleshooting at this point.  I would appreciate any help!  I use pgsrip in my 3D Blu-ray to MV-HEVC (Apple Vision Pro) converter and would love to figure out why this one (and possibly others) do not work.  This issue happens across different machines and with a clean macOS install.  This is running on Python 3.12 on the latest macOS.
Thank you!

You have the file. Did you try debugging in an IDE?

I tried to step through the code, but I got lost.  The sup extracted does convert to text, you can see that here.  I have a zip of the .pgsrip temp folder if you would like me to send that to you for testing.  So far I have only encountered the issue on "Walk". All of the languages produce the same blank white png and zero byte srt.  If you are interested at looking at the temp folder, let me know how to send them.  I think posting it here would be bad since it contains copy written subtitles.


Fix dashes in code examples

I just followed the PowerShell steps in https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install and found a problem in the chapter Install Hyper-V with PowerShell in step 2. Putting that command line into a script results in an error message:
==> default: At C:\tmp\vagrant-shell.ps1:2 char:72
==> default: + ... -WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V â€“All
==> default: +                                                                      ~~~~
==> default: The string is missing the terminator: ".
==> default:     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
==> default:     + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
==> default:

I had a closer look and found that the dash is wrong. This is a typical problem with word processors that "uglify" code blocks into a unusable variant for a copy-paste scenario.
I also replaced all the other wrong dashes with a simple minus sign.
Now the code could be easily copied from the web page into the command line or a script with that problem.

...I wonder which editor fixed our ASCII.  Thank you for this!

I bet it was Word. It converts leading hyphens to en dashes. There isn't an ASCII code for it, so some text editor must have converted it to UTF-8 from Unicode off the clipboard.
Thanks for catching & fixing this!

We had the same issue with FrameMaker before we switched to GitHub Markdown 😀


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_79dd7ca0-1163-44d6-a04f-d9dfccff04c1/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_79dd7ca0-1163-44d6-a04f-d9dfccff04c1.git

Docs Build status updates of commit 721d0a6:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


cost insights: export entity dialog

Hey, I just made a Pull Request!
Makes the entity dialog component a public export.

ProductEntityDialog -> EntityDialog
Dialog will generate error UI instead of throwing an error if supplied an entity without sub-entities.

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Closing this out. There isn't currently a need for this internally due to a refactor.


URL Cleanup

This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
Fixed URLs
Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

[ ] http://www.apache.org/licenses/ with 2 occurrences migrated to:
https://www.apache.org/licenses/ (https result 200).
[ ] http://www.apache.org/licenses/LICENSE-2.0 with 73 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 (https result 200).

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


Update selection.md

Address comments after PR #7695 merged.

@rpetrusha is this good to merge now?


Android ustream

I keep getting the following errors trying to watch ustream.tv/channel/C68tFucrcTa through Android, plays fine in Windows:
21:07:40.845 T:18446744072379432136   ERROR: Failed to load plugin streann:
21:07:40.850 T:18446744072379432136   ERROR:   File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/lib/streamlink/plugins/streann.py", line 14, in
from streamlink.utils.crypto import decrypt_openssl
21:07:40.850 T:18446744072379432136   ERROR:   File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/lib/streamlink/utils/crypto.py", line 4, in
from Crypto.Cipher import AES
21:07:40.850 T:18446744072379432136   ERROR:   File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/lib/streamlink/utils/Crypto.py", line 4, in
from Crypto.Cipher import AES
21:07:40.850 T:18446744072379432136   ERROR: ImportError: No module named Cipher
21:07:44.185 T:18446744072379432136   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'streamlink.exceptions.PluginError'>
Error Contents: [Errno 2] No such file or directory: 'databases/iso639-3.json'
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/addon.py", line 85, in
plugin.run()
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/simpleplugin.py", line 779, in run
result = action_callable(params)
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/addon.py", line 56, in root
streams = session.streams(url)
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/lib/streamlink/session.py", line 424, in streams
return plugin.streams(**params)
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.streamlink/lib/streamlink/plugin/plugin.py", line 246, in streams
raise PluginError(err)
PluginError: [Errno 2] No such file or directory: 'databases/iso639-3.json'
-->End of Python script error report<--

@unlocKing sorry, totally missed this! I'll take a look when I can.

No problem dude..
Would be great if you can get it sorted with the 0.7 release of Streamlink.
Thanks.

I had the same issue on FireTV ARMv7

for
No module named Cipher

you could use Kodi v18 with script.module.pycryptodome
https://github.com/xbmc/xbmc/blob/master/addons/script.module.pycryptodome/addon.xml
but you need to change every import from Crypto to Cryptodome

for
PluginError: [Errno 2] No such file or directory: 'databases/iso639-3.json'

I did not find a way for this when i tried,
it's just to annoying to DEBUG stuff on Android without real root or file access

I just use livestreamer instead of streamlink, since you don't need this other scripts there,
for the plugins that I use its enough.

@back-to I had your streamlink module working as that was using extra files - you have taken it down now from your git.. any chance you and @beardypig can work together on the future development of this?
Cheers!

hm weird i had issues like this aswell on Android,
I abort it since i use livestreamer

the only big differnce was i did split this plugin in two plugins instead of using the lib in the same plugin
https://github.com/beardypig/plugin.video.streamlink/blob/master/addon.py#L6

@back-to Maybe it was the Kodi version you're using, I'm still using Jarvis as that loads live tv streams faster than Krypton.
Do you have your own livesteamer module?

yeah i was on Krypton, i tested v18 today but i had issues there aswell.
Well my livestreamer plugin is like this plugin, but split in two plugins and without the other scripts.
I did not test ustream with livestreamer, not sure if it will work.

@back-to On Android I'm using SPMC 16.70 - has the https and subtitles fix, works really well.
If you get a chance can you test the ustream for me, would really appreciate it.
Cheers!

I solved the Issues with Android

PluginError: [Errno 2] No such file or directory: 'databases/iso639-3.json'

Android has some issues with from pkg_resources import resource_filename
https://github.com/neverreply/script.module.pycountry/commit/275fc760e08cb8160d01f97bb55ac89572e799b6
If i get the path from the Addon itself it works.

ERROR: ImportError: No module named Cipher

https://github.com/streamlink/streamlink/blob/master/src/streamlink/utils/crypto.py
must be renamed to something else
https://github.com/neverreply/script.module.streamlink.base/blob/master/resources/lib/streamlink/utils/cryptofix.py
and after this every import must be rename
# from
from streamlink.utils.crypto import ...
# to
from streamlink.utils.cryptofix import ...

For ustream it will close after 30 sec because of
https://github.com/beardypig/plugin.video.streamlink/blob/master/addon.py#L69
it must be ignored there to get to
https://github.com/beardypig/plugin.video.streamlink/blob/master/addon.py#L81
i think it worked then not sure.
Tested it on NASA stream but its sometimes black so yeah.

I'm currently testing to run streamlink as a service with XBMCLocalProxy
it has still some issues like

like after install/update, it requires a restart 🌊
lag at 1080P60FPS, but thats maybe the Androidbox

https://github.com/neverreply/service.streamlink.proxy

tl;dr
Android is stupid

Great progress..please keep us updated.
The neverreply account is that yours also?


[Docs] Questions about visible_instance_ids

Branch
main branch  https://mmdetection3d.readthedocs.io/en/latest/
📚 The doc issue

visible_instance_ids starts from 0, while bbox_id starts from 1? visible_instance_ids is the list index representing instance?
When training multiview and grounding, only some images are sampled instead of all images. Why are invisible_instance_ids not used to filter invisible GT?

Suggest a potential alternative/fix
No response

Sorry for the confusion caused. visible_instance_ids corresponds to the index of boxes in the gt list, while the bbox_id corresponds to the box id during the annotation process, which starts from 1.
We do not filter invisible GT because we would like to keep the setting more generalizable. Another thing that is interesting to explore is how to choose the input images according to the given prompt. The current setting just follows the simplest setting regarding the input and uses the fixed selected multi-view images.


Added support for postgres column types included jsonb and ability to delete columns

in general should fix #84 and some other issues

@mnoack can we please merge this? Would be really useful.

@cabello manages this repo now. I also note failing tests would be an issue.

I will take a look at this soon 👀


makefile not working on environments with the need to run 'python3'

I'm not sure how to fix this so makefile works on github and on local machines like yours at the same time. You might already be doing this but just change python to python3 for now.


Add directory option to HTTP extract

If an existing folder is given as the destination for an HTTP request, the file will be written to the folder with the same file name it has on the remote server.
This also changes the default parameters for HTTP request retries to more reasonable defaults for a maximum 2 minute wait.

Now that it's merged we'll be able to use the tests in https://github.com/Arbol-Project/gridded-etl-managers/pull/208


uxn: 1.0-unstable-2024-03-08 -> unstable-2024-03-10

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for uxn is: An assembler and emulator for the Uxn stack machine
meta.homepage for uxn is: https://wiki.xxiivv.com/site/uxn.html
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-03-10 in filename of file in /nix/store/fc1hbszd18hxh8ylwsq3hr2rmx7wj07i-uxn-unstable-2024-03-10

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
uxn

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/fc1hbszd18hxh8ylwsq3hr2rmx7wj07i-uxn-unstable-2024-03-10 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A uxn https://github.com/r-ryantm/nixpkgs/archive/368bb6ee581955a7c902f2be0a65a03137c21f20.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/368bb6ee581955a7c902f2be0a65a03137c21f20#uxn

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/fc1hbszd18hxh8ylwsq3hr2rmx7wj07i-uxn-unstable-2024-03-10
ls -la /nix/store/fc1hbszd18hxh8ylwsq3hr2rmx7wj07i-uxn-unstable-2024-03-10/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

2 packages built:

uxn
uxn.projects

Maintainer pings
cc @AndersonTorres for testing.

@NixOS/nixpkgs-merge-bot merge


Add Snapshot Repository support

Is there any appetite for adding support for managing 'Snapshot Repository' configuration to this module?
I've added an 'elasticsearch_snapshot_repository' resource to our fork, albeit on the 0.x branch as that's what we're currently using.
However I could quite easily re-work against master if it was worth it?
Thoughts?

Sure, I'd be open to accepting a PR adding the feature. Like you mention, the PR would be need to updated against current master, and it'd likely need to be worked into the existing pattern for REST-based providers (i.e., refactor to use the elastic_rest.rb base providers to centralize how API calls are made), but I think it'd be a useful addition if you feel inclined to put in the effort. 👍 Nice work on the addition, by the way!

@tylerjl Yeh, I'm game for updating to latest... In-fact it will probably be a much easier implementation... lol...


back to upstream for scalaz-stream

our patch has been included upstream https://github.com/functional-streams-for-scala/fs2/pull/675

https://github.com/scala/make-release-notes/blob/2.12.x/projects-2.12.md lists two scalaz-stream releases, 0.8.3 and 0.8.3a. I couldn't find anywhere the difference is documented, but from git diff origin/series/0.8 origin/series/0.8a in the scalaz-stream repo I guess the primary difference is the scalaz version:
-  "org.scalaz" %% "scalaz-core" % "7.1.4",
+  "org.scalaz" %% "scalaz-core" % "7.2.0",

note that we only have scalaz-stream in the 2.12 community build, not in either 2.11 build, and that our scalaz dependency there is 7.1.x

we disabled running of tests a while back; re-enabling is worth a try, much time having passed

test run https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/487/consoleFull

try again with normal Scala SHA: https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/488/consoleFull

one more: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/489/consoleFull
result: many compile errors, the first one being:
[scalaz-stream] [error] /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.5/project-builds/scalaz-stream-449d857cd8389539d39a64f23f0b8b318748a5b5/src/main/scala/scalaz/stream/Process.scala:117: no type parameters for method apply: (head: scalaz.stream.Process.HaltEmitOrAwait[F,O], stack: Vector[scalaz.stream.Cause => scalaz.stream.Process.Trampoline[scalaz.stream.Process[F,O]]])scalaz.stream.Process.Append[F,O] in object Append exist so that it can be applied to arguments (scalaz.stream.Process.HaltEmitOrAwait[F2,O2], scala.collection.immutable.Vector[scalaz.stream.Cause => scalaz.stream.Process.Trampoline[scalaz.stream.Process[F2,O2]]])
[scalaz-stream] [error]  --- because ---
[scalaz-stream] [error] argument expression's type is not compatible with formal parameter type;
[scalaz-stream] [error]  found   : scalaz.stream.Process.HaltEmitOrAwait[F2,O2]
[scalaz-stream] [error]  required: scalaz.stream.Process.HaltEmitOrAwait[?F,?O]
[scalaz-stream] [error] /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.5/project-builds/scalaz-stream-449d857cd8389539d39a64f23f0b8b318748a5b5/src/main/scala/scalaz/stream/Process.scala:117: no type parameters for method apply: (head: scalaz.stream.Process.HaltEmitOrAwait[F,O], stack: Vector[scalaz.stream.Cause => scalaz.stream.Process.Trampoline[scalaz.stream.Process[F,O]]])scalaz.stream.Process.Append[F,O] in object Append exist so that it can be applied to arguments (scalaz.stream.Process.HaltEmitOrAwait[F2,O2], scala.collection.immutable.Vector[scalaz.stream.Cause => scalaz.stream.Process.Trampoline[scalaz.stream.Process[F2,O2]]])
[scalaz-stream] [error]  --- because ---
[scalaz-stream] [error] argument expression's type is not compatible with formal parameter type;
[scalaz-stream] [error]  found   : scalaz.stream.Process.HaltEmitOrAwait[F2,O2]
[scalaz-stream] [error]  required: scalaz.stream.Process.HaltEmitOrAwait[?F,?O]
[scalaz-stream] [error]        case (append: Append[F2, O2] @unchecked) => Append(append.head, append.stack :+ next)
[scalaz-stream] [error]        case (append: Append[F2, O2] @unchecked) => Append(append.head, append.stack :+ next)
[scalaz-stream] [error]                                                    ^
[scalaz-stream] [error]                                                    ^

specs2 is still using scalaz-stream, not fs2, so we must keep scalaz-stream, so a change having been merged to fs2 doesn't help us. (and having both scalaz-stream and fs2 may be desirable for other reasons, anyway, at least for the time being)

so we must keep scalaz-stream

but if most future action is on fs2, it may not be worth worrying about unforking, running tests, etc, on this one. which is I why I've unassigned myself

specs2 dropped their scalaz-stream dependency (by in-sourcing it), so I think this is no longer relevant


Unusual sign-in location detected - how to handle gmail security problems?

I had error leading to page informing about wrong password or username:
But when I logged in by browser using the same username and password I have seen e-mail from google about suspicious login try. More info on page:

https://support.google.com/accounts/answer/2506340?authuser=5&p=sign_in_prevented_csa2&hl=en&authuser=5&visit_id=636746614951011840-2742808467&rd=1

Unusual sign-in location detected
Why you must complete an additional step to sign in

We've detected that you're signing in from a different location than you normally do, and we want to make sure that someone else isn't trying to access your account.
If you can’t provide the information requested

If you can’t verify your identity by providing the information requested, you can also access your account by resetting your password.
How this additional step protects your account

The additional step at sign in is designed to prevent an unauthorized person who does not know you from accessing your account, even if they've obtained your username and password. While this won't necessarily stop people who know you from accessing your account (for that, try 2-step verification), it's an important measure to keep hijackers who have a long list of passwords from doing malicious things with your account, such as creating spam or accessing and deleting valuable data.
Examples of additional steps

Below are some examples of the additional steps we’ll ask you to complete in order to help verify your identity. Depending on the recovery options you’ve previously set up, some examples might not be applicable to your account.

    Answering your secret question
    Verifying your phone number
    Entering a code we’ll send you via SMS or voice message
    Verifying your recovery email address
    Verifying a previous location from where you’ve signed-in

If you think you should not have been asked to complete this step or have other comments for us, please send us your feedback.

How to prevent occurring this error?

You need to configure an App Password :
https://support.google.com/accounts/answer/185833?hl=en


Keep-alives and connect_timeout bug

Added support for keep-alive in SimpleAsyncClient, also fixed bug where Async connections would close due to connection timeout even after the connection had been established
Decided to not go with the suggested implementation of keeping a pool of _HTTPConnections as it seemed cumbersome to maintain all the state of an object that would (potentially) be overwritten every time.  Decided instead on keeping a queue of streams (essentially sockets) that are reused as soon as they become available.
Streams are keyed in the stream_map with a (scheme,host,port) tuple (or some permutation, i forget)
Client defaults to keep_alive, dead sockets are cycled through if they're dead and not used, when a stream is no longer in use it drops references to the current _HTTPConnection and readies itself for the next one.
Any suggestions/problems/fixes let me know.

How’s progress, NickNeedsAName? This looks like a great feature and you’ve clearly put a lot of effort in. Would be a shame to see this die.

Hah!
Hey. I haven't touched it in a loonnggg time, but I'll give it a look over.
It actually does work, just not for redirects//chunking(apparently?) which
wasn't an issue for my use case so I never really investigated...
On Sat, Jan 14, 2012 at 5:09 AM, Ben Hodgson <
<EMAIL_ADDRESS>
wrote:

Hows progress, NickNeedsAName? This looks like a great feature and youve
clearly put a lot of effort in. Would be a shame to see this die.

Reply to this email directly or view it on GitHub:
https://github.com/facebook/tornado/pull/328#issuecomment-3492029

So, I figured out what the issue with the redirects was, _on_body I was immediately re-allocating the stream if we were keeping things alive, now waiting to that until after the redirect logic.  All the tests are passing, but what's the best way to test that keep-alives are successfully implemented?  I'm currently logging the time the requests take and stuff, but that's somewhat spotty and not always accurate?  I'm also logging if we're using a new stream or the same stream, but then I'd have to add a whole bunch of other logic to pass back whether or not the client is using a new stream? Proobabbblllly not the best way.
Here's the output I'm getting (pinging the '/hello' url in the test cases)
FIRST
0.00143885612488
Subsequent
Using old stream!
0.000962972640991
Using old stream!
0.000978946685791
Using old stream!
0.000932216644287
Using old stream!
0.00092601776123
Using old stream!
0.000967025756836
Using old stream!
0.000934839248657
Using old stream!
0.00092601776123
Using old stream!
Which i'd say is pretty satisfactory for proving that keep-alives are actually working properly, but again, what is there to be actually testing against?

Are there any plans to continue this effort?

There's a newer effort in #1457

I'm not currently working on this, so def go with #1457
https://github.com/tornadoweb/tornado/pull/1457 Ben suggested
On Saturday, November 28, 2015, Ben Darnell<EMAIL_ADDRESS>wrote:

There's a newer effort in #1457
https://github.com/tornadoweb/tornado/pull/1457
—
Reply to this email directly or view it on GitHub
https://github.com/tornadoweb/tornado/pull/328#issuecomment-160332396.

Closing due to age. The latest attempt at this problem is #1622.


fix: github issue link in recipe

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)

Please note any issues this fixes using closing keywords:
fixes: #1

Thanks @iisakkirotko!


Give proper title to the drink water reminder project

Title of drink water reminder project is default title 'Document'. I want to change it to 'H2OTracker'
@zugzwang03 / @harshit-paneri please assign me this issue.

Hey don't create issues on very small changes, you can rather fix bugs on many projects as a whole, but this is way too small for taken as an issue. I overlooked initially.

Hey don't create issues on very small changes, you can rather fix bugs on many projects as a whole, but this is way too small for taken as an issue. I overlooked initially.

Ok! sorry for that, I will keep it in mind next time. But what about README files? Many projects are missing those, so is it okay to add that? @zugzwang03


Automatically add braces or quotations after JSX attributes

For .jsx or .tsx files, WebStorm has a nice feature that automatically adds braces or quotations after JSX attributes. It's on by default too.
Since all attributes accept either string literals expressions in curly braces, this would help a lot of people.
This is how it would work:
// type this
<div className=

// get either this
<div className={}
               ^^ cursor is nicely between the braces

// or get this
<div className=""
               ^^ cursor is nicely between the quotes

In case it comes up, this issue is different from microsoft/vscode#35197. That issue was about auto-completing the braces after typing the opening brace.
This one is about automatically inserting both braces (or quotes).
It would be nice to have the option of quotation marks or braces. I expect most people would want braces so that should be the default.
The setting in WebStorm:

Blog posts on it:
Under "Configurable code completion for JSX attributes" https://blog.jetbrains.com/webstorm/2017/12/webstorm-2017-3-1/

Another possible use case of #25207

@mjbvz happy to prioritize this one, maybe for 4.5? It'd be nice


Load attachment thumbnail to template

With this tiny change, you can use RSS channel to load YouTube videos without API and API KEY. After that you are able to load video thumbnail in template like that:

YouTube RSS channel link is in that format: https://www.youtube.com/feeds/videos.xml?channel_id=UCsFctXdFnbeoKpLefdEloEQ
So JS will be:
$('.youtube-feed').socialfeed({
    rss: {
        urls: ['https://www.youtube.com/feeds/videos.xml?channel_id=UCkhimgIt9ib6NXkIjHfVnVA'],
        limit: 3
    },
    length: 200,
    show_media: true,
    template_html:
        ' \
             \
        '
});

Freshly updated from master (gh-pages) branch.

Hello? Anybody there? :-)

YouTube specific code is not allowed in the general RSS option. You have to add YouTube as a separate social network. Like proposed in #160.


Feature: allow for inclusion of subproject/dobi.yaml

dobi.yaml allows for includes, but those includes are handled as "config fragments". All the relative paths in the included file are relative to the dobi.yaml which includes the file.
In a subproject setup, the paths need to be adjusted so that they are relative to the directory of the file that references them.
I'd like to support both use cases.
My proposal is to add a new field to meta: called subproject: which would act like include: but would handle rewriting all the "known" paths to be relative to file which references them. The fields which include known paths are:

image.context
job.artifact
job.sources
mount.bind
compose.files
meta.include
env.files

Other paths (like image.dockerfile, job.command, etc) are already relative to a context directory, so don't need to be modified.

This sounds promising.  Do you think that the subproject should still be able to be run from within that directory as well as from the parent? Would it still have access to the parent's resources?

Good questions. I think it should be able to run from within the project directory, that would be the major reason to create a separate thing from includes which are not meant to run on their own.
I think that raises another question, which is, should subproject dobi files be allowed to include a meta.project and meta.default. Right now those are not allowed in included files. I'm thinking they should be allowed.

Would it still have access to the parent's resources?

I don't think it would, no. It would have to be able to run self-contained if it were run directly.

Another possible implementation would be to make includes an object instead of just a string. That would let us include other parameters like optional: on the includes:

meta:
  includes:
    - path: subproject_a/dobi.yaml
      update-relative-paths: true
    - path: dobi-local.yaml
      optional: true

Another idea from https://github.com/dnephin/dobi/issues/40#issuecomment-255088427 would be to support remote http urls as the include path.
dobi would download the file and cache it in .dobi/includes/<url>. Each time dobi is run it could use the locally cached copy of the config to include tasks that are common between projects.

Maybe the include field could be either:

a list of filepaths (strings) which use the existing include logic ("fragment" style includes)
a list of objects with the structure:

file: ./path
path-relativity: {file | project}
optional: true

or
url: 'http://...'
cache: { once | always | <duration> }

path-relativity sets how paths in the included files are interpreted. project would be the current behaviour, and file would make them relative to the file which contains the paths.
optional: true makes it so that if a file is missing it's not an error, and will be skipped.
The url type include would let you include a recipe from some url (http for now, maybe git later). cache lets you set how long to cache the downloaded recipe.

I believe this approach would make it straightforward to have a sequence of build files that could either work on a specific sub-project or on the entire parent project as necessary.

@dnephin I think the url is just the case of a file that is not on the local disk.
we just need to check whenever base-path is a url with things like
https://godoc.org/github.com/goware/urlx#Parse
We could also make file optional so dobi would include all yaml files within base-path
file: './dobi.yaml'  | 'blob/master/dobi.yaml' | 'raw/8707e690327ac7113117d6f197a4d51fddf5ed66/.bash.local'
optional: true
cache: { once | always | <duration> }
base-path: {'/usr/dobi/mars-project ' | 'http://github.com/cescoferraro/mars-project' | 'https://gist.github.com/cescoferraro/7fd60083f4f31655d3015d6d959938f5' }

We should also make file optional so dobi would include all yaml files within base-path.
So we could do something like
includes:
  -  base-path: {'http://github.com/dobi/dobi-templates/blob/master/golang'}
     cache: { once }
  -  base-path: {'http://github.com/xxx/yet-another-dobi-templates/blob/master/react'}
     cache: { once }

goware/urlx looks very cool, thanks for the link! I've needed something like that a couple times before, so I will be sure to make use of it.
I agree that the url case is very similar to the file case, but I think there are some differences.
Files never need to be cached, they are already available offline and are always (relatively) fast.
Urls can be cached so that they don't slow down the build, and can be used offline.
If that's the only difference then maybe we could just combine them into the same config object, and just warn if someone uses file with cache.
Maybe cache is the wrong name for the field. I think it should match the same behaviour as we have with pull:, so once means "cache forever", and always means "never cache". So if we change the key to fetch maybe that will be more clear.
I like your suggestion for base-path. That's a much better key name. We could allow some tokens that have special values, so that we don't have to repeat paths. Something like RELATIVE could mean all paths in the config are relative to the config file. Then if the config file is just a fragment using . would do the right thing.
I don't think accepting urls in base-path will work though, since these paths need to exist locally.

dobi would download the file and cache it in .dobi/includes/. Each time dobi is run it could use the locally cached copy of the config to include tasks that are common between projects.

@dnephin  I think dobi should just include file system files unless the  cache is set to always.
Then if file is a url it would download it from {base-path}/{file}  to  .dobi/includes/{file}
When it not an url we copy from {base-path}/{file} to .dobi/includes/{file}
Maybe a better name for cache would be local-cache.
So 'once' would copy/download it locally and use it as long as it exists at .dobi/includes/{file}.
And 'duration' would compare .dobi/includes/{file} metadata.
If is set to 'always', we point to the file-system location or include http.response body into the dobi.yaml
I cannot forsee any use case for a optional include. IMHO you either want it or you dont.

Ya, that sounds right for caching.
For optional the use case is user overrides. I might have some personal tasks that I want to run that don't make sense as part of the project config. An optional include of user-dobi.yml would allow each developer on a project to include their own tasks, without having to make it part of the project.
I'm sure there are other cases as well, were you have a dobi config that isn't part of the project, but you want to optionally include if it exists.

If is set to 'always', we point to the file-system location or include http.response body into the dobi.yaml

Thats is wrong, if the the thing is called local-cache
'always' should try to copy/download regardless of the presence of .dobi/includes/{file} and should not error if it fails to get it as long as there is something at .dobi/includes/{file}
'never' should point to the file-system location or include http.response body into the dobi.yaml

Any updates on this one? This feature would be really handy on systems where the dobi.yaml gets very huge (e.g. multiple build stages).

Hey there,
I know, this discussion is now 3 years old, but can someone please (@dnephin, @cescoferraro) give me the essence of the latest ideas to implement this. It might be possible for me to contribute a PR.
Currently we are looking for a generic way of doing this the subproject thing. The subproject feature could prove quite useful.

Hi,
As a new user of dobi, I'd also like to add my +1 to this issue, I'm at the point where I would find this useful and would enhance the power of dobi quite significantly.
I'm not literate in Go so unable to contribute though I won't rule out dipping my toe in.
Thanks.


fix doxygen error of basic_json::get()

@ref command do not  seems to work in markdown code span. so i change
`void from_json(const  @ref basic_json&, ValueType&)`

into
`void from_json(const ` @ref basic_json`&, ValueType&)`

are there better solution for this problem?

The mentioned functions are not meant to be linked in the first place, because they are most likely in the client's code - it can be any from_json function based on ValueType. I'm not sure whether fixing this so that basic_json can be clicked brings too much value here.

Coverage remained the same at 99.722% when pulling dfa371c436fa14926544eb11f3207d0439cd2c43 on zhaohuaxishi:doxygen_error into 9b764ee5d671b41255d390ab9089f12036b2d38a on nlohmann:develop.

is that means the @ref command should just be removed then.

Coverage remained the same at 99.722% when pulling b8dff3bc1674acb6a30cd733ecae545b93b1baeb on zhaohuaxishi:doxygen_error into 723c87560459eaacb3e3b3f0d4666bd2d02be317 on nlohmann:develop.

Coverage remained the same at 99.722% when pulling b8dff3bc1674acb6a30cd733ecae545b93b1baeb on zhaohuaxishi:doxygen_error into 723c87560459eaacb3e3b3f0d4666bd2d02be317 on nlohmann:develop.


Typo Update .golangci.yml

Typo updated

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

Caution: this user is a security researcher attempting to extract CI secrets.

Hi @hawkinsp, Yes. This check is part of a CI/CD security bug responsible disclosure process, adhering to a non-intrusive approach in full compliance with the terms of Google VRP. All Google's open source projects are in the scope of Google VRP (https://bughunters.google.com/about/rules/open-sourc). Any successful exploit will be reported ethically through Google VRP. If you have any questions, please feel free to contact me via my GitHub email or through the contact information provided in the OSS CLA.


SQL Bindings remove password enter manually prompt

This PR fixes #19345 and fixes #19342.
Remove the prompt since we already ask if the user wants to include the password or not in the connection string.
If user does not include password in connection string we show them this warning message:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 5 (20.0%)  changed or added relevant lines in 2 files are covered.
42 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.01%) to 42.075%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/sql-bindings/src/services/azureFunctionsService.ts
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/sql-bindings/src/services/azureFunctionsService.ts
42
7.14%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
27927

Relevant Lines:
62075

💛  - Coveralls


how to signal done in then operation?

currently we can signal a value by returning or an error by throwing, but how do we signal that we are done (are cancelled)?

then now supports returning a Result object, which it will unwrap.


[cherry-pick][branch-2.5-pintererst][Enhancement] Add a check about accessible of BE ports before remove the blacklist(31750)

Currently, the backend will be added to the blacklist when encountering a RPC error. But removing it from the blacklist only takes the Heartbeat port into consideration. This pull request adds a check for all ports(BE port, BE BRPC port, BE HTTP port). If one of the ports is not accessible, it will not be removed from the blacklist.

[FE Incremental Coverage Report]
:disappointed: fail : 16 / 27 (59.26%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/qe/SimpleScheduler.java
8
16
50.00%
[252, 253, 255, 257, 259, 298, 304, 305]

:large_blue_circle:
com/starrocks/common/util/NetUtils.java
8
11
72.73%
[94, 98, 99]

[BE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)


NPM Error Message not sure what it means

I keep getting the error message below and I'm not sure how to fix it. I have nvm on my computer and can run npm commands. I tried running npm commands in hyperterm and they worked so not sure how to fix this. (not to familiar with terminal things.)

Duplicate of #106 and #89


Cupy's searchsorted sometimes deviates from numpy's outcome

Description
See reproduce code below.
To Reproduce
In [286]: np.searchsorted(np.arange(1, 3, 0.1, dtype=np.float64), np.array([2], dtype=np.float64), side="right")
Out[286]: array([10])

In [287]: cp.searchsorted(cp.arange(1, 3, 0.1, dtype=np.float64), cp.array([2], dtype=np.float64), side="right")
Out[287]: array([11])

Installation
Wheel (pip install cupy-***)
Environment
OS                           : Linux-5.4.0-128-generic-x86_64-with-glibc2.31
Python Version               : 3.10.11
CuPy Version                 : 12.1.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.23.5
SciPy Version                : 1.10.1
Cython Build Version         : 0.29.32
Cython Runtime Version       : 0.29.35
CUDA Root                    : /home/rice/miniconda3/envs/rapids-23.04
nvcc PATH                    : None
CUDA Build Version           : 11080
CUDA Driver Version          : 11080
CUDA Runtime Version         : 11080
cuBLAS Version               : (available)
cuFFT Version                : 10900
cuRAND Version               : 10300
cuSOLVER Version             : (11, 4, 1)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 8)
Thrust Version               : 101501
CUB Build Version            : 101501
Jitify Build Version         : 4a37de0
cuDNN Build Version          : (not loaded; try `import cupy.cuda.cudnn` first)
cuDNN Version                : (not loaded; try `import cupy.cuda.cudnn` first)
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA GeForce RTX 3080 Ti
Device 0 Compute Capability  : 86
Device 0 PCI Bus ID          : 0000:29:00.0

Additional Information
Numpy enviroment:
blas_info:
    libraries = ['cblas', 'blas', 'cblas', 'blas']
    library_dirs = ['/home/rice/miniconda3/envs/rapids-23.04/lib']
    include_dirs = ['/home/rice/miniconda3/envs/rapids-23.04/include']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
blas_opt_info:
    define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
    libraries = ['cblas', 'blas', 'cblas', 'blas']
    library_dirs = ['/home/rice/miniconda3/envs/rapids-23.04/lib']
    include_dirs = ['/home/rice/miniconda3/envs/rapids-23.04/include']
    language = c
lapack_info:
    libraries = ['lapack', 'blas', 'lapack', 'blas']
    library_dirs = ['/home/rice/miniconda3/envs/rapids-23.04/lib']
    language = f77
lapack_opt_info:
    libraries = ['lapack', 'blas', 'lapack', 'blas', 'cblas', 'blas', 'cblas', 'blas']
    library_dirs = ['/home/rice/miniconda3/envs/rapids-23.04/lib']
    language = c
    define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
    include_dirs = ['/home/rice/miniconda3/envs/rapids-23.04/include']
Supported SIMD extensions in this NumPy install:
    baseline = SSE,SSE2,SSE3
    found = SSSE3,SSE41,POPCNT,SSE42,AVX,F16C,FMA3,AVX2
    not found = AVX512F,AVX512CD,AVX512_KNL,AVX512_KNM,AVX512_SKX,AVX512_CLX,AVX512_CNL,AVX512_ICL

The input array is not monotonically increasing, as per numpy documentation
https://numpy.org/doc/stable/reference/generated/numpy.searchsorted.html
Input array. If sorter is None, then it must be sorted in ascending order, otherwise sorter must be an array of indices that sort it.

I think in this case NumPy behavior is undefined.

@emcastillo Thanks for your reply. Maybe I am wrong about what kind of array is "monotonically increasing", would you please elaborate a little more about why the input array np.arange(1, 3, 0.1, dtype=np.float64)  is not monotonically increasing as you said, it's indeed in strictly ascending order.

Sorry, I didn't check it properly and mistook the arange for a [1, 3, 0.1] array. This seems like a bug indeed...

This is not an issue with searchsorted, argubaly is a NumPy issue (but one that has eluded really attacking).  If you do the same thing with:
with np.printoptions(precision=17):
    ...

you will see that the difference is that NumPy doesn't hit 2.0 exactly, because the 0.1 step is not precise in floating point.  Cupy's arange behaves slightly different (better, I am sure, because NumPy's is weird).
If you use linspace the difference will go away.

@seber, thanks for the detail, indeed if stick to numpy's searchsorted description strictly, this exampe should give 11 instead of 10.


Delete /trader subfolder on each run

Change default workflow by:
if trader folder exists but don't match specified_version
   delete /trader

if trader folder does not exist:
   git clone specified_version

Addressed in https://github.com/valory-xyz/trader-quickstart/pull/188


DAO layer

Hi,
first of all, thanks for this great library.
I was wondering if you are still working on #2 and #1  because I have started my own approach by introducing a DAO layer: https://github.com/sockeqwe/sqlbrite-dao
The idea is to have a DAO base class that already provides a SQL Builder like discussed in #2 with pure sql language support and additionally a little annotation processor to map the data from a cursor to real object. Please note that it is not a ORM nor provides it's own query language for resolving relations. The goal is to write pure sql queries (you don't have to learn another library specific query language) and reduce writing boilerplate code for iterating over a Cursor (this is done by annotation processing).
But before I put more effort into this project, I wanted to ask you if you already work on your own solution for that?
If you are interested in my solution:
There is a DaoManger which extends from SQLiteOpenHelper and kind of represents a database. Internally it instantiates SqlBriteinstance which gets "injected" to the registered  DAOs. A Dao  represents a database table.
public class CustomerDao extends Dao {

  @Override public void createTable(SQLiteDatabase database) {
    CREATE_TABLE(
                 Customer.TABLE_NAME,
                 Customer.COL_ID + " INTEGER PRIMARY KEY NOT NULL",
                 Customer.COL_FIRSTNAME + " TEXT",
                 Customer.COL_LASTNAME + " TEXT")
    .execute(database);
  }

  @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
  }

  public Observable<List<Customer>> getCustomers() {
    return query(

               SELECT(Customer.COL_ID, Customer.COL_FIRSTNAME, Customer.COL_LASTNAME)
               .FROM(Customer.TABLE_NAME)

           ).map(new Func1<SqlBrite.Query, List<Customer>>() {
                    @Override public List<Customer> call(SqlBrite.Query query) {

                          Cursor c = query.run();
                          List<Customer> customers = CustomerMapper.asList(c); // Annotation Processing
                          return customers;

                      }
           });
  }

  public Observable<Long> insert(int id, String firstname, String lastname) {

    ContentValues values = new ContentValues();
    values.put(Customer.COL_ID, id);
    values.put(Customer.COL_FIRSTNAME, firstname);
    values.put(Customer.COL_LASTNAME, lastname);

    return insert(Customer.TABLE_NAME, values);
  }
}

To repeat my question: Do you work on or have plans to provide a first party solution by your own?

By the way: Maybe the annotation processor based "ObjectMapper" could be of interest regarding #1

Our solution to this is https://github.com/square/sqldelight and efforts around higher-level object mapping, migrations, etc. will be focused there.

:+1:
Awesome solution for that!


Crash when using SwiftPM

I recently experienced a crash.
I installed it using SwiftPM but it crashed. It's release build, not debug build.
To test this, I ran a manual / Cocoapods installation. But there was no problem.
So I reinstalled with Cocoapods.
Some other libraries(e.g. Parchment)  had same issue. Using generic seems to be the problem.

Hey @ymkim50, thank you so much for reporting this! I wonder why generics would make it crash only when using SPM, though. What version of Swifty do you use? What Xcode/Swift version? And finally, are you able to provide some error logs from the crash maybe? Would really appreciate it.

I use Swift 5.0, Xcode version is 11.2.1 and crashed only Release. Currently, I change project to using Cocoapods. I found several libraries was crashed when using SPM. I think this is not a problem with SwiftyUserDefaults, but a problem with SPM.
It's other crashed library issues:
https://github.com/rechsteiner/Parchment/issues/398

Please refer to the following link:
https://bugs.swift.org/browse/SR-11564?focusedCommentId=51285&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-51285

@ymkim50 thank you so much for updating the issue! Really appreciate it. The bug itself is really bad, but I’m not surprised anymore.


queries on creating dbaora file and connecting to database

[Enter feedback here]
Hi Team,
Thanks for this article which helped me create a new oracle databases. But, It would be great to include some details details that help everyone.

how to create a dbaora file specified in the step 3 under "Automate database startup and shutdown" section
how to connect to the oracle database and which user name and password to be used?

Regards,
Jagadeesh
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 279359a4-139a-ee4b-027b-4f43c538b90f
Version Independent ID: 950014e2-2457-6045-eefd-865bd1c1fb76
Content: Create an Oracle database in an Azure VM - Azure Virtual Machines
Content Source: articles/virtual-machines/workloads/oracle/oracle-database-quick-create.md
Service: virtual-machines
Sub-service: oracle
GitHub Login: @Dbakevlar
Microsoft Alias: kegorman

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

@bnagajagadeesh
Please go through below links;
Question 1: Answer - https://docs.oracle.com/en/database/oracle/oracle-database/18/ntqrf/automatic-startup-and-shutdown.html#GUID-49BAB485-D7FE-4487-BA48-04F5C06ACEA9
Question 2: Answer - https://docs.oracle.com/cd/E18283_01/appdev.112/e10766/tdddg_connecting.htm
=====================================================================
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as convenient to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
If there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

Thanks, Sourav for sharing the above links.
I've checked first one and still not clear on how to create a dbaora file suggested in the article. I've used "VI" command to create dbaora file with the contents provided in the article. This might be very trivial for those work with Linux OS.
On the second response, I've an idea on how to connect to a oracle database. But, I'm not sure which user that I can use to connect to Oracle database. I was able to connect using the user System and password OraPasswd1


Remove duplicated line of quote from app.js

The quote was appearing twice on the page, so I removed the duplicate line from app.js to fix the issue.

Hello,
I hope this message finds you well. I wanted to reach out and express my appreciation for the opportunity to contribute to your project. Your project is valuable and interesting to me, and I enjoyed working on the issue I fixed. I found the project documentation to be clear and helpful, which made it easy for me to understand the codebase and make contributions. I look forward to continuing to contribute to the project and seeing it grow and evolve over time. Thank you again for your work on this project and for providing a welcoming environment for contributors like me.
Best regards,
[Tidjani]


[AMORO-2509] Rollback the trigger condition of minor compaction

Why are the changes needed?
close #2509 improve 1
Brief change log

Remove the condition (rewritePosSegmentFileCount > 0)

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@zhongqishang
I noticed that you added an implementation plan: Add new logic for EQ-DELETE same with POS-DELETE, Add new config. in #2509.
I would like to have a discussion about that.
If the insert file is associated with any equality delete file, it will trigger minor optimizing as equality delete files are now uniformly considered as small files.
If the insert file is only associated with one position delete file, major optimizing will be triggered based on the size of the position delete file.
In the case where the insert file is associated with multiple position delete files, although they are determined to require rewriting the position delete file, the triggering conditions for this scenario are not covered.
I assumed that what you are describing is this scenario. If yes, I agree that new triggering conditions should be added for this scenario, and it should be considered as minor optimizing. However, using only rewritePosSegmentFileCount > 0 as a condition at this stage is indeed inappropriate, as it also covers cases with any equality delete files.


Bug with const keyword

Describe the bug
When const keyword is placed to the right of the type keyword, it launch an norm error.
Erroneous code
Prototype :
int    execute_cmds(t_cmd const *const *cmds, char *envp[]);
Norm error :
MISSING_IDENTIFIER   (line:  29, col:  41):	missing type qualifier or identifier in function arguments
Additional infos

OS: Ubuntu 20.04.2
python3 --version: Python 3.9.0
norminette -v: 3.1.0

You have a syntax error in your protoype.
But it seem to work (v3.1.2):
int	execute_cmds(t_cmd const *cmds, char *envp[]);

int execute_cmds(t_cmd const *cmds, char *envp[]);
But i want a pointer to a constant pointer to a constant t_cmd.
clang and gcc with -Wall -Wextra -Werror does not show any syntax error

My bad, I through it was a wrong copy paste.
That way ?
int	execute_cmds(t_cmd *const *const cmds, char *envp[]);

const double *const *const cp1 = arr;
//                         ^ cp1 is ...
//                  ^ a const pointer to ...
//           ^ a const pointer to ...
// ^ a const double

https://stackoverflow.com/questions/47854238/c-const-double-pointer


[In-App Reporting] Scheduled generation of MeasureReport view using the current UX to display Indicator results

Is your feature request related to a problem? Please describe.
Periodically generate and store MeasureReports for the precious months from current from when the data collection in the app began.
Describe the solution you'd like
All MeasureReports from the precious past months should be generated in the background and do not need to be recomputed unless manually triggered/initiated. This will be less common unless there are constant updates to previously collected data
Describe alternatives you've considered
#1758
Additional context
This should be a background tasks that occurs either at specified times in the course of  the day either at the end of each day and then give the user a notification once all the measure have been successfully computed/recomputed

Clarification required

How should prompt the recomputation of a measure indicator in case the user edits/updates previously stored data?

Ticket is complete as per MVP requirements


Don't give me access

Subject: Don't give me access
Description:
Completing the registration
Results:
Signs error!
I need to finish registration
Backend version: develop-53223cb2
Frontend version: develop-53223cb2
User Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Mobile Safari/537.36
Page: https://couchers.org/signup
User:

can't reproduce


@ReactiveFeignClient configuration support

Hi there,
I'm trying to configure  different Feign clients using the @ReactiveFeignClient annotation. I need to add e.g. a different Authorization Header for each one.
Seems that the annotation is skipping whatever is in the configuration attribute (@ReactiveFeignClient configuration=FooConfig.class), although if the FooConfig creates any injectable Bean into Spring context(e.g. Decoders, Interceptors, etc), it takes it properly and everything works.
The problem is that those Beans are used anywhere no matter the configuration class set in the annotation. @FeignClient works in an isolated way and it let specify one specific config for each type of client.
Maybe I could not find the way to do so, could you please advice on this?

Finally I realized that the way to configure this is to add in the configuration list all the necessary classes instead of a just one with all of them(as it used to be with @FeignClient).
Fortunatelly even if that class is not a @Bean, it has access to Spring context.
So, there is no issue on that.


Not recognising correct answer

Challenge adjust-the-width-of-an-element-using-the-width-property has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Google

Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.

      Larry Page
      Sergey Brin

Closing as duplicate of https://github.com/freeCodeCamp/freeCodeCamp/issues/12687. Happy coding!