Error installing swarms 5.8.7

Am installing swarms for the first time...need help...
venv) (venv) jcooper@iMac swarms % python --version
Python 3.13.0
(venv) (venv) jcooper@iMac swarms % pip install swarms==5.8.7
Collecting swarms==5.8.7
Using cached swarms-5.8.7-py3-none-any.whl.metadata (93 kB)
Collecting Pillow==10.4.0 (from swarms==5.8.7)
Using cached pillow-10.4.0-cp313-cp313-macosx_10_13_x86_64.whl.metadata (9.2 kB)
Collecting PyYAML (from swarms==5.8.7)
Using cached PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl.metadata (2.1 kB)
Collecting aiofiles (from swarms==5.8.7)
Using cached aiofiles-24.1.0-py3-none-any.whl.metadata (10 kB)
Collecting asyncio<4.0,>=3.4.3 (from swarms==5.8.7)
Using cached asyncio-3.4.3-py3-none-any.whl.metadata (1.7 kB)
Collecting backoff==2.2.1 (from swarms==5.8.7)
Using cached backoff-2.2.1-py3-none-any.whl.metadata (14 kB)
Collecting black (from swarms==5.8.7)
Using cached black-24.10.0-cp313-cp313-macosx_10_13_x86_64.whl.metadata (79 kB)
Collecting clusterops (from swarms==5.8.7)
Using cached clusterops-0.0.5-py3-none-any.whl.metadata (11 kB)
Collecting docstring_parser==0.16 (from swarms==5.8.7)
Using cached docstring_parser-0.16-py3-none-any.whl.metadata (3.0 kB)
Collecting fastapi (from swarms==5.8.7)
Using cached fastapi-0.115.3-py3-none-any.whl.metadata (27 kB)
Collecting langchain-community==0.0.29 (from swarms==5.8.7)
Using cached langchain_community-0.0.29-py3-none-any.whl.metadata (8.3 kB)
Collecting langchain-experimental==0.0.55 (from swarms==5.8.7)
Using cached langchain_experimental-0.0.55-py3-none-any.whl.metadata (2.1 kB)
Collecting loguru==0.7.2 (from swarms==5.8.7)
Using cached loguru-0.7.2-py3-none-any.whl.metadata (23 kB)
Collecting networkx (from swarms==5.8.7)
Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
Collecting openai<2.0,>=1.30.1 (from swarms==5.8.7)
Using cached openai-1.52.2-py3-none-any.whl.metadata (24 kB)
Collecting psutil (from swarms==5.8.7)
Using cached psutil-6.1.0-cp36-abi3-macosx_10_9_x86_64.whl.metadata (22 kB)
Collecting pydantic==2.8.2 (from swarms==5.8.7)
Using cached pydantic-2.8.2-py3-none-any.whl.metadata (125 kB)
Collecting pypdf==4.3.1 (from swarms==5.8.7)
Using cached pypdf-4.3.1-py3-none-any.whl.metadata (7.4 kB)
Collecting python-dotenv (from swarms==5.8.7)
Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting sentry-sdk[http] (from swarms==5.8.7)
Using cached sentry_sdk-2.17.0-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting swarm-models (from swarms==5.8.7)
Using cached swarm_models-0.1.1-py3-none-any.whl.metadata (9.2 kB)
Collecting swarms-cloud<5,>=0.4.4 (from swarms==5.8.7)
Using cached swarms_cloud-0.4.4-py3-none-any.whl.metadata (8.3 kB)
Collecting swarms-memory (from swarms==5.8.7)
Using cached swarms_memory-0.1.2-py3-none-any.whl.metadata (12 kB)
Collecting tenacity==8.5.0 (from swarms==5.8.7)
Using cached tenacity-8.5.0-py3-none-any.whl.metadata (1.2 kB)
Collecting termcolor (from swarms==5.8.7)
Using cached termcolor-2.5.0-py3-none-any.whl.metadata (6.1 kB)
Collecting tiktoken (from swarms==5.8.7)
Using cached tiktoken-0.8.0-cp313-cp313-macosx_10_13_x86_64.whl.metadata (6.6 kB)
Collecting toml (from swarms==5.8.7)
Using cached toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
INFO: pip is looking at multiple versions of swarms to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement torch<3.0,>=2.1.1 (from swarms) (from versions: none)
ERROR: No matching distribution found for torch<3.0,>=2.1.1
(venv) (venv) jcooper@iMac swarms % python -m pip install swarms==5.8.7
Collecting swarms==5.8.7
Using cached swarms-5.8.7-py3-none-any.whl.metadata (93 kB)
Collecting Pillow==10.4.0 (from swarms==5.8.7)
Using cached pillow-10.4.0-cp313-cp313-macosx_10_13_x86_64.whl.metadata (9.2 kB)
Collecting PyYAML (from swarms==5.8.7)
Using cached PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl.metadata (2.1 kB)
Collecting aiofiles (from swarms==5.8.7)
Using cached aiofiles-24.1.0-py3-none-any.whl.metadata (10 kB)
Collecting asyncio<4.0,>=3.4.3 (from swarms==5.8.7)
Using cached asyncio-3.4.3-py3-none-any.whl.metadata (1.7 kB)
Collecting backoff==2.2.1 (from swarms==5.8.7)
Using cached backoff-2.2.1-py3-none-any.whl.metadata (14 kB)
Collecting black (from swarms==5.8.7)
Using cached black-24.10.0-cp313-cp313-macosx_10_13_x86_64.whl.metadata (79 kB)
Collecting clusterops (from swarms==5.8.7)
Using cached clusterops-0.0.5-py3-none-any.whl.metadata (11 kB)
Collecting docstring_parser==0.16 (from swarms==5.8.7)
Using cached docstring_parser-0.16-py3-none-any.whl.metadata (3.0 kB)
Collecting fastapi (from swarms==5.8.7)
Using cached fastapi-0.115.3-py3-none-any.whl.metadata (27 kB)
Collecting langchain-community==0.0.29 (from swarms==5.8.7)
Using cached langchain_community-0.0.29-py3-none-any.whl.metadata (8.3 kB)
Collecting langchain-experimental==0.0.55 (from swarms==5.8.7)
Using cached langchain_experimental-0.0.55-py3-none-any.whl.metadata (2.1 kB)
Collecting loguru==0.7.2 (from swarms==5.8.7)
Using cached loguru-0.7.2-py3-none-any.whl.metadata (23 kB)
Collecting networkx (from swarms==5.8.7)
Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
Collecting openai<2.0,>=1.30.1 (from swarms==5.8.7)
Using cached openai-1.52.2-py3-none-any.whl.metadata (24 kB)
Collecting psutil (from swarms==5.8.7)
Using cached psutil-6.1.0-cp36-abi3-macosx_10_9_x86_64.whl.metadata (22 kB)
Collecting pydantic==2.8.2 (from swarms==5.8.7)
Using cached pydantic-2.8.2-py3-none-any.whl.metadata (125 kB)
Collecting pypdf==4.3.1 (from swarms==5.8.7)
Using cached pypdf-4.3.1-py3-none-any.whl.metadata (7.4 kB)
Collecting python-dotenv (from swarms==5.8.7)
Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting sentry-sdk[http] (from swarms==5.8.7)
Using cached sentry_sdk-2.17.0-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting swarm-models (from swarms==5.8.7)
Using cached swarm_models-0.1.1-py3-none-any.whl.metadata (9.2 kB)
Collecting swarms-cloud<5,>=0.4.4 (from swarms==5.8.7)
Using cached swarms_cloud-0.4.4-py3-none-any.whl.metadata (8.3 kB)
Collecting swarms-memory (from swarms==5.8.7)
Using cached swarms_memory-0.1.2-py3-none-any.whl.metadata (12 kB)
Collecting tenacity==8.5.0 (from swarms==5.8.7)
Using cached tenacity-8.5.0-py3-none-any.whl.metadata (1.2 kB)
Collecting termcolor (from swarms==5.8.7)
Using cached termcolor-2.5.0-py3-none-any.whl.metadata (6.1 kB)
Collecting tiktoken (from swarms==5.8.7)
Using cached tiktoken-0.8.0-cp313-cp313-macosx_10_13_x86_64.whl.metadata (6.6 kB)
Collecting toml (from swarms==5.8.7)
Using cached toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
INFO: pip is looking at multiple versions of swarms to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement torch<3.0,>=2.1.1 (from swarms) (from versions: none)
ERROR: No matching distribution found for torch<3.0,>=2.1.1

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

@jcooper212 the download should be okay, try running a simple agent script in the readme. I don't think there was an error here.

@jcooper212 you are good to go. try running a file in the examples and let me know what happens


Add hasSubscription endpoint

Description
As a part of #50 , the streamer API should be able to check the subscription of the user via the endpoints of the subscription module.
Desirably an endpoint accepting
Request

Parameter
Type
Validation
Default
Comment

address
string
Lisk 32 address validation
(empty)
-

As responding as follows:
Response
OK
{
  success: true
}

Not found
{
  "error": true,
  "message": "Account <address> not found."
}

Not subscribed
{
  "error": true,
  "message": "Account <address> has no valid subscription."
}

Bad request
{
  "error": true,
  "message": "Parameter address is required."
}

Resolved by #79


ll-hls get "muxer error: wrong nal_ref_idc"

I'm trying to publish from ffmpeg qsv, with this command:
 ffmpeg -stimeout 30000000 -rtsp_transport tcp  -hwaccel qsv -c:v h264_qsv -i rtsp://<IP_ADDRESS>/live -an  -c:v h264_qsv  -f rtsp -rtsp_transport tcp rtsp://<IP_ADDRESS>:18554/test
and get this error:
2022/06/02 20:16:32 INF [HLS] [muxer proxied] is converting into HLS 2022/06/02 20:16:34 INF [HLS] [muxer proxied] destroyed (muxer error: wrong nal_ref_idc)
With normal rtsp camera stream work fine (about 3s of delay).
I'm trying to reduce this with hw encoding.
Any clue that´s is wrong?
BTW, cheers for llhls support!

Thanks for reporting this issue, this error happens when the server tries to parse the SPS of your stream. Actually the server checks that the nal_ref_idc field of a SPS NALU is equal to 3, otherwise it throws an error.
I've read again the H264 specification (ISO 14496-10:2020) and it says that nal_ref_idc of a SPS must be != 0, not equal to 3.

Please try this nightly release and let me know if it works
rtsp-simple-server_v0.19.0-14-g758b9d5_darwin_amd64.tar.gz
rtsp-simple-server_v0.19.0-14-g758b9d5_linux_amd64.tar.gz
rtsp-simple-server_v0.19.0-14-g758b9d5_linux_arm64v8.tar.gz
rtsp-simple-server_v0.19.0-14-g758b9d5_linux_armv6.tar.gz
rtsp-simple-server_v0.19.0-14-g758b9d5_linux_armv7.tar.gz
rtsp-simple-server_v0.19.0-14-g758b9d5_windows_amd64.zip

Now works perfect!
I want to reduce the latency closest to 1s, but can´t get any under 2.5 o 3s.
What can I try apart of readme recomendation (already change the iframe to 0.5s).
Thanks.

If you want to decrease latency you have to decrease hlsPartDuration.
Latency won't go below hlsPartDuration * 4 (1 part is being generated, the other 3 are queued by the browser).
Since the minimum value of hlsPartDuration is the duration of a videoSample, if you have a 30fps video, then the minimum latency is
33ms * 4 = 133 ms
Of course this is theoretical and the latency will be greater, but anyway this is the limit of the protocol.


Horizontal scroll margin

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description

I've been hacking the Atom Core in Dev Mode to find out why setting the horizontalScrollMargin to 1 does not prevent this from happening:

I don't want any horizontal scroll in this case.
The horizontalScrollMargin can be found here:
https://github.com/atom/atom/blob/8378b5116af606a97c59663226da430af6206414/src/text-editor.js#L176
It does not help setting this to 1.
I found that the autoscrollHorizontally function takes the gutterContainerWidth into account when setting the right side autoscroll:
https://github.com/atom/atom/blob/8378b5116af606a97c59663226da430af6206414/src/text-editor-component.js#L2080
So when calculating the desiredScrollRight, both the gutter width and horizontal scroll margin is taken into account. This means that the default horizontalScrollMargin: 6 and the gutterWidthContainer (which seems to be 9 in my case) adds up to a horizontal scroll margin of 15.
If I remove the gutterContainerWidth from the above line, the horizontalScrollMargin works as expected.
Could someone explain why the gutterContainerWidth is taken into account when calculating the right side horizontal scroll margin?
Steps to Reproduce

Set horizontalScrollMargin: 1
Add same code as in gif
Go right with cursor until it scrolls horizontally (too soon)

Expected behavior:

I expect the horizontalScrollMargin to work as verticalScrollMargin (which works as expected).
If I set the horizontalScrollMargin to 1, I don't want any horizontal scroll until the right margin is < 1.
Actual behavior:

It scrolls horizontally (right) too soon, because the gutterContainerWidth is taken into account when calculating the right side horizontal scroll margin.
Reproduces how often:
100%

Versions
apm  2.1.7
npm  6.2.0
node 8.9.3 x64
atom 1.38.2
python 2.7.16
git 2.15.0

Additional Information

Sorry for the delay here - and thanks, it looks like you did more digging based on Lee's comment in your original issue: https://github.com/atom/atom/issues/19635#issuecomment-508830804.
Not sure when someone might be able to take a look but I did want to at least note that I was able to reproduce the behavior you're reporting and also the fact that it doesn't reproduce when making the edits you specified (setting horizontalScrollMargin to 1 and removing gutterContainerWidth in that one line in the autoscrollHorizontally function.

Atom Ver. 1.47.0
I am not seeing an issue with my editor with default settings.

thank you iam just laerning

i cant wait to learn how to use this account
On Mon, May 25, 2020 at 12:24 PM Binu David<EMAIL_ADDRESS>wrote:

Atom Ver. 1.47.0
I am not seeing an issue with my editor with default settings.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/atom/atom/issues/19662#issuecomment-633691473, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/APT6GNJL64PBBSXDI2AI6KDRTLAXZANCNFSM4IBD2ICQ
.

windows 10
choco install atom doesn't set path, but I'm using atom 1.58.0-beta0
Reproduces


An example of a sub-router

Seems like it might help someone else understand where to hook up a sub-router.

How are the sub-routers routes handled? Would be great to have a full example.

I feel like this is better off going into documentation rather than the boilerplate which is all usable code.  With this pull request intialize: function() { ... } would be dead code.
I'm thinking this should definitely be in documentation, but I'm not sure it belongs in the source.  What do you think?


Support arguments that are functions in (n)jit

Feature request

Would it be possible to support arguments that are functions when using jit that don't execute in object mode?
In [19]: @jit
    ...: def f(arg, func):
    ...:     return func(arg)
    ...:

In [20]: f([1], sum)
Compilation is falling back to object mode WITH looplifting enabled because Function "f" failed type inference due to: non-precise type pyobject
[1] During: typing of argument at <ipython-input-19-32db0f8a0a3e> (3)

File "<ipython-input-19-32db0f8a0a3e>", line 3:
def f(arg, func):
    return func(arg)
    ^
...
Out[20]: 1

In [21]: @njit
    ...: def f(arg, func):
    ...:     return func(arg)
    ...:

In [22]: f([1], sum)
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
non-precise type pyobject
[1] During: typing of argument at <ipython-input-21-76dc76439c5b> (3)

File "<ipython-input-21-76dc76439c5b>", line 3:
def f(arg, func):
    return func(arg)
    ^

Thanks for the query. Numba supports JIT compiled functions as arguments, e.g.:
from numba import njit
from numpy import sum
import numpy as np

@njit
def f(arg, func):
    return func(arg)

jit_sum = njit(lambda x: sum(np.asarray(x)))

f([1], jit_sum)

does this help?

Thanks @stuartarchibald! Just what I was looking for. Thanks for answering all my usage questions.

@mroeschke no problem, glad to be of help!


Vector all keys supported

This PR allows the following:
const { size: { width, height }} = useControls({ size: { width: 100, height: 100 } })

So that the labels are nicely rendered with the initial of keys 👨🍳

Hm the storybook does build on Vercel but the panel isn't properly rendered @gsimone 🤷♂. Not sure what happens but the stitches classes aren't properly generated. Note that I've upgraded to the latest canary (from canary.3 to canary.5).


Can't destructure array properties (i.e., length)

Flow seems to expect the entity being destructured to be an object but it could very well be anything in JS world. It seems to work for functions but not for arrays.

Thanks for the report! This should work as you expect.

Destructuring now works for arrays.


CloseModal is not defined

Hi, I just cloned the template and in the button to close the modal with the function “closeModal()” I get this error:

Hey @Ryusse, thanks for submitting the issue! I checked and I'm not getting the error, neither locally nor in production. Have you changed anything since you cloned the repository?

@Ryusse should be solved now in the latest update to the Accessible Astro Package :)


ci: test std-discovery

Context
n/a
Proposed Solution
n/a
Important Changes Introduced
n/a

Test done


how can i disable the auto reload in angular 2?

ng serve --live-reload false

Closing as answered by @majo40 , thanks!

@filipesilva , Is it possible to stop auto reloading for some particular files.
Like I want to stop auto reloading when I made some changes in my css files?
If possible please let me know.

Same as @MrPardeep


Having Canary Build docker image

First, thank you for your product, it seems to be the best candidate for my infrastructure.
I would like to know if it's possible to use Chrome Canary Build also. I did not find the Canary build, only the stable one.
Is it already supported? Is there a way to do it? Manually build a docker image? Any hints will be appreciate.
DblK

@DblK this is possible but currently we do not build images ourselves. All Docker build files are stored here: https://github.com/aerokube/selenoid-images/ You can modify automation scripts and Dockerfiles to use Canary or Beta. The main entrypoint to building Chrome images is:
https://github.com/aerokube/selenoid-images/blob/master/selenium/automate_chrome.sh You would also need to modify this Dockerfile:  https://github.com/aerokube/selenoid-images/blob/master/selenium/chrome/apt/Dockerfile Please ask more questions if something is not clear. Related to https://github.com/aerokube/selenoid-images/issues/26

Closing because of inactivity. Feel free to reopen.


Fixing memory leaks in some C++ examples [6485]

I identified that the following C++ examples had memory leaks:

Configurability
Keys
LateJoiners
SampleConfig_Controller
SampleConfig_Events
SampleConfig_Multimedia

Build status:

Linux
Mac
Windows

Failing test is unrelated, as this PR only adds changes to the examples.


Merge master into alpha

JIRA Link
NA
Changelog / Description
Merge all changes from master into alpha
Checklist -

[ ] New Feature ?
[ ] Updated swagger annotation (if API structure is changed) ?
[ ] Unit Test (if possible) ?
[ ] Updated the Readme.md (if required) ?

:tada: This PR is included in version 2.2.0-alpha.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Default app fails due to malformed url

Bug Report
Current Behavior
I have generated a basic react single page app, adjusted the cors settings in the AEM Author environment, and launched the development server.
The app runs but I get the following error
Uncaught (in promise) Error: while fetching the model for url: http://localhost:4502/.model.json, status: Bad Request
    at index.js:50
(anonymous) @ index.js:50
Promise.then (async)
(anonymous) @ index.js:49

The issue seems to be that the url being fetched is incorrect.
I can go to http://localhost:4502/content/mysamplespa/en.model.json and the content loads correctly so it seems that /content/mysamplespa is missing from the url that React is trying to fetch.
Expected behavior/code
I expect an out of the box React  app to work without errors.
Environment

AEM version AEM 6.5
AEM SPA Archetype 1.1.0
JRE version Java(TM) SE Runtime Environment (build 1.8.0_92-b14)

Possible Solution
I've had a look through the generated source code and can't see anywhere where fetch is actually being invoked.
Additional context / Screenshots

I've seen this too. I believe this problem is because by default, the development server starts at http://localhost:3000.
In my project, once I manually redirect to the correct page (http://localhost:3000/content/signage2020/en/home.html in my case), then the model loads correctly.
If so, then I'd say this is a feature request to have the dev server start at a specific path. Can you confirm this is the case for you as well?

It might be worth noting however that if I actually install the app into AEM via mvn clean install -PautoInstallSinglePackage then go to localhost:4502/editor.html/content/spa.mysamplespa/en.html I get the following

and if I then choose 'view as published' I see

rather than an error.

I've seen this too. I believe this problem is because by default, the development server starts at http://localhost:3000.
In my project, once I manually redirect to the correct page (http://localhost:3000/content/signage2020/en/home.html in my case), then the model loads correctly.
If so, then I'd say this is a feature request to have the dev server start at a specific path. Can you confirm this is the case for you as well?

Yes. in my case going to http://localhost:3000/content/mysamplespa/en/home.html works as expected.

I did some digging and I think this redirection is not yet supported by CRA. It seems they do have a PR to support it, so we might need to wait for this PR to be merged before we can enable it in the archetype, unless we can find a way to do it around CRA, or use a customized react-scripts:
https://github.com/facebook/create-react-app/pull/7259

A different solution could be to update public/index.html to automatically redirect from http://localhost:3000 to the correct path. This will prevent relying on CRA to support PUBLIC_URL in development.

A different solution could be to update public/index.html to automatically redirect from http://localhost:3000 to the correct path. This will prevent relying on CRA to support PUBLIC_URL in development.

Interestingly the default public/index.html includes the following
<meta property="cq:pagemodel_root_url" content="/content/mysamplespa/en.model.json"/>

which appears to be being ignored

This confused me as well.
I implemented a fix a while ago in a PR that was closed. I updated the start scripts in package.json by the following:

Angular: "start": "open-cli http://localhost:3000/content/${projectName}/en/home.html && ng serve --proxy-config ./proxy.aem.conf.json"
React: "start": "open-cli http://localhost:3000/content/${projectName}/en/home.html && BROWSER=none react-scripts start"

This approach uses open-cli to automatically open the start page in the browser (and disables create-react-app's default behavior by setting BROWSER=none).
@ittaibaratz @davesag Let me know what you think of this approach and I could open a new PR for this feature.

@samuelmeuli how is open-cli able to open the URL before react-script has finished starting up?
Also, will it load it in the same tab as the default one webpack opens, or will you get two tabs open?

@ittaibaratz open-cli is run first because ng serve/react-scripts start will run until until stopped. We could also switch the order and use & instead of &&.
The Webpack behavior is disabled with BROWSER=none.

Or we could use npm-run-all for better compatibility (e.g. with Windows).

@samuelmeuli - I would rather put it in index.html because then we can also connect it to the .env file, so a developer will be able to develop against other paths besides just /en/home. For example:
.env.development file:
REACT_APP_PATH=/content/signage2020/en/home.html
index.html file body element:
<script>       if (location.href == 'http://localhost:3000/') {         location.href += '%REACT_APP_PATH%'.replace(/^\//,'');       }     </script>


azcli 2.59 on macOS giving repeated errors/warnings on certain commands

Describe the bug
if I run a command related to the security area, I see repeatedly these lines and then the rest of the output
$ az security assessment list  --output tsv
Discriminator source is absent or null, use base class ResourceDetails.
Discriminator source is absent or null, use base class ResourceDetails.
Discriminator source is absent or null, use base class ResourceDetails.
Discriminator source is absent or null, use base class ResourceDetails.
Discriminator source is absent or null, use base class ResourceDetails.
...
<and then the rest of the results>

Related command
az security assessment list  --output tsv
Errors
Discriminator source is absent or null, use base class ResourceDetails.
Discriminator source is absent or null, use base class ResourceDetails.
Discriminator source is absent or null, use base class ResourceDetails.
Discriminator source is absent or null, use base class ResourceDetails.
repeating multiple times in yellow on MacOS terminal
Issue script & Debug output
cannot put this here as there is sensitive information
Expected behavior
expecting now to see all those warnings repeating..
Environment Summary
$~$ az --version
azure-cli                         2.59.0

core                              2.59.0
telemetry                          1.1.0

Dependencies:
msal                              1.27.0
azure-mgmt-resource             23.1.0b2

Python location '/opt/homebrew/Cellar/azure-cli/2.59.0/libexec/bin/python'
Extensions directory '/Users/myusername/.azure/cliextensions'

Python (Darwin) 3.11.9 (main, Apr  2 2024, 08:25:04) [Clang 15.0.0 (clang-15<IP_ADDRESS>)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context
No response

Thank you for your patience, we've managed to recreate the issue on our end and it will be addressed soon.


[ArchiveFilesV2]Change default value for sevenZipCompression option

Task name: ArchiveFilesV2
Description: Changed default value for sevenZipCompression option
Documentation changes required: (Y/N) Y
Added unit tests: (Y/N) N
Attached related issue: (Y/N) Y
Checklist:

[X] Task version was bumped - please check instruction how to do it
[X] Checked that applied changes work as expected

@EzzhevNikita

Could you please bump the task version into task.loc.json file?

Yes, corrected it.

And I also wanted to clarify on the basis of what did you choose the default value for this parameter?

Since normal and default values return "5", I think that it is ok if the default value will be equal "normal".
https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/ArchiveFilesV2/archivefiles.ts#L135

A, yeah I got it, in this case, it looks logical


404 on French BY-NC-SA 4.0

https://creativecommons.org/licenses/by-nc-sa/4.0/fr/
returns a 404. Mentioned on Twitter. https://twitter.com/ApolloLegacy01/status/872394477083799552

@peterspdx @sarahpearson Is that a valid url for the 4.0 translations rather than the 3.0 (and earlier) ports? It's not in the wayback machine:
https://web.archive.org/web/*/creativecommons.org/licenses/by-nc-sa/4.0/fr/
A Google search shows about 744 hits for it.
https://www.google.ca/?gfe_rd=cr&ei=Viw4Wb34F-Pe8AfmzoRo#q="creativecommons.org/licenses/by-nc-sa/4.0/fr/"&start=0
deed.fr works. I can redirect it to that or display that as /fr/ if that was what was happening and I broke it during the recent changes to the code made to protect that section of the site from attack.

I should not be the definitive source on this, but it does not seem like it is a valid URL. The others have /deed before the language code, so I assume French should, too.

Valid URLs for translations of the 4.0 legal code are in this format:
https://creativecommons.org/licenses/by/4.0/legalcode.LA (where LA = language code)
While we don't have French 4.0 legal code yet published, it will go at:
https://creativecommons.org/licenses/by/4.0/legalcode.fr
So the link mentioned on twitter and 743 other places is wrong for two reasons: we don't have legal code in French (yet), and once we do it won't be there.

There is https://creativecommons.org/licenses/by-nc-sa/4.0/deed.fr which is what you were looking for. It works.

Thank you @gho87 !

I've added the License Link Problem tag as the information above is useful for that issue.


How do we know if update was successful?

Using postgres adapter, how do we know if an update was successful?
update users set<EMAIL_ADDRESS>where id=2  (i.e. db.Table("users").Where(2).Updates(map))
If id=2 does not exist, then postgres will return "UPDATE 0".
I would consider any client using a non-existent id in an update statement to be an error. I would want to send back this error to client.
Is there any way to know the updated number of rows for an update using gorm? If updated number of rows is 0 (and client used an id to update), then we can send back an error.

@jinzhu  Hi, how to check errors with affected rows ?
Thanks

Hi @satb
Thank you for your feedback, already added this support, you could get the affected columns like this:
fmt.Println(db.Table("users").Where(2).Updates(map).RowsAffected)

我按照你这个写法，还是不对，返回的值永远是 0


Your files are too powerful! [500MB Limit]

When i try to send any file it just says something went wrong, If a file is smaller than 50mb it wont create chunks. I have YABD4Nitro enabled and when trying to send a 500mb or larger file it just says file is too big.

It should be fixed now in 41753d3a11773c89ff87f66f03283658d24027a7

oh wait nvm

Fixed the first problem (If a file is smaller than 50mb it wont create chunks) with 109f53a.
The 500MB limit also seems to affect the original version of the plugin. Maybe contact ImTheSquid.

I actually managed to upload a 696MB file on a dev version, however, I think it's way too unstable to release.

The upload process went through surprisingly well, however, it will seemingly only worked basically immediately after restarting Discord.
Then, after the upload process, the plugin was unable to hide all of the part file messages, so there ended up being a lot of this (below) afterwards.

Then finally, unsurprisingly, the file failed to reassemble automatically, however, to my complete surprise, all 87 of the DLFC files were successfully downloaded and by using the online DLFC reconstructor, I was able to confirm that somehow the DLFC files were (miraculously) all correct.

So if you still want to try it out despite the low chance of it working, then this version will get you that

The latest version has the 500MB limit removed, however, seriously, do not expect it to work 100% of the time.


randomize homepage display

closing issue - discussed with Michael and agreed it would be too difficult and time consuming to complete in this timeframe


[FEATURE] prevent empty input in testcases

Is your feature request related to a problem? Please describe.
Not to my knowledge
Describe the solution you'd like
I would like to be able to prevent empty input in testcases when I add minlength, minimum or required to a parameter within a schema. In my experience most of my testcases tend to have empty values given to the parameters that have these properties/field.
Describe alternatives you've considered
I have added patterns to try and prevent empty input, but this does not always work.
Additional context

Hi!
Thanks for reporting! By empty values, do you mean strings composed entirely from whitespace or strings with size 0? #801 might be related to this, but it highly depends on schema complexity.
If the matter is about strings containing only whitespace, then the shrinking process might be in the play. Hypothesis minimizes the examples, and it tends to minimize strings to simple values like whitespace. Could it be the case? Or Schemathesis generates these kinds of values during the whole testing process?

I have added patterns to try and prevent empty input, but this does not always work.

That is quite unfortunate, but when the pattern keyword is involved, the underlying library uses rejection sampling which might negatively affect the quality of the generated data. It might be better, for now, to include the size bounds into the pattern itself (in the example above the minLength could be removed, as the pattern implies min size of 1)

#801 does seem to be related to my issue. To clarify, I want no whitespace for my values because the application I am testing is quite strict with the values required to get happy flow (200, 201, etc.) responses. I think due to the nesting of objects in the application, schemathesis somehow can't find the configurations I have given for parameters (required, minLength, patterns, etc.) and tends to just use whitespace instead. Most of my test results tend to have one or two happy flow results and all the others 400.

@hoog1511
Sorry for not getting back to you earlier. If Schemathesis generates only whitespace for the schema above, then it is definitely a bug. If whitespace is happening only at the end of generated strings, then it is likely should be fixed by #1361 (released in 3.12). Let me know the new release fixes the issue, otherwise, could you please, share your API schema (partial/anonymized is OK)?


Unable to get query when using netlify-builder preset

Environment
Nuxt 3.0.0-rc.13 with Nitro 0.6.1, Node 16.18.1.
Reproduction
Repo: https://github.com/so1ve/nuxt-netlify-builder-query-repro
Online: https://bespoke-praline-c7de7b.netlify.app/api?s=1
Describe the bug
The Query in the URL should be obtained instead of a blank object.
It seems that netlify-builder can only get the url that does not include query?
Additional context
No response
Logs
No response

When using the builder preset, as when prerendering a page, queries are ignored.

Thanks for your reply!


[Android] allow config extension

👋 Wix!
First of all thanks for making detox, is really amazing 😄
As per the title, I've created this super small PR to allow the android build file to inherit config from the root project, that comes in really handy if the project pulling in detox needs different configs.
I've ~stole~ borrowed the names from https://github.com/react-native-community/react-native-linear-gradient/blob/master/android/build.gradle given it's from the react native community it should be ok
I didn't open an issue for this, do you need me to?

@matteo-hertel, thanks for submitting the PR and sorry for the delay. Actually, I think you'll have to wait even a bit more, till @rotemmiz returns from his vacation, that's in a few days.
Don't consider the next thing as a request, but I'd be happy to learn (Gradle is not my thing yet, still have to grasp it) - what is the use case that is addressed by this inheritance - does it solve a version conflict in your Gradle builds, speeds them up or anything else?

Hey @noomorph thanks for your reply
The aim here is to have the android configurations in one place (the root project) and have the Detox build file using those config if provided, I have an example of a project that uses Detox in which the compileSdkVersion is 26 but Detox has version 25 hardcoded, and it errors out during the project build
It's also standard for android projects to allow this kind of extension, so win win 😄

@rotemmiz, you're more familiar with this area, please tell if this change benefits some project configurations. I don't see proofs like before the change VS after the change (e.g. project fails to build -> project builds successfully), but maybe it's just me and the benefit is already obvious for any person who's good with Gradle. :confused:  Techincally, I have no objections regarding the merge as the build passes on Gradle 4.10.

First, thanks for this PR and sorry for the super long response time.
I have come back to this PR for a few times now, and I never know how to react to it :(
On one hand, I have never seen and Android project library uses this trick, I never though it is a problem since it can always be overriden in the application/project scope.
On the other hand, in the limited case, where Detox is the only library compiled from source (and no other library needs to be overriden), this trick is actually useful, since users don't need to change anything in their setup.
The other part of the solution can come from a different approach, and that is consuming detox from a binary instead of from sources. There's an open PR made by the members of the team, adding aar artifacts to Detox's npm package. This way, you won't have to go through a (potentially) tedious compilation process and adaptations in your project.

Hi @rotemmiz thanks for getting back to me, my use case was covering the use case of Detox being the only library compiled from source, if the open PR that adds binary to npm covers this use case as well then is a non issue anymore, feel free to close this PR I was happy to contribute to the project 😄


Update scalafmt-core to 3.0.6

Updates org.scalameta:scalafmt-core from 3.0.0 to 3.0.6.
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!

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

labels: library-update, semver-patch

Superseded by #56.


CSS loads in a few ms after the DOM is ready

Probably creating splash screen to solve this issue but It would be nice to fix before posting builds.

I believe this is fixable running this js to remove elements with spash screen instead of using CSS which is slower.


Spectator View: Broken Audio

With default settings, audio generated from apps are broken in recorded files, even with sample code in 240. We integrated Spectator view with a few of our own solutions, same results. Haven't got time to go through what could be the issue.

Can you describe the audio behavior you are observing?
I could hear some popping in my audio, so I increased the audio bitrate in my latest pull request and it seems to have improved the audio a bit.

Yup, it is like popping. We also tried to increase the bitrate and that doesn't really fix the problem. I need to analyze the files using Audition to see what exactly is causing the popping. Not quite sure if it is an issue of AAC compression or not. Will get back to you later,.

we identified this as a performance issue - when recording video in 1080p, this didn't happen on our rig (AMD 1800X). It only happens when dealing with 4K content.

Seems resolved. Please reopen if not.


Bug fix/accessibility

Fixes issues flagged by Microsoft Accessibility Tools Fast Pass.
Depends on merging https://github.com/Azure/azure-sdk-tools/pull/3288 and rebasing against resulting merge commit.

Replaced by https://github.com/Azure/azure-sdk-tools/pull/3435


Option to fit dataframe/table output to column widths

@jaymegordo commented on Mon Feb 22 2021
It would be nice if the new jupyter native notebooks either compressed the dataframe column display width by default, or had an option to do so.
When tables have few/narrow columns the display would look better similar to the rendered html image below:
jupyter native notebook:

rendered html:

I've tried with the pandas.display settings like max_colwidth but those don't seem to have an effect on the display output.

@DavidKutu commented on Mon Feb 22 2021
Thanks for the suggestion @jaymegordo. I'll bring it up in our next meeting.

@DonJayamanne commented on Tue Feb 23 2021
@DavidKutu please move this upto VS Code as they own the rendering of tables (via HTML)

@greazer is the output a HTML output whose content is table?

Commenting so we can hopefully keep this issue open!

Not sure yet who is contributing the data frame styles

@rebornix, looks all tables in VS Code webviews have 100% width in webviews
https://github.com/microsoft/vscode/blob/d0061c5db636843d2d6c02ef27b6094273625ef7/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.ts#L641

output a HTML output whose content is table?

This comes from the Jupyter kernel.

@DonJayamanne VS Code will always have a default value for the tables, no matter if it's 100%. Question is if jupyter has a chance to modify them.
What I'm not clear about is who is contributing the custom css for .dataframe (note that .dataframe is defined by VS Code): is it the Jupyter extension, or if it's the kernel?

is it the Jupyter extension, or if it's the kernel?

Its from the kernel.

has this been resolved? these wide dataframe outputs are a nightmare!


fixes the check for empty list of write dispositions to truncate

fixes #549

@z3z1ma the problem was None check but having a function that behaves differently for None and [] is not a good idea. at least now it is properly tested


Change target version

Recently forked and started using your project and it has been a life saving of headaches.
But now i have a problem: is it possible to change the target version instead of es5 to es6?
Thanks this repo really helped me,
iursevla

Yes and it's even pretty easy :)
Just go into src/tsconfig.json and change the field target to es6
Have fun ;)


[Feature]: provide support to handle malformed plugin type

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
We have encountered instances where plugin id and type go missing from JS action objects in the DB #11927. A related issue could be malformed plugin type. Although we haven't yet encountered this problem it is a possibility which is not very far away from plugin id being missing.
Why should this be worked on?
Possible future bug. This bug will render the application unsable.

@nidhi-nair @riteshkew How important is it to fix this right now? I want to get a sense of the priority.


use SNR=1 for apply_inverse_epochs

see
http://martinos.org/mne/stable/auto_examples/inverse/plot_compute_mne_inverse_epochs_in_label.html
snr = 1 should be used and explained

I disagree, as I mentioned in the e-mail list:
"Yes, it's true of course that single trials are noisier, but often single trial  processing in the source space is followed by combining across trials.. So in many (but not all) instances, it is useful to have a consistent inverse operator (specifying a fixed SNR... and for dSPM scaling the noise cov by a fixed number of trials).
For instance, if you did inverse first on single trials and then averaging in source space vs. average across trials in sensor space first and then do inverse, you would get different answers if you specified different SNRs for the two cases.
This issue came up before, and the 3.0 was used to make them consistent:
https://mail.nmr.mgh.harvard.edu/pipermail//mne_analysis/2014-April/002066.html
https://github.com/mne-tools/mne-python/pull/1237
Just something to keep in mind depending on how you are using single trial inverses."

ok let's add comments in the examples to explain this then

Another good GSOC PR :)
On Sun, Apr 2, 2017 at 10:08 PM Alexandre Gramfort<EMAIL_ADDRESS>wrote:

ok let's add comments in the examples to explain this then
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mne-tools/mne-python/issues/4131#issuecomment-291034241,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB0fig-Wg6wr5TO2JiznIpRMaY3lZNjEks5rsFSugaJpZM4MuNRF
.


Update outcome content for overseas passports [Mar 15 Deploy]

Pivotal Ticket: https://www.pivotaltracker.com/story/show/114558095
Kyrgyzstan, Tajikistan, Turkmenistan and Uzbekistan are all switching to allowing online booking of consular appointments.
Fact check
https://smart-answers-pr-2329.herokuapp.com/overseas-passports
Expected changes
URL on gov.uk

Remove content "You’ll need to book an appointment by email. Include your first name and last name and 3 alternative dates and times. You will receive an email confirming your appointment."
Remove embassy address
Remove embassy contact details
Add link to book appointment online

Before

After

There is an issue with this when the flow goes to the second location question for The Occupied Palestinian Territories, closing to investigate.


Setup DrizzleORM

See details: https://orm.drizzle.team/docs/quick-sqlite/bun

You may use this implementation as an inspiration:
https://github.com/ethanniser/the-beth-stack/tree/main/src/db


fix(go/adbc/driver/flightsql): deal with catalogless schemas

Some Flight SQL implementations, like Dremio, return no catalogs and instead have schemas live in an unnamed catalog. Handle these cases so you can still introspect metadata.

This also raises the question of whether we should make catalog/schema names nullable in GetObjects...

That's #421


Runtime: Fix bug in query result pagination on Druid

In a MetricsViewRows API call using a limit of 10000, we got this error:
An error was encountered while processing your request: QueryInterruptedException: Druid can only fetch forward. Requested offset of 0 != current offset 5,000 -> IAE: Druid can only fetch forward. Requested offset of 0 != current offset 5,000

It appears that pagination does not currently work for the Druid driver?

This fails if for example OFFSET 100, OFFSET 10 requests are issued in that order. Druid doesn't support that.

Looks like Avatica-Go mismanages the result set offset.

Fix https://github.com/apache/calcite-avatica-go/pull/71


about group_id

I don't quite understand the setting of group_id. Could you explain it in detail.thanks!

group_id indicates, which tutorial a student goes to. It therefore determines, who a student meets during tutorials (all students with the same group_id). I hope that helps!


Maesh on K3S

Hi there,
I'm trying to experiment with maesh on a K3S cluster, but when I start the installation via helm, it sends me an error:
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: CustomResourceDefinition, namespace: , name: traffictargets.access.smi-spec.io
To reproduce:
curl -sfL https://get.k3s.io | sh -
helm repo add maesh https://containous.github.io/maesh/charts
helm repo update
helm install maesh --namespace=maesh maesh/maesh

My bad, i've used helmv3..

Always a problem with Helm v2:

Hey @AydenHex,
as the question is telling you, you're trying to install Maesh including the SMI CRD's which are already present in your cluster. It looks like to be the same as in #365.
Can you try to install maesh including --set smi.deploycrds=false ?

Thank you, it works better that way. :)


WPScan - implement confidence

Work done

[x] Implement scanner confidence for WPScan and fix a bug in models.py when confidence is max
[x] Implement date for findings
[x] Add more real data to test for unit tests (empty file and real site scan from #5774 obfuscated)

made some changes for @StefanFl feedback

One of my 2 change requests makes a problem :-(


Allow verification through the flash loader CMSIS-Pack Verfiy interface

See: https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/algorithmFunc.html#Verify.
This is useful with chips that don't have flash mapped to an address space at boot (any esp32 chip, and more advanced processors).
Verification is currently achieved by reading flash through the debugger post flash of the entire application using mapped address spaces. Using Verify would allow per sector verification during flash, provided the flash loader understands how to verify the flash.

I am not sure I follow what the advantages of this are. If the flash can be mapped arbitrarily, how does the verify function learn this and use it properly?

Because the Verify function is part of the flash loader, which will know how to talk to the flash without any mapping. For example, there is no flash mapping at all in the current esp32* flash loaders, just raw writes to the raw address in flash (I.e 0 to FLASH_SIZE).

Ah, yeah that makes sense :) The problem I see with this is this is that we need a loader for every flash possible. But that's something we need a solution for anyways.

Ah, yeah that makes sense :) The problem I see with this is this is that we need a loader for every flash possible. But that's something we need a solution for anyways.

Verify is optional at least, so we can check if the flash loader has it and use that (then hope to god the flash loader understands the flash chip), if its not present we can just default to the current behaviour of trying to verify flash through the mapped address space.

Sounds like a plan to me :)

The best part about Verify? We can send don compressed data, making it about 3x as fast as reading back flash! :D


Continue Thread Button Doesn't Work

Describe the bug
On Web, I encountered an instance of the "Continue Thread" button at the bottom of a thread (go figure), however attempting to click it does not show the remaining two posts. It is unclear if these remaining posts are deleted (and thus, the bug is that the button still exists) or if the button itself is broken.
To Reproduce
Steps to reproduce the behavior:

Go here: https://bsky.app/profile/pookleblinky.bsky.social/post/3kvgj27dsav2l
Click "Continue thread"
URL changes to https://bsky.app/profile/pookleblinky.bsky.social/post/3kvgjaqtipu25
Visibility of the thread does not change outside of now being in an overview state where no replies are shown.

Expected behavior
The button to work.
Screenshots

Details

Platform: Chromium web
Platform version:
App version:

Additional context

Can't seem to reproduce on this URL: https://bsky.app/profile/pookleblinky.bsky.social/post/3kvgj27dsav2l
Is this selecting the right post?

I can't repro even if I select the root post though.

The problem could be this one though, which is resolved on main: https://github.com/bluesky-social/social-app/pull/4559

Hmm. I can consistently repro with my main account but on an alternate account the issue does not persist, even on the same browser after refreshes and after re-signing in.
Upon further examination, it does appear to be related to #4559, although maybe the same issue entirely? There's a user who blocks me that is replying to the final post in the thread (with OP responding, so presumably #4559), but I still cannot see the final post in the thread even though OP does not block me. A suggestion maybe would be to have the thread continue to automatically unroll if you're clicking part way down into the thread? Like if if it only shows until the nth post and you navigate from 0 to n-1, it should show 2n - 1 if that makes sense (since I think preserving post visibility upthread is very good for navigation purposes).

Does it repro on https://main.bsky.dev?

Does not repro on main. Good to see.

Ah great, that was it then. Thanks for the report!


I'm not entirely sure how to call it

Just run time echo aaa; time echo bbb
It looks like memory alignment / integer type conversion problem, or ioctl is improperly stubbed and lands in absolutely random memory location:
user@:~/examples/python3$ time echo aaa ; time echo bbb
aaa

real    0m0.001s
user    0m0.000s
sys     23866502m23.((*s
bbb

real    0m0.001s
user    .-(**,*/m.).000s
sys     23866175m52.205s
user@:~/examples/python3$

Not all fields of the tms struct are currently populated by the times syscall. I'll ask a member of the team to take a look.

The bug is fixed in the currently deployed https://webvm.io, place make sure to clear your browser cache before trying again.
For further help: please join our Discord: https://discord.gg/yTNZgySKGa

Thank you, it seems to be fixed.
However, it's worth noting both Chromium and Firefox (including Android) do not seem to properly delete IndexedDB when clearing browser cache, I had to manually delete it with dev tools. And there currently seems to be no way of clearing IndexedDB on Android.


kodiPackages.sendtokodi: requires insecure youtube-dl, breaks stable

Describe the bug
When trying to update nixos-24.05 from revision<PHONE_NUMBER>75b7ad2c4988bdb82572c00222c0d7 to 249fbde2a178a2ea2638b65b9ecebd531b338cf9, the check and build fail because youtube-dl is newly marked insecure (unstable PR: https://github.com/NixOS/nixpkgs/pull/325371, backport PR: https://github.com/NixOS/nixpkgs/pull/325506). This breaks users of the kodiPackages.sendtokodi package.
I don't need the youtube-dl functionality and I don't wanna allow this insecure package on my system. Therefore, I'd appreciate an easier method to not depend on youtube-dl. This requires being able to build sendtokodi without youtube-dl altogether (and ensure sendtokodi does not use it). Either by default or as build option. Upstream seems to be mostly inactive, they won't help us here.
Steps To Reproduce
Steps to reproduce the behavior:

Disallow insecure packages (default behavior)
Try to include sendtokodi on recent NixOS 24.05 (249fbde2a178a2ea2638b65b9ecebd531b338cf9 or later) or unstable
Bingo.

Expected behavior
Stable NixOS doesn't break on channel updates.
Sendtokodi can be used without allowing any insecure packages.
Notify maintainers
@pks-t @NixOS/kodi

Metadata
(the relevant nixpkgs commits/PRs are already referenced, I cannot build the config on the broken revision)

Add a :+1: reaction to issues you find important.

sure
youtube-dl code was never even used or executed in the entire life of this package in nixpkgs anyways, so all one has to do is remove youtube-dl from this line and everything will be fine
@Mynacol please go ahead and create a PR and it will be much appreciated :bow:

youtube-dl code was never even used or executed in the entire life of this package in nixpkgs anyways, so all one has to do is remove youtube-dl from this line and everything will be fine

@aanderse This isn't entirely true, as users can toggle between the two of them via a configuration. But regardless of that I agree that patching out the dependency is the right thing to do, even if it means that we will dishonor that configuration now.
I've created https://github.com/NixOS/nixpkgs/pull/327480 to do so.

right, i sorta glossed over that part
we should see if upstream wants to drop youtube-dl backend or not i suppose


Replace macros with real values in pkgdef

This is just a temporary workaround to get F5 working until we completely auto-generate this as part of: https://github.com/dotnet/roslyn/issues/10253

tag @dotnet/roslyn-analysis

:+1:

👍


Where can I find the installed header files for INDArray related operations ?

I have installed DL4J using maven.
I need to see the installed .so and cpp header files that are used for INDArray calls?
Where can I find them ? I think they are located inside .m2/repository in my Ubuntu machine.
Please help !

so/dll files are packed into correpsonding jar files, i.e. nd4j-native.jar
cpp files are not included, but obviously you can find those in libnd4j folder of this repository

Hi, I need use INDArray pointers into my project where I can use fetch them from DL4J fronted and pas them to my CPP backend. So that I can perform operations on them. For that I need to include the header files and link to the .so files. Can there be any work around  ?

If all you want is INDArray shape/buffer - you don't need any header files for that. Just get the pointer out of ND4J in java, and do what you want with it. It's continuous memory buffer. Shape information is available in Java as well

Alright. And Is it possible to perform INDArray reshape operation from the CPP backend ?

Yes and no, but it'll require some coding efforts. Or, you'll have to include our cpp stuff into your project.

If you want to do that, you can link directly to libnd4j. However, there isn't much in terms of documentation on how to do that.
If you are comfortable enough with just the source, you can find it here: https://github.com/eclipse/deeplearning4j/tree/master/libnd4j

I built libnd4j and included NDArray.h file as below:
#include <NDArray.h>

using namespace nd4j;

float* create_array_float(void** ref, const size_t cnt)  {
    if(*ref == 0) {
        // Create a new Array on ref
        auto new_size = new Nd4jLong[100];
        nd4j::DataType dtype = nd4j::DataType::DataType_FLOAT;
        *ref =  new NDArray<float>(new_size, dtype);
}
    return get_pointer_float(ref);
}

float* get_pointer_float(void** ref) {
        // get the data pointer
        return ((NDArray<float>*)*ref)->buffer();
}

void array_free(void** ref)  {
    //delete Array
    delete (NDArray<float>*)*ref;
}

And I call them this way :
void* F4 = 0;
float* p = create_array_float(&F4, 100);

But I am able to assign and fetch values to it at any index and is not giving any segmentation fault  (p[125] = 5.5)? Does it allocate a large memory internally than specified ?
(Also, what is difference between /nd4j and /libnd4j folders in this repository ? )

Closing this. Support issues like this should be posted on the forums at https://community.konduit.ai for future readers.


fixed benchmark program run

Fixes #2149
Fixed running tst_compress_par.

Not sure what is going on with the CI here...

@WardF this is a necessary fix...

Thanks; getting the Github Actions expanded to cover OSX (finished) and Windows configurations so that I can work through the PR backlog without too many bespoke tests.  Thanks!


Does not build - Ubuntu 16.04

I am running Ubuntu 16.04 with an Intel i7 and it will not build file for me
Cmake
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fricke/vulkan/Vulkan-Cookbook

make
Scanning dependencies of target CookbookLibrary
[  0%] Building CXX object CMakeFiles/CookbookLibrary.dir/Library/Common_Files/VulkanDestroyer.cpp.o
In file included from /home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.cpp:28:0:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:78:35: error: expected ‘,’ or ‘...’ before ‘&&’ token
     VkDestroyer( VkDestroyer<OBJ> && other ) :
                                   ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:78:44: error: invalid constructor; you probably meant ‘VulkanCookbook::VkDestroyer<OBJ> (const VulkanCookbook::VkDestroyer<OBJ>&)’
     VkDestroyer( VkDestroyer<OBJ> && other ) :
                                            ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:83:46: error: expected ‘,’ or ‘...’ before ‘&&’ token
     VkDestroyer& operator=( VkDestroyer<OBJ> && other ) {
                                              ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:115:30: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11
     explicit operator bool() const {
                              ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h: In instantiation of ‘class VulkanCookbook::VkDestroyer<VkDevice_T*>’:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:57:16:   required from here
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:120:5: error: ‘VulkanCookbook::VkDestroyer<OBJ>::VkDestroyer(const VulkanCookbook::VkDestroyer<OBJ>&) [with OBJ = VkDevice_T*]’ cannot be overloaded
     VkDestroyer( VkDestroyer<OBJ> const & );
     ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:56:5: error: with ‘VulkanCookbook::VkDestroyer<OBJ>::VkDestroyer(const VulkanCookbook::VkDestroyer<VkDevice_T*>&) [with OBJ = VkDevice_T*]’
     VkDestroyer( VkDestroyer<VkDevice> const & device ) :
     ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h: In member function ‘VulkanCookbook::VkDestroyer<OBJ>& VulkanCookbook::VkDestroyer<OBJ>::operator=(VulkanCookbook::VkDestroyer<OBJ>)’:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:84:20: error: ‘other’ was not declared in this scope
       if( this != &other ) {
                    ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h: At global scope:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:147:42: error: expected ‘,’ or ‘...’ before ‘&&’ token
     VkDestroyer( VkDestroyer<VkInstance> && other ) {
                                          ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:147:51: error: invalid constructor; you probably meant ‘VulkanCookbook::VkDestroyer<VkInstance_T*> (const VulkanCookbook::VkDestroyer<VkInstance_T*>&)’
     VkDestroyer( VkDestroyer<VkInstance> && other ) {
                                                   ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:151:53: error: expected ‘,’ or ‘...’ before ‘&&’ token
     VkDestroyer& operator=( VkDestroyer<VkInstance> && other ) {
                                                     ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:179:30: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11
     explicit operator bool() const {
                              ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h: In member function ‘VulkanCookbook::VkDestroyer<VkInstance_T*>& VulkanCookbook::VkDestroyer<VkInstance_T*>::operator=(VulkanCookbook::VkDestroyer<VkInstance_T*>)’:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:152:20: error: ‘other’ was not declared in this scope
       if( this != &other ) {
                    ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h: At global scope:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:194:9: error: specialization of ‘VulkanCookbook::VkDestroyer<VkDevice_T*>’ after instantiation
   class VkDestroyer<VkDevice> {
         ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:194:9: error: redefinition of ‘class VulkanCookbook::VkDestroyer<VkDevice_T*>’
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:44:9: error: previous definition of ‘class VulkanCookbook::VkDestroyer<VkDevice_T*>’
   class VkDestroyer {
         ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:291:44: error: expected ‘,’ or ‘...’ before ‘&&’ token
     VkDestroyer( VkDestroyer<VkSurfaceKHR> && other ) {
                                            ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:291:53: error: invalid constructor; you probably meant ‘VulkanCookbook::VkDestroyer<VkSurfaceKHR_T*> (const VulkanCookbook::VkDestroyer<VkSurfaceKHR_T*>&)’
     VkDestroyer( VkDestroyer<VkSurfaceKHR> && other ) {
                                                     ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:295:55: error: expected ‘,’ or ‘...’ before ‘&&’ token
     VkDestroyer& operator=( VkDestroyer<VkSurfaceKHR> && other ) {
                                                       ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:325:30: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11
     explicit operator bool() const {
                              ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h: In member function ‘VulkanCookbook::VkDestroyer<VkSurfaceKHR_T*>& VulkanCookbook::VkDestroyer<VkSurfaceKHR_T*>::operator=(VulkanCookbook::VkDestroyer<VkSurfaceKHR_T*>)’:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.h:296:20: error: ‘other’ was not declared in this scope
       if( this != &other ) {
                    ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.cpp: In member function ‘void VulkanCookbook::VkDestroyer<VkInstance_T*>::Destroy()’:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.cpp:41:9: error: ‘nullptr’ was not declared in this scope
     if( nullptr != vkDestroyInstance ) {
         ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.cpp: At global scope:
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.cpp:46:8: error: specializing member ‘VulkanCookbook::VkDestroyer<VkDevice_T*>::Destroy’ requires ‘template<>’ syntax
   void VkDestroyer<VkDevice>::Destroy() {
        ^
/home/fricke/vulkan/Vulkan-Cookbook/Library/Common Files/VulkanDestroyer.cpp:81:1: error: expected ‘}’ at end of input
 } // namespace VulkanCookbook
 ^
CMakeFiles/CookbookLibrary.dir/build.make:62: recipe for target 'CMakeFiles/CookbookLibrary.dir/Library/Common_Files/VulkanDestroyer.cpp.o' failed
make[2]: *** [CMakeFiles/CookbookLibrary.dir/Library/Common_Files/VulkanDestroyer.cpp.o] Error 1
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/CookbookLibrary.dir/all' failed
make[1]: *** [CMakeFiles/CookbookLibrary.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Yes. Linux version is being prepared.

Ok, Thanks for updating Readme... please ping this issue when its ready, excited to use the cookbook examples, just ordered the book this morning

Hi @sjfricke
Codes are updated. Please have a look and let us know.
Closed.


Bug: Failed to find the PHP version for c:/Program Files/php-8.2.18-Win32-vs16-x64

Description
When trying to install I get this error: Failed to find the PHP version for c:/Program Files/php-8.2.18-Win32-vs16-x64 at the 20% mark. I've installed cretueusebiu's version prior to this without any issues, and I'm fairly certain I removed everything before installing this. Manually adding the php version with valet php:add "c:/Program Files/php-8.2.18-Win32-vs16-x64" didn't address the issue
Steps To Reproduce

Download php 8.2.18-Win32-vs16-x64 from https://windows.php.net/
Add path to env variables
Install composer
Require yCodeTech/valet-windows
Valet install

Diagnosis
valet diagnose
returns
Command "diagnose" is not defined

I think this is due to the old config file. When we try to remove the old version it removes the package. but doesn't remove the config file.
This file is responsible for storing all valet settings like php path and other things.
you should also need to remove these files also.

You can try to place your all php version to base dir of c:/php and then try to add it again.

Valet expects PHP to be in c:/php.
From the

If you don't have PHP installed, make sure to install it.
Download the Zip file and unzip into C:/php/.

After reviewing the code, I can confirm that the PHP doesn't have to be in c:/php. Valet finds the installed PHP via the environment variables, and uses that path. So my previous statement is wrong, apologies.
I'll do some tests tomorrow. But I suspect it can't find the default PHP. But until tests are complete I can't say for sure.
In the meantime, please make sure all old configuration files and folders from cretueusebiu's valet have indeed been deleted.

After testing. The command fails because of the space in the path: Program Files. A fix is in place, and a patch will be out momentarily as v3.1.2. Please update to this version when its available.


[Bug] Ineffective alpha-level for SPADE

Hello there! I am trying to identify patterns in my neural recordings I am now testing SPADE, which initially seems very promising for what we want to do, but I discovered that many of the patterns that were flagged as "non-significant" had p-values below my specified alpha-value in the parameters (alpha = 0.05). Is there something I am missing in how the statistical significance is being done and corrected for?
Best,
Idavr
Environment

OS (e.g., Linux): Linux, Ubuntu 22.04.4 LTS
How you installed elephant (conda, pip, source): pip
Python version: 3.8.18
neo python package version: 0.13.0
elephant python package version: 1.0.0

Hello @Idavr ,
thanks for reaching out to us.
At first glance I agree with your assessment. However the SPADE module has a number functions and parameters.
Did you use the elephant.spade.spade  function? According to the docs the filtering step depends on at least two parameters: alpha and approx_stab_pars.
See also: https://elephant.readthedocs.io/en/latest/reference/_toctree/spade/elephant.spade.spade.html#elephant.spade.spade

In a final step, concepts are filtered according to a stability threshold and a significance level alpha.

Did you use the elephant.spade.test_signature_significance function?
https://elephant.readthedocs.io/en/latest/reference/_toctree/spade/elephant.spade.test_signature_significance.html#elephant.spade.test_signature_significance
Which statistical correction did you use?

Bonferroni or FDR statistical corrections can be applied.

It could be very helpful, if you could provide a minimal code example or give more details on how you ran SPADE.
Hope this helps, unfortunately I'm not an expert on the method itself.

This might be related:  https://github.com/NeuralEnsemble/elephant/issues/439 .
This issue points out, that in particular the pattern filtering functions and SPADE in general require a more detailed documentation.

Hi @Moritz-Alexander-Kern
Thanks for responding, apologies for the delay in getting back to you.
Using Pycharm I ran this specific line of code, where bins = 10, from inside my environment for elephant
patterns = spade(spiketrains, bin_size = bins*pq.ms, winlen=1, dither=5*pq.ms, spectrum='3d#', min_spikes=6, min_occ=3, min_neu=2, alpha=0.05, n_surr=1000, psr_param=[0,0,0]
The statistical correction used is fdr_bh and reading through the code, calling spade as I have done above should also run the test_signature_significance function, which is the one I also have been reading through and trying to understand what here might be throwing things off.
However, the approx_stab_pars parameter I do not know of and cannot seem to find good documentation on how it might be used? Any further insight into how to better use this method is highly appreciated, from the small things I have gotten to work it seems to be exactly what I have been looking for.

As a work around, I am trying to see how the same information can be stored for the non_significant patterns as well, seeing as they currently are only stored with their signature and p-value. Also storing the neuron numbers and time windows for the non-significant patterns would at least give me data to work with, regardless of the final statistical value.

Hi @Moritz-Alexander-Kern
Thanks for looking into this. I have previously run a test with stat_corr = 'no' and alpha = 0.05, but that resulted in 0 patterns pinging for significance and the non-significant patterns still had p-values below 0.05. Another test with alpha = 1 resulted in only significant patterns but the total number was 15870 patterns in a 7 second long snippet of the recording! The total number for significant + non-significant patterns for the same time interval has previously hovered around max 120 patterns.
Does this make sense to you? Based on your explanation and what I thought myself the p-values for the non-significant patterns should indeed be the non-corrected ones, so as I was trying to get at the non-corrected significant patterns I thought the stat_corr = 'no'parameter by itself would help. But according to you the alpha = None parameter AND the stat_corr = 'no' would be work more in line with my thinking, is that so? Or would it still explode the number of significant patterns like with alpha = 1 ?

Hi @Idavr ,
While I don't fully grasp the reasoning behind it, it seems plausible that using stat_corr='no' and alpha=None could be the closest approach to achieving the intended outcome.

Does this make sense to you?

Again I would like to emphasize, that I'm not an expert on the method. However, it's worth noting that providing precise answers without the full context of the analysis or an example workflow is challenging. It's possible that considering the broader context could reveal alternative approaches or considerations. If you're open to it, providing additional details could help refine the strategy further.
It seems the variation of those parameters can lead to behavior which is not obvious. I.e. there are different code execution paths for combinations of alpha and stat_corr. This is why the documentation needs clarification on those parameters, see #439 . Consider the docs for alpha: "The significance level of the hypothesis tests performed." If you look into the source code you will find if-else statements, that will bifurcate the control flow depending on the parameter choice and combination. In this context reasoning about the code in this way (inductive style) might not lead to clarification or further insight.

Hi @Moritz-Alexander-Kern,
Thank you for looking into this, I am grasping more how this works now. I am currently running a larger analysis with those parameters and will let you know how it goes.
Appreciate your time and fingers crossed this solves my conundrum.

Hi @Moritz-Alexander-Kern
Just wanted to update on the progress on this. I have let the analysis of 31 seconds of data run for over two weeks with the parameters specified above, but it looks like this resulted in it being locked in some kind of loop after computing the value spectrum as most of these two weeks of the code running has been after that processing step. This is way longer than any other parameter testing I have done (on a relatively powerful computer), and without any other reference points or outputs I will have to abort it soon if the parameters have actually pushed it into being caught in a loop. I cannot see from the code immediately that this should happen, and when time dragged on I was thinking it just took this long since it was going over and writing up all the identified patterns, but as time goes on the belief that this is the case is diminishing.
If you have any input or knowledge of what possibly is going on then any thoughts are appreciated.

Hi @Idavr ,
To date, I haven't come across a scenario where SPADE would become stuck in an endless loop. If that's the case here it would be great to find and fix this issue.
My understanding is that it's conceivable that suboptimal parameter choices could result in excessively lengthy runtimes. However, without insight into the code and the specifics of the machines you're using for your analysis, offering meaningful advice is challenging. If you could provide a minimal code snippet that replicates the problem, I'd be able to investigate further. As it stands, my assessments would be somewhat speculative.
Generally speaking, analysis workflows are often IO bound, so I agree with your assessment, that reading and writing to disk could be a possible bottleneck here.

Hi @Moritz-Alexander-Kern,
I understand. I am looking into being able to share the data, but until then I am running additional tests. One of these being to confirm that the MPI is actually being utilized in this process, which I am now a bit uncertain about. In the spade.py script I put these lines all the way in the beginning with the rest of the imports:

from mpi4py import MPI
comm = MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
print('Using MPI for parallelization!')
print('Number of MPI processes : {}'.format(size))

However, this is not being printed when I run the program. Neither is any other print arguments I inserted deeper into the script at any point where

if HAVE_MPI:  # pragma: no cover
        comm = MPI.COMM_WORLD  # create MPI communicator
        rank = comm.Get_rank()  # get rank of current MPI task
        size = comm.Get_size()  # Get the total number of MPI processes
    else:
        rank = 0

was written, making it say:
if HAVE_MPI:  # pragma: no cover
        comm = MPI.COMM_WORLD  # create MPI communicator
        rank = comm.Get_rank()  # get rank of current MPI task
        size = comm.Get_size()  # Get the total number of MPI processes
        print('Using MPI for parallelization!')
        print('Number of MPI processes : {}'.format(size))
    else:
        rank = 0
        print('No MPI.')

Still no print messages mentioning MPI being printed at all.
This worries me as I am unable to know whether MPI is activated or not. Have you encountered this before?

Hi @Idavr ,
It sounds like you're facing some challenges with ensuring MPI is correctly set up and utilized in your script. It's essential to confirm MPI's activation to ensure proper parallelization. This might also the reason for your analysis getting stuck in a deadlock (race condition could also occur, this might be also be relevant for #627 ?).
From your description, it seems the print statements related to MPI aren't being executed, which indeed should not be the case.
Here are a few points to consider:
MPI installation: Ensure that MPI is properly installed and configured on your system. Sometimes issues arise from mismatched versions or incomplete installations.
Did you follow the setup process described in the docs?:
Elephant docs on using MPI:
https://elephant.readthedocs.io/en/latest/install.html#mpi-support

can you verify that HAVE_MPI = True ?

Script Execution: When running your Python script with MPI, make sure you're executing it in a manner that MPI recognizes. Depending on your MPI implementation (e.g., Open MPI, MPICH), the command to run MPI-enabled Python scripts might differ. Typically, you'd use a command like mpiexec or mpirun followed by your Python script.
i.e.
$ `mpiexec` -n 4 python spade.py

See also;
https://mpi4py.readthedocs.io/en/stable/tutorial.html#running-python-scripts-with-mpi
mpi4py Documentation: If you've verified the above and still encounter issues, reaching out to the mpi4py maintainers or consulting their documentation might provide valuable insights. They may offer specific guidance or troubleshooting steps tailored to mpi4py usage.
https://mpi4py.readthedocs.io/en/stable/index.html
Hope this helps, feel free to reach out again.

We have not heard from you recently and we could not reproduce the errors that you are reporting.
Closing this now, feel free to reopen this at any time.


How create custom swal alert

I need create swal() alert with two buttons. I try create PopUp like that:
action.PopUp("/admin/popup2", "Operation", func(ctx *context.Context) (success bool, data, msg string) {
		return true, "
hello world
", string(ids)
	})

But this implementation no  does not allow me add two buttons and give callback from its. How can i do it?

@ShurikuS57 Now the solution is to implement a Action yourself with the latest version. But I will consider adding a official Action, like AlertAction later.


feat(@angular/build): add sass to stylePreprocessorOptions in application builder

This commit introduces the functionality to configure a limited number of options for Sass processing in the Angular application builder. The following options have been added to enhance the Sass integration:

futureDeprecations: Specifies features that are scheduled for deprecation. The compiler will treat these as active and emit warnings as necessary.
fatalDeprecations: Identifies Sass features that are already deprecated and will cause build failures if used.
silenceDeprecations: This option suppresses deprecation warnings for specified versions.

Usage example:
"architect": {
  "build": {
    "builder": "@angular-devkit/build-angular:application",
    "options": {
      "outputHashing": "none",
      "namedChunks": true,
      "stylePreprocessorOptions": {
        "sass": {
          "futureDeprecations": ["color-functions"],
          "fatalDeprecations": ["color-functions"],
          "silenceDeprecations": ["1.77.0"]
        }
      }
    }
  }
}

For more information about these options, please refer to the  Sass documentation: https://sass-lang.com/documentation/js-api/interfaces/options/
Closes #28587

Hi, I just wanted to add the necessary config for Angular V19 to get rid of the sass compiler warnings:
"stylePreprocessorOptions": {
  "sass": {
    "silenceDeprecations": ["mixed-decls", "color-functions", "global-builtin", "import"]
  }
},

Just in case sb. lands here and is looking for the same solution as I did :-)

Another note to @alan-agius4: Your example is missleading, it should look like this:
"architect": {
  "build": {
    "builder": "@angular-devkit/build-angular:application",
    "options": {
      "outputHashing": "none",
      "namedChunks": true,
      "stylePreprocessorOptions": {
        "sass": {
          "fatalDeprecations": ["color-functions", "1.77.0"],
          "futureDeprecations": ["color-functions"],
          "silenceDeprecations": ["color-functions"]
        }
      }
    }
  }
}

This is due to the fact, that only for "fatalDeprecations" you can pass in a sass version, not for the other two.


Live Migration: Instruction_Abort when executing restored VM

Recently, while developing Realm VM live migration, we encountered an instruction_abort issue.
The specific scenario is as follows...
When importing the Realm VM on the destination platform:

We first used smc_rtt_init_ripas to set the entire RAM area of the Realm VM as unassigned RAM.
Then, we established the IPA mapping using the smc_data_create interface. (Currently, our temporary solution does not consider efficiency, and we traverse all gfns in the kvm memslot.)

delegate the dst_granule.
smc_create_data .
if smc_data_create fails with RMI_ERROR_RTT, we create the missing RTT and retry.
(I've omitted the parts related to Qemu, describing only the operations in RMM here)

We implemented a register import interface to load REC information from QemuFile.
After the RAM and registers are imported, upon entering smc_rec_enter, the vCPU executes the first instruction pointed to by the PC, which results in an instuction_abort.

Environment:
● Simulation platform is FVP, ShrinkWrap cca-3-world.
● All components (QemuVMM, KVM and RMM) in this cca-3-world environment have new code added, but we have kept the original interfaces unchanged.
● This bug might be impracticable to reproduce, so I'll try my best to desceibe it..
ShrinkWrap Log:

Discussions:
The RMM spec describes the cause of instruction abort as follows:

However, for S2TTEs with a valid IPA, the states of RIPAS and HIPAS will not be checked, refer to this in issue #21 :

We re-use some bits in pte (namely bits 5 and 6) for storing the RlPAs state when the pte is invalid. When the pte is valid, TfRMM assumes that RlPAS is always RlPAS_RAM and hence we do not refer to these bits for a valid pte.

By the way, if we don't populate the Realm VM's memory, only load the REC registers, and start running, the Realm VM will enter an endless loop because RMM choose to handle the instruction_abort himself. However, with the memory populated, RMM forwards the instruction_abort to KVM, and the system panics. Therefore, I guess the memory import is at least partially correct...

The logic for handling inst_abort in the relevant code：

Conclusion:
We are not concerned about privacy and performance at this stage; we only wish to verify whether VM can restart successfully on dst platfrom after populating all the plaintext-exported guest pages back to their original IPA.
Our questions can be summarized into two:

Since RIPAS is not checked, why and how does the CCA hardware trigger instruction_abort ?
Did we mess up anything in the import of Realm pages and REC registers?

We sincerely appreciate your ongoing assistance. If you need more information or have any suggestions, please let me know.

Hi,
Have you "restored" all of the RAM regions ? With RMM-1.0, we cannot "load any content into Realm memory" after the ACTIVATE step. Since you are restoring a Realm VM from a previous state, you need to make sure all of the RAM region is POPULATED (not just INIT_RIPAS) before ACTIVATE. Future RMM spec might add support for "Paging" which could let the VMM load "previously" captured content into an ACTIVE Realm, with some guarantees from RMM on the contents.
Looking at the logs:
The ESR=0x820000a5 => 	EC => Instruction Abort from a lower Exception level, IFSC="Granule Protection Fault on translation table walk or hardware update of translation table, level 1." ?
This should never have happened, as the RMM must ensure that the "Granule" mapped in Protected space is in the Realm PAS.

By the way, if we don't populate the Realm VM's memory, only load the REC registers, and start running, the Realm VM will enter an endless loop because RMM choose to handle the instruction_abort himself.

I assume that this is because DRAM region is left with ripas=empty state. Instruction fetch from ripas_empty page is (by the RMM spec.) reported to the Realm (the exception is injected), not to the Host. The Realm's exception handler also resides in ripas_empty DRAM so the Realm gets into the endless loop of generating instruction aborts from the first instruction in its exception handler.

with the memory populated, RMM forwards the instruction_abort to KVM, and the system panics. Therefore, I guess the memory import is at least partially correct...

I agree with Suzuki's analysis but it is quite difficult to figure out why the abort has happened, so I am thinking about the way how to simplify the case...
As the reported abort is: "Instruction Abort from a lower Exception level, IFSC="Granule Protection Fault on translation table walk or hardware update of translation table, level 1.", can you run (and migrate) the Realm that runs with stage 1 MMU disabled? A simple
while(forever);
... will do;
(1) If the tests passes OK, we'll know definitely that it is something about stage 1 MMU (likely EL1 sys reg misconfiguration, so e.g. you may focus your search on REC migrations).
(2) If it still fails, there is something more serious, but it would be easier to figure it out on a simpler test.

@djordje-kovacevic ,
Thanks!
Your explanation of "abort-injection-loop" makes sense, Pages' RIPAS should be empty without RIPAS_INIT and data_create.

I'll check REC's sys-regs as you suggested.
By the way, these Realm VMs were being migrated in their early stages of "Kernel Boot" (simply because I don't have the patience to wait for it to finish), I don't know if this will have any impact.

can you run (and migrate) the Realm that runs with stage 1 MMU disabled? A simple
while(forever);
... will do;

I will redo some experiments according to the while(true); conditions you mentioned.

@djordje-kovacevic ，
Thanks for your advice, I migrated the single-core VM in while(true) loop, but nothing has changed.
Can we now confirm that the sys-regs are correct?

(2) If it still fails, there is something more serious, but it would be easier to figure it out on a simpler test.

If indeed we have encountered this situation, how should we proceed with debugging?

Please can you confirm:

Did you run Realm with MMU disabled in stage 1?  With: "while (forever)", I meant that the whole Realm does the absolute minimum, e.g:

start:
B start

If so, what exception is reported in the log?

Okay, sorry, I didn't think it through before and misunderstood the meaning of "disabling the MMU in a while(true) loop".
I will modify the guest kernel booting assembly and retry.

I think it worked.
I modified guest kernel's booting assembly at /linux-cca/arch/arm64/kernel/head.S.
Kernel will enter loop at primary_entry before enabling MMU.

Now, when restored VM crashes, the new ESR is 82000001.
According to bits[5:0], FSC is "Address size fault, level 1", and this leads to EL1 sys reg misconfiguration.
Now I'm going to check Realm's sys-regs initialization when booting from a snapshot.

Update:
ESR 82000001 is an abnormal result that I can not reproduce. (perhaps the rootfs was corrupted after repeated testing, can this be an explanation?)
Now, in most cases, ESR is 82000025.
Comparing to 820000a5 when stage-1 MMU is enabled, bit[7] has changed from 1 to 0.

0b0 Fault not on a stage 2 translation for a stage 1 translation table walk.
0b1 Fault on the stage 2 translation of an access for a stage 1 translation table walk.

So, we ruled out stage-1 fault cases, and the abort type is still GPF.

Update:
Now, in most cases, ESR should be `82000025.
However, in some abnormal cases, the ESR might be 82000001 82000005 or  82000009, and I am unable to reproduce these results (Maybe repeatedly tests and shutting down during panic situations could corrupt the rootfs? Can this be an explanation?).
82000025 is reasonable, comparing to 820000a5 when stage-1 MMU is enabled, bit[7] has changed from 1 to 0.

0b0 Fault not on a stage 2 translation for a stage 1 translation table walk.
0b1 Fault on the stage 2 translation of an access for a stage 1 translation table walk.

So, accroding to 82000025 we can ruled out stage-1 fault cases, and the abort type is still GPF.

Update:
We found that the number of host cores may have an impact on the migration result.
Realm VM can be migrated successfully when host smp=1 and guest smp=1. (all the migrated Realm VM are single-core here)
However, if we use a host QEMU with 2 cores, it will encounter GPF with esr=820000a5 , just like FVP. (previous tests were using ShrinkWrap's default cca-3world.yaml, which also has 2 cpu)

Why does multi-core host affect the guest migration? Or more specifically, will "memory delegation" run differently on a multi-core host QEMU?
I didn't think abouttlbi of GPT, because I thought it's done in TF-A during the RMI_GRANULE_DELEGATE
We still have a bug about Realm vtimer, I'll describe it in next issue.

ESR Indicates the following
EC = Inst. Abort.
FSCE = 0x25 = >  0b100101  - Granule Protection Fault on translation table walk or hardware update of translation table, level 1
S1PTW=1 => Fault on S1 page table walk.
Have you made sure that the "RAM" was restored properly without any errors ?
Are you able to provide more information / collect RMM logs to clearly pin point "what the race condition looks like" ? Without proper logs, it is hard to predict what has gone wrong.
Given your case shows a GPF and valid HPFAR=(41dd70)=> IPA=0x41dd70-000. Are you able to collect the relevant calls that dealt with the IPA ( DATA_LOAD = PA for IPA, and DELEGATE calls for the PA, also any DATA_DESTROY calls that could have been made).

If your emulation platform supports "trace" it would be helpful to collect trace information about the TLB operations too.


Put current as the usual value to put in

Rather than making us go to https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-pipeline-artifact?view=azure-devops
Say it here
download
string
Required. must be current
Using a different value like specific does not make sense unless the other parameters like pipeline and project are documented and allowed.  If allowed then the text should be
Download artifacts produced by the current pipeline run, or from a specific pipeline run.  Use current to download artifacts from the current pipeline or use specific to reference another pipeline via project and pipeline arguments.

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

ID: 0727646b-b2de-43e7-66bb-4d1a4e149801
Version Independent ID: 0727646b-b2de-43e7-66bb-4d1a4e149801
Content: steps.download definition
Content Source: content/steps-download.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

@trajano Thank you for the feedback. It looks like the download step is a shortcut for downloading an artifact from the current pipeline. I'll clarify this and get it published shortly. Thank you.


Is tabindex supported?

"glamor": "^2",
"glamorous": "^3.23.5",
"react": "^15.6.1",:
Not sure tabindex attribute is supported.

It should be. Please follow the instructions here to get help/make an example.

It works :smile:

I just ran into this issue trying to make tabbable divs - passing data-* attributes worked just fine, but  tabindex was never passed onto the html element.
Minimalist reproduction

Hi! The problem in your reproduction is that, in JSX, to set tabindex, you use tabIndex (capital I) :)

D'oh! There it is! Many thanks, Kent :-)


Why is this library so stable?

WhatsApp changes its android app to prevent mgp25 and yowsup libraries.
WhatsApp changes button locations and div names or xpath to stop puppeteer based libraries.
=> Then why not whatsapp changes its websocket system like change the format of data exchange to stop libraries like this.
=> Why can't whatsapp distinguish between such websockets and real whatsapp web?

Good question. Im think that websocket system too much difficult.


rapidcity sd

Try number 3

All good

running a test

testing a new fix

Running a final test

Testing

testing

test

test

test

test

test

test


Mocking in E2E Tests

Description
Currently our E2E tests don't rely on any mocks - this is good in some ways as we are fully testing integrations; however, bad in some ways as we cannot tests error responses and developers could have different results based on their location when running the e2e tests locally.
Some options on mocking:

Use the isE2Eenv within the code to return static responses as seen here.
Run an express server and point the e2e tests to hit these endpoints when testing locally.

External Links

Mocking network requests in detox E2E tests
Mocking API backend, no effect? #2700
Detox Mocking Guide

User Stories
As a developer I want to be able to run the e2e tests locally and have the same results regardless of location, so that I can be sure that the tests that I write when testing locally will pass in CI.
Acceptance Criteria

[ ] E2E tests do not have different results based on user location
[ ] E2E tests can test multiple response types from endpoints: 200's, 500's, 404's. (stretch)

Some thoughts: I would prefer to somehow configure a deterministic app state for the e2e testing environment. location might be part of it, maybe there are other states to be configured as well.

It would be great to be able to send different responses from a mock server in the e2e tests to test app state based on various server responses e.g. load the supercharge page when we have an amount to claim, when there nothing to claim, when there is an error response from the server.


Added possibility to override or add target basis to tip bone

With this PR I've added the possibility to change the behavior of tip bone. Now is possible to add the target basis to tip bone or completely replace it

Would need a rebase (and review by @reduz eventually...).

Ok I'll do it

Sorry for the delay - @reduz says this is good to merge, so we'll just need another rebase.

I solved the conflict and merged as a837c33.


AttributeError: 'str' object has no attribute 'get'

Hello,
I'm getting the following error message on two different linux distros when running the command on a target.
python3 ./main.py -f -t https://example.com/graphql

[*] Attempting to fingerprint...
Traceback (most recent call last):
  File "/home/x/Desktop/graphw00f/./main.py", line 172, in <module>
    main()
  File "/home/x/Desktop/graphw00f/./main.py", line 148, in main
    result = g.execute(url)
             ^^^^^^^^^^^^^^
  File "/home/x/Desktop/graphw00f/graphw00f/lib.py", line 58, in execute
    elif self.engine_graphql_yoga():
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/x/Desktop/graphw00f/graphw00f/lib.py", line 136, in engine_graphql_yoga
    if error_contains(response, 'asyncExecutionResult[Symbol.asyncIterator] is not a function') or error_contains(response, 'Unexpected error.'):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/x/Desktop/graphw00f/graphw00f/helpers.py", line 32, in error_contains
    err_message = i.get(part, '')
                  ^^^^^
AttributeError: 'str' object has no attribute 'get'

Hi there,
Can you share which GraphQL server are you testing against? can you reproduce this against any GraphQL server?

are you asking for the URL ?
and i am facing this same error too on my target URL but for confirmation i checked on another URL...it works on another but this is not working on my target..what i can do

Unfortunately I don't have the host anymore and I didn't post it at the time because it was a private bug bounty program. I can say that I discovered the host was a cname after using DIG, so maybe it has something to do with that

Every GraphQL server behaves a little different, especially when malformed requests are thrown at them. I need to be able to reproduce this against the URL that's misbehaving

Closing for now

Improvements made at https://github.com/dolevf/graphw00f/pull/42


About result

@alexandru-dinu
Can i ask you if the test result of your trained model reach PSNR of 37 ，SSIM of 0.96 , MS-SSIM of 0.98 at 2bpp as mentioned in the paper “LOSSY IMAGE COMPRESSION WITH COMPRESSIVE AUTOENCODERS”？

Moving discussion to #15.


modify installation.md

remove a slash

Nice catch! Thank you @qiuyingtao!

It's my pleasure.
Thank you for your great app!
2016-04-08 3:00 GMT+08:00 Emmanouil Konstantinidis<EMAIL_ADDRESS>
:

Nice catch! Thank you @qiuyingtao https://github.com/qiuyingtao!
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/ekonstantinidis/django-rest-framework-docs/pull/82#issuecomment-207050463


how to draw graphs from dot files?

I want to visualize some dot files generated in my program. The dot files describe graphs.
Does echarts support this? Any document or links would be appreciated. Thanks a lot.

What is a dot file?

https://en.wikipedia.org/wiki/DOT_(graph_description_language)

I don't think so. Maybe you should write a script to do this.


Detail Explanation of Proxied Objects

Updated the 'Properties and Methods' section to include what I think, will help newcomers understand proxied properties better. The explanation did not seem clear to me.

I agree there's room for improvement here! The explanation you provided isn't quite accurate, but I'll spend some time today working on an overhaul of this page in general. In the meantime, I'll keep this open.

Okay thanks for your feedback :)


502 bad gateway error

https://resolver.onename.com/v2/users/vsund triggers a 502 bad gateway error too

Suggestion:
What do you think of adding a 502 global error handler like one of the ones we have to ensure API errors return JSON?
# 502 Error handler
@app.errorhandler(502)
def page_not_found(error):
    response = jsonify({'error': error.to_dict()})
    response.status_code = error.status_code
    return response

Issue moved to blockstack/blockstack-core #241 via ZenHub