regression: dependency-check-maven does not take dependencies' repositories into account anymore

I upgraded the maven plugin from 6.2.2 to 6.3.1 and now I'm getting this error during the execution of the check goal:
Caused by: org.owasp.dependencycheck.exception.ExceptionCollection: One or more exceptions occurred during analysis:
	ArtifactResolverException: Could not find artifact com.github.graphstream:gs-ui-swing:jar:2.0 in central (https://repo.maven.apache.org/maven2)
		caused by ArtifactResolutionException: Could not find artifact com.github.graphstream:gs-ui-swing:jar:2.0 in central (https://repo.maven.apache.org/maven2)
		caused by ArtifactNotFoundException: Could not find artifact com.github.graphstream:gs-ui-swing:jar:2.0 in central (https://repo.maven.apache.org/maven2)
	ArtifactResolverException: Could not find artifact com.github.graphstream:gs-core:jar:2.0 in central (https://repo.maven.apache.org/maven2)
		caused by ArtifactResolutionException: Could not find artifact com.github.graphstream:gs-core:jar:2.0 in central (https://repo.maven.apache.org/maven2)
		caused by ArtifactNotFoundException: Could not find artifact com.github.graphstream:gs-core:jar:2.0 in central (https://repo.maven.apache.org/maven2)
    at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.collectMavenDependencies (BaseDependencyCheckMojo.java:1320)
    at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.collectDependencies (BaseDependencyCheckMojo.java:1437)
    at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.scanArtifacts (BaseDependencyCheckMojo.java:1098)
    at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.scanArtifacts (BaseDependencyCheckMojo.java:1064)
    at org.owasp.dependencycheck.maven.CheckMojo.scanDependencies (CheckMojo.java:104)
    at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.runCheck (BaseDependencyCheckMojo.java:1689)
    at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.execute (BaseDependencyCheckMojo.java:950)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
...

What is particular with this dependency is that it is downloaded from a repository that is declared in the pom of one of my project's dependency:

my project -> another project -> gs-core
with "another project" declaring a repository in its pom where gs-core can be found

Also note that executing the check goal directly on "another project" works as expected.

@victornoel As a side-note, why not use the officially published artifacts from graphstream from Maven Central https://repo1.maven.org/maven2/org/graphstream/?
I'll see if I can reproduce your issue locally as I've seen they're published under unofficial coordinates that your project also uses in the SciJava public repository

I have a similar ArtifactResolverException after upgrade from 6.2.2 to 6.3.1. The jar is a third party jar not in any public repos.
The report gets generated, but it is a build failure. Ideally, this could be a warning in the report.

Able to reproduce locally with a similar structure as @victornoel, so I'll investigate its root cause and will try to come up with a fix

Root cause lies in Maven dependency-tree shared library upgrade from 3.0.1 to 3.1.0 ef665ed8ebb6f351ed54a4b75d58986b211a9c18, reverting the library back to 3.0.1 makes resolution function properly

@jeremylong I'll look into a structural fix, if you would like to do a quick-fix you could release a new minor with that dependabot-PR reverted.

Likely to stem from MSHARED-519 which might explain why we now run into #1751 again (allthough the artifacts were resolved before, from the correct repository they're not marked resolved in the nodes of the DependencyGraphBuilder, so we try to resolve them and run into the issue that the repository configuration inside the child poms is not taken into account).
Will need some further investigation to find out what would be the proper way to get the resolved artifacts available.

@jeremylong Running a final testrun on a working patch... no need for an interim-fix PR expected to follow soon

As a side-note, why not use the officially published artifacts from graphstream from Maven Central https://repo1.maven.org/maven2/org/graphstream/?

Hehe, very good question, I think it's because initially those weren't available on Maven Central yet but only on jitpack, thank you for the info!
In any case, thx for investigating it and finding a clean solution :)

@aikebah thanks for the research and PR! I'll try to push a new release soon!


Virtual environment info doc missing.

This is referenced by the Installation guide and this doc is not yet published leading to a 404 error navigating from the Installation guide.

Dup of https://github.com/dbcli/mssql-cli/issues/116
Closing this


[chore] Test GH pre-commit action

Changes made
This demonstrates the need for change with pre-commit GH action.

commit 548b99d shows a trivial change on a .tsx file, which triggers the eslint portion of pre-commit.

However, pre-commit eslint fails for not recognizing "airbnb" eslint extension. This is because all the eslint extensions are installed via npm install, but this was not added in the infra change on #126

commit 28a2b79 shows that pre-commit changes after adding npm install is added.

Screencapture (if applicable)
Testing

[ ] End-to-End

Work left to be done

While this does solve the issue, I believe the correct solution is to use the 'additional dependencies' feature of pre-commit config.
https://github.com/pre-commit/mirrors-eslint#using-eslint-with-pre-commit

resolved via #144


Use Dataflow dev container images that have current versions of Beam SDK dependencies installed.


Stick with DOCKER_* env variables for now

What this PR does / why we need it:
Keep DOCKER_PREFIX and DOCKER_TAG also for bazel right now. If we change
that, let's change it for everything to CONTAINER_TAG and
CONTAINER_PREFIX.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

NONE

@rmohr I prefer to change it to CONTAINER_PREFIX and CONTAINER_TAG, it just will make more sense when we will move images to quay. But we can do it after, so we can merge it :smile:

Just to clarify, while this PR put the explicit call back in to bazel-push-images, the problem I'm having is in fact push images.  The name change is fine, I can update the docs to fix that easily; but I can't seem to get the dockerized run of bazel to push images to anything but localhost:5000.
When setting things to quay.io/jgriffith, it does seem like it might be trying to work; it creates all the empty repos in my quay.io registry, but after an hour it's still running and all of the repos are empty (quay.io is painfully slow to respond when running this so who knows, maybe it just takes hours to complete).
I'm not sure what's up with dockerhub; bazel requires the domain but I seem to get various access errors on that, or http vs https response errors.
Finally, the use case I had in the past was my own private registry with self-signed certs.  That no longer works because I can't seem to get the kubevirt container to mount and use my /etc/docker/certs.d directory (although I think there's another layer in the kubevirt container I'm currently passing this volume mount to, so that won't work).
I'd like to help out here, if I can figure out more on how make bazel-push-images works I'll surely submit a PR.  In the meantime I've isolated things down to make it a bit faster to test out by just calling the make command directly:
CONTAINER_PREFIX=<IP_ADDRESS>:5000 CONTAINER_TAG=latest make bazel-push-images

This isn't the real problem, so I opened an issue:  https://github.com/kubevirt/kubevirt/issues/2087

Ah yes, now I remember. Quay does not support the newer image formats yet. Neither v2, nor oci. When asking Quay people a month ago they meant that they have it already in staging and that it is close.

/cc @mlsorensen

@rmohr chmod +x on the bazel script is missing

@rmohr chmod +x on the bazel script is missing

:+1: fixed.


Pausing the game makes Duration longer and incorrect

In an offline game where I play with AI teammates, pausing the game will not pause the Duration since it tracks wall clock. Because of the inflated Duration, DPS calculation is lower than expected since no player can deal damage while the game is paused.
Example: in this AFK farming game: 189_damage_log.csv I paused the game when the first time my AI teammates deal damage. About 2 minutes later I resumed the game and finished it without more pauses. The game ends with IGT=02:47 but Duration=05:54.
Sometimes I have to pause the game to go to use the bathroom and my DPS would go down the drain together. Hopefully the parser can work around this situation

This is sort of expected behaviour for now. We could maybe add in more work for offline mode pause tracking, but it gets pretty tricky to support currently..
DPS is calculated as the total damage, divided across the duration of real-world time between "first damage instance" and "last damage instance", which makes it pretty simple to calculate. These damage instance timestamps aren't game-time based, but real-time timestamps.
Unfortunately, this causes issues when the game is paused when you are in offline-mode, compared to online-mode where the game still continues even while paused.
Going to close for now.. but will keep this in mind to see how we could solve this in the future 👍


convertor.toMarkdownText do not work properly

Describe the bug
convertor.toMarkdownText function can not convert multiple
 tag
To Reproduce
Steps to reproduce the behavior:

with wysiwyg mode, write a multiple
 content
Invoke a convertor.toMarkdownText

Expected behavior
work properly
Screenshots

with wysiwyg mode, write a multiple 'br' tag

Invoke a convertor.toMarkdownText ( using console.log(convertor.toMarkdownText(..)))

Desktop (please complete the following information):

OS: macOS 11.4
Browser Chrome 92

Additional context
Add any other context about the problem here.

@dghg
Sorry for late replying.
This is not a bug. In Markdown, we deal with the blank line as hard break, so br only needs to be added once.

@dghg
Can you give some information about this editor:
https://docs.google.com/forms/d/e/1FAIpQLSdhPRNZlEknQcx0V9Ww5U2sAbN_wv3WTmFeWIOIX21LRjFd7Q/viewform


Shadow in ATRectangle problem

Hi,
First, thanks for the lib. Amazing work.
In IOS/Rio, I think there is an issue with the shadow when Fill.Kind is bitmap and wrapMode is TileStretch.  It does call the shadow routines but it does not paint the shadow. When Fill.Kind is Solid it just works.
Any idea?

I will need to look more closer at it, actually, Lib is built mostly for our own use and this use case was never tested by us. I will take a look at it

Hello, everything has been fixed in the latest committed version.


Introduce FixIt.Change API that replaces the child of a syntax node

Currently, Fix-Its are only able to replace syntax nodes but that makes it impossible to replace a nil node by a proper syntax node.
We should offer a FixIt.Change that replaces the child of a syntax node, with a signature that’s something like this (written in GitHub, not sure if it compiles, but it gets the idea across).
FixIt.Change.replaceChild<Parent, Child>(_: KeyPath<Parent, Child>, of parent: Parent, with: Child)

FixItApplier will need to be updated to also handle this new change kind
rdar://115562892

I'd like to have a go at this if it's okay!

@mininny it now yours :D

@ahoppen, I wanted to tackle this issue but apparently there's no way to make WritableKeyPath conform with Sendable 🤷♂

You should be able to always use WritableKeyPath & Sendable, similar to
https://github.com/swiftlang/swift-syntax/blob/d181e99d0710ca712d64f22a4d15a2c2ea24f612/Sources/SwiftSyntax/SyntaxNodeStructure.swift#L21

What could be the use cases for replaceChild?

One use case (that I ran into recently) is adding a return type to a function declaration that doesn’t have one. Or potentially appending/removing a parameter.


can risc0 support deep learning model inference ZKP?

Yes, it can, though we haven't actually done any of it. One could imagine lots of paths to achieving this, including compiling and running ONNX. I think we're a major release or two away from compellingly being able to support AI use cases though - currently computations are limited to a generally insufficient number of cycles (that will be addressed in future  releases though)


[MM-48028] add intergration section to the preview page

Summary
Adds integration section for the preview page shown during the work template flow.
(NOTE: In the figma we have category/tag for each plugin but since currently the plugins do not have any tag/category we have no way to show it as such in the UI.)
Ticket Link
https://mattermost.atlassian.net/browse/MM-48028
Screenshots
System user more than one plugin missing

System user one plugin missing

**Admin user **

Release Note
NONE

LGTM @mhd-sln !
nit: Is it expected that all the modal content scrolls? Maybe only the accordion should?

Yes, according to the design spec all the modal content scrolls.

E2E tests not automatically triggered, because the PR is not in a mergeable state. Please update the branch with the base branch and resolve outstanding conflicts.


Some images are not included in the affected image list

Hi authors,
I'm following this document https://github.com/Azure/Service-Fabric-Troubleshooting-Guides/blob/master/Deployment/Mirantis-Guidance.md#list-of-affected-azure-os-images and find a small issue.
In Azure, if we use command az vm image list --offer "WindowsServer" --sku "with-container" --all  to list all the available OS image for Windows Server with container pre-installed, there will be three images with "WindowsServerSemiAnnual" as offer.
"Datacenter-Core-1803-with-Containers-smalldisk",  "Datacenter-Core-1709-with-Containers-smalldisk" and "Datacenter-Core-1809-with-Containers-smalldisk"
Per my understanding, these three images will also be affected by this. Could you please kindly confirm this point?
If it's true that these three will also be affected, should we also add it into the document, affected OS image list?

yes, I agree we need to add these images.  Updating in this PR - https://github.com/Azure/Service-Fabric-Troubleshooting-Guides/pull/241

updated


Migration files not created in migrations directory.

The starter kit is great. Thanks for putting this together.
One thing I've noticed, with the addition of the migration directory option in Bun, any migrations created in the starter-kit (create_sql & create_go) no longer create migrations in the migrations directory. They create them in the cmd/bun directory.
Setting the migrations directory in cmd/bun/migrations/main.go fixes the issue.
var Migrations = migrate.NewMigrations(migrate.WithMigrationsDirectory("migrations"))

Thanks for the report. This should be fixed in v0.3.3 and bun-starter-kit master branch.


chore(typings): Updated typings to add the stacktrace option

There is the option of stacktrace in https://github.com/getsentry/raven-js/blob/master/src/raven.js#L370 but there is no typings for it

@benvinegar this is the pr for the typings


Item mismatch on client side when trying to switch an item while consuming something

Pov
Another Pov
This cause the client can't move that item on inv due to the item not syncing with server-side

Any updates on this?


Resize event

In WebChat we need to dock chat messages to the bottom. If the message at the bottom is an adaptive card with an inline showCard action, we would like to know that the card has been resized so that we can scroll up.

Hey @danmarshall this is fixed now right? I think we added this event for you, reopen if not!


Running on Windows

Downloaded the Windows executable and tried to run it. It says,
Initializing...

Error -11: Failed to build program executable [ ]
Build Status: CL_BUILD_ERROR
Build Options:
Build Log:
:1:1: error: invalid storage-class specifiers in OpenCL
static inline ulong rotr64( __const ulong w, __const unsigned c ) { return ( w >> c ) | ( w << ( 64 - c ) ); }
^
:3:31: error: invalid storage-class specifiers in OpenCL
__constant static const uchar blake2b_sigma[12][16] = {
                              ^
2 diagnostics generated.

error: front end compiler failed build.

The Readme says, Make sure you have a recent version of Sia installed and running. But, what exactly should I install? Sia UI, Sia Daemon, or what?
I suspect that some dependencies are missing, but how do I install them? We Windows noobs don't have app-get, we use chocolatey.

anche io lo scaricato ma non apre e' come se non fosse supportato, alternative?


Download tracking for assets like PDFs

How would this work? How would it interact with remark-wiki-link-plus?

Users could do this given ability to install Google Tag Manager via the config file, and set up custom tags & goals via Google Analytics!


Help make test dependent on randint compatible with python 3.12

It seems that python 3.12 is a little stricter on the inputs of randint.
I hope this helps
In [1]: import random

In [2]: random.randint(10, 10/2)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[2], line 1
----> 1 random.randint(10, 10/2)

File ~/miniforge3/envs/py12/lib/python3.12/random.py:336, in Random.randint(self, a, b)
    332 def randint(self, a, b):
    333     """Return random integer in range [a, b], including both end points.
    334     """
--> 336     return self.randrange(a, b+1)

File ~/miniforge3/envs/py12/lib/python3.12/random.py:312, in Random.randrange(self, start, stop, step)
    309     raise ValueError("empty range for randrange()")
    311 # Stop argument supplied.
--> 312 istop = _index(stop)
    313 width = istop - istart
    314 istep = _index(step)

TypeError: 'float' object cannot be interpreted as an integer

thanks for looking at this so quickly and taking the time to test on your machine.
this seems intentional. see notes about automatic conversation.
https://docs.python.org/3/library/random.html#functions-for-integers
integer division resolves this issue easily.
the PR is 8 characters that go in the right direction toward 3.12 support without hurting other versions in any way. it is contained in the test suite, and it is obvious from inspection that the type of the inputs to the division operator are integers.
I mostly just wanted to help given that I had tried to see how far along python 3.12 one could go. I'm not asking you to accelerate your timeline in any way.
take it or leave it I guess.

Just a kind ping hoping you can consider the introduction of a total of 10 characters.

Thank you for the ping @hmaarrfk . We'll merge the PR in due time, when 3.12 support becomes official for Pytorch and torchvision.
I'm sure you're experienced enough to know that the complexity, dept and criteria for inclusion of a PR doesn't correlate with its number of characters.

Failures are unrelated, let's merge


Scale tests with CO-RE BPF

The ideal result is:

Incorporate relevant workload generator into the KubeBurner

Perform ACS Scale tests using the configuration above against a cluster with
core_bpf collection method

Collect resources usage metrics from the test for further analysis

Verify memory consumption

Currently for testing the releases two long running clusters are created. One of them has load generated by kube-burner. That kube-burner runs berserker containers that generate process and listening endpoints load. Collector runs in the same cluster with the CORE_BPF collection method. The config files used by kube-burner can be found at https://github.com/stackrox/stackrox/tree/master/scripts/release-tools/kube-burner-configs
The long running cluster for 4.3.0-rc1 is currently running and it is being monitored on a loop with kubectl -n stackrox top pod and by getting the metrics from the collector and sensor pods.
Here are some of the relevant PRs that has contributed to this work.
ROX-19857: long running collector should have listening endpoints load
https://github.com/stackrox/stackrox/pull/7929
Jv rox 17741 long running cluster should include collector
https://github.com/stackrox/actions/pull/20
Jv rox 19896 long running collector should use core bpf
https://github.com/stackrox/actions/pull/34
Jv rox 17741 long running cluster should include collector kube burner configs
https://github.com/stackrox/test-gh-actions/pull/116
I will add here the results from the long running cluster with real load.
Let me know if anything else is needed.

The above are the plots of memory and CPU usage for the 4.3 long running cluster.

I then went to https://github.com/stackrox/test-gh-actions/actions/workflows/create-clusters.yml
clicked on "Run workflow", changed the version to 0.0.8, and selected "Create a long-running cluster on RC1". I waited for the github action to finish.
To get the Grafana plots I did the following
infractl artifacts long-real-load-4-3-2 --download-dir /tmp/artifacts-long-real-load-4-3-2
export KUBECONFIG=/tmp/artifacts-long-real-load-4-3-2/kubeconfig
kubectl -n stackrox port-forward service/monitoring 48443:8443 > /dev/null 2>&1 &

Go to https://localhost:48443/?orgId=1 in your browser. Enter admin for the username and stackrox for the password. In the toolbar on the left select Dashboard->Manage. Click on Core Dashboard. After about 7 days the core dashboard showed the following

Note that with release versions it is not possible to do profiling as it is disabled. With this version I was able to do profiling, though it doesn't seem right. I checked out the collector commit in COLLECTOR_VERSION and built it locally. I then did the following to get the profiles and visualize one of them
cdrox
./scripts/secured-cluster-diagnostics.sh
cd /tmp/k8s-service-logs/stackrox/metrics/
pprof /home/jvirtane/projects/collector/cmake-build/collector/collector collector-zhl6m-heap.prof -web

![Screenshot from 2024-02-08 15-53-09](https://github.com/stackrox/collector/assets/24723000/5a76f780-7cfd-4357-b558-88

9013d52716)


Extract labels from cif files

Some analyses require that we use the labels to tag the sites we are working with. These can be read from the cif file, but pymatgen does not store these data. I have a fork here with this feature: https://github.com/stefsmeets/pymatgen/tree/cif-site-labels3
This will make the site labels available via structure.site_properties['label'].

This is now available via pymatgen: https://github.com/materialsproject/pymatgen/pull/3137
I think this is available in v2023.7.14, we should use set this as a requirement in pyproject.toml.


Update important-upgrade-notes.rst

@metanerd It seems that I'm not able to merge into the release documentation branch anymore. Is there anything I can do to get permissions?

@amyblais is this still the case now?

@metanerd No, I'm able to merge, thanks!


Move WixToolset.AdditionalTools 5.0.0 to WiXToolset.WiXAdditionalTools 5.0.0

Microsoft Reviewers: Open in CodeFlow

Possible duplicate package entry.
Similar installer SHA256 hash found in manifest:

InstallerSha256: 5dc0103b80f7effd250a2873c4ef84246cc3377db88ee98f58924f9c12dcc5b3

manifests\w\WixToolset\AdditionalTools\5.0.0

Verify by hash.


fix(tui): replace tab with whitespace in value

Description
Replace \t with whitespace in values, to separated vector values.
Motivation and Context
Vector values (eg, net.ipv4_mem) are separated by \t, but tui could not display \t correctly.
Fix https://github.com/orhun/systeroid/issues/14.
How Has This Been Tested?
Visually checked
Screenshots / Logs (if applicable)
Before:

After:

Types of Changes

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (no code change)
[ ] Refactor (refactoring production code)
[ ] Other

Checklist:

[X] My code follows the code style of this project.
[ ] I have updated the documentation accordingly.
[X] I have formatted the code with rustfmt.
[X] I checked the lints with clippy.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

bors r+


Don't catch exceptions when debugging.

When debugging, the debugger normally breaks on an uncaught exception. But the PSharp runtime catches all exceptions, reports the stack trace and then exits. It would be nice if this did not happen when debugging.
It looks like there is a way to achieve this:
http://stackoverflow.com/questions/21824597/catch-exception-if-debugger-is-not-attached
You create your try-catch blocks like this:
[DebuggerStepThrough]
static public void DoSomeStep()
{
    try
    {
        DoSomething();
    }
    catch( Exception exception )
    {
        Console.WriteLine( exception.Message );
        if( Debugger.IsAttached == true )
        {
            throw;
        }
    }
}

The DebuggerStepThrough attribute ends up causing the debugger to break at the line where the exception was thrown originally (and not at the "throw" in the above method). The downside is that you cannot step through this method (without removing the attribute). However, it looks like you have a few small methods where you catch exceptions, so this seems like it would be fine: Do, ExecuteCurrentStateOnEntry, ExecuteCurrentStateOnExit (for both Machine and Monitor). And I doubt users will be stepping through these methods anyway.
Some comments suggest this only works if "Enable Just My Code (Managed Only)" is ticked, but I guess it's better than nothing.
Alternative: Only catch specific exceptions (e.g. TaskCanceledException) and add an unhandled exception event handler (or something similar).

Hi Paul, great suggestion -- btw for some reason I did not got a notification for this issue in my email and just saw this -- let me check this out.

This is now implemented in b32a6cd14283dd49672c920855a26484416a4feb
@paulthomson about what you wrote: "Some comments suggest this only works if "Enable Just My Code (Managed Only)" is ticked, but I guess it's better than nothing." do you know if there is a way to enforce it from the P# side / project? instead of having the user do this? it would be actually cool if the user does not have to get a trace that includes P# internal methods.

I was trying to understand how this works.  Some wisdom for the next person:
When Just My Code is enabled, the Visual Studio debugger considers an exception "user-unhandled" and breaks on it if the catch block that will initially catch it is in "non-user code" (reference), regardless of whether that catch block will rethrow it.  Normally an assembly is considered user code if it is unoptimized and has a PDB (reference), but the DebuggerStepThrough attribute ensures that the catch blocks included in b32a6cd are never considered user code, so an exception that would be caught by one of these catch blocks is always considered user-unhandled.
The rethrow is not necessary for the debugger to break on a user-unhandled exception.  It only makes a difference if the user tells the debugger to continue (arguably a strange thing to do), in which case the current machine dies and the rest keep running and maybe hang.  I'd prefer if the runtime would exit as it does when not debugging, which would argue for removing the rethrow.  When Just My Code is disabled (so the debugger doesn't detect a user-unhandled exception), I'm seeing the same behavior with and without the rethrow as if I continued from the user-unhandled exception; it's not as if the rethrow is helping in this case by generating a completely unhandled exception for the debugger to break on either.

Closing this issue. If further enhancement is needed we can reopen new issue.


Separate prod vs dev build pipelines in gulp

Dev build should set things up for webpack
Prod build should be as vanilla as possible

Pretty much done. Still need separate tasks for dev vs prod indexhtml


Cross target net6.0 and eliminate various allocations

This PR:

Pre-sizes lists and dictionaries when the size is known (eliminating internal resizes)
Eliminates substring allocations on .NET5.0+
Eliminates a list allocation on a hot path
Optimizes CalculateAverageFieldLengths

@bleroy ready for review

Thanks for the great contributions!


Section 2 - Our Work page

Added content in section 2 - Our Work page

Yes, it's custom classes. Thank you for noticing, I fixed it now.


julia thread hangs with multiple sevals

Hi,
I can reproduce a hang (no cpu activity) with the following code on 1.8rc1, 1.8rc3 & 1.9dev.
I'm running on Ubuntu 21.10, but I can also reproduce it on Apple M1.
Curiously, but only in 1.8rc1, the hang does not occur if I uncomment the println(42).
I could not reproduce the hang directly on julia.
On my real code I tried merging the 2 seval calls, but it still freezes with 1.
It's very important to enable parallelism setting env vars JULIA_NUM_THREADS=6
from juliacall import Main as jl

jl.seval(
    """
    function worker()
            for i in 1:typemax(Int64)
                a = Float64[]
                push!(a, 0.42)
                i % 1000 == 0 && println(i)
            end
    end
"""
)
jl.seval(
    """
begin
#println(42) #this fixes hang only on 1.8rc1
t = Threads.@spawn worker()
println("waiting")
wait(t)
end
"""
)

On my computer it hangs after printing 30200
....
301000
302000

The code runs fine also with a single eval
from juliacall import Main as jl

jl.seval(
    """
begin
    function worker()
            for i in 1:typemax(Int64)
                a = Float64[]
                push!(a, 0.42)
                i % 1000 == 0 && println(i)
            end
    end

#println(4) #this fixes hang only on 1.8rc1
t = Threads.@spawn worker()
println("waiting")
wait(t)
end
"""
)

thanks

Maybe related to https://github.com/JuliaLang/julia/pull/45899 ? However, I still get the hang with julia 1.8rc3

I don't have a Linux box, but I'm failing to reproduce your issue in a VM (WSL on Windows and Docker on Mac).
Can you give me precise instructions of how you can reproduce your issue on a fresh box - what exactly do you install (versions of Python and Julia and their packages) and what commands do you run?
Though TBH even if I could reproduce it I'm not sure where I'd start debugging this. It seems like an issue with task/thread scheduling, which I know very little about.

Ah possibly (hopefully) related to #201 then. My best guess is that since your loop is allocating, at some point GC is invoked, which triggers the finalizer of some Python object, which deadlocks the GIL lock it acquires.
Support for working in a multithreaded environment should be considered experimental at best right now.

GC is invoked, which triggers the finalizer of some Python object, which deadlocks the GIL lock it acquires.

do you mean python or Julia GC?

some Python object

do you mean internal python objects? The test above does not make any communication betwen julia & python

I mean Julia GC. Your actual code doesn't touch python, but the act of calling jl.seval probably creates some temporary python objects which get GC'd at some point.

OK great.
I can also reproduce the issue. Another work-around is to insert GC.gc() into the top of the second chunk of code. Presumably this tidies up any Python objects left over from the first jl.seval() on the main thread.

Over on the gc branch I have added functions which allow you to temporarily disable the Python garbage collector. The below is a modified version of your code to use this.
from juliacall import Main as jl

jl.seval(
    """
    function worker()
            for i in 1:10_000_000
                a = Float64[]
                push!(a, 0.42)
                i % 1000 == 0 && println(i)
            end
    end
"""
)
jl.seval(
    """
begin
PythonCall.C.gc_disable()
t = Threads.@spawn worker()
println("waiting")
wait(t)
PythonCall.C.gc_enable()
end
"""
)

If you want to try it out, check out the branch, copy pysrc/juliacall/juliapkg-dev.json to pysrc/juliacall/juliapkg.json and pip install -e ..

I've just released a version of PythonCall with these functions, except they are now called PythonCall.GC.enable() and PythonCall.GC.disable(). I think this is the best solution to your problem right now. Feel free to open a new issue with any problems.

hi, thanks for looking into this!
It looks like I missed your messages from July :-(
I did a quick test with 0.9.5 on my project, and unfortunately, it now crashes with and without calling GC.enable/disable.
I'll try to find some time this week to run more tests

I found a solution for a similar problem and mentioned that in #201, which is still open.


[Dynamic Region] Batch read index meer Region Error OTHER

Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)

/component storage

/severity major

Close as the "Dynamic Region" aka "Partitioned Raft KV" has been stopped for a long time


How can I obtain and plot the UV-VIS , IR and NMR spectrum

Hello every body,
I do some jobs using Pyscf and I want to trace some spectrums, how can i do?
or is there any soft or programs to extract them from log or chk files ?
thanks

thanks ndattani for the Matter Modeling Stack Exchange good .


Menu button for all categories  available on footer of website like about, alumni network, sponsership.

Describe the Issue
On clicking any link, pages redirected not have a go-back option or Menu button.
Bug is there on clicking support option.
Affected Page
https://www.freecodecamp.org/news/about/
Steps to Reproduce

Search for footer section in client mode.
Get articles section and create menu button with link to main website.

Expected behavior
Improvement and more reliability between client and platform.
Screenshots
No response
System

Device: [e.g. iPhone 6, Laptop]
OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]

Additional context
No response

Thank you for reporting this issue.
This is a standard message notifying you that this issue appears to be very similar to issue #46697, so we are closing it as a duplicate.
If you think we're wrong in closing this issue, please request for it to be reopened and add further clarification. Thank you and happy coding.


Quick fix for WPA showing as WEP

Modified get_encryption() to match on "WPA" instead of "WPA Version ". This will allow it to pick up WPA and WPA2. The only loss is that it shows "WPA2 Version 1" instead of "WPA2 v.1"....basically it looses the abbreviation of version.

Appreciate this! I added a commit to retain the previous version format. Hopefully that doesn't mess anything up for you.


[Request] /afk command

Hi, I'm moving from Spigot/Paper to Fabric, and so I've been replacing most of my plugins with datapacks and Fabric mods. My current task is finding the best replacement for the plugin "AFK", which I have been using for years now. I've set up my config with AfkDisplay to be as close to the behaviour as the plugin I used to use, but with two main differences:

Players going AFK and returning from AFK print a message into chat, and
Players can run /afk or /afk <reason> to go AFK on-demand instead of waiting 10 minutes. /afk <reason> will also print the reason in the AFK chat message to the server.

Quite a few of my players use the functionality of the /afk command, and I'd really like to see similar functionality in this mod. Just a manual way to grey out your name at a minimum would be nice.
I had a look around the code a bit and line 27 of /mixin/ServerPlayNetworkMixin.java looks to be around about the area which triggers everything after x amount of time. I'm a Spigot dev and not a Fabric one though, so that's why this isn't a pull request as I don't know how to handle player commands. :)
https://github.com/beabfc/afkdisplay/blob/2c76f5e85b48d53fccf7af3c598da73b1b1fc274/src/main/java/io/github/beabfc/afkdisplay/mixin/ServerPlayNetworkMixin.java#L27

I don't have the time to implement this at the moment but will happily review any pull request.

Done (v1.1.0).


Skip TFRecord test on macos M1

My fix to align protobuf version with tensorflow raises another problem with protobuf that it doesn't officially support MacOS M1. And, it causes our nightly release workflow failing especially for PyThon 3.10.
This PR would skip all TFRecord tests on MacOS M1 until Tensorflow officially supports protobuf 4.

This wasn't captured by our CI because we didn't enable any CI test on macos M1 except nightly release.


Build out rights shell creation related methods in test helpers

Makes three changes so that rights shells and acts created as part of setting up tests more closely mimic what would be created by users using the forms.

Builds out random_date method to take arguments, so that we can more closely target start dates and end dates.
Adds a set_dates method so that rights shells and acts only have one start date and one end date.
Create separate methods for different types of rights bases, so that only the correct fields are associated with each.

It looks like tests are passing on the latest commit, but when I ran tests locally these changes caused the test_calculate_dates method to fail. I documented this in #113; fixing it requires some changes in assembler.py as well as the tests, which will happen in a PR branched off of this.
Fixes #111

@helrond I think that makes sense--I might point that PR against this branch so that the diff is clearer?


Failure at the computing local genetic covariance step

Hello,
Thanks so much for providing this update to GNOVA! I've attempted to run supergnova.py with two input files that gnova.py can handle with no issues.
Here is the command I am running:
python3.6 supergnova.py /home/dubeu/SumStatAnalyses/GNOVA/sumstats1_nomissing /home/dubeu/SumStatAnalyses/GNOVA/sumstats2_nomissing --N1 800000 --N2 40000 --bfile data/bfiles/eur_chr@_SNPmaf5 --partition<EMAIL_ADDRESS>--out results.txt
Here is the error I am getting:
...
Computed local genetic covariance for chromosome 11
Computed local genetic covariance for chromosome 12
Traceback (most recent call last):
File "supergnova.py", line 91, in
pipeline(parser.parse_args())
File "supergnova.py", line 63, in pipeline
out = calculate(args.bfile, bed, args.thread, gwas_snps, N1, N2, h_1, h_2, pheno_corr, pheno_corr_var)
File "/home/dubeu/SumStatAnalyses/SUPERGNOVA/calculate.py", line 177, in calculate
all_dfs.append(_supergnova(cur_bfile, partition, thread, gwas_snps, n1, n2, h1, h2, pheno_corr, pheno_corr_var))
File "/home/dubeu/SumStatAnalyses/SUPERGNOVA/calculate.py", line 155, in _supergnova
df = pd.concat(results, ignore_index=True)
File "/home/dubeu/.local/lib/python3.6/site-packages/pandas/core/reshape/concat.py", line 281, in concat
sort=sort,
File "/home/dubeu/.local/lib/python3.6/site-packages/pandas/core/reshape/concat.py", line 329, in init
raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate

As an FYI, I get the same error when running with --thread 1

As an FYI, I get the same error when running with --thread 1

Thank you for your comment. We just noticed this and We are trying to fix this. we will keep you posted whenever the code is updated.

Hi, I fixed the problem. Now, you will not have this error. Thank you.

Great, thank you! I can confirm that the program runs through.


Guess emoji mimetype if not provided in tag

Some servers don't send mediaType or bury it using und (for some odd reason). If it's not found as a singular value, we'll try to infer the type from the url.

I've added libmagic as a dependency in the arbitrary uploads PR, it can be used for this in the future to detect the file type.

@TkTech it can't be used here because libmagic requires the file, but we can correct the mimetype when we download it in handle_outdated


Quickstart frontend example takes too long to load due to no linking to backend

/kind bug

What versions of software are you using?
Operating System: N/A
Output of odo version: N/A
How did you run odo exactly?
I did:
git clone https://github.com/odo-devfiles/odo-quickstart
cd frontend
odo create nodejs frontend
odo url create --port 3000 --host my.host.com

Actual behavior
Before we link to the backend, it's nice to check and see if the frontend component is working, so we visit the URL.
The URL however takes 20+ seconds to communicate with the backend.
This should be much much less, at say.. 5 seconds? So the user isn't endlessly waiting for the URL to load.
Expected behavior
Load less than 5 seconds
Any logs, error output, etc?
See issue here: https://github.com/odo-devfiles/odo-quickstart/issues/1
Yes, see below:
<EMAIL_ADDRESS>start /project
> react-scripts start

time="2022-01-25T16:46:32Z" level=debug msg="wait program exit" program=devrun
time="2022-01-25T16:46:33Z" level=debug msg="no auth required"
SERVICE BACKEND IP ===> undefined
[HPM] Proxy created: /  -> http://undefined:8080
ℹ ｢wds｣: Project is running at http://<IP_ADDRESS>/
ℹ ｢wds｣: webpack output is served from
ℹ ｢wds｣: Content not from webpack is served from /project/public
ℹ ｢wds｣: 404s will fallback to /
Starting the development server...

Compiled with warnings.

src/App.js
  Line 1:8:  'logo' is defined but never used  no-unused-vars

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

[HPM] Error occurred while proxying request odo.k8s.land/api/v1/todos to http://undefined:8080/ [ENOTFOUND] (https://nodejs.org/api/errors.html#errors_common_system_errors)

This ended up being a DNS issue with my Kubernetes cluster.. That was trying to access the public link on 10 different A records before trying to load the node.js frontend.


Invalid indentation warning when using []

The compiler warns me when I do this:

While this works:

It looks like warnings but it also stops the program from compiling.

The namespace or module 'Queries' is not defined

The 'Queries' module is the one that contains the code in the screenshot.

found the same bug today

Could you move this to fslang.uservoice.com, as a suggestion to "Iron out the inconsistencies about where [] can be used on the same line as a keyword"?
Basically, there are a couple of places where you can use it on one line (e.g. "type"), but these are the exception rather than the norm.
Thanks
Don

Can we please drop uservoice? I wont move this bug there. Feel free to do it for me. :)

Hi @rojepp,
Posted here: http://fslang.uservoice.com/forums/245727-f-language/suggestions/7090326-make-the-single-line-use-of-literal-consistent
Right now http://fslang.uservoice.com is how we run the F# language/core-library design process.  As mentioned in CONTRIBUTING.md, language/core-library suggestions and adjustments must have an entry there.  It's important, or else we lose track of changes to the F# langauge specification amidst a sea of tooling and compiler implementation detail.
Right now, the behaviour above would, for better or worse, end up being classified as "inconsistent, but by design" for F# 2.0-4.0. This is because the risk of adjusting it is high - any change in the lexfilter would need very, very careful attention, as it's possible (though not certain) that it would cause a breaking change elsewhere in some corner cases. So as it stands, the suggestion is to potentially adjust the behaviour of the F# language.
Cheers
Don


doc: added installation instruction.

Codecov Report

Merging #11 (d5434d7) into main (1172910) will increase coverage by 4.32%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   90.90%   95.23%   +4.32%
==========================================
  Files           2        4       +2
  Lines          11       21      +10
  Branches        0        1       +1
==========================================
+ Hits           10       20      +10
  Misses          1        1

Impacted Files
Coverage Δ

lib/services/pokemon/model.ts
100.00% <100.00%> (ø)

lib/services/pokemon/slices.ts
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b1efa6...d5434d7. Read the comment docs.

fixes #10


How can I use it after publishing?

I want to use it on published pages. Is it possible?

hello, thanks for using the plugin!
unfortunately, it isn't currently possible to use plugins in published Logseq pages. however, someone has opened an issue regarding this request and the Logseq developers are aware of it


Remove unnecessary  that races

When VcpkgInstallManifestDependencies runs in parallel,
the Delete in one task causes the touch in another to fail.
The Delete isn't actually necessary to accomplish the goal
here, so remove it.
Describe the pull request

What does your PR fix?
Fixes #20312

Which triplets are supported/not supported? Have you updated the CI baseline?

N/A

Does your PR follow the maintainer guide?

N/A
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

/azp run

Thanks for the racy fix!


Use ts.indexOf instead of Array.prototype.indexOf

ts.indexOf is employed instead of Array.prototype.indexOf consistently across tsc/services codebase for the sake of ES3-compatibility.
Once in a while somebody checks in code breaking that edge case, and in time I (or somebody else) pick on that and offer a patch.
This is one of those cases.
Please don't break ES3-compatibility intentionally. For occasional unintentional breaks I'll try to keep up.
Many thanks!

thanks @mihailik. Do you mind signing the CLA.

I'm sorry that CLA is a bit complicated logistics with my employer. The changes are trivial, would you please accept if I split PR in two seprate ones?

@mhegazy do we have the ability to decide this is a non-CLA trivial change?

@mihailik the CLA has recently changed and does not require your employer approval if you are not doing this on your own time.

thanks @mihailik.

Cheers! Signed


Memory leak

OS: Linux 16.04
Hello,
while running the demo I noticed that the process memory keeps on increasing.
Has anyone noticed the same issue?
Thanks
Alessandro

I have that leak in case of int8 while running multiple darknets in parallel. It is fine if I disable quantization.
@AlexeyAB is there any reason for that by design?

No it is not fixed.

I solved by explicitly freeing prob and mask of each element of detections.


Build with MAKEFLAGS='-j4 -l4'

Paul Zimmermann reports:

OpenBLAS-0.3.6 fails to build when MAKEFLAGS is defined as '-j4 -l4'

See report at Sage Trac ticket 28768, in particular comment 7.
Paul reported this by email in Jan 2020 and was advised to open an issue.
I am opening this issue on Paul's behalf to track this.

Does this persist with the current release ? It looks a lot like #2616 , believed fixed by #2617

Indeed, it is no longer the case with OpeBLAS 0.3.10.


Update installation troubleshooting

Added step from issue #1235 to resolve issue on RN 0.65+

@lostchopstik this issue is actually resolved in v2.2.0. Because a release is very close and all energies are devoted to that effort this isn't going to get merged (again, its not an issue in that release).


expand and language added

closed #10 and closed #11

Currently the tests fail on py3.3 and py 3.4

Is it possible to add a test that show the difference between the language parameter and the locale name?
Eg. a test where we set up the DummyRequest with locale_name "en", do the request. Then do the same request with parameter language "nl". And then compare both results to assert that they're different?

Could you also update the service documentation?

allright, problem of 3.3/3.4 was the difference "import fixtures" vs "import .fixtures" and the different testing libs. I ll add the test and service documentation

Coverage remained the same at 100.0% when pulling c10695be496d710a7e6b3f07bac0805cbde0bbb9 on dieuska:master into c58f2f1f8441b4586dbc85f559f9fd84acebee44 on koenedaele:master.

when writing the tests that you asked, I discovered a dependency to Skosprovider that we also need to adapt to fix the language-ticket:
Skosprovider->registry.py-> find(). This method also need to pass by 'language' because it is used in pyramid_skosprovider. So I first need to make a pull request for that one...

Yes, that's already registered as koenedaele/skosprovider#10.

The issue in koenedaele/skosprovider#10 has been solved.


WIP: Feature: Add Animated SVG Throttle

Hey Sarah,
Thanks for sharing this out, it's very similar to how I like to work with SVGs in my Vue projects (I like to utilize svg-sprite-loader and svgo-loader), and I like what you have going on here!
Feature: Add RxJS Throttle on Animated SVGs
I noticed that the animations were breaking pretty quick after a few subsequent clicks. I'm on an RxJS + Vue kick, and I saw we could add a quick throttle here, utilizing RxJS and vue-rx.
Lemme know if you're down with adding something like this and I can add them to the other animations too, maybe compose it a bit differently so we wouldn't have to do so much boilerplate.

Hey @jsonberry,
Thanks for this PR! The point of this repo is very intentionally against the two repos you mentioned, it may be possible that you missed the point of the demo, I'd love it if you'd explore a bit more, or- this is only soft-launched for now as it's a supportive demo for a cookbook example mentioned in the readme, so if you're curious please feel to check that out when I'm done with it.
I'm closing this out because, though nice, this is a very small sample and intentionally made simple for the purposes of teaching people. Feel free to fork it and take it in another direction though! It's a great addition, just not appropriate for what I'm trying to teach in this particular instance.
Thanks!


ProduerStarter: too many master source will not run at the same time

ProduerStarter: too many master source will not be able to run at the same time, i.e. some master source will blocked.

    service = Executors
        .newFixedThreadPool(syncerConfigInput.getWorker(),
            new NamedThreadFactory("syncer-producer"));
   // ...
    service.submit(masterConnector);

Fixed in commit in branch pressureTest


Setting a String identifier on AbstractItem

AbstractItem requires that the identifier is a long. I'm using unique uid for my server side items, and converting them to a long may result in collisions.
Is there a way to specify a string identifier?
I'm currently converting the server side uuid to a long identifier by using hashCode of the string, but this can collide so it's not a great solution. I need to use identifier to avoid blinking issues when using FastAdapterDiffUtil

@mikepenz - I'm used to using DiffUtil with recycler views, and I don't think there is such a limitation there (the DiffUtil callback lets you compare two objects for equality however you want, and I can do a string comparison there - https://developer.android.com/reference/android/support/v17/leanback/widget/DiffCallback). Is the limitation you're referring to in RecyclerViews just for non DiffUtil usages? I'm not that familiar there so not sure which limitation you're referring to.

You are mixing up 2 different things.
The diffUtil provides a way to detect differences of item in a very generic way.
wheras the identifier is meant to be a unique id used to optimize various things like animations inside the RecyclerView
See: https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#setHasStableIds(boolean)
and:
https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#getItemId(int)

@mikepenz - ah makes sense, thanks for the clarification


refactor(arc): eliminate the need for a standalone Arc component

:tada: This PR is included in version 1.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Allow any step definition with any follow up string

Currently the options for starting a step are Given, When, Then, And .... which are followed by a string or regex.
For example Given("I go to the homepage, () => ..... .
But what if I wanted to us the statement "I go to the homepage" with an And step definition starter, then I would have to essentially copy and paste the exact same code body but with the function And(......
Is there a way to allow us to use a step definition with ANY starter we want. This will make things so much more flexible. Thank you 🙏🏾

That's exactly how things work, try it.


feat: added Cdn and YouTube from Arkadia

TODO

[x] Update the Docker image to include both gRPC services into the network.
[x] Test if everything works as intended.

Closing because notifications will be implemented in Acrysel, as per Skyra v7 plans.


Expose get_rates() function

This is necessary where we want to make sure we get the rates to be saved to DB without requesting them directly through the store itself (and therefore possibly get different data).

Coverage remained the same at 100.0% when pulling dfe88b52d81688331d6a74abe57f759c1adaa8b1 on strzibny:expose-rates into 543c624c355e948b9215057c17197151a1f94552 on jshmrtn:master.

@strzibny Released as v1.0.0-alpha.2.


The lablabs/eks-external-dns module 0.9.0 doesn't work on Kubernetes version 1.22

After upgrading AWS EKS to version 1.22, the lablabs 0.9.0 external-dns pod goes into a CrashLoopBackOff.  This is caused by k8s 1.22 stopping to support a couple deprecated APIs, including the Ingress in extensions/v1beta1.
Fix is in external-dns version 0.10.0+ :
https://github.com/kubernetes-sigs/external-dns/issues/2168
The external-dns logs show this fatal error:
time="2022-04-15T21:19:09Z" level=fatal msg="failed to sync cache: timed out waiting for the condition"

+1

Sorry for the late reply, there are multiple ways you can change the version:

update helm_chart_version as needed (bitnami/external-dns) or even use different
override appVersion or image.tag in values

Will that solve your problems ?

FYI: we just made a new release where, among other changes, we upgraded default chart version to the latest release (6.3.0).


Is the cheat detected?

It the cheat detected an if it is how do you prevent anti-cheat signature detection.

no


Do embedding need to train first?

Sorry to ask that, I use the embedding of TensorFlow to get the encode of molecular vocab. It use the vocab of atom like "COCN"
But each time, It result in very  arbitrary  of number. Do it really the true number that represent for it vocab or not?

I am also aware the the word2vec is needed in here. but I have the dictionary of chemical vocab (follow the step as you make) I don't sure is it enough or just the begging method to go.
I am the beginner on this field If any word that don't make sense please forgive for me.


Structure of HCP dataset

Dear Author,
Thanks for sharing such a comprehensive and complete code. The results obtained and the variability options put into this is really remarkable. However, I find it hard to run the code of HCP dataset, and the structure of the directory or names are unknown to me, as the person ID and gender have to in correspondence. Could you please guide how to structure the directory to be able to run the code, I have HCP files in both csv and .txt files. If there is any script which will put the folders to their right place, please give kind consideration to upload on the repo.
Thanks a lot.
Warmest Regards.

Dear SaqibMamoon,
Thanks a lot for the interest in our work. I'm very sorry, but unfortunately, I cannot share with you the pre-processed data, done by one of authors of the paper.
I could try to help in the best way possible to understand my code. You can see the code I created to load data from the uk biobank and human connectome project (HCP) here: https://github.com/tjiagoM/spatio-temporal-brain/blob/master/datasets.py (including how we preprocessed the data)
You will probably need to know how data loading works with pytorch geometric (https://pytorch-geometric.readthedocs.io/en/latest/notes/create_dataset.html), before looking to this module.
Hope this helps!

Dear SaqibMamoon,
Thanks a lot for the interest in our work. I'm very sorry, but unfortunately, I cannot share with you the pre-processed data, done by one of authors of the paper.
I could try to help in the best way possible to understand my code. You can see the code I created to load data from the uk biobank and human connectome project (HCP) here: https://github.com/tjiagoM/spatio-temporal-brain/blob/master/datasets.py (including how we preprocessed the data)
You will probably need to know how data loading works with pytorch geometric (https://pytorch-geometric.readthedocs.io/en/latest/notes/create_dataset.html), before looking to this module.
Hope this helps!

Dear tjiagoM,
Thank you for guiding me through it and sharing the valuable links.
Warmest Regards.


Parallel testing using the new globalSetup feature - issues.

How can I get access to the variables I set in globalSetup if tests run in parallel?
I have an issue where the global object I set in globalSetup is not available if there are multiple test suites ran in parallel (this is by default). Running a single suite test or if I set --runInBand to run tests serially, the object is available. I tried to store the global object on node 'process' object and I also tried the version where I am using a custom TestEnvironment but I had no luck:
Custom test environment to pass global variable to test suites, is getting a global variable set on globalSetup.
const PuppeteerJsdomEnvironment = require('jest-puppe-shots/lib/jsdom-environment');

class JestPuppeShotsEnv extends PuppeteerJsdomEnvironment {

  async setup(config) {
    await super.setup(config);
    const { allThemesCss } = global;

    // make the allThemesCss object available in test suites
    Object.assign(this.global, {
      allThemesCss
    });
  }
}
module.exports = JestPuppeShotsEnv;

Allows the use of a custom global setup module which exports an async function that is triggered once before all test suites.
const jestPuppeEnvGlobalSetup = require('jest-puppe-shots/lib/global-setup');
const ScreenShotTestUtils = require('./screenShotUtils');

module.exports = async function globalSetup() {
  await jestPuppeEnvGlobalSetup();
  const allThemesCss = ScreenShotTestUtils.getAllThemesCss();

  global.allThemesCss = allThemesCss;
  // process.testSetup = { allThemesCss };
};

There is no proper documentation about this new feature.
jest: v22.4.2
yarn: 1.3.2
OS: Ubuntu 14
node: v8.9.4

Ran into the same issue. Looking at https://github.com/vladgolubev/jest-mongodb (which is linked to as the working example on https://facebook.github.io/jest/docs/en/mongodb.html), also uses --runInBand in order to execute tests.
Without that, errors like the following show.
 FAIL  ./mongo-aggregate.test.js
  ● Test suite failed to run

    TypeError: Cannot read property 'getConnectionString' of undefined

       9 |     console.log('Setup MongoDB Test Environment');
      10 |
    > 11 |     this.global.__MONGO_URI__ = await global.__MONGOD__.getConnectionString();
      12 |     this.global.__MONGO_DB_NAME__ = global.__MONGO_DB_NAME__;
      13 |
      14 |     await super.setup();

      at MongoEnvironment.setup (mongo-environment.js:11:57)

Same issue with me as well - SO post here

@ovidiu-lapadus if you believe this is a bug, can you update the OP to follow the issue template?

@ojongerius thanks a ton

FWIW, I think it's a bug that it does work when running in band, not the other way around.
Tests are supposed to run in a sandbox, if they can all access the same global variable, it breaks the contract.
I wonder if we should explicitly add a field which we pass into the environments so it's accessible? That way it's an explicit opt-in to a given object. E.g.
// my-setup.js

module.exports = context => {
  context.something = 'yay';
}

// test.js
console.log(jest.context); // -> { something: 'yay' }

Maybe try to enforce some immutability up until globalTeardown, but that might be overkill.

I have the same issue here.
I tried the v23.4.1 and still can't access the data that I stored to "global" in globalSetup.
How can I pass a variable from globalSetup to TestEnvironment without using a file?

You can't

Here is the issue.
My tests require to access a shared resource (let's say it's a file). Right now I use a fixed file name but it will cause some issues if I launch 2 jest simultaneously. So I want to decide the file name in globalSetup, in case that the file name has been used (which mean there has been a jest running). So what can I do to let all the tests know the file name I chose in the globalSetup?

I've got a similar issue: We are using jest across our whole stack including backend. For backend e2e tests it would be very expensive to start up the app for each test individually, as this would require to connect to the database for each test separately which isn't feasible. Therefore we start the app in globalSetup. Unfortunately this makes it impossible to efficiently mock external APIs with modules like nock because these modules just patch http.request, but since globalSetup is run in a different process, mocking this inside the tests doesn't help. If I could e. g. set up nock in globalSetup and handover a reference to the tests, this would solve the problem.

I have the same issue here

I have a similar issue; I want a variable available to all tests, but only want to write to it.
I want to be able to report the names of each test to an external system. Ideally I could hook into it() and just push the names to a globally-available array, then do something with that when the tests are finished.
Any other ideas would be most welcome.

Hey all - the answer to sharing globals in parallel is that you cannot do it right now
I understand the use cases (and have run into them myself), and I think we should consider some proposals to support them. The key difficulty is how do we allow you to share state between parallel tests without giving you a footgun that makes your tests interdependent and flaky
If anyone wants to think of a solution and submit a proposal we're happy to consider
Let's keep this issue open only for the purposes of inconsistency between runInBand and in parallel :ok

@rickhanlonii Where's the best spot to discuss such proposals? Didn't find any info in CONTRIBUTING.md how to handle feature requests.

Thanks! For those looking, I set up a feature request at #7184.


Can AP get assembly hotspots like 'perf annotate' ?

I want to see the hotest assembly instruction in my Java method, but this looks like it doesn't have any solution.

Instruction level statistics is currently out of async-profiler's scope.

There's an open issue and prototype for PMA to allow this integration:
https://github.com/jvm-profiling-tools/perf-map-agent/issues/7
You can use Oracle Studio, which is free or VTune which is sort of free to get similar functionality.
Finally, in JMH you can use the perfasm profiler.

OK，Thank you lot！


Initialize outl in evp_enc.c to 0, protect against NULL

Fixes #12734

This pull request is ready to merge

Merged, thank you for the contribution.


[Feature] Improve official document title specifications

Search before asking

[X] I had searched in the feature and found no similar feature requirement.

Description
Regarding the User guide, the document title can be further divided. I think it can be roughly divided into three subtitles.
One is the user's quick start,
the second is the use of the platform,
the third is the developer guide.
This is just my personal opinion. Contributors can also split it according to their own ideas, as long as it is beneficial to readers.

Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

assign me

Thank you

Unassign me please, I'd like to mention a note of caution regarding changes to the documentation headings. Altering titles may also change the associated links, and we should try to avoid this to prevent link rot. If changes are unavoidable, we must ensure to search and update any references to avoid broken links in the blogs that could lead to 404 errors.


Added new recursion prompt and recursion tests

Great, job on this guys! After tomorrow I will have time to merge more in. @christinechou, @tabithablagdon


[Feature Request]: Rate Limiting and API Management

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I’d like to propose an enhancement to how the bot interacts with the CoinGecko API. Right now, while we’re successfully pulling data from the API, we need to ensure that we’re managing our requests effectively to avoid hitting any rate limits. This will help us maintain a smooth operation without interruptions.
Use Case
Implementing better rate limiting will make a huge difference in how the bot performs. By adding features like a request queue and exponential backoff for failed calls, we can ensure that the bot continues to operate reliably even during busy times. It will also keep our users informed about the status of their requests, making the experience much smoother.
Benefits
Adding this feature will bring several benefits:
1)Better Reliability: Users will experience fewer interruptions and delays when fetching data.
2)Enhanced User Experience: With a more responsive system, users will trust the bot more and feel confident using it.
3)Efficient API Use: We'll reduce unnecessary API calls, which can save us from hitting those annoying rate limits.
Priority
High
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC WOB24 contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

This project is very well structured and I want to make more enhancement ,I am really excited to contribute to this project,Looking forward to contribute to this amazing project

I am really excited to contribute to this project,Looking forward to contribute to this amazing project


[Bug]: No "last updated" date for edited PEP8 Action comment

Github Action for PEP8 style check doesn't produce "last updated" date for edited comment.
Expected Behavior
When a PEP8 comment is edited, the "last updated" date changes.
Current Behavior
It does not.

Possible Solution
Find the solution and change part of the broken code in autopep8 action
Steps to Reproduce

Open Pull Request with broken formatting
Wait for error comment from github-actions bot
Write /fix-pep8
Wait for bot to make commit with changes
Check the updated comment

Context [OPTIONAL]
Pull Requests

Not FEDOT-related


Remove hyphenation to improve build time

Changes
The following PR introduces the following changes:

Remove hyphenation when wrapping text

Applicable Issues
Enter any applicable Issues here

Codecov Report

Merging #114 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #114   +/-   ##
=======================================
  Coverage   91.78%   91.78%
=======================================
  Files           4        4
  Lines         207      207
=======================================
  Hits          190      190
  Misses         17       17

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41c07f6...6a28dd7. Read the comment docs.


Can't resolve all parameters for provideLocationStrategy

Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
What behavior are you expecting?
Steps to reproduce:
1.
2.
3.
metadata_resolver.js:499Uncaught Error: Can't resolve all parameters for provideLocationStrategy: (PlatformLocation, ?, Config).

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Run ionic info from terminal/cmd prompt: (paste output below)

i use ionic-conference demos and it occurred , what should i do to resolve it?

Your system information:
Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.0-201610041708
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.0.0-beta.20
OS: Windows 8.1
Node Version: v6.7.0

Hello, thanks for using Ionic! Unfortunately I cannot reproduce this issue, can you try cloning the app and trying again?

I'm going to close this since there have been several changes since this was reported and we are not able to reproduce it. If it's still an issue try updating to the latest version of the CLI: npm install -g ionic, cloning the conference app, and then reinstalling node modules: npm install. If it's still an issue after that let us know and we will reopen. Thanks! :)


Failed to enable plugin in 1.0

Describe the bug
On startup Obsidian does not enable this plugin. Manually enabling on the list of installed plugins fails and shows a "Failed to enable plugin" toast. Going into the Community Plugin list and pressing the enable button there causes the same error, but the plugin enables and functions correctly despite the error.
To Reproduce
Steps to reproduce the behavior:

Install the latest Obsidian (1.0.3) on Windows or Linux
Install the latest version of this plugin
Attempt to enable the plugin
See error in console

app.js:1 Plugin failure: obsidian-plantuml DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at r4.<anonymous> (app://obsidian.md/app.js:1:1032505)
    at app://obsidian.md/app.js:1:235201
    at Object.next (app://obsidian.md/app.js:1:235306)
    at a (app://obsidian.md/app.js:1:234045)

Expected behavior
I expect the plugin to be enabled on startup.
Environment:

OS: Windows and Linux.
Obsidian Version: 1.0.3

Can't reproduce, do you still face this issue?


Discussion: new matrix enviorment in the setup script to test for mpi and/or c

I would like to discuss if we should provide a new environment in the install script to test for mpi and or c based code. This issue is connected to PR https://github.com/NeuralEnsemble/elephant/pull/110 since the SPADE uses a pre-compiled c file (which also has to be downloaded) .so and mpi4py.
My suggestion would be to add a new matrix environment in install.sh and in the corresponding .yaml where we have a minimal setup using conda and mpi4py, additionally we download the c file.
Any further suggestions are welcome.

See PR https://github.com/NeuralEnsemble/elephant/pull/125

I am closing this issue. We included already support for mpi in the installation script. If there is a need for a C specific method and it needs a more sophisticated installation procedure then a new issue should be opened.


Add the FromScriptError for handling errors in address

This commit adds the FromScriptError struct to handle the errors while generating address from any script. It includes :

Unrecognized script error.
Witness Program error.
Witness Version error.

FYI CI is borked at the moment, I'm trying to fix it with #2499.

Since I was already part way through reviewing, you'll need all this too
diff --git a/bitcoin/src/address/error.rs b/bitcoin/src/address/error.rs
index 9c72c2fd..035aad65 100644
--- a/bitcoin/src/address/error.rs
+++ b/bitcoin/src/address/error.rs
@@ -82,20 +82,20 @@ impl std::error::Error for FromScriptError {
     fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
         use FromScriptError::*;

-        match self {
-            WitnessVersion(e) => Some(e),
-            WitnessProgram(e) => Some(e),
+        match *self {
+            WitnessVersion(ref e) => Some(e),
+            WitnessProgram(ref e) => Some(e),
             UnrecognizedScript | ExcessiveScriptSize => None,
         }
     }
 }

 impl From<witness_program::Error> for FromScriptError {
-    fn from(e : witness_program::Error) -> Self { FromScriptError::WitnessProgram(e)}
+    fn from(e: witness_program::Error) -> Self { Self::WitnessProgram(e)}
 }

 impl From<witness_version::TryFromError> for FromScriptError {
-    fn from(e: witness_version::TryFromError) -> Self { FromScriptError::WitnessVersion(e) }
+    fn from(e: witness_version::TryFromError) -> Self {Self::WitnessVersion(e) }
 }

 /// Address type is either invalid or not supported in rust-bitcoin.

diff --git a/bitcoin/src/address/error.rs b/bitcoin/src/address/error.rs
index 9c72c2fd..035aad65 100644
--- a/bitcoin/src/address/error.rs
+++ b/bitcoin/src/address/error.rs
@@ -82,20 +82,20 @@ impl std::error::Error for FromScriptError {
     fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
         use FromScriptError::*;

-        match self {
-            WitnessVersion(e) => Some(e),
-            WitnessProgram(e) => Some(e),
+        match *self {
+            WitnessVersion(ref e) => Some(e),
+            WitnessProgram(ref e) => Some(e),
             UnrecognizedScript | ExcessiveScriptSize => None,
         }
     }
 }

This is giving me this error :
error[E0308]: mismatched types
   --> bitcoin/src/address/error.rs:83:39
    |
83  |             WitnessVersion(e) => Some(e),
    |                                  ---- ^ expected `&dyn Error`, found `TryFromError`
    |                                  |
    |                                  arguments to this enum variant are incorrect
    |
    = note: expected reference `&dyn StdError`
                  found struct `witness_version::TryFromError`
help: the type constructed contains `witness_version::TryFromError` due to the type of the argument passed
   --> bitcoin/src/address/error.rs:83:34
    |
83  |             WitnessVersion(e) => Some(e),
    |                                  ^^^^^-^
    |                                       |
    |                                       this argument influences the type of `Some`
note: tuple variant defined here
   --> /home/harshit/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:577:5
    |
577 |     Some(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     ^^^^
help: consider borrowing here
    |
83  |             WitnessVersion(e) => Some(&e),
    |                                       +

I'd say there is some other problem, shouldn't need a reference on e - thanks for asking before doing something non-uniform :)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

-34 of 44 (22.73%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.09%) to 83.903%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

bitcoin/src/address/error.rs
3
37
8.11%

Files with Coverage Reduction
New Missed Lines
%

bitcoin/src/address/error.rs
1
4.65%

Totals

Change from base Build<PHONE_NUMBER>:
-0.09%

Covered Lines:
19431

Relevant Lines:
23159

💛  - Coveralls

I'm really happy with all these recent error changes. They're consistent and it's clear what direction we're going in.


rpc: Add testing-related documentation overview

Closes #597
Rendered README

[x] Referenced an issue explaining the need for the change
[x] Updated all relevant documentation in docs
[ ] ~Updated all code comments where relevant~
[ ] ~Wrote tests~
[ ] ~Updated CHANGELOG.md~

Codecov Report

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

@@          Coverage Diff           @@
##           master    #604   +/-   ##
======================================
  Coverage    41.3%   41.3%
======================================
  Files         163     163
  Lines       11317   11311    -6
  Branches     2558    2559    +1
======================================
  Hits         4682    4682
+ Misses       6264    6258    -6
  Partials      371     371

Impacted Files
Coverage Δ

tendermint/src/time.rs
59.1% <0.0%> (+6.4%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c13625...f71b6af. Read the comment docs.


Report line numbers with configuration errors

I finally have time to port my kwmc config over to khd, but am having some troubles.
I keep getting Expected token of type 'Token_Command' after symbols!
It would be super useful if the error output included a line number for any bad config line. Right now I'm hunting though my config line by line trying to find the offending line.

```
# sample config for khd
NOTE(koekeishiya): A bind is written in the form:
 [!] [] [->] :
where
   = mode + mod + ... + mod - literal
   = mode + mod + ... + mod - keycode (must have 0x prefix)
   = mode + mod + ... + mod (modifier only binding)

[<app,
app,     = optional list '[app1, ..., appN]' of applications
app>]      that this bind will be activated for. if the
focused application is not contained in this list,
the associated command will not be triggered, and
the keypress will be passed through as normal.

[!]        = optional operator '!' negates the behaviour when a
list of applications is given. this marks the bind
as 'Hotkey_Exclude', causing the bind to not work
when the focused application is in the given list.

[->]       = optional operator '->' that marks this bind as
'passthrough'. this causes the key to be passed
through to the system, instead of being consumed.

  = command is executed through '$SHELL -c' and
follows valid shell syntax. if the $SHELL environment
variable is not set, it will default to '/bin/bash'.
when bash is used, the ';' delimeter can be specified
to chain commands.

to allow a command to extend into multiple lines,
prepend '' at the end of the previous line.

an EOL character signifies the end of the bind.
NOTE(koekeishiya) Example of passthrough
cmd - m -> : echo "alert and minimize window" | alerter -title Test passthrough -timeout 2
NOTE(koekeishiya) Example of app list
alt - e [
iTerm2,
Terminal,
HyperTerm
]
: echo "so this is how deep the rabbit hole goes.." |\
alerter -title Test passthrough -timeout 2
NOTE(koekeishiya) Example of negated app list
alt - e [
iTerm2,
Terminal,
HyperTerm
] !
: echo "blue pill, i choose you!" |\
alerter -title Test passthrough -timeout 2
NOTE(koekeishiya) Modifier only binding
left shift    -> (    right shift   -> )
left cmd      -> {    right cmd     -> }
khd mod_trigger_timeout 0.1
lshift : khd -p "shift - 8"
rshift : khd -p "shift - 9"
lcmd   : khd -p "shift + alt - 8"
rcmd   : khd -p "shift + alt - 9"
TODO(koekeishiya): possibly allow combined syntax such as
[switcher,ytd] + ctrl - f : khd -e "mode activate default"
enable kwm compatibility mode
khd kwm on
set border color for different modes
khd mode default color 0xFF6699CC
khd mode prefix prefix on
khd mode prefix timeout 0.5
khd mode prefix color 0xFFFAC863
khd mode manage color 0xFFC594C5
ctrl - k                  : khd -e "mode activate prefix"
prefix - m                : khd -e "mode activate manage"
manage - 0x35             : khd -e "mode activate default"
prefix
prefix + cmd + shift - r  : kwmc tree -c refresh
prefix + cmd - q          : kwmc quit
prefix - \                : kwmc window -c split-mode toggle
prefix - f                : kwmc window -z fullscreen
prefix - p                : kwmc window -z parent
prefix - w                : kwmc window -t focused
prefix - x                : kwmc window -m mark
prefix + cmd - 1          : kwmc window -m display 0
prefix + cmd - 2          : kwmc window -m display 1
prefix + cmd - b          : kwmc space -t bsp
prefix + cmd - f          : kwmc space -t monocle
prefix + cmd - w          : kwmc space -t float
prefix + cmd - r          : kwmc tree -r 90
prefix - s                : kwmc window -s mark
prefix - return           : exec ~/bin/open-iTerm.applescript
prefix - c                : kwmc tree restore code
manage
manage - h                : kwmc window -f west
manage - j                : kwmc window -f south
manage - k                : kwmc window -f north
manage - l                : kwmc window -f east
manage + cmd + alt - h    : kwmc window -s west
manage + cmd + alt - j    : kwmc window -s south
manage + cmd + alt - k    : kwmc window -s north
manage + cmd + alt - l    : kwmc window -s east
manage + ctrl + shift - h : kwmc window -m west
manage + ctrl + shift - j : kwmc window -m south
manage + ctrl + shift - k : kwmc window -m north
manage + ctrl + shift - l : kwmc window -m east
manage + cmd - h          : kwmc window -c expand 0.025 west
manage + cmd - j          : kwmc window -c expand 0.025 south
manage + cmd - k          : kwmc window -c expand 0.025 north
manage + cmd - l          : kwmc window -c expand 0.025 east
manage + cmd + shift - h  : kwmc window -c reduce 0.025 west
manage + cmd + shift - j  : kwmc window -c reduce 0.025 south
manage + cmd + shift - k  : kwmc window -c reduce 0.025 north
manage + cmd + shift - l  : kwmc window -c reduce 0.025 east
manage - x                : kwmc space -g increase horizontal
manage - y                : kwmc space -g increase vertical
manage + shift - x        : kwmc space -g decrease horizontal
manage + shift - y        : kwmc space -g decrease vertical
manage - left             : kwmc space -p increase left
manage - right            : kwmc space -p increase right
manage - up               : kwmc space -p increase top
manage - down             : kwmc space -p increase bottom
manage + shift - left     : kwmc space -p decrease left
manage + shift - right    : kwmc space -p decrease right
manage + shift - up       : kwmc space -p decrease top
manage + shift - down     : kwmc space -p decrease bottom
default
ctrl + shift - m          : kwmc window -mk focused
cmd + alt - h             : kwmc window -f west
cmd + alt - j             : kwmc window -f south
cmd + alt - k             : kwmc window -f north
cmd + alt - l             : kwmc window -f east
cmd + shift - h           : kwmc window -fm prev
cmd + shift - l           : kwmc window -fm next
cmd + alt - p             : kwmc display -f prev
cmd + alt - n             : kwmc display -f next
</details>

In the mean time if you could let me know my mistake it would be greatly appreciated.

Of course after I submit this issue I figured out the line
prefix - \                : kwmc window -c split-mode toggle

Needed the hex code.
I still think line numbers in the error output would be super handy :)


there should be proper space when customer is try to add address

Bagisto Version

[ ] master branch

Steps To Reproduce

there should be proper space  in add address when customer is try to checkout

Actual Result

Expected Result

@prateek-webkul
Thanks, now this issue is fixed. so I am closing this issue.
And I have attached a screenshot for future reference Here


Topic button is disabled

The topic button is disabled inside the service bus but the queue button is enabled. How can this button be enabled

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

ID: 443c9051-c55e-1202-7b75-ce86f6977017
Version Independent ID: 677b6375-196f-fed8-7300-b9823c1031d5
Content: Get started with Azure Service Bus topics and subscriptions
Content Source: articles/service-bus-messaging/service-bus-dotnet-how-to-use-topics-subscriptions.md
Service: service-bus-messaging
GitHub Login: @sethmanheim
Microsoft Alias: sethm

@shinojgk thank you for your feedback! If you selected Basic Pricing Tier you will need to upgrade it to Standard in order to have access to Topics. More information about the differences between pricing tiers here.
I will request @sethmanheim to enhance this document so that we make clear that to use Topics you will need Standard or Premium Tier.

@shinojgk @sergaz-msft Thank you for the feedback, we appreciate it! That is not the technical documentation, it's a marketing page and I have no access to update it. We do have this article, which I agree needs some clarification. I will update it ASAP: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-premium-messaging. I will also update this article: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-pricing-billing. Thank you again! #please-close

Thanks @sethmanheim . My suggestion was also to update this document and perhaps the others written for the different programming languages (.NET, Java, Node.js, PHP, Python, Ruby):

@sergaz-msft An excellent suggestion! I will update that document as well. Working on it right now...

Thanks @sergaz-msft and @sethmanheim . Appreciate the quick response from you.


Environment variables not exposed in production mode

React Boilerplate
Issue Type

[X] Bug (https://github.com/react-boilerplate/react-boilerplate/blob/master/.github/CONTRIBUTING.md#bug-reports)
[ ] Feature (https://github.com/react-boilerplate/react-boilerplate/blob/master/.github/CONTRIBUTING.md#feature-requests)

Description
Environment variable not exposed when running in production.
Steps to reproduce
I've added my env var:
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: JSON.stringify(process.env.NODE_ENV),
        API_URL: JSON.stringify(process.env.API_URL),
      },
    }),

And then in my code:
...
let apiURL = process.env.API_URL;
...

When I run: API_URL=http://<IP_ADDRESS>:8890/api/projects npm run start:prod my env variable is undefined.
When I run API_URL=http://<IP_ADDRESS>:8890/api/projects npm run start it's fine.
Would love to use my API in PROD ;)
Versions

React-Boilerplate 3.4.0
Node/NPM: v8.1.3

try https://github.com/mrsteele/dotenv-webpack
`
const Dotenv = require('dotenv-webpack');
module.exports = {
...
plugins: [
new Dotenv()
]
...
};
`


upgrade-tile v0.17.0 fails with ERT v1.12

Upgrading from ERT v1.11 to v1.12 I've found that in running the upgrade-tile pipeline, it will fail at the point of apply-changes due to the error "Installation is incomplete"
I've found that the following 4 required fields and their properties are missing from the Network configuration of ERT
.properties.routing_minimum_tls_version
.properties.gorouter_ssl_ciphers
.properties.haproxy_ssl_ciphers
.properties.haproxy_forward_tls

Applying changes on Ops Manager @ <redacted>
attempting to apply changes to the targeted Ops Manager
could not execute "apply-changes": installation failed to trigger: request failed: unexpected response:
HTTP/1.1 422 Unprocessable Entity
Transfer-Encoding: chunked
Cache-Control: no-cache, no-store
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Tue, 26 Sep 2017 15:31:58 GMT
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: nginx/1.4.6 (Ubuntu)
Strict-Transport-Security: max-age=15552000
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Request-Id: 0db339d4-2c32-41a1-a2c0-1c4041585248
X-Runtime: 1.472067
X-Xss-Protection: 1; mode=block

2a
{"errors":["Installation is incomplete."]}
0

Seeing the same type issue with upgrading to ERT 1.11.14
Configurations for the following are missing:
.properties.routing_minimum_tls_version
.properties.gorouter_ssl_ciphers

Hi @ramene and @elric392 apologies for the delay in response. The fix for vSphere (install-pcf pipeline) was implemented in v1.18.0-rc1. We will be updating the install-pcf pipelines for the rest of the IAASs, starting with GCP. Please let us know if you have any questions, thanks.

Hi @ramene @elric392, we've just published the pcf-pipelines v18 release which includes updating it to work with PCF 1.12. Thanks.


Setting CF labels not supported?

My broker has a method
func (esb *MyBroker) Provision(ctx context.Context, instanceID string,
	details brokerapi_domain.ProvisionDetails,
	asyncAllowed bool) (brokerapi_domain.ProvisionedServiceSpec, error)

which returns something like this:
var spec brokerapi_domain.ProvisionedServiceSpec
labels := map[string]string{"foo": "bar"}
spec.Metadata = brokerapi_domain.InstanceMetadata{Labels: labels}
return spec, nil

But after creating a service instance foo, cf labels service-instance foo returns nothing.

Hi @haraldfuchs
The addition of labels is introduced in OSBAPI v2.16 - for that to take effect both the brokers and the CF cloud controller should implement the latest spec.
v2.16 of OSBAPI is not compatible with CF Cloud Controller API which is compatible up to version 2.15. Said differently that feature is not supported by CC API.
If you have a use case for it I would suggest raising a request in CF Cloud Controller and if that gets prioritised we can see if BrokerAPI requires any changes to be compatible with it.
Thanks,
Felisia

What do you mean with "that feature is not supported by CC AP"?  If I use
cf curl to talk directly to the Cloud Controller, I can create a service
instance with labels (cf curl /v3/service_instances -X POST -d '...'), and
I can add labels to an existing service instance (cf curl
/v3/service_instances/ -X PATCH -d '{"metadata": {"labels":
{"foo": "bar"}}}').  Unfortunately cf curl /v3/info doesn't tell me the
version, but cf curl /v2/info says

{
"api_version": "2.184.0",
"osbapi_version": "2.15",
...
}

Am Mi., 3. Aug. 2022 um 15:33 Uhr schrieb Felisia Martini <
@.***>:

Hi @haraldfuchs https://github.com/haraldfuchs
The addition of labels is introduced in OSBAPI v2.16 - for that to take
effect both the brokers and the CF cloud controller should implement the
latest spec.
v2.16 of OSBAPI is not compatible with CF Cloud Controller API which is
compatible up to version 2.15. Said differently that feature is not
supported by CC API.
If you have a use case for it I would suggest raising a request in CF
Cloud Controller and if that gets prioritised we can see if BrokerAPI
requires any changes to be compatible with it.
Thanks,
Felisia
—
Reply to this email directly, view it on GitHub
https://github.com/pivotal-cf/brokerapi/issues/209#issuecomment-1203957982,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABCKVMPY5RNLMQBR4MZ3KWDVXJYMLANCNFSM55HUBHAQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @haraldfuchs,
There are two specified ways to assign labels to a service instance.

User-defined labels that are passed from CF during creation time or after an instance has been created. So the labels should be passed from a CF request (provision/update) to the broker. These labels never reach the broker and are known only by the CC API. This is what is implemented and should be working with CC API using the CC API v3 (the endpoint you pointed out).
Broker-defined labels that are assigned from the broker on provision/update time. These labels would need to be passed back to CC API and the CC API would need to record them as service instance labels. This functionality is defined in OSBAPI 2.16 but is not implemented by the CC API (The latest OSBAPI version compatible with CC API is 2.15). So even when a broker sends labels back to the CC API during a provision request the labels do not take effect.

My understanding is that your use case is attempting to do the second option. And this is not supported by CC API at the moment.
Let me know if you have any further questions.
Regards,
Felisia


pyarrow.Array segfaults when constructed from generator without size param

Hi! Thanks for making pyarrow & parquet-cpp -- this stuff is amazing!
I ran into an issue when getting started with pyarrow -- I was trying to use a generator to stream data into an array to avoid memory overhead from retaining the Python objects. I suspect this approach was wrong and I should instead have used chunked_array.
Still, I figured I'd ask: is it expected that the 3rd invocation segfaults?
import pyarrow as pa

def vals():
  for rownum in range(50):
    yield rownum

print('Making from array')
pa.array([x for x in vals()], type=pa.uint16())

print('Making from generator with size')
pa.array(vals(), type=pa.uint16(), size=50)

# This segfaults :(
print('Making from generator with no size')
pa.array(vals(), type=pa.uint16())

Environment: pyarrow 0.8.0, python 3.5.2.

This is definitely not the desired behavior! I think this may be fixed in master, but someone should confirm and open a JIRA if it is still broken (and make sure there is an appropriate unit test if there is not already)

Thanks! I'll try to at least confirm if it's in master in the next couple weeks so this issue can be closed or replaced with a JIRA ticket.

I can confirm this is fixed on master, so will be in the 0.9.0 release


Map completely missing everything else working

setup works now disabled to get full site working, pulling eve character from DEV API also working fine but when you choose a character all myself and others see is planets in background and no map.
sending images for items seen, setup in 2 images followed by screen after picking a character ...

Hoping to get this up and working after spending a few hours going over everything to get to this point.

your apache version is too low ... and your setup page even shows it. I dont know if this is the root cause of your problem but its worth a shot

you dont have a map loaded. the DB table shows an empty battery on /setup which means there is no row data in that table.

click the MAP icon in the top right. click configuration. click new map. set up as needed and click save

@IceZaroth Yould you solve this problem with @Ordo-Vhett´s tip?
if not, please link some details from the "network" tab from your browsers "developer tools".
Feel free to join us on Slack. We will try to help you<EMAIL_ADDRESS>


autonight doesn't work when changing settings

the autonight script doesn't seems to work right, when changing a setting and majestic restarts. it stays in day mode, but the cam was in a dark room.

Try it now

Execute in:
/etc/init.d/S96autonight stop
/usr/sbin/autonight.sh

And without closing the console, perform the actions that lead to the problem. Post the output here.

Also test this https://t.me/mjsxj02hl_firmware/5706

Execute in:
/etc/init.d/S96autonight stop
/usr/sbin/autonight.sh

And without closing the console, perform the actions that lead to the problem. Post the output here.

Stopped service. Running script directly. Change a setting in majestic using web UI. Nothings happens, no output on console.
~# /usr/sbin/autonight.sh
....................
Watching at isp_again > 14000 to enable night mode
Watching at isp_again < 2000 to disable night mode
Polling interval: 5 sec
....................

Also test this https://t.me/mjsxj02hl_firmware/5706

Following your instruction, IR light and filter stays on, when majestic was killed. When restarting majestic, both is reseted.

Following your instruction, IR light and filter stays on, when majestic was killed. When restarting majestic, both is reseted.

Picture is grayscale after restarting majestic? What is the value night_enabled in output http://<cam_ip>/metrics

No, pictures is colored after restarting majestic. Value of night_enabled is 0.

Very strange. My camera has a completely different behavior. Let's compare actions:

/etc/init.d/S96autonight stop
Manually turn on night mode (Web interface -> Preview -> Push "Toggle night mode" button)
killall -1 majestic (argument -1 is important)
View picture color and night_enabled value (http://<cam_ip>/metrics)

3. killall -1 majestic (argument -1 is important)

you're right. i was using killall majestic and restarted it manually. discribed your way, I'am getting a colored picture but night_enabled value is 1.

This is probably a bug in majestic https://github.com/OpenIPC/majestic/issues/84


Add support for passing through custom dataclasses

Description
This PR adds support for strawberry.type to handle dataclasses that have custom parameters (e.g. repr=False) rather than recreating the dataclass from scratch.
Types of Changes

[ ] Core
[ ] Bugfix
[x] New feature
[ ] Enhancement/optimization
[ ] Documentation

Issues Fixed or Closed by This PR

Fixes #2688

Checklist

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Hi, thanks for contributing to Strawberry 🍓!
We noticed that this PR is missing a RELEASE.md file. We use that to automatically do releases here on GitHub and, most importantly, to PyPI!
So as soon as this PR is merged, a release will be made 🚀.
Here's an example of RELEASE.md:
Release type: patch

Description of the changes, ideally with some examples, if adding a new feature.

Release type can be one of patch, minor or major. We use semver, so make sure to pick the appropriate type. If in doubt feel free to ask :)
Here's the tweet text:
🆕 Release (next) is out! Thanks to Jonathan Kim for the PR 👏

Get it here 👉 https://github.com/strawberry-graphql/strawberry/releases/tag/(next)

ah! nice one!

With your PR, I have a problem in my code. I believe it's related to generic types (and multiple decorations). I'll check it out to understand the exact issue. Maybe it can be solved from my code.

@Corentin-Br do you have an example that’s failing?

T = TypeVar("T")

@dataclass
class MyGeneric(Generic[T]):
    attr: T

T = TypeVar("T")

@strawberry.type
class MyGenericChild(MyGeneric[T], Generic[T]):
    attr: T

def resolve() -> MyGenericChild[int]:
    ...

@strawberry.type
class Query:
        concrete_resolver = strawberry.field(resolver=resolve)

=> KeyError: ~T
Wheras without the dataclass it works.
In my case, it happens because I import MyGeneric and redefine a TypeVar (effectively leading to an equivalence with the minimal example I gave).
In my specific case again, I can easily work around it, but it is a breaking change.