fix(nodes): blend latents with weight=0 with DPMSolverSDEScheduler

Summary

Pass the seed from latents_a to the output latents. Fixed an issue where using BlendLatentsInvocation could result in different outputs during denoising even when the alpha or slerp weight was 0.

Explanation
LatentsField has an optional seed field. During denoising, if this seed field is not present, we fall back to 0 for the seed. The seed is used during denoising in a few ways:
Initializing the scheduler.
The seed is used in two places in invokeai/app/invocations/latent.py.
The get_scheduler() utility function has special handling for DPMSolverSDEScheduler, which appears to need a seed for deterministic outputs.
DenoiseLatentsInvocation.init_scheduler() has special handling for schedulers that accept a generator - the generator needs to be seeded in a particular way. At the time of this commit, these are the Invoke-supported schedulers that need this seed:

DDIMScheduler
DDPMScheduler
DPMSolverMultistepScheduler
EulerAncestralDiscreteScheduler
EulerDiscreteScheduler
KDPM2AncestralDiscreteScheduler
LCMScheduler
TCDScheduler

Adding noise during inpainting.
If a mask is used for denoising, and we are not using an inpainting model, we add noise to the unmasked area. If, for some reason, we have a mask but no noise, the seed is used to add noise.
I wonder if we should instead assert that if a mask is provided, we also have noise.
This is done in invokeai/backend/stable_diffusion/diffusers_pipeline.py in StableDiffusionGeneratorPipeline.latents_from_embeddings().
The problem
When we create noise to be used in denoising, we are expected to set LatentsField.seed to the seed used to create the noise. This introduces some awkwardness when we manipulate any "latents" that will be used for denoising. We have to pass the seed along for every operation.
If the wrong seed or no seed is passed along, we can get unexpected outputs during denoising. One notable case relates to blending latents (slerping tensors).
If we slerp two noise tensors (LatentsFields) without passing along the seed from the source latents, when we denoise with a seed-dependent scheduler*, the schedulers use the fallback seed of 0 and we get the wrong output. This is most obvious when slerping with a weight of 0, in which case we expect the exact same output after denoising.
*It looks like only the DPMSolver- schedulers are affected, but I haven't tested all of them.
Passing the seed along in the output fixes this issue.
Related Issues / Discussions

https://discord.com/channels/1020123559063990373/1149510134058471514/1247236122191331338
Related: #6476

QA Instructions
Repro steps:

Set scheduler to DPM++ SDE Karras
Generate using linear UI
Load workflow
Slot in another noise and blend latents w/ alpha of 0:

Generate and compare the first and second images
Increase the alpha to 0.1 and generate
Compare the second and third images, there should be small changes

On main, we expect:

The first and second images have substantial differences.
The first and third images have substantial differences.
The second and third images have minor differences.

On this PR, we expect:

The first and second images are identical.
The first and third images have minor differences.
The second and third images have minor differences.

Merge Plan
n/a
Checklist

[x] The PR has a short but descriptive title, suitable for a changelog
[ ] Tests added / updated (if applicable)
[x] Documentation added / updated (if applicable)

@RyanJDick @lstein I've just fixed the specific issue here, but I wonder if we should work towards cleaning this up. Maybe it's best saved for a future refactor/split of denoising into separate nodes.

@RyanJDick @lstein I've just fixed the specific issue here, but I wonder if we should work towards cleaning this up. Maybe it's best saved for a future refactor/split of denoising into separate nodes.

I don't think I've ever noticed that the seed is attached to the LatentsField. That seems like a weird coupling. I can't think of a good reason for it. I agree it might make sense to bundle a fix for it with a future refactor. We could probably find a way to move away from that without breaking reproducibility of existing workflows, but it would be cleaner if we did it at a time when we were ok with breaking reproducibility.


Receives path of gobstones implementation by parameter fixes #27

For now it's ok, but we should move that gobstones_command to a global config object, so that we don't need to pass it in every message


http2: updates method signatures to remove nghttp2-specific names and types.

Signed-off-by: Biren Roy<EMAIL_ADDRESS>Commit Message: Removes nghttp2-specific names and types from CodecImpl. Cleanup related to https://github.com/envoyproxy/envoy/issues/23596.
Additional Description:
Risk Level: low
Testing: ran http and integration tests locally
Docs Changes:
Release Notes:
Platform Specific Features:

/retest


Add XMonad.Layout.CenteredIfSingle

Description
XMonad.Layout.CenteredIfSingle centers windows on screen as long as there is only a single window.
As soon as there are more than one windows, the modified layout is used as normal.
Small demonstration:
https://user-images.githubusercontent.com/5300871/139041003-a2ceb6ae-07d1-405d-9056-4001d14e8538.mp4
Checklist

[x] I've read CONTRIBUTING.md

[x] I've considered how to best test these changes (property, unit,
manually, ...) and concluded: Manual testing is sufficient, I've been using this for months

[x] I updated the CHANGES.md file

[x] I updated the XMonad.Doc.Extending file (if appropriate)

@elkowar  could you squash the commits? Do that and I'll merge

Done @TheMC47


List view?

Hi, are there any plans for the calendar to show as a list view please?
Also, out of curiosity, where does the data get stored, if I wanted to export it please?
Thanks in advance,
Dan

We're closing old issues so we can get back to actively maintaining the extension. Feel free to reopen if this is still an issue for you.


Added IsDisposed public property to consumer and producer classes.

Capitalized on some newer C# language syntax.
Removed unused namespaces

This is regarding enhancement that was requested here #498.
What do you think is it sufficient enough or I am missing something?

@confluentinc It looks like @kuskmen just signed our Contributor License Agreement. :+1:
Always at your service,
clabot

IsDisposed is not something that is generally provided (is not part of IDisposable), so i think we want good reason to add this, otherwise it will promote ill conceived usage (e.g. #498). See note in #498.

some nice modern C# syntax changes though - i'll merge so as to include them (but will remove the IsDisposed properties).


Locator

Adding multiple models to the locator is not feasible within the current framework. This limitation arises from the fact that the function evaluates the base type rather than the runtime type of the object. To address this issue, I have implemented a resolution in my forked repository of the project: https://github.com/Dyronix/rmc-mini-mvcs

Great feedback. I have since updated the Locator and will look at it soon with your feedback. Thanks.

@Dyronix I've completed a newer, bigger refactor. I have an issue before it deploys to NPM. It'll be v2.0.0 or newer.

@Dyronix Does your issue exist in the latest release?

@Dyronix This limitation no longer exists. There are now included 'Advanced' samples you can checkout that use a new structure to allow for multiple "concerns" of each type; models, views, controllers, services. It also has a new feature called 'Feature' that allows you to add and remove groups of concerns


chore(pkg): upgrade monaco-editor

upgrade monaco-editor
fix editor issue#61027

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[ListView] Style/Wrapper on custom sections

Hi !
I have a ListView with two different sections.
The first one is classic, but I have to set a custom style (or wrapper) only on the second section (flexDirection: 'row', flexWrap: 'wrap' in my case).
I can only set it on ListView but it breaks the first section.
I think this is a needed feature, but I might be wrong. (I could make a PR if needed)
Please let me know if you need anything else.

Many thanks for your thoughts, PRs are always considered

Can you provide a example of what's broken on rnplay.org and a concrete suggestion for the fix, I'm not really sure what is broken from your description and screenshot

He wants a different flex layout per section, which means we would need to wrap each section's rows in a View instead of all of the rows + section headers being siblings of each other.

@ide exactly ;)

It could be an optional renderSection attribute:
renderSection={(sectionName, elements, renderRow) => {renderRow()}}
which is by default
renderSection={(sectionName, elements, renderRow) => {renderRow()} }
Something like this.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/listview-stylewrapper-on-custom-sections
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix. We rely on the community to provide
bugfixes as the core team is focused on performance.


Loss problem

Hi, everyone,
I have a problem when I try to retrain the model with the NYUv2 datset, including around 1k imgs with 14 classes. (loss='categorical_crossentropy')
Regardless of whether I freeze the weights, when the training runs to the second epoch, the loss suddenly becomes minimal and does not change. (The first epoch looks normal, the loss is falling, but the acc is oscillating)
Does anyone know how to solve this problem?

Same problem with NYUv2

@bonlime  so with this new version , are we able to either retrain it with your provided pre-trained weights or fine-tune it ?

hi, I have the same problem. Have you solved it?

Hi,I have the same problem when I train network with 2 GPUs. Have you met it?

Hi,I have the same problem when I train network with 2 GPUs. Have you met it?

I added an activation layer at the end of the network, and now loss looks normal.

Hi,I have the same problem when I train network with 2 GPUs. Have you met it?

I added an activation layer at the end of the network, and now loss looks normal.

We can see that  it exists activation layer in Line 454 in model.py .Could you please tell me which activation layer  you add in ？

嗨，我训练带有2个GPU的网络时遇到同样的问题。你见过吗？

我在网络末端添加了一个激活层，现在丢失看起来很正常。

我们可以在model.py的454行中看到它存在激活层。能否请您告诉我添加了哪个激活层？

Sorry, my tensorflow version is 1.13. I didn't use the latest code. I may not be able to help you.

嗨，我训练带有2个GPU的网络时遇到同样的问题。你见过吗？

我在网络末端添加了一个激活层，现在丢失看起来很正常。

我们可以在model.py的454行中看到它存在激活层。能否请您告诉我添加了哪个激活层？

Sorry, my tensorflow version is 1.13. I didn't use the latest code. I may not be able to help you.

OK，thank you very much for your reply.


Adds ability to add http2 configuration option SETTINGS_MAX_HEADER_LIST_SIZE

Signed-off-by: sri kailash<EMAIL_ADDRESS>title: This PR adds ability to add SETTINGS_MAX_HEADER_LIST_SIZE http2 configuration option
Description:
This adds max_header_list_size configuration option that can be communicated to upstream hosts.
please see https://github.com/envoyproxy/envoy/issues/2958.
Risk Level: Low
TODO:

Need to add tests

@PiotrSikora, will reopen once i get my other PR merged. :)


Conditional Forwarder section does not include newly added requirements for privatelink.blob.storage.azure.net

Recently Backup PG introduced the use of *.blob.storage.azure.net for access to storage accounts when using Private Endpoints with Azure Backup.
See note in https://portal.microsofticm.com/imp/v3/incidents/details/255755370/home
Marina Garcia (marinagt) edited at 2021-08-13 05:30:32 EDT
note   blob.storage.azure.net was recently introduced FQDN
The following document section was edited to reflect this:
https://docs.microsoft.com/en-us/azure/backup/private-endpoints#set-up-proxy-server-for-recovery-services-vault-with-private-endpoint
However, the conditional forwarder section was not updated to include privatelink.blob.storage.azure.net
https://docs.microsoft.com/en-us/azure/backup/private-endpoints#if-using-conditional-forwarders
Also the sample output should include privatelink.blob.storage.azure.net IPs as well.
https://docs.microsoft.com/en-us/azure/backup/private-endpoints#step-1-get-required-dns-entries
Thanks!

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

ID: 85efae36-7371-4b13-4caf-c1532685380e
Version Independent ID: d56c1100-2081-f42d-ecf2-16037434306b
Content: Create and use private endpoints for Azure Backup - Azure Backup
Content Source: articles/backup/private-endpoints.md
Service: backup
GitHub Login: @v-amallick
Microsoft Alias: v-amallick

@shashwattrivedi - Thank you for answering the query.
@stantoni-msft - Now, I am proceeding to close this issue. Please get back to us if you have other queries. We will be happy to continue the discussion.
#please-close


Add trib to owen hab con data to 2022 file

This site was fished in 2022 with tagging completed.
It is in the 2021 xls file and can stay there too for now but we can add it to this years and do the memo based on that since it wasn’t completed last year . It will need rows in hab priorities sheet too

Just going to re open this, wondering how to set up the memo. Should I including links to the drone orthomosaics from 2021 in this years memo? And then draw a conclusion about site remediation mostly based off that? And include fish sampling data from this year as a supplement and mention that briefly as well. I'm a little confused when I look at QGIS, because the two sites look like they aren't even on the same tributary.

different sites. the data should be in the 2021 hab con file but no write up was done

Ohhh, hold up I'm just realising there's more Owen Creek sites in the 2021 data files. I only saw site 197370 originally. This makes a lot more sense now. I added the wrong one to the 2022 data files. I now see 197379 in 2021, I will add to 2022.

So I'll add it to the pscis phase 2 file as well, for now. The only photos I see in the 2021 folder is the amalgamated one. Are there any other photos of the habitat surveys back then somewhere else?

yes - there are other photos. I will add to the dropbox.

photos are now in the 197379 directory on the onedrive.
Notes in the writeup of this site should include a bit of detail about:

CGL remote camp adjacent to stream (see google earth).  See if there is a way to find out about oil and gas liscencing of water extraction site (I don't think they register in the same place as water extraction liscences on bc data catalogue)
waterfall with photo, distance from culvert and estimated height
area of wetlands upstream and rough assessment of land degradation way upstream (ie. does google and bing show that perhaps there a bunch of rangeland up there that may have management activities leading to beaver and riparian removal?


Add more details about breakpoint widths

In order to understand your two first examples I had to consult another site. I find it a pity that the original source of truth for Material-UI is not self-explanatory.

[x] I have followed (at least) the PR section of the contributing guide.

@eps1lon codesandbox-ci has been failing randomly lately, quite flaky :/

@eps1lon codesandbox-ci has been failing randomly lately, quite flaky :/

This is not the same issue.

@Muzietto Much appreciated, thanks!

I have moved the pull request from the master branch to the next one.

I have moved the pull request from the master branch to the next one.

Why not just forward port to next´? What was the point of reverting on master`?

The incentive to revert on master is to apply a "only important changes and security fixes on v4" policy. This policy aims to:

Reduce the overhead of working on a new major version. It's simpler to manage a single active branch.
Increase the incentive for developers to use and contribute on v5.


[Unsplash] ...

Extension
https://www.raycast.com/eggsy/unsplash
Raycast Version
1.82.5
macOS Version
No response
Description
After entering access and secret key, and trying to search an image (f.e), the extension ask me to log in (with unsplash acount). Only, the link is not valid. Cannot Log in...

Steps To Reproduce
Freshly installed, creating application on unsplash site, entering access and secret key, trying to search an image, need to log in, "The redirect uri included is not valid."
Current Behaviour
No response
Expected Behaviour
No response

That was fast and correct. Thank you so much, and sorry for the disturbance.


fix: check correct value for addressCountry

Including addressCountry should check for that parameter, not addressRegion

Oups! Thanks for this.


CPU: properly detect CPU on POWER

Excerpt for a thread from /proc/cpuinfo:
processor       : 0
cpu             : POWER9, altivec supported
clock           : 3800.000000MHz
revision        : 2.2 (pvr 004e 1202)
Without this patch, the following is printed for a CPU:
CPU: CPU (64) @ 3.8 GHz
With it, there is:
CPU: POWER9, altivec supported (64) @ 3.8 GHz

Thanks


[Enhancement] Do some code optimization[SubClientImpl]

Search before asking

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

Enhancement Request
located at:
eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/client/impl/SubClientImpl.java
analysis and explanation:
a. Field may be 'final'[line 52,56]

b. Anonymous new Runnable() can be replaced with lambda[line 99]

c. Swap these 2 arguments so they are in the correct order: expected value, actual value.[line 168-183]

d. Duplicate branch in 'switch'[line 186,189]

e. 'if' statement can be simplified[line 194]

Describe the solution you'd like
a. add final.
b. Replace with lambda

c. Swap actual and expected values.

d. Merge the case

e. Simplify “if else”

Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

hey @Alonexc i want to work on this. I am a beginner contibuter. Can you please assign this to me ?

@monish-byte Of course, very welcome to the eventmesh community.


Market: Icon/Header images' checkboxes aren't checked in Edit form in any cases.

Related commit 53c8a4f5012d48834015e93b5b2bf4c1e4b4e7d3


[1pt] Setup a new react application

Here we are expected to achieve the following
Install linters
Install all libraries (Redux, Redux-thunk, React-router, React-Redux, Normal Css)
Install Styling
Install ESlint
Create a redux store
Install react-testing-library
Install JEST
Setup basic color combinations
Setup Fonts
Setup Redux actions / reducers
Setup the Redux thunk file

Pull request created in the front-end:
https://github.com/rachidelaid/billionaire-appointment-front-end/pull/1


Only first bot connects when multiple are configured

Hi! I've followed the configuration and guide, and when I have one bot it works splendidly, we've had all sorts of fun with it, but when I have multiple bot_configs it appears that only the first one connects and relays messages. I've tried with the same account, different accounts, different channels, and whatever the first one to connect is succeeds while the rest do not.
In my Application.ex:
    ...

    children = [

      ...

      {PartitionSupervisor, child_spec: DynamicSupervisor, name: MyApp.DynamicSupervisors}
    ]

    ...

    # Add the running ones
    running_bots = MyApp.Context.Bot.get_all_running!()

    bot_configs =
      for bot <- running_bots do
        # TMI bot config
        [
          bot: MyApp.Twitchbot,
          user: bot.twitch_user,
          pass: bot.twitch_pass,
          channels: [bot.twitch_channel],
          mod_channels: [""],
          capabilities: ["membership", "tags", "commands"],
          debug: false
        ]
      end

    for {bot_config, index} <- Enum.with_index(bot_configs) do
      # give TMIs to supervisors
      DynamicSupervisor.start_child(
        {:via, PartitionSupervisor, {MyApp.DynamicSupervisors, index}},
        {TMI.Supervisor, bot_config}
      )
    end

    ...

In Twitchbot.ex:
defmodule MyApp.Twitchbot do
  use TMI

  @impl TMI.Handler

  def handle_message(message, sender, chat) do
    Logger.debug("Message in #{chat} from #{sender}: #{message}")
  end
end

...

I get Logger messages from the first bot to connect, and nothing else.
Snipped for relevance and also to remove a perhaps gratuitous amount of IO.inspect calls. Just trying to figure out what I've got set up incorrectly here, or what my fundamental misunderstanding is 😅
Thank you for your wonderful library!

I'll look into it at some point, but my guess is that it might be expecting a different module name per bot.

Okay, cool! I've been wondering how to handle having a user-configurable set of responses and behaviors etc per bot, which are currently defined by the implementation of MyApp.Twitchbot. Should I be thinking about how to somehow generate dynamic modules for each bot? Is there any way for the handler module to see what bot it's receiving events from?


Phonon + Cordova

Hello
Can anyone help me with use Cordova plugins like contacts or camera in Phonon project?
Thanks

Phonon no have dependence with Cordova or Cordova plugins, so... your problem will be with "how to use plugin...", but what is your question?

Hi
I'm using phonon to make an UI of my mobile application and I want to use Cordova like a container and their plugins to interact with a native component
but when I install Cordova plugin like contacts and I try to use like the documentation show by to writing navigator.contacts I have a mistake relative on non attribute contacts. So I want to know if phonon give a particular way to use Cordova plugins

Phonon does not use and does not depend on any third party libraries. (by Why use Phonon page), so you can use in your website, aplications, mobile and whetever.
Your problem is "How to use cordova plugin" and not "How to use Phonon"... Phonon no manipulate plugin methods or functions. Please, see documentation of yours plugins to see how they works.
Your problem will be solved using (from Cordova)
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady(){
	app.start();
}

See documentation of Cordova about events

Inactive issue.
Therefore, for this reason, I close this ticket.


Bump version to 0.2.27

What does this PR do?
Bump version to 0.2.27
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Creating a new release as yesterday's pre-release had issues due to a version number misunderstanding.


TaxID

I submitted the following TaxID file from metaphlan and here is the error message I received below
TaxID1.txt
TaxID1.txt
Sorry, there was an error generating your PhyloPlus results. The error messsage was: Error: Command failed: python3 lib/scripts/extract_lineage_user_provided.py "tmp/output-tmp-7-1674053303646/TaxID1.txt" /tmp/tmp-356076-6ArGbl88KYaH<EMAIL_ADDRESS>lib/NCBI_dmp_files
Traceback (most recent call last):
File "lib/scripts/extract_lineage_user_provided.py", line 204, in
user_summary_2 = convert_taxid_to_lineage_main(uniq_user_taxids_rmng)
File "lib/scripts/extract_lineage_user_provided.py", line 56, in convert_taxid_to_lineage_main
uniq_sci_name[taxid] = temp_dict["ScientificName"]
TypeError: 'NoneType' object is not subscriptable
Please contact JIFSAN IT for support.
TaxID1.txt

@oclaisse Hello, I tried to reproduce the result using the input you provided, and found out that the error was caused by some of the taxIDs that could not be found in NCBI databases: e.g., 6115856, 7415705, etc. I have modified the script and updated the web portal. These erroneous taxIDs will be recorded in the note.txt file in the final output.
I also noticed that some of the taxIDs in the input belong to higher levels of taxonomic ranks such as class. Please note that these taxIDs will also be filtered out and won't be added to the phylogeny either, such that the taxonomic ranks of tip labels in the final phylogeny are coherent and all pairwise distances represent interspecific distances.
Please let me know if this error still persists for the web portal.

Hello, I try again with the same file and below the new error message:
Sorry, there was an error generating your PhyloPlus results. The error messsage was: Error: Command failed: Rscript lib/scripts/expand_phylogeny.R lib/input/GTDB_r207_bacterial.tree /tmp/tmp-356076-7yZdJdF7TTaT 1 2 2 0.75
If you use the ggtree package suite in published research, please cite
the appropriate paper(s):
Guangchuang Yu, Tommy Tsan-Yuk Lam, Huachen Zhu, Yi Guan. Two methods
for mapping and visualizing associated data on phylogeny using ggtree.
Molecular Biology and Evolution. 2018, 35(12):3041-3043.
doi:10.1093/molbev/msy194
Guangchuang Yu, David Smith, Huachen Zhu, Yi Guan, Tommy Tsan-Yuk Lam.
ggtree: an R package for visualization and annotation of phylogenetic
trees with their covariates and other associated data. Methods in
Ecology and Evolution. 2017, 8(1):28-36. doi:10.1111/2041-210X.12628
Attaching package: ‘tidytree’
The following object is masked from ‘package:stats’:
filter

Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag

The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union

Loading required package: Rcpp
Loading required package: ape
Loading required package: maps
treeio v1.18.1  For help: https://yulab-smu.top/treedata-book/
If you use treeio in published research, please cite:
LG Wang, TTY Lam, S Xu, Z Dai, L Zhou, T Feng, P Guo, CW Dunn, BR Jones, T Bradley, H Zhu, Y Guan, Y Jiang, G Yu. treeio: an R package for phylogenetic tree input and output with richly annotated and associated data. Molecular Biology and Evolution 2020, 37(2):599-603. doi: 10.1093/molbev/msz240
Attaching package: ‘treeio’
The following object is masked from ‘package:phytools’:
read.newick

The following object is masked from ‘package:ape’:
drop.tip

Killed
Please contact JIFSAN IT for support.
Best,
Olivier

Hi Olivier @oclaisse,
I rerun the script on the server and it was due to one of the taxIDs which could only be mapped at the phylum level, so a large distance was extracted during execution and the server run out of memory. We have upgraded the server to another instance with larger RAM and I uploaded your input again and this time I successfully got the output.
Would you mind shoot me an email at<EMAIL_ADDRESS>just in case if this error happens again so I can send you a copy of your output. Also, I plan to update the method a little bit so I can utilize more information to better locate these rare species, such as the one in your input. I have done some preliminary test and the new method seem to work. The testing and implementation of the new method to the web portal may take 1~2 weeks. If you can send me an email, I would be more than happy to keep you updated and also seek any potential suggestions : )
Best,
Dennis

Thank you very much it works well now!
Best, Olivier

@oclaisse Hi Olivier, I made changes to the original method, as I noticed that the previous run for your input placed some of the species at relatively high level such as class, order, etc. Now the newer version incorporates more information from the reference and these species can now be located more precisely.
Also I noticed that last time your input contained taxonomy IDs of different levels, including genus taxIDs, family taxIDs, etc., so I also made it available that the user can decide what taxonomic rank they want to have in the final result. For example, now you can choose "family" with the same input, and all tip labels in the final result will be family names found in your input.
The updates have already been made to the portal, but not the repo here yet. Please check it out if you are interested : )
Best,
Dennis


Initial Prompt length + Execution time

I am combining two issues through the following codes:
_**from faster_whisper import WhisperModel
import time
import pandas as pd
mt = pd.read_csv('frequentterms.csv')
terms = ', '.join(str(x) for x in mt.term.unique())
Define the initial prompt
initial_prompt = terms
model_size = "large-v2"
Run on GPU with FP16
model = WhisperModel(model_size, device="cuda", compute_type="float16")
audio_file = "audio1.m4a"
start_time = time.time()
segments, _ = model.transcribe(audio_file,
temperature=(0.0, 0.2, 0.4, 0.8, 1.0),
best_of=5,
beam_size=5,
suppress_tokens=[-1],
suppress_blank = True,
condition_on_previous_text=True,
compression_ratio_threshold=2.4,
log_prob_threshold=-1.,
no_speech_threshold=0.3,
word_timestamps=True,
initial_prompt=initial_prompt,
vad_filter=True)
elapsed_time = time.time() - start_time
print("Transcript extraction Time:", time.strftime("%H:%M:%S",time.gmtime(elapsed_time)))**_

Initial prompt

a) I am passing around 3, 500 domain-specific terms as comma-separate text to the initial prompt. It does not work.
b) If I pass a few terms it works (for example 'Injection, perineal, Solensia'). How do I pass all these terms as an initial prompt to improve the transcript mistakes?

Execution time
The above code execution time for 10 mins audio is 7 seconds in GPU - 1 x NVIDIA Tesla V100. Whereas when extracting the text from the segment list object it takes around 40 seconds. How to improve data extraction? Does anyone have a different mechanism to improve the code? Also removing the uh and ums. That code does not take a long time.

import concurrent.futures
start_time = time.time()
lstsegments = list(segments)
def process_segment(segment):
return segment.text, [word.word for word in segment.words if word.probability <= 0.5]
with concurrent.futures.ThreadPoolExecutor() as executor:
results = list(executor.map(process_segment, lstsegments))
output_text = ''.join(text for text, _ in results)
output_text = output_text.replace(' uh ',' ').replace(' uh','').replace(' Uh ',' ').replace(' um ', ' ').replace(', um ',',').replace(' Um ', ' ').replace('Um,', ' ').replace('um, ','').replace('   ',' ').replace(',,','')
error_words = [word for _, error_list in results for word in error_list]
elapsed_time = time.time() - start_time
print("Text generation Time:", time.strftime("%H:%M:%S",time.gmtime(elapsed_time)))
Please let me know some pointers

It should go to discussion group


InstanceSegmentation import of data_augmentation

I get a ModuleNotFoundError: No module named 'data_generator' when running RCNNmodel.load_image_gt.
Import is done as (here):
from data_generator.data_augmentation import data_augentation
Shouldn't it be:
from instantdl.data_generator.data_augmentation import data_augentation ?

thanks for finding it. It is correct. Feel free to open a pull request for changes


npm build wasnt ran on last update

So fromStream patches never got added to the dist (aka bundle.cjs.js).
Spent an afternoon fixing it myself only to realize it had already been fixed just never updated in the main repo.
Run npm build and push or just merge this branch to get everything back up to date <3

@foobar404 do you plan on maintaining this repo moving forward?

Repo isn't being maintained so I'm closing this.


Moving isn't working.

Several of the example scripts don't move the sprite at all. Needs to be fixed.

And what happened to like all the labels.

For example???

whenPageLoads {
    mySprite = new Sprite(0, 0, "
Lol.
");
    mySprite.turn(45)
    mySprite.move(100)
    wait(1000).then({
       mySprite.goTo(100,0);
    })
}

Turns the sprite but doesn't move it.

I already have an issue open for this... HTML Sprite positioning broke.
Please use image sprites for now.
On Sun, Mar 5, 2017 at 11:54 AM Baran Skistad<EMAIL_ADDRESS>wrote:

whenPageLoads {
mySprite = new Sprite(0, 0, "Lol.");
mySprite.turn(45)
mySprite.move(100)
wait(1000).then({
mySprite.goTo(100,0);
})
}
Turns the sprite but doesn't move it.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/Scratch-JS/Scratch-JS/issues/46#issuecomment-284242917,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGck4rK71Izveug2T8Nwl5tNnByYfanEks5riujXgaJpZM4MTeCt
.

Please see #42

ok


Fix README.md github repository

Running the following command doesn't work as it is not a valid git repository:
❯ hyprpm add https://github.com/virtcode/hypr-dynamic-cursors

 → Cloning https://github.com/virtcode/hypr-dynamic-cursors
 ╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  0 / 5  Cloning the plugin repository
✖ Could not clone the plugin repository. shell returned:
Cloning into 'dani'...
fatal: unable to access 'https://github.com/virtcode/hypr-dynamic-cursors/': Could not resolve host: github.com

✖ Couldn't enable plugin (missing?)

The fix would be to add the .git extension to the repository url.

Are you sure it doesn't work with no .git? For me the following works:
$ hyprpm add https://github.com/virtcode/hypr-dynamic-cursors

✔ adding a new plugin repository from https://github.com/virtcode/hypr-dynamic-cursors
  MAKE SURE that you trust the authors. DO NOT install random plugins without verifying the code and author.
  Are you sure? [Y/n]

 → Cloning https://github.com/virtcode/hypr-dynamic-cursors
✔ cloned
✔ found hyprpm manifest
✔ parsed manifest, found 1 plugins:
 → dynamic-cursors by Virt version
etc.

What version and distro are you on? The error you are having looks more like a network issue to me

I'm closing this as the current instructions on the readme work just fine for me on arch, so I can't reproduce the issues you are having. Feel free to reopen or post an issue if you find the cause for the problems on your side.


add being able to access microphone

Problem description
it would be nice to access this
Proposal
i want to be able to record and hear whats happening thru the mic
Additional context
No response

Please do a search here to see this answered and why it would not be added and there are no plans on doing so, unless you yourself added that function. If you did a search you may find OLD information on doing so. It's a open source project so feel free to customize it for your own "Legal" usage.
Listening to private conversations with out the written consent of the person(s) involved is illegal in most states and providences no matter where you live.


Unexpected Replacement of icon Field Type to IconAsset After Executing EnkaNetworkResponse.parse_obj(data)

When executing the function EnkaNetworkResponse.parse_obj(data), an unintended behavior was observed where the icon field type in the original data is being replaced with IconAsset. This issue is unexpected and should not occur.
code:
result = EnkaNetworkResponse.parse_obj(data)

Before:

After:

As for why I'm reporting this issue, it's because I still need to use the original Data for other tasks. I hope that the original data should not be damaged during processing.


[xDS e2e tests] split up xDS-enabled server tests and xDS security tests into their own files

The xDS-enabled server tests have been moved to their own file, xds_enabled_server_end2end_test.cc.  The tests have been restructured a bit to separate them from the security tests.  In particular, they've been changed to use the standard client machinery from the XdsEnd2endTest framework rather than the specialized machinery in the security tests -- e.g., they now use CheckRpcSendOk(), CheckRpcSendFailure(), SendRpcsUntil(), etc rather than the monolithic SendRpc() method in the security tests.
Once that was done, the security tests were the only thing left in xds_end2end_test.cc, so I renamed it to xds_security_end2end_test.cc.
In the process of doing this, I also added a couple of convenience functions to the test framework to make tests a little easier to read.

Historically changes to these tests has resulted in flakiness. Can we please run this on kokoro using 1000x runs on each of the sanitizers?

I've run this 1000x on RBE with each of the sanitizers.  There were a couple of flakes in the security tests under ASAN, which haven't really changed at all in this PR, so I assume those are pre-existing.  Nothing in xds_enabled_server_end2end_test flaked at all.
I think this is okay to proceed once you review.


Exporting to ONNX failed

Hey guys, when I click on Export Default Engine, I get this error after few seconds, anyone knows how to fix it?
polygraphy.exception.exception.PolygraphyException: Failed to parse ONNX model. Does the model file exist and contain a valid ONNX model?
Disabling attention optimization
Exporting juggernautXL_v8Rundiffusion to TensorRT using - Batch Size: 1-1-1
Height: 1024-1024-1024
Width: 1024-1024-1024
Token Count: 77-77-77
Disabling attention optimization
============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================

ERROR:root:Exporting to ONNX failed. Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)

List your webUI start arguments.

set COMMANDLINE_ARGS=--xformers --no-half-vae --api

Hey guys, when I click on Export Default Engine, I get this error after few seconds, anyone knows how to fix it?
polygraphy.exception.exception.PolygraphyException: Failed to parse ONNX model. Does the model file exist and contain a valid ONNX model?
Disabling attention optimization
Exporting juggernautXL_v8Rundiffusion to TensorRT using - Batch Size: 1-1-1
Height: 1024-1024-1024
Width: 1024-1024-1024
Token Count: 77-77-77
Disabling attention optimization
============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================

ERROR:root:Exporting to ONNX failed. Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)

Hi guys! Are you enabling the extension on linux？

Have you tried specifying the device ID?
There's a lot of variables, what hardware are you using? Are you running on a dedicated GPU?
Also, --api might cause the model.json not updating. This is minor, leave the issue for now if this doesn't bother you, or it doesn't affect you.

Yes, I tried specified the device id by --device-id 0, the error was still the same.
I'm using MSI GF75 Thin 10UE-065CZ with NVIDIA GeForce RTX 3060 6GB
Just tried removing the --api and it didn't help, still same error.

Small check, can you check your memory usage when exporting the model to ONNX?
I just discovered that exporting to ONNX is eating up all 24gb of my vram, and then 14-16gb of my ram. That overflow to ram might be the root issue of this. I can't seem to export a model as well currently, using the static shapes.

I don't know how to check that and if it's even possible as the error Exporting to ONNX failed pops up like 5 seconds after I click on Export Default Engine.

By the way, here is the whole thing what happens after I click on Export Default Engine.
Exporting juggernautXL_v8Rundiffusion to TensorRT using - Batch Size: 1-1-1
Height: 1024-1024-1024
Width: 1024-1024-1024
Token Count: 75-75-75
Disabling attention optimization
============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================

ERROR:root:Exporting to ONNX failed. Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)
Building TensorRT engine... This can take a while, please check the progress in the terminal.
Building TensorRT engine for C:\pinokio\api\Automatic1111\app\models\Unet-onnx\juggernautXL_v8Rundiffusion.onnx: C:\pinokio\api\Automatic1111\app\models\Unet-trt\juggernautXL_v8Rundiffusion_e80db5ed_cc86_sample=2x4x128x128+2x4x128x128+2x4x128x128-timesteps=2+2+2-encoder_hidden_states=2x77x2048+2x77x2048+2x77x2048-y=2x2816+2x2816+2x2816.trt
Could not open file C:\pinokio\api\Automatic1111\app\models\Unet-onnx\juggernautXL_v8Rundiffusion.onnx
Could not open file C:\pinokio\api\Automatic1111\app\models\Unet-onnx\juggernautXL_v8Rundiffusion.onnx
[W] 'colored' module is not installed, will not use colors when logging. To enable colors, please install the 'colored' module: python3 -m pip install colored
[E] ModelImporter.cpp:773: Failed to parse ONNX model from file: C:\pinokio\api\Automatic1111\app\models\Unet-onnx\juggernautXL_v8Rundiffusion.onnx
[!] Failed to parse ONNX model. Does the model file exist and contain a valid ONNX model?
Traceback (most recent call last):
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "C:\pinokio\api\Automatic1111\app\extensions\Stable-Diffusion-WebUI-TensorRT\ui_trt.py", line 126, in export_unet_to_trt
    ret = export_trt(
  File "C:\pinokio\api\Automatic1111\app\extensions\Stable-Diffusion-WebUI-TensorRT\exporter.py", line 231, in export_trt
    ret = engine.build(
  File "C:\pinokio\api\Automatic1111\app\extensions\Stable-Diffusion-WebUI-TensorRT\utilities.py", line 227, in build
    network = network_from_onnx_path(
  File "<string>", line 3, in network_from_onnx_path
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\polygraphy\backend\base\loader.py", line 40, in __call__
    return self.call_impl(*args, **kwargs)
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\polygraphy\util\util.py", line 710, in wrapped
    return func(*args, **kwargs)
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\polygraphy\backend\trt\loader.py", line 227, in call_impl
    trt_util.check_onnx_parser_errors(parser, success)
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\polygraphy\backend\trt\util.py", line 86, in check_onnx_parser_errors
    G_LOGGER.critical("Failed to parse ONNX model. Does the model file exist and contain a valid ONNX model?")
  File "C:\pinokio\api\Automatic1111\app\venv\lib\site-packages\polygraphy\logger\logger.py", line 605, in critical
    raise ExceptionType(message) from None
polygraphy.exception.exception.PolygraphyException: Failed to parse ONNX model. Does the model file exist and contain a valid ONNX model?

Since the last updates, it consumes a huge amount of memory, making the extension basically useless. In the previous version, it adapted itself until it could allocate an available amount. Right now, it tries to put all that it requires in VRAM, if there is not enough in RAM, and if it is not enough it ends with the error shown.
Previously, you could easily create profiles for 1024x1024 x2 or 768x768 x8. Now, this is totally impossible, not even 768x768 x3

I'm getting the same error, or this one:
ERROR:root:Exporting to ONNX failed. 'NoneType' object has no attribute 'shape'
Only seems to happen with SDXL models for me.

I am using a laptop and the graphics card is RTX4060.
Yes @.***> 于 2024年1月29日周一 上午6:13写道：

Have you tried specifying the device ID?
There's a lot of variables, what hardware are you using? Are you running
on a dedicated GPU?
Also, --api might cause the model.json not updating. This is minor, leave
the issue for now if this doesn't bother you, or it doesn't affect you.
—
Reply to this email directly, view it on GitHub
https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT/issues/262#issuecomment-1913738714,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A35V3ORWVDMAFLEZY6BW5RTYQ3ERPAVCNFSM6AAAAABCNBIQCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTG4ZTQNZRGQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

No, I am using win11
Jack @.***> 于 2024年1月29日周一 上午10:03写道：

Hey guys, when I click on Export Default Engine, I get this error after
few seconds, anyone knows how to fix it?
polygraphy.exception.exception.PolygraphyException: Failed to parse ONNX model. Does the model file exist and contain a valid ONNX model?
Disabling attention optimization
Exporting juggernautXL_v8Rundiffusion to TensorRT using - Batch Size: 1-1-1
Height: 1024-1024-1024
Width: 1024-1024-1024
Token Count: 77-77-77
Disabling attention optimization
============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================
ERROR:root:Exporting to ONNX failed. Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)
Hi guys! Are you enabling the extension on linux？
—
Reply to this email directly, view it on GitHub
https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT/issues/262#issuecomment-1913839789,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A35V3OVGROA5P7Z7S6TZNCDYQ37QLAVCNFSM6AAAAABCNBIQCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTHAZTSNZYHE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

None of the above worked for me, this is what worked for me and fixed it to export engines with SD Forge lllyasviel/stable-diffusion-webui-forge#64 (comment)

This together with --always-gpu solved it for me

I found a solution, First generate trt using the first present 256x256 - 512x512 | Batch Size 1-4. Then generate using other presets.
Without generating from the first preset it gives polygraphy.exception.exception.PolygraphyException: Failed to parse ONNX model. Does the model file exist and contain a valid ONNX model?
Strange, but worked for me


Consider fate of Decimal

Decimal is used by a few core types in Essentials, but it probably also needs some updates to be a better citizen in Swift. In ObjC it is a C struct, so it would be difficult to share the sources exactly.

It also crashes because of missing functionality.
Decimal(exactly: 0)

Most of the missing functionality was implemented in the open-source version; it was to be synchronized with the Apple version but...well, that hasn't happened. If made part of a new open-source project across all platforms, one can be confident that the missing functionality will not be an issue.
More saliently, though, the Decimal type pre-dates modern IEEE decimal types, and it is likely that we will want those, so it is wise to consider carefully where the legacy type best fits into the picture.

I remember you mentioning that when I wrote the initial bug. imo, it definitely makes sense to phase out the old legacy Decimal as I don't see any advantages over the IEEE format. One issue that we all encounter with floating points is that at times it is important to know if a number could accurately be represented when doing arithmetic in order to avoid propagating rounding errors.

Added a discussion in the swift forums here: https://forums.swift.org/t/consider-fate-of-decimal/64708


Select Features tab - Hazards has a + but nothing expands when clicked

HDM -> Hazards

The feature tress are generated from the HDM Data Model at https://github.com/hotosm/presets/blob/master/HDM.xml. This file is missing the type attribute on the Hazzard Item which means it doesn't get added as an item in the Hazzards on the export tool's feature tree. Also, the HDM Model referenced above, is missing some road features, eg motorway... which means motorways won't be exported for users choosing the HDM. Someone needs to review this model for completeness.

Added hazard items.

The hazard feature tags are now present in the HDM Data Model tree. I went through all of the branches down to their lowest levels and all the branches that have a + symbol contain feature tags.
When the last branch (Landuse) at the tree bottom of the tree is expanded, the page doesn't automatically scroll down to display the feature tags. Would it be possible to enable this, so it displays them as it currently looks as though it is empty.


decoupling apiserver and clustersynchro-manager by message midd…

…leware
What type of PR is this?
/kind feature

What this PR does / why we need it:
decoupling apiserver and clustersynchro-manager by message middware
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

please run make lint on your local Desktop


fix(clustering) fix rpc id of negotiation

Should we also change the id of the service? This service is more fundamental than config.

friendly remainder that Kong/koko#344 is already merged and deployed.


Update README and ContactUs

Coverage remained the same at 80.791% when pulling 66c0437687531542d13ea8385ea1fd896b5e74a0 on px1099:contact-us into d56adf37d9f5ac47af8e8bd9869cb94440ae70ac on CS2113-AY1819S1-F09-2:master.


Should the extension uninstall confirmation dialog be removed now that it's behind a context menu?

@sandy081 ?

Hmm not sure.. I would still categorize this action as a one which needs user confirmation just like Delete action on a file.


Some icons are missing or rendering wrong

os: linux
lsd --version: lsd 0.20.1
echo $TERM: xterm-kitty

Some icons dont show up, for example icons that have the .sh and .hs extension. I have nerd fonts and fontawesome installed. As you can see, the majority of icons are showing up properly but not all. Is there a way to manually add extra icons in a config file?

this is always because of the font, make sure you installed a Nerd Font, Hack Nerd Font for example

this is always because of the font, make sure you installed a Nerd Font, Hack Nerd Font for example

I have Hack Nerd Font installed and those same icons are still missing :/

both icon size and icon content is controlled by fonts or terminal emulator too, so your solution is still to update the fonts or terminal config.


restore overflow attention style

looks like this was accidentally removed - not sure why there were so many changes in that deps upgrade PR
this style is useful because it visually indicates a line-break in the URL display field, which is necessary in order for the user to verify the origin
with the url https://thisurlistryingtotrickyou-oooooooooooooooooooooooooooooooooooooooooooooooooooo-app.testnet.penumbra.zone-oooooooooooooooooooooooooooooooooooooooooooooooooooo-bymakingtheboxdisplaystrangely.verylongurl.ml:1234/
without the style:

with the style:

not sure why tailwind plugin didn't version bump in the fix pr

I'm kinda confused... both of those screenshots look broken, right?

yes, but one is obviously broken, while the other is more subtle. we can't expect users to be very familiar with the approval dialog because they will see it very infrequently - some users may see a legitimate dialog only once, or not at all

What if we put a length limit on host names?

It seems like banning host names longer than 50 characters would prevent the problem. Its always possible to relax later and is relatively easy to reason about

I think this is a good thing to be worried about but we could potentially avoid the problem entirely if we made a simpler choice here.

If truncating is a security concern, shouldn't we just expand the box to always show the url no matter the length?

It seems like banning host names longer than 50 characters would prevent the problem. Its always possible to relax later and is relatively easy to reason about

i think it's very likely that node-hosted minifronts will have >50char origin names


QASM output for multiple R gates

Environment

Qiskit Terra version: <IP_ADDRESS>
Python version: 3.11.5
Operating system: Fedora

What is happening?
I create a QuantumCircuit from a qasm string that contains multiple R gates. E.g.:
OPENQASM 2.0;
include "qelib1.inc";
gate r(param0,param1) q0 { u3(param0,param1 - pi/2,pi/2 - 1.0*param1) q0; }
qreg q[2];
r(0.1,0.1) q[0];
r(0.5,0.5) q[1];

Generating the qasm string from the previously generated QuantumCircuit does result in the R gates being defined multiple times:
OPENQASM 2.0;
include "qelib1.inc";
gate r(param0,param1) q0 { u3(0.1,-1.4707963267948965,1.4707963267948965) q0; }
gate r_140480215738000(param0,param1) q0 { u3(0.5,-1.0707963267948966,1.0707963267948966) q0; }
qreg q[2];
r(0.1,0.1) q[0];
r_140480215738000(0.5,0.5) q[1];

How can we reproduce the issue?
qc = QuantumCircuit(2)
qc.r(0.1,0.1,0)
qc.r(0.5,0.5,1)

qc2 = QuantumCircuit.from_qasm_str(qc.qasm())
qc2.qasm()
``

### What should happen?

I would expect the `qasm` input and output to a `QuantumCircuit` to be the same. Especially, if there are no changes applied to the object.

### Any suggestions?

_No response_

This is in principle a duplicate of #5082, which requires a larger rework of our data model to handle (which we are working on, I promise! - it's just a very very big change), but the reason you only see this after a re-import from the OQ2 string is because Qiskit can't know for certain that it's safe for it to use its built-in RGate to represent the gate r statement.
We're currently reworking how we'll define header files for OpenQASM 2, which will make this easier, but in the meantime, a direct workaround is to replace the legacy QuantumCircuit.from_qasm_str with qiskit.qasm2.loads, which is far more configurable.  If you do this:
from qiskit import qasm2
from qiskit.circuit.library import RGate

prog = """
OPENQASM 2.0;
include "qelib1.inc";
gate r(param0,param1) q0 { u3(param0,param1 - pi/2,pi/2 - 1.0*param1) q0; }
qreg q[2];
r(0.1,0.1) q[0];
r(0.5,0.5) q[1];
"""

custom_instructions = list(qasm2.LEGACY_CUSTOM_INSTRUCTIONS)
custom_instructions.append(qasm2.CustomInstruction("r", 1, 2, RGate))

qc = qasm2.loads(prog, custom_instructions=custom_instructions)
print(qasm2.dumps(qc))

I think you'll get what you expect.

The gist of #10737 (linked above) is that we're going to start exposing new header files called things like qiskit/v1.qasm, and that will include definitions of all of Qiskit's standard gates, not just the legacy ones that kind of got mashed into Qiskit's not-very-accurate version of qelib1.inc (see #4312).  That will let us safely know when we're importing OQ2 that's targetted at our standard gates, without making assumptions about user-defined gates.

Thanks @jakelishman for the detailed response!
Using qasm2.loads() solved my issue. Looking forward to the new implementation.
I close this issue, since it is a duplicate of #5082.


freemind: 0.9.0 -> 1.0.1

See http://freemind.sourceforge.net/wiki/index.php/FreeMind_1.0.0:_The_New_Features
for an overview of changes in version 1.
Tested briefly by creating, saving & loading a simple mind map. The
problems referred to in the previous version of the build recipe
do not occur for me.
This patch simplifies the build somewhat, but it could still be improved
by not copying the freemind dist wholesale into nix-support and replacing
freemind.sh with a more specialized wrapper.

Thanks!


The monitoring data of load in rancher ui is inconsistent with the data of grafana

What kind of request is this
bug

Environment information
Rancher Version: v2.2.8

Problem Description
Open monitoring in RancherUI, the load information monitoring icon data of the node is inconsistent with grafana.

The bug is reproduced in v2.2.8
Steps:

run rancher v2.2.8
add a single node cluster, the node has 4 virtual CPU core
enable cluster monitoring

In Rancher UI, the value of Load1 is 0.07

In Prometheus, the value of Load1 is 0.29

The bug fix is validated in master-head ee3fb04a7
Steps:

run rancher v2.2.8
add a single node cluster, the node has 4 virtual CPU core
enable cluster monitoring

Result:

the values for load1 load5 and load15 are the same in both Rancher UI and Prometheus


Published release never showed up after successful webhook

On Feb 19th @ 5:41:38 PM CST, I pushed the tag 0.5.0 to github for my udibo_react_app module.
https://github.com/udibo/react_app/releases/tag/0.5.0
The webhook had the following response showing it was successful.
{"success":true,"data":{"module":"udibo_react_app","version":"0.5.0","repository":"udibo/react_app","status_url":"https://deno.land/status/522c5bef-8f26-497d-9b77-bded5e333a44"}}

If you go to that status url, it shows that it was successful.
https://deno.land/status/522c5bef-8f26-497d-9b77-bded5e333a44
I did try redelivering it but that failed and had this response indicating deno recognizes the version was already pushed.
{"success":false,"error":"version already exists"}

The 0.5.0 release still doesn't show up on deno.land/x 6 days later. It shows the latest version is the previous one which is 0.4.0. I've tried clearing my cache and others reported that it doesn't show up for them either.

<EMAIL_ADDRESS>
It doesn't show up in the apiland API response either.
https://apiland.deno.dev/v2/metrics/modules/udibo_react_app
{"metrics":{"maintenance":{},"updated":"2023-02-25T00:25:16.889Z","quality":{},"name":"udibo_react_app","popularity":{"score":58,"sessions_30_day":49,"users_30_day":72}},"info":{"defaultModule":{"docable":true,"path":"/mod.tsx","type":"file","size":5358},"kind":"modinfo","module":"udibo_react_app","versions":["0.4.0","0.3.3","0.3.2","0.3.1","0.3.0","0.2.1","0.2.0","0.1.3","0.1.2","0.1.1","0.1.0"],"upload_options":{"ref":"0.4.0","type":"github","repository":"udibo/react_app"},"dependencies":[{"pkg":"http_error","src":"deno.land/x","ver":"0.4.0"},{"ver":"18.2.0","org":"","pkg":"react-dom","src":"esm.sh"},{"org":"","src":"esm.sh","ver":"3.1.4","pkg":"react-error-boundary"},{"pkg":"react-helmet-async","ver":"1.3.0","org":"","src":"esm.sh"},{"ver":"6.6.1","pkg":"react-router-dom","org":"","src":"esm.sh"},{"ver":"18.2.0","org":"","pkg":"react","src":"esm.sh"}],"uploaded_at":"2023-02-19T03:29:15.260Z","tags":[],"description":"A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.","dependency_errors":[],"config":{"type":"file","size":763,"path":"/deno.jsonc"},"readme":{"path":"/README.md","type":"file","size":11246},"version":"0.4.0","latest_version":"0.4.0"}}

When I brought this up in #dev-website on discord. @crowlKats agreed this was strange and also found that it does show version 0.5.0 at this API endpoint.
https://cdn.deno.land/udibo_react_app/meta/versions.json
{"latest":"0.5.0","versions":["0.5.0","0.4.0","0.3.3","0.3.2","0.3.1","0.3.0","0.2.1","0.2.0","0.1.3","0.1.2","0.1.1","0.1.0"]}

Someone else on discord mentioned having this issue and that the missing version showed up for them after they pushed a new release.
https://discord.com/channels/684898665143206084/684898665151594506/1077366647117066300
I have a new release I want to publish today, so the 0.5.0 release might show up afterwards. Hopefully the information in this will be helpful still for investigating the issue even if 0.5.0 starts showing up after I publish 0.5.1. I'll add a comment to this issue about whether or not it shows up afterward.

I just pushed version 0.5.1. After doing so, version 0.5.0 is showing up.

I believe this one is different because it was not available even if you changed the URL to use the missing version. In your case it didn't show up in the list but you said you could still go to it by changing the URL to use the missing version.
If I'm wrong and they are the same, this issue has more details, so I think it would be good to keep this issue open.

I absolutely agree it should stay open since this is still an issue. I was asking out of curiosity :)
Yes, you are right that this issue is different. I was able to access the latest version.


-no-lock option for aptly serve is not recognised

In the manpages there is an option "-no-lock" described:
https://www.aptly.info/doc/aptly/serve/
But it is not recognised, I get this error:
flag provided but not defined: -no-lock
Usage: aptly serve

Context

This could enable me to switch the published snapshot without restarting the server

Possible Implementation

Your Environment

debian 9.3

Yep, thanks, documentation bug. aptly serve doesn't lock the database at all actually, this was supposed to be docs for aptly api serve


Do you accept tips? Venmo, paypal, etc

I successfully scored a delivery, thanks! Do you accept tips?

Yayy! I'm glad it worked! :D
Thank you for being so kind. You can help out people by spreading the word and donating to COVID-19 funds. :)


feat: walletconnect v2 support

Added version and providerId to WalletConnector connector API
Defaulting connectors to v1
Bumped WalletConnect branded connector to v2
Added WALLETCONNECT_PROVIDER_ID and NEXT_PUBLIC_WALLETCONNECT_PROVIDER_ID envs

You'll likely need to also update which events you listen to for display_uri and connect, within web3modal we set these up as follows: https://github.com/WalletConnect/web3modal/blob/V2/chains/ethereum/src/client.ts#L57-L75
Listening on provider itself is suggested, as you can utilise .once

Hey, I just wanted to check if rainbowkit depends on this PR to start supporting WalletConnect v2, or if this is just some sort of improvement. Just wondering about the impact of WalletConnect sunsetting v1 to rainbowkit.
Thanks

@fodisi WalletConnect v2 is not currently supported. There are bugs and differences in the underlying UniversalConnector that we are working through with WalletConnect

@fodisi WalletConnect v2 is not currently supported. There are bugs and differences in the underlying UniversalConnector that we are working through with WalletConnect

thanks a lot for the quick reply, @DanielSinclair !

@fodisi @DanielSinclair hey folks, sorry if this is a very silly question but there is something that is not that clear to me.

Just wondering about the impact of WalletConnect sunsetting v1 to rainbowkit and if the current 0.8.1 already has support for WC v2.

Will it affect, for example, Metamask wallet? I'm asking because I've seen some internal code that uses walletconnect for mobile etc etc.

@adrianotadao Yes, each wallet will be affected and will need to migrate to WalletConnect v2. For RainbowKit, we will migrate each of these wallet connectors to v2 as the support becomes available. MetaMask currently hasn't released support, and other wallets are facing migration issues which we hope will soon be resolved. We will also leave a 'version` prop that allows custom connectors to continue to use v1 where necessary (like with custom bridge servers). dApps will not need to do anything except bump to the latest RainbowKit and Wagmi versions when support is finalized. We will release patch releases as each wallet connector rolls over to v2.

Hey @DanielSinclair, thank you for answering my question! I still have more questions =D

MetaMask currently hasn't released support, and other wallets are facing migration issues which we hope will soon be resolved.

Does it mean that my app that relies on Metamask connection will break and I won't have any authentication system at all? :scream:

@adrianotadao Correct. But, those teams are also working with WalletConnect, so I would assume WalletConnect won't deprecate v1 until they have migrated.

Would it be possible to have a beta version of this? Would love to test.

@obernardovieira The WalletConnect team is still working on getting fixes into Wagmi, but we'll update this PR when those changes are settled.

Hi @DanielSinclair
My latest understanding is that in order to have support for wallet connect v2, dApps need to upgrade wagmi to version 1.0.x (along w/ wagmi and other dependencies, + addressing potential breaking changes). Is this correct or are there other blockes/actions needed? Thanks a lot

@fodisi We will start to migrate a set of wallets to WalletConnect v2 in a patch release very soon, and will complete migrating all RainbowKit connectors by June 14th. dApps will need to update RainbowKit on this timeframe. The RainbowKit 0.12.x API is already WalletConnect v2 compatible, but the wallet connectors have not yet been migrated. It is recommended that you begin to migrate your dApp to RainbowKit v1 and Wagmi v1, but we will also cherry-pick full WalletConnect v2 support as RainbowKit 0.12.15 on June 14th to make it easier to adopt for dApps that have not yet migrated.

@DanielSinclair Thanks a lot for all the info about the migration plan, schedule and references 🙏


[Package Issue]: Adjusting old version so that it does not override latest version of TortoiseSVN fix 2

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Resolves issue mentioned in: https://github.com/microsoft/winget-pkgs/issues/149673
Microsoft Reviewers: Open in CodeFlow

@stephengillie, would you be able to rerun this PR please for validation.


catch frontend errors that are not caught at error boundary

In the past only frontend errors that were thrown during render were caught. Now we catch all errors in order to signal the user that something went wrong.
Note: in dev mode both, the error boundary and the event listener, are called in event of errors. In prod, however, this is not the case.
To test: -> test with build app

create one error in render
create one error not in render

It works but the stack trace is super long and I can not even see the close button for the popup :-(
Is there a way to fix this in an easy way?

I'll look into it

It works but the stack trace is super long and I can not even see the close button for the popup :-( Is there a way to fix this in an easy way?

On Mac that's not an issue. Should be due to the default settings for the system popups... A potential solution is to create a new window with custom html to be able to properly style it. However, not sure it's worth it currently.

It works but the stack trace is super long and I can not even see the close button for the popup :-( Is there a way to fix this in an easy way?

On Mac that's not an issue. Should be due to the default settings for the system popups... A potential solution is to create a new window with custom html to be able to properly style it. However, not sure it's worth it currently.

This is fine for me too.


names() and slugs() do not use prefetch_related cache

Just like tags.all(), calls to tags.names() or tags.slugs() should not execute a query but that does not seem to be the case as demonstrated by this failing test case: https://github.com/salomvary/django-taggit/commit/ae4ba5c6264792066956f466fc78a5a9c41efec4.

feel free to contribute the fixes

    @require_instance_manager
    def names(self):
        return self.get_queryset().values_list("name", flat=True)

    @require_instance_manager
    def slugs(self):
        return self.get_queryset().values_list("slug", flat=True)

I'm guessing this is more of a Django problem with values_list rather than a django-taggit problem. I believe values_list will be more performant if you're not using a prefetch cache, since it will build a query just for names instead of fetching the full object.
To be honest if you're relying on prefetching here I would recommend doing [tag.name for tag in tags.all()]. I can't think of a great way to resolve this that feels sound from a "prevent bugs" perspective

Leaving this open to ruminate on the problem a bit more, I might be missing a detail here.


[DOC] - Add node selector label for other cloud providers

Preliminary Checks

[X] This issue is not a question, feature request, RFC, or anything other than a bug report. Please post those things in GitHub Discussions: https://github.com/nebari-dev/nebari/discussions

Summary
https://www.nebari.dev/docs/explanations/profile-configuration#jupyterlab-profile-node-selectors gives an example for GKE.
And notes that "Other cloud providers will have different node labels."
I want to add node selector labels for other supported platforms.
Flowing labels are known:

AWS: dedicated

Steps to Resolve this Issue

Add a label for AWS
Add a label for Azure
Add a label for Digital Ocean
...

For some context, this might help:
GCP: "cloud.google.com/gke-nodepool",
AWS: "eks.amazonaws.com/nodegroup",
Azure: "kubernetes.azure.com/agentpool",

AWS now has a different label but I can pick the others. Thanks


scrollIntoView

This really needs a solution for having scrollIntoView.  I can set a ref and try to do it all manually but then i have no way to know when the international dropdown is open or not so I can't really use that at all.
So I would think taht:

Need either an onClick handler on the international dropdown icon
Need either a automaticallyScrollIntoView prop for the dropdown or need a way to easily get ahold of the dropdown ref so we can call ref.scrollIntoView() on it manually if needed.

Right now the dropdown opens in my window and its cut off and there is no solution other than maybe putting a fixed div on top of it to capture the click event manually which is pretty darn hacky

I added both onDropdown and automaticallyScrollIntoView in https://github.com/halt-hammerzeit/react-phone-number-input/pull/48
I also removed es6 from the gitignore so you are welcome to install it and try it out
yarn add https://github.com/Dash-OS/react-phone-number-input.git

npm install --save https://github.com/Dash-OS/react-phone-number-input.git

What's the original issue?
It's not clear from your description.

So I guess what you wanted to achieve is to scroll the dropdown list "into view" so that it's visible entirely.
Well, that's understandable.
I guess it would make sense to implement it as the default behaviour.

I closed the PR you submitted due to containing no code changes.
I can look at your solution for this if you submit a proper PR.

Updated to show the file changes that were made.  You must have only looked at the last of the 3 commits which was me adding the code to the repo so i could install it directly: https://github.com/halt-hammerzeit/react-phone-number-input/pull/48

I looked at your fork and implemented the scrollIntoView feature in a similar way.
It's on by default in the latest release.

There were a couple other fixes in the fork that I added.  For example, adding a tabIndex to the dropdown / input causes errors as you were passing the raw fields to the input which react complains about now.
Then the timeouts thing of course.
Thanks for moving fast on this !

Yeah, I seem to have fixed timeouts – clearing them in componentWillUnmount()
As for the tabIndex, not sure what you mean

Ok noticed you added the timeout handling.  Very nice.  I did not see that it was a prop that you could turn off though, there are times (I actually dont know when) that it can cause problems.  I only know that because of my experience with this same properly using react-select and others were complaining about it so he changed it to not be default.

https://github.com/halt-hammerzeit/react-phone-number-input/blob/master/source/input.js#L784
Here you take the props out then make the rest input_props
then here
https://github.com/halt-hammerzeit/react-phone-number-input/blob/master/source/input.js#L846
you are passing those props in with a spread operator.
This means that if you are using the selectTabIndex property it will be passed to ReactInput.
This value is then passed to the raw <input /> which react then gives you an error for.

Wow nevermind, I see that it is there now.

I could just be crazy though :)

Yeah, because this line was added 3 months before now
https://github.com/halt-hammerzeit/react-phone-number-input/blame/master/source/input.js#L791
Anyway, your feedback was positive.


How to turn off PDF running header and footer for title and other pages

I would suggest logically something like:

title_page_header: off | on ; default = off
title_page_footer: off | on ; default = off
preamble_header: off | on ; default = off
preamble_footer: off | on ; default = off
preamble_header: off | on ; default = off
preamble_footer: off | on ; default = off

I did try the Header section attribute :no-header-footer: but this made no difference.

Are you referring to the running header and footer? That should be disabled automatically on the title and toc page. We don't yet have controls for other pages. We need to think about how best to express that without making the configuration overly verbose.

I think better would be a locations value in the theme that controls this. Something like:
header:
  locations: preamble,content

(That would also be the default). However, before we do this, we need to determine all the named page types in the PDF document. This terminology has not yet been established in the AsciiDoc ecosystem, so we don't have anything to build on. Probably best to build on naming that has been worked out in other toolchains (like DocBook, DITA, etc).

Yep, that's a nicer idea. Coming from the document publishing world pre-DITA, I would say there are no standard document parts. In FrameMaker, each chunk of content is normally in its own file, which is where you set running headers and footers.
Another approach, just to think about: assuming that a large doc in asciidoc is just one file (to make life easier - multiple files starts to be a pain with no UI tool) what if 'header' and 'footer' macros could repeatedly be used all through the file, in the same way that :numbered:  / :numbered!: can? In fact the recto/verso content specifications currently in the PDF style .yml file could go there instead, i.e. the equivalent of the following in some sort of macro:
header:
  recto_content:
    left: image:images/openehr-logo-150x50.png[]
    right: '{section-or-chapter-title}'
  verso_content:
    left: '{section-or-chapter-title}'
    right: image:images/openehr-logo-150x50.png[]
footer:
  recto_content:
    center: '*Page {page-number}* | {page-count}'
  verso_content:
    center: '*Page {page-number}* | {page-count}'

The docbook toolchain uses pagemaster to describe different page styles, (margins,orientation, and content).  http://www.sagehill.net/docbookxsl/PageDesign.html

@mojavelinux Do you have an update for the solution of this issue?

I look into this for alpha.15.

I have "part" pages consisting of just a custom header for that part.  I'd really like to remove the running header just from those pages, as they contain anything other than the "part" title.

You can see in the code (https://github.com/asciidoctor/asciidoctor-pdf/blob/db8d3bf3a58103d178901de4fac6977fa50aa1d2/lib/asciidoctor-pdf/converter.rb#L2755) that the running header/footer is skipped if the page is imported. Thus, a simple solution is to mark the part page as imported in your extension code.
module AsciidoctorPdfExt
  def layout_part_title node, title, opts = {}
    super
    page.instance_variable_set :@imported_page, true
    start_new_page
  end
end

class Asciidoctor::Pdf::Converter
  prepend AsciidoctorPdfExt
end

We could introduce a more formal API that allows you to programmatically mark a page as excluded from having running content. But, for now, that should get the job done.

It's possible to defer starting the running content until the body. However, it's not possible yet to start it at some point after the first page in the body.
We could consider extending the running_content_start_at to support a numeric value, which would be the body page number (or perhaps the virtual page number as shown in the running content).

The remaining open issue is now covers by #560, so let's continue the discussion there.


Bumped production RELEASE for 1.21-7

Bumped production RELEASE for 1.21-7
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/unhold

/lgtm


Proposal: Function based filters

This draft pull request adds support for function based filters. Let's take an example.
def filter_name(queryset, name: str):
    return queryset.filter(name__contains=name)

@strawberry.type
class Query:
    fruits: List[Fruit] = strawberry_django.field(filters=filter_name)

Function filter_name is called every time someone queries fruits field of Query type. Code above would generate following schema.
type Query {
  fruits(name: String): [Fruit!]!
}

It is possible to attach filter directly into type. Following code would generate exactly same schema.
@strawberry_django.type(models.Fruit, filters=filter_name)
class Fruit:
    id: auto
    name: auto

@strawberry.type
class Query:
    fruits: List[Fruit] = strawberry_django.field()

This has become stale and probably won't be updated in the future.


Add ability to specify Git branch to deploy.sh

I've tweaked the deploy.sh script so that:

A Git branch can be specified
The parameters can be put in any order (or omitted as the user wishes)
A resource prefix can be specified (and I've renamed the Channel and Subscription to <prefix>-chan and <prefix>-sub)
A "help" menu is displayed with --help (and I wrote it in Markdown and used it to populate the deploy folder README)

I haven't tested whether it works with a cluster quite yet, which is why it's in draft--I've only just gotten the script polished.

LGTM


Allow for No Border on Window

Keeps current API as-is by defaulting to the new BorderAuto BorderStyle
which keeps the default borders on Windows and defaults on none on Frames.
Allows setting a Window Border to BorderNone for a frameless Window.
Signed-off-by: Mark D Horn<EMAIL_ADDRESS>

Thank you for your patch! In the first draft I had no-border Windows but I have not included the feature in the next releases. It seems I should have include it because people needs it :)


Error! Your codebase isn’t linked to a project on ZEIT Now

I have a work zeit now account and a personal zeit now account and projects for both on the same computer.
I used to be able to run now dev to run locally however I wanted, but now because of project linking I have to run now login each time I want to switch projects and this is a pain.
I'm of the opinion that now dev should run locally without having to check in with the profile / login / anything.

You should be able to run now switch, this does assume you have joined your works team.
I personally have one 'master' account linked with Github and 3 teams I just use the now switch <TEAM> to flip back and forth rather quickly.

You shouldn't need to use now switch because the first time you run now the local directory will get linked to the ZEIT project. Then when you run now or now dev, it will use that same project settings.

Closing as a duplicate of #3767


Pype 3: Use Poetry

Feature
Switch dependency a virtual environment management to Poetry. This has many advantages:

multiplatform dependency support (even for git repositories)
multiple python versions in virtual env
developer and distribution separated dependencies

Closing #943

This already has #943 merged in and switched to Poetry

Looking very good.
To make this complete we need to add better handling of python 2 environments. But that can be done in a separate PR


Question: are rate limits respected automatically by the library?

Do I need to take care of the rate limits by myself or does the library respect the rate limits by itself and waits automatically when in need to do so?

yes, you have to


Is there a way to make hapi-swagger work with prefix?

I have tried to add an option to my hapi server registration which is
var options = {
  'routes' : {
    'prefix' : '/api'
  }
}

But hapi-swagger does not work failed to get resource. Is there a way to add prefix on hapi-swagger?

I use the documentationPath and endpoint parameters to define a prefix.

Hi Gideon
I have had a look at this issue and for the now I think dhm116 work around is your best option. it would be configured like this:
var swaggerOptions = {
    basePath: 'http://localhost:3000',
    documentationPath: '/v2/documentation',
    endpoint: '/v2/docs'
};

server.register({
    register: require('hapi-swagger'),
    options: swaggerOptions
}, function (err) {
    if (err) {
        server.log(['error'], 'hapi-swagger load error: ' + err)
    }else{
        server.log(['start'], 'hapi-swagger interface loaded')
    }
});

I would like to make use of the prefix, but as the http://hapijs.com/tutorials/plugins page says  - "options object is used by hapi and is not passed to the plugin(s) being loaded" I cannot seem to find a reference to prefix in the info passed the plugin register function. Without it I cannot path all the files correctly.
The end result of using the documentationPath and endpoint properties is the same as prefix. Its changes only the paths of the files severed by the plug-in.
Hope that helps

I spend some more time looking at this issue and final found the property I needed to make it work
So now either the work around will work or if you get v0.7.2 from npm you can use prefix. Please do not try both together, one or the other
Enjoy

Adding prefix has had a very bad side effect (#128) and broke my semantic versioning. So I have removed it in v0.7.3
I known as a breaking change I should have bump the version, but that would have left a lot of other people in a bad place. I hope this does not cause you too much of an issue.
I am looking at the more complex solution for this which will not break other parts of the plug-in

Thanks!

Hi,
I ran into this exact issue. i am trying to add a prefix for the routes and swagger is unable to pick up. with the below proposed work around

var swaggerOptions = {
basePath: 'http://localhost:3000',
documentationPath: '/v2/documentation',
endpoint: '/v2/docs'
};

Only the documentation endpoint is showing with "/V2" , if using prefix in routes for server options, like below ,

var serverOptions = {
    routes: {
        prefix: '/v1.0'
    }
}

swagger UI doesnt show up.  Am i missing something ?

Hi,
I have a pull request for this [https://github.com/glennjones/hapi-swagger/pull/133]. This works for me.

Does this pull request introduce this issue :  https://github.com/glennjones/hapi-swagger/issues/128 ?

@Pavan-Concur nope. This was a different approach.

sounds good. i will wait till PR gets accepted. Thanks very much.

Support added in v0.8.1 - The example below should work:
var Hapi   = require( 'hapi' );
var server = new Hapi.server();

var serverOptions = {
  'routes' : {
    'prefix' : '/api'
  }
};

server.connection( {
  'connection' : {
    'port' : 4000
  }
} );

var plugin = [
  {
    'register' : require( 'my-plugin' )
  },
  {
    'register' : require( 'hapi-swagger' )
  }
];

server.register( plugins, serverOptions, function () {
  server.start()
} );

It looks like this doesn't work any more in 3.0.1, or 3.1.1 (latest). It was still working in 2.2.4.

The below is not working in 7.7.0 either.
Blank swagger ui.

'use strict';
const Path = require('path');
const Hapi = require('hapi');
const HapiSwagger = require('hapi-swagger');

const server = new Hapi.Server();
server.connection({port: 3535,  routes: { cors: true } });

const goodOptions = {
  "reporters": {
    "myConsoleReporter": [
      {
        "module": "good-squeeze",
        "name": "Squeeze",
        "args": [
          {
            "log": ["info","error"],
            "response": "*"
          }
        ]
      },
      {
        "module": "good-console"
      },
      "stdout"
    ],
  }
};
const swaggerOptions = {
    info: {
            'title': 'API',
            'version': '0.0.1',
        },
          debug: true,
    };
let api = [
  {register: require('./search')},
];

server.register({
  register: require('good'),
  options: goodOptions,
});
server.register([
  require('inert'),
  require('vision'),
  {
      'register': HapiSwagger,
      'options': swaggerOptions,
  }
]);
server.register(api,{
  routes: {
        prefix: '/api'
  }},
  err => {
  if(err){
      server.log('error', 'Failed to load api modules' + err)
  }
  server.start( err => {
      if(err){
          server.log('error', 'Failed loading hapi server' + err);
          throw err;
      }
      server.log('info', 'Server started on:' + server.info.uri);
  });
})


all random code should use default_rng

our minimum supported NumPy is 1.23, which has np.random.default_rng(). We should change all instances in our code to use that instead of legacy calls to randn() or RandomState()

Closing as dup of #9233


can't compile go using podman

/kind bug
Description
Trying to use podman to build a container using golang
Describe the results you received:
error building
STEP 4: RUN CGO_ENABLED=0 GOOS=linux go build -v -o helloworld
error running container: error creating new mount namespace for [/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -v -o helloworld]: operation not permitted
Error: error building at STEP "RUN CGO_ENABLED=0 GOOS=linux go build -v -o helloworld": error while running runtime: exit status 1

Describe the results you expected:
Build to work
Steps to reproduce the issue:

Using podman from ubuntu using a container
Created the container using this Dockerfile

FROM ubuntu:16.04

RUN apt-get update -qq \
    && apt-get install -qq -y software-properties-common uidmap \
    && add-apt-repository -y ppa:projectatomic/ppa \
    && apt-get update -qq \
    && apt-get -qq -y install podman \
    && apt-get install -y iptables

# Change default storage driver to vfs
RUN sed -i "s/overlay/vfs/g" /etc/containers/storage.conf

# Add docker.io as a search registry
RUN sed -i '0,/\[\]/s/\[\]/["docker.io"]/' /etc/containers/registries.conf

Create app Dockerfile

FROM golang:1.12
WORKDIR /go/src/github.com/knative/docs/helloworld
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -v -o helloworld

Run podman build with the following Dockerfile

docker run --rm -it -v $PWD:/tmp/app csantanapr/podman "podman" "build" "/tmp/app"
STEP 1: FROM golang:1.12 AS builder
Getting image source signatures
Copying blob 7596bb83081b done
Copying blob fc2529ce2b56 done
Copying blob 372744b62d49 done
Copying blob 494c27a8a6b8 done
Copying blob 6f2f362378c5 done
Copying blob 0658c6765517 done
Copying blob c9a1ca7e4a49 done
Copying config 9fe4cdc1f1 done
Writing manifest to image destination
Storing signatures
STEP 2: WORKDIR /go/src/github.com/knative/docs/helloworld
--> 9fbaa6d130d4aab9275f837b4853692be5bc93df5b509ca109b3a9ee3e948e4f
STEP 3: COPY . .
--> 11675926e9305a710ae333e23f5cfd8efd2cb6d79d39a294a2a3bbda6e328d09
STEP 4: RUN CGO_ENABLED=0 GOOS=linux go build -v -o helloworld
error running container: error creating new mount namespace for [/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -v -o helloworld]: operation not permitted
Error: error building at STEP "RUN CGO_ENABLED=0 GOOS=linux go build -v -o helloworld": error while running runtime: exit status 1

Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
docker run --rm -it -v $PWD:/tmp/app csantanapr/podman "podman" "version"
Version:            1.4.0
RemoteAPI Version:  1
Go Version:         go1.10.4
OS/Arch:            linux/amd64

(paste your output here)
Output of podman info --debug:
docker run --rm -it -v $PWD:/tmp/app csantanapr/podman "podman" "info" "--debug"
debug:
  compiler: gc
  git commit: ""
  go version: go1.10.4
  podman version: 1.4.0
host:
  BuildahVersion: 1.8.3
  Conmon:
    package: 'conmon: /usr/libexec/crio/conmon'
    path: /usr/libexec/crio/conmon
    version: 'conmon version , commit: '
  Distribution:
    distribution: ubuntu
    version: "16.04"
  MemFree:<PHONE_NUMBER>
  MemTotal:<PHONE_NUMBER>
  OCIRuntime:
    package: 'cri-o-runc: /usr/lib/cri-o-runc/sbin/runc'
    path: /usr/lib/cri-o-runc/sbin/runc
    version: 'runc version spec: 1.0.1-dev'
  SwapFree: 992301056
  SwapTotal:<PHONE_NUMBER>
  arch: amd64
  cpus: 4
  hostname: 133ed48a7277
  kernel: 4.9.125-linuxkit
  os: linux
  rootless: false
  uptime: 28h 29m 1.31s (Approximately 1.17 days)
registries:
  blocked: null
  insecure: null
  search:
  - docker.io
store:
  ConfigFile: /etc/containers/storage.conf
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: null
  GraphRoot: /var/lib/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 0
  RunRoot: /var/run/containers/storage
  VolumePath: /var/lib/containers/storage/volumes

(paste your output here)
Additional environment details (AWS, VirtualBox, physical, etc.):
Running on OSX using docker for mac

Is go build attempting to make a fresh mount namespace?
Regardless, bug is in build, tagging the Buildah folks
@nalind @TomSweeneyRedHat PTAL

Thanks @mheon for looking and tagging.
Do you have a Dockerfile sample that would allow to compile a go program?
There might be I need to adjust the Dockerfile to be compatible with podman

Forgot to add the helloword.go file that is trying to compile
https://github.com/knative/docs/blob/master/docs/serving/samples/hello-world/helloworld-go/helloworld.go

@giuseppe could this error be due to not use Fuse?  @csantanapr any objections to using Fedora instead of Ubuntu within your first image?

@tomsweeneyredhat sure I can try Fedora
Do you have Dockerfile that I can try to build and use a container image on Mac?

@csantanapr, still a bit of a WIP, but you can try the Dockerfiles here

@giuseppe could this error be due to using overlay instead of Fuse? @csantanapr any objections to using Fedora instead of Ubuntu within your first image?

from the error message, it seems that it is attempting to create a new namespace.  You need at least to provide "--cap-add SYS_ADMIN" and see if it improves anything.  You would probably also like to --security-opt seccomp=unconfined

can we close this

Reopen if @giuseppe fix did not solve this.


docs: improve user verify words

Wait a bit for @sebbASF's comment. I'm not a native speaker and this is something matters about wording.
The description is copied from https://flink.apache.org/downloads/#verifying-hashes-and-signatures.

@sebbASF I get your point now. Update the sentence following your suggestion.


Remove word-break

undo changes from #46

+1 thanks for your contribution!

Any idea when this will show up in a release? I'm using CDNjs.com in my project. Do you need to bump the release number to trigger a rebuild of the CSS from the LESS?

I was traveling for work this past week and wasn't able to do this right away.  The new release has been cut, and it should be on npm.  CDNjs.com will update based upon the tag, so that should happen automatically here at some point.

Thanks, it looks like it's propagated out to CDNjs.com now.


[BUG] The container fail to start

Keeps on restarting when deployed in Ubuntu running Cap Rover /container to manage containers
To Reproduce
user deploy using latest flowiseai/flowise using captain 3
{
  "schemaVersion": 2,
  "imageName": "flowiseai/flowise"
 }

with these environments variable
PORT=3002
FLOWISE_USERNAME=XXXX
FLOWISE_PASSWORD=XXXX
DEBUG=true
DATABASE_PATH=/root/.flowise
APIKEY_PATH=/root/.flowise
LOG_PATH=/root/.flowise/logs
LOG_LEVEL=error
EXECUTION_MODE=main
Got these restart logs
Flowiseai Server
VERSION
flowise/1.2.16 linux-x64 node-v18.16.1
USAGE
$ flowise [COMMAND]
COMMANDS
start
Flowiseai Server
VERSION
flowise/1.2.16 linux-x64 node-v18.16.1
USAGE
$ flowise [COMMAND]
COMMANDS
start
Flowiseai Server
VERSION
flowise/1.2.16 linux-x64 node-v18.16.1
USAGE
$ flowise [COMMAND]
COMMANDS
start
Flowiseai Server
VERSION
flowise/1.2.16 linux-x64 node-v18.16.1
USAGE
$ flowise [COMMAND]
COMMANDS
start
How it appears in portainer

These are my environment variables
PORT=3002
FLOWISE_USERNAME=enezatech
FLOWISE_PASSWORD=mypassword
DEBUG=true
DATABASE_PATH=/root/.flowise
APIKEY_PATH=/root/.flowise
LOG_PATH=/root/.flowise/logs
LOG_LEVEL=error
EXECUTION_MODE=main

If you use this; are you able to build successfully?

Having exactly the same issue with Caprover. It seems that if the last step (executing "flowise start") is not being executed. I guess, that this it the reason why the docker container exits with 0 every couple of seconds and restarts again and exits etc... Any help here is highly appreciated. @chungyau97 I'm using the environment vars as suggested in the link you provided. It doesnt change anything unfortunately... any other ideas?

Hi @julianschnell,
Could you verify your docker here?


Updates the version file to prep for the 0.1.1-rc2 release

[Current coverage][cc-pull] is 67.95%

Merging [#124][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #124   diff @@
==========================================
  Files             6          6
  Lines           543        543
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            369        369
  Misses          122        122
  Partials         52         52

Powered by Codecov. Last updated by [81dc013...d64649f][cc-compare]
[cc-base-branch]: https://codecov.io/gh/emccode/polly/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/emccode/polly/compare/81dc0130c6b67c5a893b71dc6b118728366deeea...d64649f6e903c89746fbb59c1733d135cb70fe56?src=pr
[cc-pull]: https://codecov.io/gh/emccode/polly/pull/124?src=pr


feat: Allow boolean values in setCustomAttribute

Allow boolean values to be supplied to newrelic.setCustomAttribute() API calls.

Overview
Old versions of the agent allowed boolean values for setCustomAttribute, which did not match our documentation.  An effort was conducted some time ago to align the agent with the docs, and booleans were forcibly denied.  This is causing some migration issues for some customers, and there is no clear reason to exclude booleans from this API.

Related Issue(s)
https://new-relic.atlassian.net/browse/NR-171312

Testing
Tests have been updated to account for the change

Docs Site PR --> https://github.com/newrelic/docs-website/pull/14908/files


PDF viewer for sources

Feature description
We would like to be able to click on the Source Info button on the assistant's answer in the UI and show the list of relevant sources, with a View or Open button on each source. This button can either use Panel's built-in PDF viewer or open the file natively in the browser. Ideally the new pane would scroll to and highlight the exact source content in the file.
Value and/or benefit
No response
Anything else?
No response

We need a way to get the document content to the UI. Thus, I propose three new API endpoints:

GET /documents / GET /documents/{id}: Get all documents or one specific one associated with the current user. This is the same as what we have for chats.
GET /documents/{id}/content: Returns the content of the document.


repoint apt in fixtures to proper upstream

Same as https://github.com/Yelp/sensu_handlers/pull/40

I think this is good to be merged now.

@solarkennedy @bobtfish - ping, any objections?

ship


Message box

Hello, is there any way to build a message box in telegram.bot?

I suppose you want to answer a callback query with bot.AnswerCallbackQueryAsync(callbackQuery.Id, "some text", showAlert: true);

Thank you

i will close this issue then, if you need any further information, feel free to reopen it :)


v2.0

The 2.0 version will arrive now!!

Coverage decreased (-0.5%) to 95.513% when pulling 219c25b5d634ea45a4cf48325b626731b50a28f1 on dev-2.0 into 9bb7078daa943f2ca6cc3046a76d16bc5128814c on master.


Update announcement banner

PR-Codex overview
This PR introduces the Superchain App Accelerator fund announcement in the AnnouncementBanner component.
Detailed summary

Updated text from "1-month free trial on our Growth plan" to "Introducing the Superchain App Accelerator — a $3M fund for Superchain apps. Apply for credits."

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Superseded by #2318


Exclude specified database from specific test

Feature Request
<-- Simply answer the question - What would you like dbachecks to do that it doesn't? -->
Add functionality that a specified database can be excluded from a specified check and not all checks
Currently, have policy.recoverymodel.excludedb
Would it be possible to have an optional parameter/argument added to some checks
Invoke-DbcCheck -Check DuplicateIndex  -excludedb {'msdb'}
Additional information

Hey derek, thanks for the request. we do support -ExcludeDatabase for most checks. Some checks are kinda special, though, which is why we have the additional config option.
Let me know if that does not solve your issue.

Hi
-ExcludeDatabase excludes the database from all checks - I would like to exclude msdb from duplicateindex check as it fails on it but would like to run all other checks against msdb
@sqldbawithabeard asked me to raise an issue - but I think it would be a great feature on many checks?

@derekjohnston - I certainly echo Chrissy's thanks -
msdb is now excluded from the duplicate index check - Are there any other checks that you would like to have that extra functionality to exclude specific databases from specific checks or can we close this issue?


Replace Markdown Parser w/ Markdig & Custom Renderer

Replace the embedded markdown parser & renderer with one based on https://github.com/lunet-io/markdig
Low priority, and mostly to improve our compatibility with most (but not all) Markdown features without resorting to Html rendering.

Ended up using markdig, but in combination w/ Cef Offscreen. #HacksYo #348