text:
macOS build error

Error: /usr/local/bin/node exited with code 1
Output:

> @paulcbetts/system-idle-time@1.0.5 install /Users/lei/project/electron/talk/node_modules/@paulcbetts/system-idle-time
> node-gyp rebuild

  CXX(target) Release/obj.target/system_idle_time/src/module.o
  CXX(target) Release/obj.target/system_idle_time/src/mac/idle.o
  SOLINK_MODULE(target) Release/system_idle_time.node

Error output:
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/system_idle_time.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp.js" "rebuild"
gyp ERR! cwd /Users/lei/project/electron/talk/node_modules/@paulcbetts/system-idle-time
gyp ERR! node -v v11.2.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @paulcbetts/system-idle-time@1.0.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @paulcbetts/system-idle-time@1.0.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/lei/.npm/_logs/2019-07-16T07_00_00_331Z-debug.log

    at ChildProcess.childProcess.once.code (/Users/lei/project/electron/talk/node_modules/builder-util/src/util.ts:244:14)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:978:16)
    at Socket.stream.socket.on (internal/child_process.js:395:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:616:12)
From previous event:
    at _rebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
    at rebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/out/util/yarn.js:163:19)
    at /Users/lei/project/electron/talk/node_modules/app-builder-lib/src/util/yarn.ts:20:11
From previous event:
    at _installOrRebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/out/util/yarn.js:71:28)
    at installOrRebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/out/util/yarn.js:55:28)
    at /Users/lei/project/electron/talk/node_modules/electron-builder/src/cli/install-app-deps.ts:58:9
    at Generator.next (<anonymous>)
    at processImmediate (timers.js:632:19)
From previous event:
    at _installAppDeps (/Users/lei/project/electron/talk/node_modules/electron-builder/out/cli/install-app-deps.js:177:26)
    at installAppDeps (/Users/lei/project/electron/talk/node_modules/electron-builder/out/cli/install-app-deps.js:146:26)
    at then (/Users/lei/project/electron/talk/node_modules/electron-builder/src/cli/cli.ts:49:19)

How do I solve it？

This issue appears again and again. Exactly the same error for me

What does the command sw_vers return?

you might need to upgrade, or reinstall your xcode (or xcode commandline tools).

The Pandas team did this: https://github.com/pandas-dev/pandas/issues/23424#issuecomment-446393981

I'm going to close this as 'answered'. It's not a node-gyp issue.

@bnoordhuis if it's not a node-gyp issue, maybe you can provide us with more details? or point to the FAQ where's explained how we can overcome it? it's a terribly bad situation and everybody continue blaming node-gyp for such unintuitive log.

I'm going to close this as 'answered'. It's not a node-gyp issue.

What issue is it then?

I ran into this issue also when trying to build a working ionic-2 project after upgrading to Catalina from High Sierra.  Everything worked fine on High Sierra but when I upgraded I ran into the issue described by  stoneWeb when doing the initial
npm install to install all the packages needed for my project.
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
After spending a whole day trying to figure out another "correct" mix of updated node module versions to pull, it came down to either patching a bunch of node modules or figuring out a way to convince clang to use the more recent version so I ended up writing a quick 'C' program to execute clang++ with updated parameters - basically overriding any passed in  arguments with -mmacosx-version-min=10.5 or something old and changing it to -mmacosx-version-min=10.9 dynamically without me having to patch various node modules.
See the attached program.
To use it just build it with something like:
gcc clang_force.c -o clang_force
then copy it to /usr/local/bin
cp clang_force /usr/local/bin
then change the CXX environment variable to use it.
export CXX=/usr/local/bin/force_clang
That's it.  Then just do the npm install again and everything is good.  Hope someone finds it useful.
clang_force.c.zip

For those who hit this via Google: Updating to a newer version of Node seems to fix the problem for me.

For this particular project we were forced to stay at the version of node we were at due to legacy compatibility issues...

I was able to get around this by running the following prior to npm install:
export CPPFLAGS="-stdlib=libc++ -mmacosx-version-min=10.9"
export CFLAGS="-stdlib=libc++ -mmacosx-version-min=10.9"
export LDFLAGS="-mmacosx-version-min=10.9"

authors: bnoordhuis cclauss iamkarlson mikaey nfranzmeier rinogo rvagg spartan-jack stoneWeb

repo: nodejs/node-gyp


text:
What is required to be install for win7 x64?

I've installed python 2.7.8
My question is if I install Microsoft Visual Studio C++ 2012/13 express, should I install Windows 7 64-bit SDK or compiler update for the Windows SDK 7.1?

@littlee I also write code on win7 x64, what I installed are as follows: node 0.12.7, node-gyp 2.0.2, python 2.7, vs2013. The above is enough for node-gyp :)

Readme.md mentions Windows 7 64-bit SDK, but exactly what components are needed ? I don't want to install unnecessary stuff in my environment.

README has all this info now

source: gharchive/issue

authors: blue-lightning hwoarangzk littlee rvagg

license: mit

license_type: permissive

license_source: bigquery


text:
doc: give more attention to Catalina issues doc

It's easy to miss the Catalina issues doc when reading the readme. Since
it can be a common issue among developers, it makes sense to give more
attention to it in the readme.

Checklist

[x] documentation is changed or added
[x] commit message follows commit guidelines

Agreed, but even finding via Google is not so ergonomic unfortunately. Depending on the query used, the first few results Google gives you are from other unrelated repositories, and not from node-gyp (that's the result I got when searching the error on Google at least).
I also suggested adding a link to the guide on the website (https://github.com/nodejs/nodejs.org/pull/3180), so at least there's another way to find it (and maybe it improves SEO for the guide? IDK how SEO works).

9aed628

source: gharchive/pull-request

authors: mmarchini rvagg


text:
Test Issue created at Wed, 24 Nov 2021 14:41:02 GMT

Test issue body  Wed, 24 Nov 2021 14:41:02 GMT

Comment on issue at Wed, 24 Nov 2021 14:41:04 GMT

repo: nodemationqa/nodeQA

license: MIT

license_source: github-api


text:
Alignements breadcrumb

Hello !
pour les pages detail aligner le haut du bloc titre sur l'image et le breadcrumb sur le bas. Tronquer si trop long comme illustré ci-dessous :

C'est pas pratique ça parce que les images ont des tailles très variables

maj après discussion, on part sous un breadcrumb sous l'image en full largeur.

@alexisben ok ?

Yes je crois que j'ai codé une option pour ça ;)

oui after-hero, faut juste ajouter le filet et vérifier les marges

authors: Violenn alexisben arnaudlevy

repo: noesya/rancoper-site


text:
global setting - All software is global

[x] Add an application wide setting that makes all software global.
[x] add an application setting that enforces the organization for global software
[ ] unit tests written

added 2m of time spent

marked this issue as related to #29

marked the checklist item Add an application wide setting that makes all software global. as completed

mentioned in commit 395f24f22c5418eed99d59659b7c60726c2ade53

mentioned in commit 3128daee2aef580781ddf523f5b1190ea5150b96

marked the checklist item add an application setting that enforces the organization for global software as completed

marked this issue as blocked by #28

mentioned in commit f36400dbb98d305e1ec54f62493f7f2cff0359b1

marked this issue as related to #30

mentioned in commit 51dd9fb19e1f5ff0b150d004803baaa4623cbe65

marked this issue as related to #31

mentioned in commit 96777f1beadb24328b3d90061220b6632b1bc575


text:
[Newbie] Popover doesn't show with lightbox

Hi,
I have an lightbox with some images showing. And I'm trying to make a button that shows a popover.
But I'm not getting it to show. I have other popovers on the same website that work well but within a lightbox it's not working.
<div class="share" ns-popover
        ns-popover-template="popover"
        ns-popover-theme="ns-popover-tooltip-theme"
        ns-popover-trigger="click"
        ns-popover-placement="top"
        ns-popover-timeout="-1">
</div>

<script type="text/ng-template" id="popover">
        I should be visible on popover
</script>

Thanks

Found out that is was showing behind the lightbox. Fixed editing the css:
.ns-popover-tooltip-theme{
    z-index: 10000 !important;
}

repo: nohros/nsPopover


text:
Cannot assign a generic to a concrete type

Description
Aim
fn foo(a: [u32]) -> [u32] {
    a
}

let mut a=[3,4];
a= foo([1,2]);

Expected behavior
The code snippet above should change a into [1,2]
Bug
Instead it creates an error: error: Cannot assign an expression of type [u32] to a value of type [u32; 2]
To reproduce
try to prove the provided snippet
Environment

OS: mainframe

For nargo users

noir-lang/noir commit cloned: latest master
Proving backend

[X] default
[ ] wasm-base

This gets fixed by doing the following:
fn foo<N>(a: [u32;N]) -> [u32;N] {
    a
}

fn main() {
    let mut a = [3,4];
    a = foo([1,2]);
}

The issue here being the use of slices. I changed it to [u32;N]

authors: guipublic kevaundray

repo: noir-lang/noir


text:
How to download the data from multiple FDSN clients?

How to download the data from multiple FDSN clients? The ConfigParameters().client_url_key seems not to support the list input.

Hi @LevCarlo, this argument is actually passed to obspy.clients.fdsn.Client(), which doesn't support multiple argument. A network code could be hosted by multiple data center, which creates ambiguities. So I would recommend you to download separately if the data you want is hosted by different data center.

authors: LevCarlo niyiyu

repo: noisepy/NoisePy


text:
Type inference of extension members, type inference of constraints, online tool limitations

Issue created from telplin-online
Implementation
namespace Test

module ListExt =
    let foldWhile<'T, 'State> folder (initialState: 'State) (input: 'T list) =
        let mutable state = initialState
        let mutable list = input
        while not list.IsEmpty do
            match folder state list.Head with
            | None -> list <- []
            | Some state' ->
                state <- state'
                list <- list.Tail
        state

module List2D =
    let map f = List.map (List.map f)
    let map2 f = List.map2 (List.map2 f)
    let iter f = List.iter (List.iter f)
    let iteri f = List.iteri (fun r x -> List.iteri (f r) x)
    let mapi f = List.mapi (f >> List.mapi)
    let fold f s = List.fold (List.fold f) s
    let mapFold f s = List.mapFold (List.mapFold f) s

    let indexed l2d =
        List.indexed l2d |> List.map (fun (r, row) -> List.indexed row |> List.map (fun (c, x) -> r, c, x))

    let minBy f = List.map (List.minBy f) >> List.minBy f
    let inline sum l2d = List.sumBy List.sum l2d
    let inline sumBy f l2d = List.sumBy (List.sumBy f) l2d

[<AutoOpen>]
module MapExtensions =
    type Map<'K, 'V when 'K: comparison> with

        member m.Keys = m |> Map.toList |> List.map fst
        member m.Values = m |> Map.toList |> List.map snd

Signature
namespace Test

module ListExt =
    val foldWhile<'T, 'State> :
        folder: ('State -> 'T -> 'State option) -> initialState: 'State -> input: 'T list -> 'State

module List2D =
    val map: f: ('a -> 'b) -> ('a list list -> 'b list list)
    val map2: f: ('a -> 'b -> 'c) -> ('a list list -> 'b list list -> 'c list list)
    val iter: f: ('a -> unit) -> ('a list list -> unit)
    val iteri: f: (int -> int -> 'a -> unit) -> ('a list list -> unit)
    val mapi: f: (int -> int -> 'a -> 'b) -> ('a list list -> 'b list list)
    val fold: f: ('a -> 'b -> 'a) -> s: 'a -> ('b list list -> 'a)
    val mapFold: f: ('a -> 'b -> 'c * 'a) -> s: 'a -> ('b list list -> 'c list list * 'a)
    val indexed: l2d: 'a list list -> (int * int * 'a) list list
    val minBy: f: ('a -> 'b) -> ('a list list -> 'a)
    val inline sum: l2d: ^a list list -> ^a
    val inline sumBy: f: ('a -> ^b) -> l2d: 'a list list -> ^b

[<AutoOpen>]
module MapExtensions =
    type Map<'K, 'V when 'K: comparison> with

        member Keys: 'Key list
        member Values: 'Value list

Problem description

In module List2D, the type constraints for the minBy/sum/sumBy functions are not properly inferred.
In MapExtensions.Map, the member type names are not correct.
In the online tool error messages, the line numbers are not correct.
In the online tool, on a laptop screen, the error messages take so much space that only a single line of the signature is visible.

Extra information

[X] The proposed signature has problems.
[ ] I or my company would be willing to help fix this. (well, willing, but probably not able)

Hello, thank you for trying out Telplin.
There are still some gaps indeed.
Are you interested in contributing?

You could get your feet wet by trying to solve the first problem.
Create a failing unit test in BindingTests.fs.
Try and figure out what information is available in TypedTree:
https://github.com/nojaf/telplin/blob/266a64f654657ef16e28b630b62948296597aaa3/src/Telplin.TypedTree/TypedTree.fs#L79-L88
And process that accordingly in UntypedTree:
https://github.com/nojaf/telplin/blob/266a64f654657ef16e28b630b62948296597aaa3/src/Telplin.UntypedTree/UntypedTree.fs#L483-L534
I would start there for a first PR, keep is scoped to one single problem. You'll see how it goes. Don't hesitate to ask any questions.

The necessary information (comparison constraint on 'b) is available in the typed tree, but not in the untyped tree.
I think the first step would be to extend GenericConstraint by IsComparisonConstraint : bool and set it in TypedTree around line 80. Next I would look for where the GenericConstraint is used and add the necessary code there.
Does that make sense?

Yes, that was more or less what I was expecting.

Created PR #7

Closing this as the problems are now covered by #7 , #8 , #9

Thanks!

repo: nojaf/telplin


text:
Kong 0.13 support

Kong 0.13 provides features as Service and Route instead of obsolete API entity. It would be nice to have this plugin to be "attached" to particular route or service objects.

Hi @xwrs, thanks for raising this! We will be looking into that.

Haven't checked this now, but are there problems with kong-oidc, when you register them on routes or services?

Works with services. Not tested with routes though.
Even though it is not documented, but it seems that plugin works with services as it did with APIs.

repo: nokia/kong-oidc


text:
set ngx.ctx.authenticated_groups if groups claim is present

This inspects the token retrieved from the OIDC provider, checks if the groups claim is present, and then sets the appropriate variable in the NGINX context so that other Kong plugins, such as the bundled ACL plugin can make authorization decisions based on the user's group vector.
This is following up on @Trojan295's ask for adding more information to the context (https://github.com/nokia/kong-oidc/issues/15#issuecomment-340862575).

s/ngx.ctx.authenticated_groups/kong.ctx.shared.authenticated_groups

Any chance @phirvone to get this merged?

Implemented in my fork, Revomatico/kong-oidc.
I do not have this use case, so please test it and let me know.

authors: Logunov RaVbaker cristichiru knackaron


text:
the "Left panel" do not disapeared

i clone to local and just run .
use material theme.
and i got this ....
the "Left panel " do not disapeared.
it is not problem in ios theme.
please help !!!

Check in your view panel if you have the following attributes:
navbar-through :dynamic-navbar="true"

This is for the Dynamic Navbar which is not supported under Material.

I have the same issue. But, when I remove the :dynamic-navbar attribute I cant go to the previous page because the back button doesn't shows in the navbar.

authors: PascalAOMS sw4655315 toledorobia


text:
Feature request: add onInteraction(swiper) callback

Maybe add onInteractionStart(swiper) and onInteractionEnd(swiper) instead.

How they should work?

Well, it is might related to my other feature request that I started to creating, but not yet posted:
Feature recommendation: add autoplayEnableOnIdle parameter
Autoplay

Parameter
Type
Default
Description

autoplayEnableOnIdle
boolean
true
Set to false and autoplay will not be enabled after user not interacted with swiper for some time (autoplayIdle).

autoplayIdle
number
60 * 1000
Delay (in ms) after the autoplay should enabled again if autoplayEnableOnIdle is set to true.

So maybe there is no need for the requested callback.

Thanks, good idea will think about including it in next releae

Thank you for finding the idea useful! I think I can help you with the implementation if you accepts contribution to the project.
Also I think this new feature can be supported by only one new parameter. Something like this:
Autoplay

Parameter
Type
Default
Description

autoplayReEnable
number
-
Delay (in ms) after auto play should enabled again. If this parameter is not specified, re-enabling auto play will be disabled. Any interaction with the slider re-sets the delay.

Sure, you may contribute the implementation. But please, make sure that you will take care about this feature in consideration with another autoplay parameters. Also, there shouldn't be too much code for this feature :)

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


text:
Progress bar doesn't work after refresh.

Hi,
I'm facing progress bar issue.
it is works fine first time but when i refresh the page it's behave unexpected.

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


text:
how to set img to full content of the page

i have a problem on desktop version/ larger resolution. i'm having trouble to set it to width 100%

Your issue is closed because it is not filled correctly. Before you open an issue please review the contributing guideline.
Please fill the issue template correctly and:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with isssue

It will save a lot of time for other contributors to check your issue and fix it.


text:
Swiper/React - Active class not set within unit-test

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/s/jest-testing-react-forked-qxoe7b
Bug description
It seems while in the browser the swiper-slide-active class is set and switches everytime a swipe happened, this bevahiour is not reproducable within a unit test.
My intention is to test if a function was triggered on a slide-change, but since the swiper-slide-active class is not even set in the jsDOM environment, it seems that the swiper is not even properly initiated.
Expected Behavior
The expected behaviour is, that the active class swiper-slide-active is also set when rendering the swiper within a unit test, using jest/react.
Actual Behavior
The swiper-slide-active is never set, which is an indicator, that the swiper container is never properly initiated.
See provided sandbox environment.
Swiper version
8.1.4
Platform/Target and Browser Versions
jsDOM environment
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[X] I'm willing to open a PR

We encountered the same issue in Angular. Are there any workarounds?

Unfurtunately the only workaround for this is skip the test 🤦🏻♂
Sorry to say this. Is unfurtunate, that noone is reacting to this

Having the same issue.

Also facing the same issue.

I am too.

I am too 🫤

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue

authors: Brilliantwebdev1125 MarcoLeko denniseffing juan-villasenor leilahbirchall nolimits4web oscarcornejo


text:
🛑 HPO Disease - Phenotype is down

In 3d92962, HPO Disease - Phenotype (http://purl.obolibrary.org/obo/hp/hpoa/phenotype_annotation.tab) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HPO Disease - Phenotype is back up in aac3a40.

repo: nomisto/upptime


text:
Support versioned objects in log based replication

Description
As of today (30th March 2023), log based replication implementation does not support versioned objects. This lack of support may not effect the correctness of the replication (iff scan based replication exists and is functional).
The following scenario is problematic:

Source bucket has versioning enabled.
User deletes a versioned object such that the deleted version is  not the latest version.
Log based replication considers this a candidate for deletion and deletes the latest version from the destination bucket.
This gap is identified by the scan based replication and the replicator will replicate the missing object.

This gap has severe implications if and whenever we remove scan based replication.
Initial discussion on this are here: #7234

Fixed By: https://github.com/noobaa/noobaa-core/pull/7508

authors: liranmauda tangledbytes

repo: noobaa/noobaa-core


text:
support followSymlinks

Signed-off-by: Igor Pick ipick@redhat.com
Explain the changes

Added followingLinks config to bucket namespace resource api
Added followingLinks to NamespaceFS
if followingLinks is true, use 'stat', otherwise use 'lstat'
Added debug flag to node endpoint process

kubectl edit deployments.apps noobaa-endpoint

Add env variable:
env:
    - name: ENDPOINT_NODE_OPTIONS
      value: --inspect

Issues: Fixed #xxx / Gap #xxx

https://github.com/noobaa/noobaa-core/issues/6485

@liranmauda
About your questions:

please take a look on object_sdk.js line 339. it's in _setup_single_namespace method
According to documentations, 'fstat' is identical to 'stat', except that the file about which information is to be retrieved is specified by a file descriptor. Since all our code uses pathname, why do you think we have to switch to fd?

please take a look on object_sdk.js line 339. it's in _setup_single_namespace method

True, I missed that it is inside that function, but I meant that the call for new NamespaceFS in line 334 was missing the follow_symlinks. I see that it is already fixed.

According to documentations, 'fstat' is identical to 'stat', except that the file about which information is to be retrieved is specified by a file descriptor. Since all our code uses pathname, why do you think we have to switch to fd?

That is not true.
We have a lot of places that we use fstat for example:
https://github.com/noobaa/noobaa-core/blob/c30d0e17a95d0501af921919ca74d57be90c7c99/src/sdk/namespace_fs.js#L438
you can see that the stat is calling from fd that is called file, also you can see that there is no pathname in that call
places that are using actual stat looks like this:
https://github.com/noobaa/noobaa-core/blob/c30d0e17a95d0501af921919ca74d57be90c7c99/src/sdk/namespace_fs.js#L106
the are being called with nb_native().fs. and they have pathname

You have no option to not follow symlinks while using fd

you can see that the stat is calling from fd that is called file, also you can see that there is no pathname in that call

You have no option not following symlinks while using fd. But I am looking now for how to get file descriptor of symbolic link instead of the target file

We can just call lstat when we need instead of fstat

you can see that the stat is calling from fd that is called file, also you can see that there is no pathname in that call

You have no option not following symlinks while using fd. But I am looking now for how to get file descriptor of symbolic link instead of the target file

We can just call lstat when we need instead of fstat

NO, you cannot do that. lstat gets pathname and fstat gets fd

No, you cannot do that. lstat gets pathname and fstat gets fd

So?
pseudo code:
if you want to follow {
  stat = await file.stat(fs_account_config);
} else {
  stat = await nb_native().fs.stat(fs_account_config, dir_path);
}

You have the pathname when you open the file to get the fd

dir_path

In my opinion, it should be in native. See my comment above

dir_path

pseud code, Any kind of path...

After a discussion with @nimrod-becker and @guymguym we suggest the following:

remove the follow_symlinks configuration. this should not be configurable for now
for List operations, if we encounter a symlink we should show the link target only if it is inside the bucket (under the path of the bucket). otherwise, we should show the link itself in the list (or filter it out?)
for Get operations, if the target is inside the bucket we return the content of the target (or NoSuchKey if it's a dir). if the target is outside of the bucket we should return AccessDenied

just to clarify regarding List Objects operations. when listing a symbolic link
if the target is within the bucket - return the target's metadata (size/last modified/etc.)
otherwise, return the link and its own MD
@guymguym @nimrod-becker WDYT?

authors: dannyzaken igorpick liranmauda


text:
NC | NSFS | Config Dir Restructure - Add users/ Dir

Explain the changes

Update IAM API Users, Access Keys and additional changes in accountspace_fs:

Move the config creation from the function _copy_data_from_requesting_account_to_account_config to the create_user.
Fix the ARN account ID for root accounts that were operated by the roots accounts manager (before we copied the requesting_account._id which was true only for root accounts on IAM users).
Fix _check_root_account as it has a redundant line that was not relevant (it was there when we thought of additional case, but we never get to it).
Add 2 helper functions: _get_account_owner_id_for_arn, _get_owner_account_argument.
Improve performance in the function _check_if_root_account_does_not_have_IAM_users_before_deletion after we have the new structure.

Update the ConfigFS module to support the new structure and operate on users configs.
Update docs:

With the config dire restructure (identities/, accounts_by_name/, users/directories).
IAM docs - regarding the naming scope (that we have with the new structure) and about the new structure with users/ directory.

Update the IAM API tests:

Mainly reading the config file in the new structure.
Add account validation to accounts created hardcoded (to avoid schema changes without them updated).
Refactor it names to multiple lines.

In rest_s3 change the 'is_owner` part (the gap mentioned in #8289), where it checks the name,  to make sure the account is not a user with the same name.

Issues:
Open questions to answer in the CR:

Should we delete the directory users/ if there are no users in the account? I decided not to delete it.
What should the ARN of the account (not a user, the identity that the root accounts manager operates on) look like? I decided it will be arn:aws:iam::${account_id}:user/${username} the account_id is his _id and the username is the account name.

List of GAPS:

Add JSDoc in accountspace_fs methods.

Testing Instructions:
Unit Tests:
Please run: sudo npx jest test_accountspace_fs.test.js
Manual Tests:
Operate any IAM actions on users and access keys on the NSFS server as described in Non Containerized NSFS IAM (Developers Documentation)

[X] Doc added/updated
[X] Tests added

I converted this PR to draft since I'm not actively working on it.


text:
New api for fetching the data

format:
GET /summary/{project_name}/{date}
[{"date":"2016-10-12","duration":2700000},
{"date":"2016-10-13","duration":4400000},
{"date":"2016-10-14","duration":5500},
{"date":"2016-10-15","duration":333000}]

GET /summary/{project_name}/{start_date}/{end_date}


text:
Add comprehensive .editorconfig

https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference

Done


text:
Some Users Experiencing Looping issue

Hello-
Honestly not sure if this is coming from the library or not, but hoping you might have some ideas. I have some reports - likely from folks on older browsers - who are tabbing between number fields with thousands separators being applied. Somehow their browsers are getting locked in a loop where the cursor jumps from one field to the next and eventually it locks up and crashes the browser (appears to in most cases based on reports). It's happening to maybe 1 out of 30 users on the system. Any ideas what might be going on?
Thanks.

If you have onBlur events, or re-render the parent component housing all your input fields, it might be related to https://github.com/nosir/cleave.js/issues/225#issuecomment-338484595 In some browsers (e.g. Safari and IE 11) Cleave will force the browser to send focus/cursor into the input field every time the component is rendered.

I have finally been able to replicate the issue - would appreciate any thoughts.
I have a form with several fields all with the same selector - .currencyformat
When a user tabs from the first field to the second WITHOUT inserting a value in the first field, it locks in a loop, jumping from the first field to the second and back again. This only appears to happen in IE.
Here is the Cleave script I'm using...
`
$(document).ready(function() {
$('.currencyformat').on('input', function(event) {
var target = event.target;
 new Cleave(target, {
		numeral: true,
		numeralThousandsGroupStyle: 'thousand'
		});

}); //end currency

}); //end document ready function Cleave`
Any idea why this might be happening? I've played with several methods for stopping it, but can't seem to make them work.

In your case target should be a unique DOM element. If you want to apply Cleave for multiple elements, you need to give different css selectors and apply to each of them.
Have you tried this?

I also experience this, but in Angular.

So I've found a fix - whether or not this is what's causing it - but what I found was that in Internet Explorer, the issue occurs as a part of onInput. If I change it to onKeyup, it performs without issue. Hopefully this will help others solve the issue in the future.
Worth mentioning, I found an article somewhere that someone else wrote that indicated the onInput issue is quasi-known for IE.

authors: brandonros eugene1g nosir redluss


text:
Fixing cqlgen obfuscator filters mapping logic

Related issue

Should there be additional unit tests added here: nb-adapters/adapter-cqld4/src/test/java/io/nosqlbench?

repo: nosqlbench/nosqlbench


text:
Read-only or disabled state switching status can't call the state method

Read-only or disabled state switching status can't call the state method

+1

Found the problem. on line 138 it is actively making decision to ignore anything that is either disabled or readonly. Removing this check and instead doing it on the click events is a much nicer solution as it still allows to switch the state programatically without needing to re-enable anything.
I've made the code changes and opened a pull request:
Allow programatical change of state on disabled and readonly #577

authors: ZiperRom1 coder-liliang dpuckett

repo: nostalgiaz/bootstrap-switch


text:
Fix SetupArch

Hey so there have been some changes to arch packages and changed it to -Syu. I've explained why below.
python3-pip is called python-pip now because of python 2 deprecation https://archlinux.org/news/removing-python2-from-the-repositories/
Replace -Sy with -Syu as -Sy is considered a partial upgrade which is bad https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported
Add --needed so it doesn't reinstall what's already installed
qemu is now qemu-desktop as it's split into 3 packages groups/meta. https://archlinux.org/news/qemu-700-changes-split-package-setup/

Also for the manual install, unfortunately I don't know how to add it to this pull request.  https://github.com/N0tC/OneClick-macOS-Simple-KVM/blob/N0tC-patch-2/docs/manualmethod.md

@N0tC I Have done your patches for the docs, merging this now.


text:
图片选中的问题

图片编辑是一个很大的问题，特别是当我使用了固定高度后，选中图片就坑爹的出现截图的问题。如果禁用掉或是修正。

此问题是在固定高度时出现的，补充下，在Neditor也一样有这个问题

2.0新版发布，欢迎测试

authors: qinggan zuohuadong

repo: notadd/neditor


text:
Update notation verify command for RC1

Implement the new verify command to use the trust and policy store

[ ] https://github.com/notaryproject/notation/issues/216
[ ] notation verify spec

@yizha1 and @FeynmanZhou - Can you point us to the notation verify CLI command spec ? We believe @iamsamirzon and I that notation verify CLI command is ready but until we verify it against the spec we wont know if we are done.

@vaninrao10 @iamsamirzon There are still CLI spec and verify implementation work. I am now working on "notation sign CLI spec" and "trust store", I will start working on verify CLI spec soon. The implementation of verify is WIP for trust policy and store workflow. The overall status is "In progress"

repo: notaryproject/notation


text:
Remove signature cache for all(sign, verify, etc) command.

PR: https://github.com/notaryproject/notation/pull/365

Both push and verify will need to speculate format now not only for caching.
For verifying, the new verification workflow with trust store and trust policy doesn't need to speculate format because it will pull from remote.
https://github.com/notaryproject/notation-go/blob/3d8de5f05facb36c97df60de6e49c936e5ac6b41/verification/verifier.go#L100-L116
For pushing, there is a flag named signatures, which is the paths to some signatures. CLI will first read the file and push its content to the remote.
https://github.com/notaryproject/notation/blob/main/specs/notation-cli.md#push
https://github.com/notaryproject/notation/blob/4666267499a11f5c56af7211fee36a27e78cd582/cmd/notation/push.go#L52-L71
So, for RC1, verify doesn't need speculate, but we still need to speculate format if user pushes a signature from local file system unless we abandon this feature.

Implementation PR merged into main. Closed this issue.

authors: chloeyin patrickzheng200 priteshbandi


text:
Update sbt-jmh to 0.4.6

About this PR
📦 Updates pl.project13.scala:sbt-jmh from 0.3.7 to 0.4.6
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "pl.project13.scala", artifactId = "sbt-jmh" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "pl.project13.scala", artifactId = "sbt-jmh" }
}]

labels: sbt-plugin-update, early-semver-major, semver-spec-minor, commit-count:1

Superseded by #481.

repo: notxcain/aecor


text:
Feat: remove delegated wallets on wallet forget

Changes:

Updated forget-wallet-model to remove delegated wallets and accounts, proxies and proxyGroups connected to forgotten wallet

Task linked: CU-86936jpap Update wallet removal (forget wallet) procedure

repo: novasamatech/nova-spektr


text:
Improved error handling

For now, without unit tests. These will be added later.

Added unit tests

Thanks for the fixes @zivnevo ! I will give them a try by trying to integrate directly with this branch. I will let you know if there are any issues with anything that would be blocking. I am not sure I finish this today (Tuesday), but tomorrow the latest I should be back with success report or with a list of required corrections.

I was able to partially integrate with this branch and I see the library working correctly in simple scenarios (I haven't checked anything more complex yet).
As this PR is really big and almost impossible to review, I propose the following:
* merge it as it is,

* address potential issues in separate, smaller PRs if needed.

Does it sound ok?

Yes, this sounds good. I opened issues to address most of the comments. If you think I missed something, feel free to open a new issue.

repo: np-guard/cluster-topology-analyzer


text:
Explainability - final polish

[ ] Issue an error when trying to analyze a config with multiple VPCs (until we support it)
[ ] typo: Ingres: should be Ingress:
[ ] In debug format, is it possible to change the title from Rule details to just Details?
[ ] In debug format, add a line break between the Egress section and the Ingress section
[ ] Reconsider the parenthesized (with allow rules) and (with allow and deny rules). The first one just seems trivial, but it's the second one that might really confuse users: If the connection is allowed, why am I reported about deny rules? (and vice versa). The parentheses that do look useful are (no relevant allow rules) vs. (with deny rules).

* [ ]  Reconsider the parenthesized `(with allow rules)` and `(with allow and deny rules)`. The first one just seems trivial, but it's the second one that might really confuse users: If the connection is allowed, why am I reported about deny rules? (and vice versa). The parentheses that do look useful are `(no relevant allow rules)` vs. `(with deny rules)`.

(with allow and deny rules) could be the case only when a real subset of the queried connections is allowed*.  It could be relevant to know that only a subset is allowed due to (at least also) deny rules. Perhaps we should change something in the explanation to make it clear - other than removing the (with allow and deny rules).
As to removing the (with allow rules) - makes sense, only if this will be the only case with no parenthesized  rules info could that confuse anyone?

Actually I think this introduces another important issue - our interpretation of the queried connection, when it is only partly specified (which will be the common case - rarely will the user specify protocol and min/max src/dst ports). The comment above could be confusing given that this is not clear enough. Lets take it tomorrow morning f2f.

We agreed to:

Add a comment when not the entire range is allowed
Remove all the (with xxx rules)

Current output for query  -src vsi1-ky -dst 161.26.0.0/16 -protocol udp
Connectivity explanation for protocol: UDP between vsi1-ky and 161.26.0.0/16
============================================================================

Connection protocol: UDP src-ports: 1-600 dst-ports: 1-50 exists between vsi1-ky[10.240.10.4] and Public Internet 161.26.0.0/16
External traffic via PublicGateway: public-gw-ky
Egress: security group sg1-ky allows connection; network ACL acl1-ky allows connection

Details:
~~~~~~~~
Egress:
security group sg1-ky allows connection with the following allow rules
        index: 0, direction: outbound, protocol: all, cidr: 0.0.0.0/0
network ACL acl1-ky allows connection with the following allow rules
        index: 1, direction: outbound , src: 10.240.10.0/24 , dst: 161.26.0.0/16, conn: protocol: udp, srcPorts: 1-600, dstPorts: 1-50, action: allow
------------------------------------------------------------------------------------------------------------------------

Do you want to the following line at the end? or  add something else? leave as is?

Note that only a proper subset of the queried connections are enabled
@kyorav @zivnevo

authors: ShiriMoran zivnevo

repo: np-guard/vpc-network-config-analyzer


text:
Help with runners_concurrent

Hello! I am using the module and it is working great, just having some trouble understanding how it works..
I see that the default value for the runners_concurrent is 1, does this mean that only 1 pipeline can run at a time? On Kubernetes managed gitlab-runners the default value is 10. Any setback to setting it to a high number? If I have a pipeline that has multiple jobs in 1 stage, does that mean it will only go one at a time since the setting is default to 1?

I will close the issue, feel free to re-open if the answer was not helpful or clear

repo: npalm/terraform-aws-gitlab-runner


text:
Not found: @npmcorp/npm-hook-receiver

I received this error message when I executed npm install in the project's directory:

Not found : @npmcorp/npm-hook-receiver

I checked the status of the module on npmjs.org and realised it hasn't been downloaded yet.
Does this mean it hasn't been made public yet?

whoops! it's a private package rn, will publish that publicly and you should be all set! sorry about that- and thanks for filing!

authors: ashleygwilliams gnerkus

repo: npm/captain-hook

license: ISC


text:
Update screenshots on Account Settings

Connected to https://github.com/npm/wubwub/issues/2365

Inside docs
Things to change inside Managing your profile
→ 📁 Updated screenshots.zip

Screenshots

We already merged the changes to Account settings so we can do the changes on the screenshots already
https://github.com/npm/wubwub/pull/2446

We already merged the changes to Account settings so we can do the changes on the screenshots already

repo: npm/documentation


text:
Graphic template: range graph (name?)

http://apps.npr.org/dailygraphics/graphics/sex-abuse-20150604/

done in 39add37e9a3be28d3e2edd8073c4a766bae82bd9

authors: alykat onyxfish

repo: nprapps/dailygraphics


text:
how to use NUR?

I tried to edit my users/bbigras2/default.nix file like this:
  nurNoPkgs = import (builtins.fetchTarball {
    url = https://github.com/nix-community/NUR/archive/master.tar.gz;
    sha256 = "1fkrrkmxq69z6ai039z9ql7zyqxf3yxz4p0f34bwrz80479bz2wb";
  }) {};

[...]

  imports = [
    nurNoPkgs.repos.rycee.hmModules.emacs-init
  ];

I get:
error: value is a function while a set was expected, at /nix/store/ylzadblp5bl370z4n1x2y3nfd6j3phv3-source/users/bbigras2/default.nix:29:5

Does this count as a channel? I saw the warning about using nix-channels in the Readme but I'm not using a channel like this:
`nurNoPkgs = import <nur> { pkgs = null; };`

Hmm, I have never used NUR, but the expression your trying to import looks fine to me.
What's the output of lib.traceVal on nurNoPkgs.

I just made a pr to merge in NUR support. It will allow you to pull in modules from the new top-level nurModules attribute. Not everything will work, as some authors have hardcoded imports from the nixpath, but I tested many different modules, overlays and packages to make sure most things work.
I also made a PR to include this in upstream NUR.
With this you can solve your problem. Since your module is expecting home-manager to be named home instead, you could simply create a new module ./modules/home.nix:
{ options, config, ...}:
{
  options.home = options.home-manager;
  config.home = config.home-manager;
}

authors: bbigras nrdxp

repo: nrdxp/nixflk


text:
Port to new string-based BRouter voice hint GeoJSON API

This is just a draft to show how little changes a string-based GeoJSON API will actually require. It will make the code more readable an protect against any future changes to voice hint ids / indexing.
(Only the latest commit is relevant, since this is based on #753. I'll rebase this once the other PR got merged. Sadly stacked PRs in GitHub don't really work for external contributors.)
The corresponding change to BRouter is available here, with extensive reasoning in the commit message (probably futile in the end anyway, but at least I tried). I'd recommend to look at the individual commits, most of them are just optional cleanup on top, which became possible by using an enum.
Of course this is a breaking API change, but compared to the previous sneaky re-indexing (see abrensch/brouter#584) it would be explicit at least.
Another possibility would be to add this as an additional format=geojsonWithVoiceHints, which would use strings rather than ids and include voice hints by default:

We'd lose the enum cleanup, but would not break other BRouter GeoJSON/JSON API users while keeping the advantages of strings over ids.
We'd be protected from future changes to how timode=2 affects GeoJSON voice hints. Currently this is a rather crude way of triggering them, see also abrensch/brouter#531.
The decision which format to export to (by selecting the respective radio button in the Web UI) and whether to include voice hints or not (BRouter-Web should add a checkbox for this eventually to improve UX, instead of hiding it in the profile via turnInstructionMode where only experts will find it) is only taken after BRouter-Web already requested all data from BRouter. Having to recalculate the whole route (as currently triggered by editing the profile) should be avoided.
Therefore BRouter-Web should IMO unconditionally request voice hints at all times (even if they might get dropped later in some cases), which is also far cheaper than recalculation. In terms of bandwith, they are small compared to the geometry and message arrays.
Implementation note 1: Extra data for comment-style hints would then need to be enabled by default.
Implementation note 2: timode=2 seems to be overridden if another turnInstructionMode is set in the profile (need to check). Not sure yet how to trigger voice hints instead, the early return for detourMap == null in processVoiceHints might be a hint.

Any thoughts appreciated on how to best go forward with it, or whether to just drop the idea entirely.

This indeed would be an improvement.

Another possibility would be to add this as an additional format=geojsonWithVoiceHints

I don't mind a breaking change and would prefer not to have an additional format.

We'd be protected from future changes to how timode=2 affects GeoJSON voice hints. Currently this is a rather crude way of triggering them

The timode parameter is the intended way for callers to set their default mode, so it should be rather stable. And while a specific flag or generic mode would be nicer, I don't think this is too crude, even if we don't have a specific format and any timode > 0 will do.

Therefore BRouter-Web should IMO unconditionally request voice hints at all times (even if they might get dropped later in some cases), which is also far cheaper than recalculation

That's the plan before releasing the FIT format and I would like to get that finally done before adding too much other stuff. I also expect it to be much cheaper, but that also depends on the number of route edits done, and I wanted to do at least a simple performance comparison, but haven't taken the time yet.

Implementation note 1: Extra data for comment-style hints would then need to be enabled by default.

I don't know what the comment-style is for and if anybody uses that, but I would simply exclude it, it could still be activated in the profile

Implementation note 2: timode=2 seems to be overridden if another turnInstructionMode is set in the profile (need to check).

Yes timode is just the default and overridden by any turnInstructionMode in the profile other than 1. But I don't see an issue with that, in the end it's the same and voice hints are set either way?

authors: nrenner rkflx

repo: nrenner/brouter-web


text:
fix: blueprintConfig dropped when restoring a snapshot

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Fixes a bug causing the Blueprint Configuration on studios and showStyles to be lost when restoring a system snapshot.

What is the current behavior? (You can also link to an open issue here)
When restoring a system snapshot, Blueprint Configuration on the studios and showStyles is dropped entirely instead of being restored from the snapshot. The cause is using migrateConfigToBlueprintConfigOnObject, which assumes that blueprintConfig is missing, when restoring snapshots.

What is the new behavior (if this is a feature change)?
Blueprint Configuration is restored correctly. migrateConfigToBlueprintConfigOnObject handles both cases - when blueprintConfig is present and when it's missing.

Other information:

Status

[ ] Code documentation for the relevant parts in the code have been added/updated by the PR author
[x] The functionality has been tested by the PR author
[ ] The functionality has been tested by NRK

Im not keen on the change here, what happens if the doc somehow has both blueprintConfig and config defined? It will end up with a weird mash of the two, in a not very predictable manner.
I think it would be better to either ignore config if blueprintConfig is already defined, or if config is defined then replace blueprintConfig. I dont have strong feelings on which would be correct

I agree, and I think if both existed, it's better to ignore config because it seems more likely that it would be a leftover and blueprintConfig will have newer data.

authors: Julusian ianshade

repo: nrkno/tv-automation-server-core


text:
Update cats-effect to 3.3.9

Updates org.typelevel:cats-effect from 3.2.9 to 3.3.9.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Applied Scalafix Migrations

org.typelevel:{cats-effect,cats-effect-laws}:3.3.0 (created no change)

github:typelevel/cats-effect/v3_3_0?sha=series/3.x

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

labels: library-update, early-semver-minor, semver-spec-minor, scalafix-migrations, commit-count:1

Superseded by #124.


text:
Benedict throws "unexpected keyword argument 'keypath_separator'"

This was a clean install, using the tutorial as a base.
Google isn't giving me anything, I'm wondering if a dependancy has moved somewhere?
search_period = datetime.timedelta(days=20)
start_date = datetime.datetime.now() - search_period - datetime.timedelta(days=1)
end_date = datetime.datetime.now() - datetime.timedelta(days=1)

# Define the bounding box using the lat/long coordinates
bbox = (long1, lat1, long2, lat2)

time = '{}T00:00:00Z/{}T23:59:59Z'.format(start_date.strftime('%Y-%m-%d'), end_date.strftime('%Y-%m-%d')),
Query = earthaccess.collection_query()

Query.keyword('SAR').bounding_box(long1, lat1, long2, lat2).temporal(start_date.strftime('%Y-%m-%d'),end_date.strftime('%Y-%m-%d'))
print(f'Collections found: {Query.hits()}')
collections = Query.fields(['ShortName','Version'])

This throws the error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[38], line 1
----> 1 collections.get(10)

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/earthaccess/search.py:247, in DataCollections.get(self, limit)
    245     latest = response.json()["feed"]["entry"]
    246 elif self._format == "umm_json":
--> 247     latest = list(
    248         DataCollection(collection, self._fields)
    249         for collection in response.json()["items"]
    250     )
    251 else:
    252     latest = [response.text]

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/earthaccess/search.py:248, in <genexpr>(.0)
    245     latest = response.json()["feed"]["entry"]
    246 elif self._format == "umm_json":
    247     latest = list(
--> 248         DataCollection(collection, self._fields)
    249         for collection in response.json()["items"]
    250     )
    251 else:
    252     latest = [response.text]

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/earthaccess/results.py:20, in CustomDict.__init__(self, collection, fields, cloud_hosted)
     14 def __init__(
     15     self,
     16     collection: Dict[str, Any],
     17     fields: Optional[List[str]] = None,
     18     cloud_hosted: bool = False,
     19 ):
---> 20     super().__init__(collection)
     21     self.cloud_hosted = cloud_hosted
     22     self.uuid = str(uuid.uuid4())

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/dicts/__init__.py:50, in benedict.__init__(self, *args, **kwargs)
     48     super().__init__(obj.dict(), **kwargs)
     49     return
---> 50 super().__init__(*args, **kwargs)

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/dicts/keypath/keypath_dict.py:14, in KeypathDict.__init__(self, *args, **kwargs)
     12 super().__init__(*args, **kwargs)
     13 if check_keys:
---> 14     keypath_util.check_keys(self, self._keypath_separator)

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/dicts/keypath/keypath_util.py:22, in check_keys(d, separator)
     17     if key and type_util.is_string(key) and separator in key:
     18         raise ValueError(
     19             f"Key should not contain keypath separator '{separator}', found: '{key}'."
     20         )
---> 22 traverse(d, check_key)

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/core/traverse.py:29, in traverse(d, callback)
     27 if not callable(callback):
     28     raise ValueError("callback argument must be a callable.")
---> 29 _traverse_collection(d, callback)

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/core/traverse.py:6, in _traverse_collection(d, callback)
      4 def _traverse_collection(d, callback):
      5     if type_util.is_dict(d):
----> 6         _traverse_dict(d, callback)
      7     elif type_util.is_list_or_tuple(d):
      8         _traverse_list(d, callback)

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/core/traverse.py:14, in _traverse_dict(d, callback)
     12 keys = list(d.keys())
     13 for key in keys:
---> 14     value = d.get(key, None)
     15     callback(d, key, value)
     16     _traverse_collection(value, callback)

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/dicts/__init__.py:140, in benedict.get(self, key, default)
    139 def get(self, key, default=None):
--> 140     return self._cast(super().get(key, default))

File ~/.pyenv/versions/3.9.16/lib/python3.9/site-packages/benedict/dicts/__init__.py:69, in benedict._cast(self, value)
     67 obj_type = type(self)
     68 if isinstance(value, dict) and not isinstance(value, obj_type):
---> 69     return obj_type(
     70         value, keypath_separator=self._keypath_separator, check_keys=False
     71     )
     72 return value

TypeError: __init__() got an unexpected keyword argument 'keypath_separator'

here's the full dependancy tree:
earthaccess==0.5.1
  - fsspec [required: >=2022.1, installed: 2023.4.0]
  - multimethod [required: >=1.8, installed: 1.9.1]
  - pqdm [required: >=0.1, installed: 0.2.0]
    - bounded-pool-executor [required: Any, installed: 0.0.3]
    - tqdm [required: Any, installed: 4.65.0]
    - typing-extensions [required: Any, installed: 4.5.0]
  - python-benedict [required: >=0.25,<0.28.3, installed: 0.28.2]
    - boto3 [required: >=1.24.89,<2.0.0, installed: 1.26.76]
      - botocore [required: >=1.29.76,<1.30.0, installed: 1.29.76]
        - jmespath [required: >=0.7.1,<2.0.0, installed: 1.0.1]
        - python-dateutil [required: >=2.1,<3.0.0, installed: 2.8.2]
          - six [required: >=1.5, installed: 1.16.0]
        - urllib3 [required: >=1.25.4,<1.27, installed: 1.26.15]
      - jmespath [required: >=0.7.1,<2.0.0, installed: 1.0.1]
      - s3transfer [required: >=0.6.0,<0.7.0, installed: 0.6.0]
        - botocore [required: >=1.12.36,<2.0a.0, installed: 1.29.76]
          - jmespath [required: >=0.7.1,<2.0.0, installed: 1.0.1]
          - python-dateutil [required: >=2.1,<3.0.0, installed: 2.8.2]
            - six [required: >=1.5, installed: 1.16.0]
          - urllib3 [required: >=1.25.4,<1.27, installed: 1.26.15]
    - ftfy [required: >=6.0.0,<7.0.0, installed: 6.1.1]
      - wcwidth [required: >=0.2.5, installed: 0.2.6]
    - mailchecker [required: >=4.1.0,<6.0.0, installed: 5.0.8]
    - openpyxl [required: >=3.0.0,<4.0.0, installed: 3.1.2]
      - et-xmlfile [required: Any, installed: 1.1.0]
    - phonenumbers [required: >=8.12.0,<9.0.0, installed: 8.13.8]
    - python-dateutil [required: >=2.8.0,<3.0.0, installed: 2.8.2]
      - six [required: >=1.5, installed: 1.16.0]
    - python-fsutil [required: >=0.9.2,<1.0.0, installed: 0.10.0]
    - python-slugify [required: >=6.0.1,<8.0.0, installed: 7.0.0]
      - text-unidecode [required: >=1.3, installed: 1.3]
    - pyyaml [required: >=6.0,<7.0, installed: 6.0]
    - requests [required: >=2.26.0,<3.0.0, installed: 2.28.2]
      - certifi [required: >=2017.4.17, installed: 2022.12.7]
      - charset-normalizer [required: >=2,<4, installed: 3.1.0]
      - idna [required: >=2.5,<4, installed: 3.4]
      - urllib3 [required: >=1.21.1,<1.27, installed: 1.26.15]
    - toml [required: >=0.10.2,<1.0.0, installed: 0.10.2]
    - xlrd [required: >=2.0.0,<3.0.0, installed: 2.0.1]
    - xmltodict [required: >=0.12.0,<1.0.0, installed: 0.13.0]
  - python-cmr [required: >=0.7, installed: 0.7.0]
    - requests [required: >=2.26.0,<3.0.0, installed: 2.28.2]
      - certifi [required: >=2017.4.17, installed: 2022.12.7]
      - charset-normalizer [required: >=2,<4, installed: 3.1.0]
      - idna [required: >=2.5,<4, installed: 3.4]
      - urllib3 [required: >=1.21.1,<1.27, installed: 1.26.15]
  - requests [required: >=2.26,<3.0.0, installed: 2.28.2]
    - certifi [required: >=2017.4.17, installed: 2022.12.7]
    - charset-normalizer [required: >=2,<4, installed: 3.1.0]
    - idna [required: >=2.5,<4, installed: 3.4]
    - urllib3 [required: >=1.21.1,<1.27, installed: 1.26.15]
  - s3fs [required: >=2021.11,<2024, installed: 2023.4.0]
    - aiobotocore [required: ~=2.5.0, installed: 2.5.0]
      - aiohttp [required: >=3.3.1, installed: 3.8.4]
        - aiosignal [required: >=1.1.2, installed: 1.3.1]
          - frozenlist [required: >=1.1.0, installed: 1.3.3]
        - async-timeout [required: >=4.0.0a3,<5.0, installed: 4.0.2]
        - attrs [required: >=17.3.0, installed: 22.2.0]
        - charset-normalizer [required: >=2.0,<4.0, installed: 3.1.0]
        - frozenlist [required: >=1.1.1, installed: 1.3.3]
        - multidict [required: >=4.5,<7.0, installed: 6.0.4]
        - yarl [required: >=1.0,<2.0, installed: 1.8.2]
          - idna [required: >=2.0, installed: 3.4]
          - multidict [required: >=4.0, installed: 6.0.4]
      - aioitertools [required: >=0.5.1, installed: 0.11.0]
        - typing-extensions [required: >=4.0, installed: 4.5.0]
      - botocore [required: >=1.29.76,<1.29.77, installed: 1.29.76]
        - jmespath [required: >=0.7.1,<2.0.0, installed: 1.0.1]
        - python-dateutil [required: >=2.1,<3.0.0, installed: 2.8.2]
          - six [required: >=1.5, installed: 1.16.0]
        - urllib3 [required: >=1.25.4,<1.27, installed: 1.26.15]
      - wrapt [required: >=1.10.10, installed: 1.14.1]
    - aiohttp [required: !=4.0.0a1,!=4.0.0a0, installed: 3.8.4]
      - aiosignal [required: >=1.1.2, installed: 1.3.1]
        - frozenlist [required: >=1.1.0, installed: 1.3.3]
      - async-timeout [required: >=4.0.0a3,<5.0, installed: 4.0.2]
      - attrs [required: >=17.3.0, installed: 22.2.0]
      - charset-normalizer [required: >=2.0,<4.0, installed: 3.1.0]
      - frozenlist [required: >=1.1.1, installed: 1.3.3]
      - multidict [required: >=4.5,<7.0, installed: 6.0.4]
      - yarl [required: >=1.0,<2.0, installed: 1.8.2]
        - idna [required: >=2.0, installed: 3.4]
        - multidict [required: >=4.0, installed: 6.0.4]
    - fsspec [required: ==2023.4.0, installed: 2023.4.0]
  - tinynetrc [required: >=1.3.1,<2.0.0, installed: 1.3.1]

We are hitting this issue too, and installing from the main works. Maybe you could make a new release? 🙏

this was fixed on the last release, closing it!

authors: adacable betolink psarka

repo: nsidc/earthaccess


text:
Ensure star type assertion is handled properly

Is your feature request related to a problem? Please describe.
Suppose we have a structure declared in the contract:
type (
	UserKey struct {
		Address interop.Hash160
		Data    []byte
		Role    int
	}
)

And suppose we have the following method:
func GetUserKey(ctx storage.Context, idKey []byte) *UserKey {
	data := storage.Get(ctx, idKey)
	if data != nil {
		return std.Deserialize(data.([]byte)).(*UserKey)
	}

	return nil
}

The result of compilation is invalid script:
    compile.go:55:
        	Error Trace:	/home/anna/Documents/GitProjects/nspcc-dev/neo-go/pkg/neotest/compile.go:55
        	            				/home/anna/Documents/GitProjects/nspcc-dev/console/internal/contract/usermanagement/usermanagement_contract_test.go:17
        	            				/home/anna/Documents/GitProjects/nspcc-dev/console/internal/contract/usermanagement/usermanagement_contract_test.go:24
        	Error:      	Received unexpected error:
        	            	using type ANY is incorrect at offset 275

The wrong line is the conversion of structure got after std.Deserialize to Any (which is the pointer to UserKey).
Describe the solution you'd like
The desired result is to convert the structure got after std.Deserialize directly to the UserKey structure if it's not nil. The case is that this code is very similar to the one that we have in our interop package:
https://github.com/nspcc-dev/neo-go/blob/9a270ae30cb889ecbc346efc2efa1d1b6c408abd/pkg/interop/native/ledger/ledger.go#L42-L44
However, the interop API works fine.

Interops are inlined and IIRC there is some special code to handle interop data types, but in general your example should work, so it's just a bug in pointer handling.

The workaround from https://github.com/nspcc-dev/neo-go/issues/3580#issuecomment-2341916070 doesn't really work, btw (nothing is copied, NULLs are left in the struct). Field-by-field assignments do work.

authors: AnnaShaleva roman-khimov

repo: nspcc-dev/neo-go


text:
Fix feed import

This fixes #32. Without this patch https://github.com/nt1m/livemarks/blob/master/background/background.js#L84 is NaN, because maxItems doesn't exist. So no feed items are ever added. In general importing seems sort of buggy, for some period there are a lot of duplicate feed items, probably some concurrent running updates?

#36 should have been #69


text:
Unable to update to Hydogen 1.12.1

a) I think I have a permissions problem. Are updates run through the same user that opens atom or do they run as guest, root, other system process, etc?
a.2)I say this although I know as well that Ubuntu 14.04 has support no more. Unfortunately this is an institutional account and I have no control of OS as in terms of full upgrades.
b) I am attempting forcing the updates know but I know that this is risky so there should be more insight in to how handle issues like this in Ubuntu... any ideas?
thank you!
Bernal
Description:
[Description of the issue]
Steps to Reproduce:

[First Step]
[Second Step]

Versions:
Which OS and which version of Hydrogen and Atom are you running?
Ubuntu 14.04
Atom 1.16.0X64
You can get this information from copy and pasting the output of atom --version  from the command line.
Logs:
/tmp/apm-install-dir-117329-18533-cy0o1v.kshevobt9
└── (empty)
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/1.2.7/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/es5-ext/0.10.15/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/lodash/4.17.4/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/2.4.1/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/1.2.7/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/lodash/4.17.4/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/es5-ext/0.10.15/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/2.4.1/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/1.2.7/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/es5-ext/0.10.15/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/2.4.1/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/lodash/4.17.4/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/1.2.7/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/es5-ext/0.10.15/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/1.2.7/package.tgz
npm ERR! tar.unpack untar error /home/bmanzani/.atom/.apm/core-js/2.4.1/package.tgz
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-117329-18533-cy0o1v.kshevobt9/package.json'
npm WARN apm-install-dir-117329-18533-cy0o1v.kshevobt9 No description
npm WARN apm-install-dir-117329-18533-cy0o1v.kshevobt9 No repository field.
npm WARN apm-install-dir-117329-18533-cy0o1v.kshevobt9 No README data
npm WARN apm-install-dir-117329-18533-cy0o1v.kshevobt9 No license field.
npm ERR! Linux 3.13.0-117-generic
npm ERR! argv "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/bmanzani/.atom/.apm/.apmrc" "--userconfig" "/home/bmanzani/.atom/.apmrc" "install" "/tmp/d-117329-18533-1hser3.8elxj62yb9/package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.5
npm ERR! code ENOSPC
npm ERR! errno -28
npm ERR! syscall write
npm ERR! nospc ENOSPC: no space left on device, write
npm ERR! nospc This is most likely not a problem with npm itself
npm ERR! nospc and is related to insufficient space on your system.
npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-117329-18533-cy0o1v.kshevobt9/npm-debug.log
npm ERR! code 1
Please post any error logs and the output of the developer tools as described in our Debugging Guide.

The logs suggest you don't have enough disk space on the machine to update.
apm heavily uses the temp directory /tmp/ to do its installs. Have you checked that your system  (especially the temp dir) has enough space left?

@Bernalms have you had any progress with this issue? I agree it looks like your /tmp/ directory needs to be cleaned up to make space.

authors: BenRussert Bernalms lgeiger

repo: nteract/hydrogen


text:
Please add the "oceanic" variant of the theme

Looking at the official website of this theme, https://material-theme.site/ there seems to be a new (even darker) variant of it. I think it's called "oceanic"
Would you consider adding it?

The normal Material theme is the same as "oceanic" on that website. The one that is missing from this repo is in fact "Material Deep Ocean"

Also, there is no "official website" of the material theme itself. That website is the one for VS Code and there are also ones for IntelliJ, Sublime Text (which I believe was the first to create the "Oceanic" etc. names), and probably more.

authors: pinpox retnikt


text:
null 判定の追加

if 文内の変数が null の際にエラーになるのを回避する

確認が遅くなり申し訳ありません。
PullReqありがとうございました！

repo: nttcom/SkyWay-ScreenShare


text:
Take a look at my work so far

Please check my work so far.

hey @nuaaun, I'll take a look.

repo: nuaaun/fantastic-robot


text:
Feature Request: Build+Deploy from a local directory containing source code and config yaml

Requested feature
As a user ideally I would be able use the python integration to build+deploy a Nuclio function by pointing toward a local directory with source code and a config yaml file (or a zip file containing those)
Currently there is similar functionality available for git or a remote zip archive:
Git python example
addr = nuclio.deploy_file('git://github.com/nuclio/nuclio#master:/hack/examples/python/helloworld',name='hw', project='myproj')

Remote Zip Jupyter example
%nuclio deploy https://myurl.com/projects/myfunc-v1.zip -n myfunc -p myproj

Current Functionality
I can build source code from a local file (e.g. .py file) like so:
my_code, _, _ = build_file('path/to/python_function.py')

I can build the config using the ConfigSpec object like so:
build_commands = ["pip install requests"]
spec = nuclio.ConfigSpec(cmd=build_commands).set_env('foo', 'bar')

And combining these two can deploy like so:
addr = deploy_code(my_code, spec=my_ConfigSpec)

Desired Functionality
It would be great to be able to eliminate the need to use ConfigSpec to build a configuration and instead point to a local directory with a yaml file similar to the functionality for git or remote zip files.
# Build and deploy in one step
addr = deploy_code('path/to/code_and_config/', name='hw', project='myproj')

I agree, sometimes we have to have multiple *.py files.
For instance, most of CVAT models have multiple .py files that can be deploy with nuctl cli tool.

authors: Rusteam safurrier

repo: nuclio/nuclio-jupyter


text:
What you think about routing?

What you think about routing?

It's an essential feature in a single-page application. I love cute URL's! Routing & state management will be tackled with the upcoming Nue MVC project. It's based on the native History: pushState() method

It's an essential feature in a single-page application. I love cute URL's! Routing & state management will be tackled with the upcoming Nue MVC project. It's based on the native History: pushState() method

I am waiting

Check https://nuejs.org/tools/

Nue MVC is an alternative to things like react-router, vue-router, Redux, and Pinia
Nuekit is an alternative to things like Vite, Next.js, Nuxt.js, and Astro

The History API works of course (strictly speaking, for SPAs, it's all we got), but corner cases can get infuriatingly tricky and pretty universally bad for accessibility.
See https://medium.com/@dvoytenko/new-web-history-api-91a1a21ff7b8 and the proposed replacement, the (experimental) Navigation API: https://github.com/WICG/navigation-api#summary

Absolutely! When I say "based on", it means that I use it as the core, but wrap it with dynamics to make it a powerful C in  MVC.

Closing this one. Thanks guys!

authors: JensRoland tipiirai yousuf4you

repo: nuejs/nuejs


text:
🛑 Secret Site BIS is down

In 07b7e72, Secret Site BIS ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Site BIS is back up in 571cca5 after 26 minutes.


text:
🛑 Difesa is down

In 70e309b, Difesa (http://www.difesa.it/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Difesa is back up in 4f20db4.


text:
🛑 Università e ricerca is down

In 3b57e72, Università e ricerca (https://www.mur.gov.it/it) was down:

HTTP code: 403
Response time: 632 ms

Resolved: Università e ricerca is back up in 0582ab0.


text:
🛑 Difesa is down

In 8bcd6a7, Difesa (http://www.difesa.it/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Difesa is back up in a254ff2.


text:
🛑 Università e ricerca is down

In 5e0cc0d, Università e ricerca (https://www.mur.gov.it/it) was down:

HTTP code: 403
Response time: 566 ms

Resolved: Università e ricerca is back up in 66fe872.


text:
Allow indexing ndarray.flat, e.g., x.flat[i]

For example, we could loop over all elements of an N-dimensional array (in C order) as follows:
total = 0
for i in range(a.size):
    total += a.flat[i]

This is another possible solution for fast indexing over multiple, N-dimensional arrays (e.g., https://github.com/numba/numba/issues/1111, https://github.com/numba/numba/issues/1183).
Does this seem like the sort of operation that Numba could do a nice job of accelerating?

Yes, it does. I hadn't noticed that ndarray.flat could be indexed. That looks a bit weird for an iterator.

If not super slow, this idiom of indexing ndarray.flat could actually be useful in CUDA, where you want to step through the iterator with a large stride in order to achieve a certain memory access pattern between threads.

Ok, after testing a bit, there will be a caveat: it will be super-fast on C-contiguous arrays, but probably slow on non-C-contiguous ones, where you have to reconvert the integer index into a tuple index in order to multiply with the corresponding strides... Unless anyone can think of something better?

C-contiguous is probably the most important case.  If needed, we can put a performance warning in the manual.

If we expose ndarray.flags.c_contiguous, by the way, we can allow people to use different iteration methods depending on the array layout.

That is a good idea.

Can we identify the attribute as a constant in such a way that LLVM can actually eliminate the dead code in the branch corresponding to the other layout?  Since the continguousness (continguity?) of the array is part of the Numba type, any given lowering of a function that branches on c_contiguous only needs one side of the branch, right?

Yes, it will be a runtime constant.

authors: pitrou seibert shoyer

repo: numba/numba


text:
"Call to cuPointerGetAttribute" errors with multi-process + multi-GPU + external GPU arrays

Reporting a bug

[x] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

So far in every GPU Hackathon I attended my teams can always spot one or two bugs 😆
But this one is particularly pathological and hard to catch. It requires 3 conditions:

Running on a node with multiple GPUs
In a multi-process environment (we use MPI here, but no need to do any MPI communications); each process controls 1 GPU
The input array is from a 3rd-party GPU library that supports __cuda_array_interface__ and manages its own CUDA context (so can't just fake a GPUarray instance to test this)

Relaxing some of the conditions would either make it run correctly, or is not tested.
MWE:
import math
import numpy as np

from mpi4py import MPI    # mpi is initialized here
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
size = comm.Get_size()

import cupy as cp
cp.cuda.Device(rank).use()  # set device based on rank, a cuda context is initialized here
from numba import cuda

@cuda.jit
def just_a_cosine(arr):
    x = cuda.grid(1)
    if x < arr.size:
        arr[x] = math.cos(arr[x])

arr = cp.random.random((10,), dtype=np.float32)
just_a_cosine[(1,), (10,)](arr)  # <----error with N>=2 processes

Output:
leofang@somewhere:~/test$ mpirun -n 2 python -u test_numba_innerloop3.py
Traceback (most recent call last):
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/typing/context.py", line 344, in resolve_argument_type
    return typeof(val, Purpose.argument)
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/typing/typeof.py", line 34, in typeof
    raise ValueError(msg)
ValueError: cannot determine Numba type of <class 'cupy.core.core.ndarray'>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test_numba_innerloop3.py", line 20, in <module>
    just_a_cosine[(1,), (10,)](arr)  # <----error with N>=2 processes
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/compiler.py", line 765, in __call__
    kernel = self.specialize(*args)
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/compiler.py", line 775, in specialize
    [self.typingctx.resolve_argument_type(a) for a in args])
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/compiler.py", line 775, in <listcomp>
    [self.typingctx.resolve_argument_type(a) for a in args])
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/typing/context.py", line 347, in resolve_argument_type
    return typeof(numba.cuda.as_cuda_array(val), Purpose.argument)
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/api.py", line 60, in as_cuda_array
    owner=obj)
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/cudadrv/devices.py", line 212, in _require_cuda_context
    return fn(*args, **kws)
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/api.py", line 41, in from_cuda_array_interface
    devptr = driver.get_devptr_for_active_ctx(desc['data'][0])
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 1689, in get_devptr_for_active_ctx
    driver.cuPointerGetAttribute(byref(devptr), attr, ptr)
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 290, in safe_cuda_api_call
    self._check_error(fname, retcode)
  File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 325, in _check_error
    raise CudaAPIError(retcode, msg)
numba.cuda.cudadrv.driver.CudaAPIError: [1] Call to cuPointerGetAttribute results in CUDA_ERROR_INVALID_VALUE
-------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[897,1],1]
  Exit code:    1
--------------------------------------------------------------------------

Note that for single process it works correctly. The versions of Numba, CuPy, __cuda_array_interface__, CUDA toolkit, Python, etc, are all irrelevant, so is the underlying MPI implementation (tested with Spectrum MPI and Open MPI).
As mentioned this bug is hard to hit, so when we realized how to reproduce it, getting around it is pretty easy. Still, it's worth reporting such a corner case. I suspect the fix to #4092 might be incomplete...
cc: @jqyin, @dxm447

Actually we don't need to call the jit kernel here; removing it and calling as_cuda_array() would also reproduce the error:
# ...omitted, see the MWE above

arr = cp.random.random((10,), dtype=np.float32)
arr = cuda.as_cuda_array(arr)

I am sorry, I don't think this is a valid MWE. Let me close this issue first, and make a better one. Thanks.

@leofang thanks, if you have a MWE for the issue you see that'd be great!

@stuartarchibald Thanks. Turns out that this was a false alarm due to multiple mistakes we made. Everything works fine.

authors: leofang stuartarchibald


text:
Make the shim deprecation warnings work on python 3.6 too

Thanks for the patch. Think something might be missing, numba.core.errors._MovedModule  isn't defined?!

Crap, working with large find/replace results is hard

Will fix flake8 after any other review comments, seems pointless running CI an additional time

Thanks! Marking as ready for review.

@sklam this patch makes the "shim" work for all Python 3s. It uses a technique described here https://mail.python.org/pipermail/python-ideas/2012-May/014969.html by Guido and it "... works because the import machinery is actively enabling this hack". Whilst it's messing with sys.modules at import time, it appears to be an approved way to do so! Any concerns?

Will rebase and fix flake8 today, in the hope that silence means there are no other concerns

Will rebase and fix flake8 today, in the hope that silence means there are no other concerns

Thanks @eric-wieser, we discussed this yesterday during the Numba weekly triage meeting, the view in general was this method has been blessed by CPython devs and so should be fine (tests also seem to confirm that to be the case)!
I did note that WRT your comments here: https://github.com/numba/numba/pull/5494#discussion_r402581760
This patch does:
$ python -c 'import numba.targets; x = numba.targets.imputils'
<string>:1: NumbaDeprecationWarning: No direct replacement available. Visit https://gitter.im/numba/numba-dev to request help. Thanks!
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<path>/numba/numba/core/errors.py", line 447, in __getattr__
    mod = import_module(self.__new_module)
  File "<env>/lib/python3.8/importlib/__init__.py", line 118, in import_module
    if name.startswith('.'):
AttributeError: 'NoneType' object has no attribute 'startswith'

which does issue the warning but also maybe has a similar problem RE None?

Fixed the None issue, and also added a second commit to attempt to fix the numba.targets.imputils issue.

Think I'm finally through the flake8 errors

Going to run this through the buildfarm just to make sure.

Buildfarm ID: numba_smoketest_cpu_30.

Build farm passed apart from w32 which got stuck on one build due to issues with git-bash. Not worth holding up for as there's other w32 issues for 0.49.0rc2.

authors: eric-wieser gmarkall stuartarchibald


text:
bump max python version for Python 3.11

As title

This would never be mergeable on it's own. Closing the PR, but the branch remains. See #8304


text:
Build a basic mock OEIS

We need a mock OEIS to test Backscope's response to OEIS behavior that we can't or shouldn't be replicate at will using real OEIS API calls. Examples include throttling and site outages.
This pull request changes the Backscope app to enable mock OEIS tests:

Make the OEIS request URL a configuration parameter that create_app can set.
Add timeouts to all OEIS requests. (This is meant to prevent mock OEIS tests from hanging.)

It also starts building a mock OEIS:

Write the basic outline of a mock OEIS (the mock_oeis subpackage), not yet using it for any genuine tests.
Write a basic example of a test which uses the mock OEIS (TestMockOEIS).

This test should pass as long as all others pass and the mock OEIS is working, so it serves as a test of the mock OEIS itself.
Eventually, we should probably write an abstract mock OEIS test, in the spirit of AbstractEndpointTest. Then we can go back and simplify TestMockOEIS.

So to test this, should I simply pull and then flask run and flask test?  Or is there something else I ought to do?

Since the mock OEIS is a Flask application, you can launch it manually by calling
flask --app mock_oeis run

and interact with it through a browser! For example, the ready endpoint should be at http://localhost:5000/ready.

Doing flask test looks like it is doing what it should, it gives:
.s. * Serving Flask app 'mock_oeis'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5001
Press CTRL+C to quit
127.0.0.1 - - [15/Nov/2023 21:43:29] "GET /ready HTTP/1.1" 200 -
127.0.0.1 - - [15/Nov/2023 21:43:29] "GET /test HTTP/1.1" 200 -
127.0.0.1 - - [15/Nov/2023 21:43:29] "GET /A153080/b153080.txt HTTP/1.1" 200 -
127.0.0.1 - - [15/Nov/2023 21:43:29] "GET /search?q=A153080&fmt=json HTTP/1.1" 200 -
.
----------------------------------------------------------------------
Ran 4 tests in 0.782s

OK (skipped=1)

I was able to succeed playing around with the /ready and /test and /<oeis_id>/<filename> endpoints and observe what I understand to the be the expected behaviour.  But the /search endpoint returns 400 bad request.

I was able to succeed playing around with the /ready and /test and /<oeis_id>/<filename> endpoints and observe what I understand to the be the expected behaviour. But the /search endpoint returns 400 bad request.

Also, should there be some documentation of these endpoints included in this PR?  (I don't know whether there should; I'm just bringing it up.)

But the /search endpoint returns 400 bad request.

What search query are you using? The mock OEIS uses the same query URL format as the real one. You should get a 400 response unless you request results in JSON format, and your query is one of these:

A153080
A321580
id:A153080
id:A321580

Here's an example of a real OEIS search URL that should also work on the mock OEIS.
I tried to return a helpful error message along with the 400, but apparently that's not working! At least, I can't see the error message anywhere in the Firefox request inspector.
Seeing how far from apparent this all is, I agree that some documentation might be a good idea, even though the mock OEIS isn't used in genuine tests yet. I could add a section to the "Running tests" page.

Here's an example of a real OEIS search URL that should also work on the mock OEIS.

Oh!  That's how search works!  I didn't know that, I was just trying /search

I tried to return a helpful error message along with the 400, but apparently that's not working! At least, I can't see the error message anywhere in the Firefox request inspector.

Nope, didn't see anything.

Seeing how far from apparent this all is, I agree that some documentation might be a good idea, even though the mock OEIS isn't used in genuine tests yet. I could add a section to the "Running tests" page.

Yeah, I think just to test it out, I needed some documentation guidance ;)

I agree that a brief section at the end of doc/tests.md recording the fact that the mock_oeis exists and how it can be used to write tests would be a good addition to this PR before it is merged.

Just added documentation in doc/tests.md and the new file doc/mock-oeis.md. It's mostly copied from this conversation.

authors: Vectornaut gwhitney katestange

repo: numberscope/backscope


text:
New issue: When voice chatting, the ring shown when talking is circular and not square like the icon

got it


text:
language.c: bang into shape

A few learning:
ld uses LIBRARY_PATH, not LD_LIBRARY_PATH to find object files. Link to the
libraries directly to minimize rebuilds.
pkgs.gcc doesn't expose the gcov binary. pkgs.gcc is heavily tweaked to
work with the nixpkgs stdenv so use pkgs.gcc-unwrapped instead.
Made pkg-config optional, it's not used all the time.

For testing: https://github.com/Mic92/build-system-koans

I'm a bit overwhelmed by the complexity of this work and don't think I can do a good job at it. If somebody wants to take over, I would be happy.

I'm a bit overwhelmed by the complexity of this work and don't think I can do a good job at it. If somebody wants to take over, I would be happy.

Maybe we can talk about this next year.

repo: numtide/devshell


text:
support for bash-completions

The bash-completions package automatically finds the right completion scripts by
looking into XDG_DATA_DIRS. Probably other programs respecting XDG specs
can also benefit from setting that environment variable.
Thanks to https://github.com/NixOS/nixpkgs/pull/103501 for finding that
gem.

Quick breadcrumb trail (potentially working) for zsh https://stackoverflow.com/questions/25290751/where-to-place-zsh-autocompletion-script-on-linux

authors: blaggacao zimbatm


text:
Number of Recent Files Setting is broken

When changing the number of recent files setting, the NUnit30Settings file becomes corrupted. I observed this when reducing the number of settings from 5 to 3, when there were already 3 files shown in the list.

Actually it is not the Recent Files Setting that is broken, but instead InitialTreeDisplay. I tried several times today to reconstruct the error on HEAD, but I was not able to do so. Then I reverted the code to tag 0.2 and there I could more or less consistently reconstruct the error. However, I could not figure out the error until I ran the .exe with --trace=Debug. Then I got the following error in the log
22:30:01.930 Error [ 1] ServiceManager: System.ArgumentException: The value '-1' is not a valid value for the enum 'TreeDisplayStyle'.
   at System.ComponentModel.EnumConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
   at System.ComponentModel.TypeConverter.ConvertToString(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at NUnit.Engine.Internal.SettingsStore.SaveSettings()
   at NUnit.Engine.Services.SettingsService.StopService()
   at NUnit.Engine.Services.ServiceManager.StopServices()

The problem in version 0.2 is that InitialTreeDisplay is not on the first visible page, hence we will not call initialDisplayComboBox.SelectedIndex = (int)Settings.Gui.TestTree.InitialTreeDisplay; in LoadSettings. But since SettingsLoaded is always true we will call Settings.Gui.TestTree.InitialTreeDisplay = (TreeDisplayStyle)initialDisplayComboBox.SelectedIndex; when closing the Settings menu, and SelectedIndex is not set (i.e. -1).
The error can be reproduced on HEAD in the following manner.

Remove Nunit30Settings.xml in C:\Users\MYUSERNAME\AppData\Local\NUnit.
Run nunit-gui.exe go to Tools => Settings, and choose Assembly Reload (this will make this page the first Settings page next time we go into Settings) and change one of the settings. Click OK and close the GUI.
See that Nunit30Settings.xml contains some settings.
Run nunit-gui.exe go to Tools => Settings (it now opens Assembly Reload). Change one of the settings. Click OK and close the GUI.
See that Nunit30Settings.xml is empty (i.e. is has become corrupted).

I've a local changeset that changes the behaviour of SettingsLoaded, so that it only returns true when LoadSettings have been called. I will make a pull request tonight.

I'm not completely convinced that this is the same error I was seeing, but that error is no longer relevant anyway. That's because the settings file now always saves the maximum number of recent file entries.
Normally I'd close this as norepro, but since you've already made useful comments on it, I'm just re-titling it. We are in pre-production mode, we don't have to track these things quite so rigorously.
I'll look forward to seeing the PR.

authors: CharliePoole mikkelbu

repo: nunit/nunit-gui


text:
NUnit v3 does not discover test when TestFixture inherits from class in different assembly

When I run test that is in test fixture that inherits from class containing [SetUp] AND/OR [TearDown] AND/OR [TestFixture] attribute and is located in different assembly, then test is NOT discovered.
VS Output:
No tests found to run.

Platform:

.NET Framework 4.6.1
VS2017 (15.2 26430.15)
NUnit 3 Test Adapter 3.7.0.0

Required nugets:

NUnit v3.7.1

Example:
---- Project Different -----

namespace Different
{
    using NUnit.Framework;

    // Same base class, but in different than TestFixture project
    public class BaseTest
    {
        [SetUp] // POI
        public void Setup()
        {
        }

        [TearDown] // POI
        public void Teardown()
        {
        }
    }
}

---- Project Same ----

namespace Same
{
    using NUnit.Framework;

    // Same base class, but in the same as TestFixture project
    public class BaseTest
    {
        [SetUp]
        public void Setup()
        {
        }

        [TearDown]
        public void Teardown()
        {
        }
    }
}

Consider Following cases:

TEST DISCOVERED: Inheriting after base class located in same assembly

namespace Same
{
    using NUnit.Framework;

    [TestFixture]
    public class Tests : Same.BaseTest // POI
    {
        [Test]
        public void Test()
        {
        }
    }
}

TEST NOT DISCOVERED: Inheriting after base class located in different assembly WITH [SetUp] and/or [TearDown] attributes

namespace Same
{
    using NUnit.Framework;

    [TestFixture]
    public class Tests : Different.BaseTest // POI
    {
        [Test]
        public void Test()
        {
        }
    }
}

TEST DISCOVERED: Inheriting after base class located in different assembly WITHOUT [SetUp] or [TearDown] attributes

---- Project Different -----

namespace Different
{
    using NUnit.Framework;

    public class EmptyBaseTest
    {
        // POI
    }
}

---- Project Same ----

namespace Same
{
    using NUnit.Framework;

    [TestFixture]
    public class Tests : Different.EmptyBaseTest // POI
    {
        [Test]
        public void Test()
        {
        }
    }
}

I have the solution: Project Different had NUnit v3.7.1 package, but Project Same had NUnit v3.6.1.
I wonder if this can be somehow printed as an error in Output, not "No tests found to run"?

Excellent report, thank you. I expect that this is an issue with the NUnit Framework, not the adapter. Can you confirm that the tests are not found when you run the tests with the NUnit Console?
We had a similar issue reported nunit/nunit#2014, but it could not be reproduced. I also have tests that do the same thing that work fine.

@UnderHeavyDevelopment our posts crossed 😄
I am going to move this to the framework repository as it is a general issue. I am not sure how we can easily detect if you are using multiple versions of the framework, but we will look into it.

Issue moved to nunit/nunit #2316 via ZenHub

authors: UnderHeavyDevelopment rprouse

repo: nunit/nunit-vs-adapter


text:
Cannot build sites: error rendering 404/calling markdownify

Describe the bug
I fear this is most likely a problem on my side, with the version of hugo i use or how i set up my project but just in case it isn't: If i try to build my sites using hugo in my visual studio code terminal (powershell) i get a runtime error invalid memory address or nil pointer dereference when trying to render "404".
To Reproduce

Created GitLab Repo using the Pages/Hugo Template
Pulled the Repo through Visual Studio Codes Git Extension
Added blowfish as a git submodule
Deleted default config.toml
Added config files from blowfish folder

Expected behavior
The sites being able to be build.
Screenshots

Desktop (please complete the following information):

OS: Windows 10 Version 22H2 Build 19045.2788
IDE: VS Code 1.78.0

Hugo & Blowfish versions

Hugo extended v0.111.3
Blowfish v2.33.0

Hey @buson94 moving this into a discussion. Here are my thoughts (I don't have an equivalent OS to test this - I am on Mac)
this Pages/Hugo Template seems to be the problem. I would try a local test using the Hugo install guide and then Blowfish. If that works the template is at fault. Might be wrong though. In my experience, I've run into several problems everytime I've tried to use templates for Hugo.

repo: nunocoracao/blowfish


text:
Find a cool name for your editor ;)

how about PETMATE and we bundle our projects as one productivity suite? :D

I like Petmate. Unless a better suggestion emerges, I think I’ll go with this.
Sent with GitHawk

Brilliant! I'd love Petmate and had that name in mind already, but hesitated to propose it ;)

Hahaha, just read the issue again and realized I DID suggest Petmate.
Man I'm so lame haha!

The name is so awesome that you couldn’t resist suggesting it twice. :)
Sent with GitHawk

HAHAHA! Closing! :D

I’ll keep this open so that it stays on my todo list.
Sent with GitHawk

authors: Esshahn nurpax

repo: nurpax/petski


text:
The docker container of senx cannot be found

I have encountered some difficulties while attempting to use the SenX tool to analyze real-world vulnerabilities.   Specifically, I have received an error message stating that "senx does not provide a Docker image."   I was wondering if you could provide any guidance on where I might be able to obtain this docker image.Thanks.

Not long ago, I sent an email to zhen.huang@depaul.edu, but I haven't heard back. Can you tell me how you can contact the authors of the SenX paper to get a copy of VM？
I would appreciate it very much.

@wengcheng003 this is the same email we used to contact the author

Thank you very much for your reply. I used this email address to send an email to the author and got a reply.
Thanks again for your help！
@rshariffdeen

authors: rshariffdeen skdsfy wengcheng003

repo: nus-apr/cerberus


text:
[T4A6][T09-A2] Tham Shi Yuan

Ready For Review.

@thamsy Some comments added. Please close the PR after reading comments.

authors: nirandiw thamsy


text:
[W8.6b][T09-B3]LIWEN LAI

add a tagging class to record a tag added/removed

@Livian1107
Some comments added. Please close the PR after reading comments.