[Feature]: Label Images with Run Group

Description
Some visualizations, like bar charts, are labeled with the run group name, but images show the run name instead.  See this example:

We often organize steps of a multiple step pipeline (e.g train, eval1, eval2, eval3) into a single run group representing an "experiment", so this is an important feature for us. We also typically log many images of time series, maps, etc since we are climate scientists ;)
Suggested Solution
Label images the same way as the bar chart is labeled.
Alternatives
Writing a script to make manually make job_name=group name.
Additional Context
No response

Hi @nbren12, thank you for letting us know about this inconsistency between images and charts. I'll create a ticket to let our engineering team know. Once we have any updates on this, I'll send you another message on this thread


APP_DEFAULT_DARK_MODE var

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
How can we set this variable to use dark mode for public user on BookStack via Pikapods?
Exact BookStack Version
24.05.3

Log Content
No response
Hosting Environment
pikapods.com

Hi @MamuMehdi,
I have now idea, I don't use PikaPods. Do they provide access to application files at all?

Unfortunately we don't have. Only through SFTP we can access to pod's data.

Hi
This is the list of files that I have access to

Within the www folder you should find a .env file. This may be hidden by default (you may need to change options in your SFTP browser there to show hidden files).
You can add APP_DEFAULT_DARK_MODE=true to this file (on it's own line, with no extra spaces before).

Thanks for taking the time to help me out, You were absolutely correct🙂

Good to hear! I'll therefore close this off assuming you're connected to @MamuMehdi.
If that's not the case, this can be re-opened if needed.


'map download failed'

in the developer tools section, i was told to go into the console. the error says that the map cannot be downloaded and that it is retrying constantly. Are there any fixes for this?

i am getting the something

hi ,
same problem for me

i figured it out you have to get the google maps java script api and it will work

lol just an error in the API key , sorry


Skin composer freezes when importing image

I don't know how to explain my english isn't good but i try my best
i was importing my image when right clicked on a file my mouse was a blue circle my pc cant handle windows 10 but i still use it. i opened browser when the process was happening and then the menu opened in my screen i tried to go to skin composer when i opened it closed my menu but skin composer didnt opened i tried to close it after some seconds i closed itself

I'm having trouble reproducing this one, especially since it didn't provide an error message. I'm going to guess that Skin Composer required more resources than were available on your video card and quit. There isn't much i can do about this. Feel free to reopen if you can reproduce this in a simple example.


The portrait foregrounds from AMD in Table.3.

Thanks for sharing your awesome work!
I would like to ask whether the portrait foregrounds used in Table 3 are only from the test set of the AMD dataset or are all portrait foregrounds in the training set and test set.
Besides, when will your PPM-100 benchmark  be released?

Hi, thanks for your attention.
For your questions:
Q1: I would like to ask whether the portrait foregrounds used in Table 3 are only from the test set of the AMD dataset or are all portrait foregrounds in the training set and test set.
All portrait foregrounds in the training set and test set.
Q2: When will your PPM-100 benchmark be released?
We plan to release it in these two months. Sorry for the delay due to some reasons.

Hi, thanks for your attention.
For your questions:
Q1: I would like to ask whether the portrait foregrounds used in Table 3 are only from the test set of the AMD dataset or are all portrait foregrounds in the training set and test set.
All portrait foregrounds in the training set and test set.
Q2: When will your PPM-100 benchmark be released?
We plan to release it in these two months. Sorry for the delay due to some reasons.

The bgs are from OpenImage dataset? I use images from COCO dataset (exclude images containing person) as backgrounds. And each foreground corresponds to 10 backgrounds. The mse and mad are 0.02 and 0.03.  Could you give me some suggestions?
**The code:
`
import os
import numpy as np
import scipy
import cv2
from skimage.measure import label
import argparse
from scipy import ndimage, misc
def gauss(x, sigma):
y = np.exp(-x ** 2 / (2 * sigma ** 2)) / (sigma * np.sqrt(2 * np.pi))
return y
def dgauss(x, sigma):
y = -x * gauss(x, sigma) / (sigma ** 2)
return y
def compute_mse(pred, gt):
error_map = (pred-gt)**2
return np.mean(error_map)
def comput_mad(pred, gt):
error_map = np.abs((pred - gt))
return np.mean(error_map)
def gaussgradient(im, sigma):
epsilon = 1e-2
halfsize = np.ceil(sigma * np.sqrt(-2 * np.log(np.sqrt(2 * np.pi) * sigma * epsilon))).astype(np.int32)
size = 2 * halfsize + 1
hx = np.zeros((size, size))
for i in range(0, size):
for j in range(0, size):
u = [i - halfsize, j - halfsize]
hx[i, j] = gauss(u[0], sigma) * dgauss(u[1], sigma)
  hx = hx / np.sqrt(np.sum(np.abs(hx) * np.abs(hx)))
  hy = hx.transpose()

  gx = scipy.ndimage.convolve(im, hx, mode='nearest')
  gy = scipy.ndimage.convolve(im, hy, mode='nearest')

  return gx, gy

def compute_gradient_error(pred, gt):
  pred_x, pred_y = gaussgradient(pred, 1.4)
  gt_x, gt_y = gaussgradient(gt, 1.4)

  pred_amp = np.sqrt(pred_x ** 2 + pred_y ** 2)
  gt_amp = np.sqrt(gt_x ** 2 + gt_y ** 2)

  error_map = (pred_amp - gt_amp) ** 2

  return np.mean(error_map)

def getLargestCC(segmentation):
labels = label(segmentation, connectivity=1)
largestCC = labels == np.argmax(np.bincount(labels.flat))
return largestCC
def compute_connectivity_error(pred, gt, step):
  h, w = pred.shape

  thresh_steps = list(np.arange(0, 1 + step, step))
  l_map = np.ones_like(pred, dtype=np.float) * -1
  for i in range(1, len(thresh_steps)):
      pred_alpha_thresh = (pred >= thresh_steps[i]).astype(np.int)
      gt_alpha_thresh = (gt >= thresh_steps[i]).astype(np.int)

      omega = getLargestCC(pred_alpha_thresh * gt_alpha_thresh).astype(np.int)
      flag = ((l_map == -1) & (omega == 0)).astype(np.int)
      l_map[flag == 1] = thresh_steps[i - 1]

  l_map[l_map == -1] = 1

  pred_d = pred - l_map
  gt_d = gt - l_map
  pred_phi = 1 - pred_d * (pred_d >= 0.15).astype(np.int)
  gt_phi = 1 - gt_d * (gt_d >= 0.15).astype(np.int)
  return np.mean(np.abs(pred_phi - gt_phi))

parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('--pred', type=str, required=True, help='pred path')
parser.add_argument('--gt', type=str, required=True, help='gt path')
args = parser.parse_args()
count = 0
files = os.listdir(args.pred)
mse = 0.0
mad = 0.0
conn = 0.0
grad = 0.0
for file in files:
count = count + 1
gt = cv2.imread(args.gt+file.split('.')[0]+'.png',cv2.IMREAD_GRAYSCALE)
#pred = cv2.imread("../../Human_matting/MODNet/Distinctions_valid/"+file.split('.')[0]+'.png',cv2.IMREAD_GRAYSCALE)
pred = cv2.imread(args.pred+file.split('.')[0]+'.png',cv2.IMREAD_GRAYSCALE)
gt = gt/255.0
pred = pred/255.0
mse += compute_mse(pred, gt)
mad += comput_mad(pred, gt)
print(mse/count)
print(mad/count)`

What is the input resolution during testing?

The demo/image_matting/colab/inference.py will resize the image to around 512 and then upsample the prediction to the original image size and save it. The original image size is about 1000×1000 resolution.

What is the input resolution during testing?

The demo/image_matting/colab/inference.py will resize the image to around 512 and then upsample the prediction to the original image size and save it. The original image size is about 1000×1000 resolution.
Could you provide the AMD test set or the image merge code used in your paper?


Implementing async Project for EventProjection fails

Issue discussed in Discord with @oskardudycz:
EventProjection:
public class ServiceExternal : EventProjection {
    private readonly HttpClient _httpClient;

    public ServiceExternal(IConfiguration configuration) {
        _httpClient = new HttpClient();
        _httpClient.BaseAddress = new Uri(configuration.GetConnectionString("url");
    }

    public async Task Project(Events.SessionRequested e, IDocumentOperations ops) {

        var response = await _httpClient.GetAsync("users?delay=1");
        if (response.IsSuccessStatusCode) {
            var result = await response.Content.ReadAsStringAsync();
            Console.WriteLine(result);
            ops.Events.Append(e.SessionId, new Events.SessionSuccess(e.SessionId, e.UserId));
        }
    }
}

Registered as:
options.Projections.Add(new ServiceExternal(builder.Configuration), ProjectionLifecycle.Async);

Fails with error:
fail: Marten.Events.Daemon.AsyncProjectionHostedService[0]
      Failure while trying to process updates for event range Tenant Group Range for: Event range of 'Identity: API.External.ServiceExternal:All', 1 to 2 for projection shard 'API.External.ServiceExternal
:All'
      Marten.Exceptions.ApplyEventException: Failure to apply event #2 (SessionRequested { SessionId = 3fa85f64-5717-4562-b3fc-2c963f66afa6, UserId = 3fa85f64-5717-4562-b3fc-2c963f66afa6 }.)
       ---> System.NotSupportedException: Specified method is not supported.

Adding my projection code here as discussed with @oskardudycz - a different issue, but wondering if similar cause
Archive.zip

@nmowatt, @jameswoodley, indeed, that's a missing feature for now. We want to deliver that, but it'll require more work than I initially anticipated. For now, you can use the IDocumentListener AfterCommitAsync method. It'll be triggered once the event was commited.

Hey, I finally read through this a bit more. I would strongly recommend the solution to this is not Marten all by itself. Honestly, you need to be using Wolverine or something similar to be publishing a separate command for the call to HttpClient that can succeed/fail/be retried independently of the original transaction.

I'm not saying we should support all messaging scenarios and push people to do that through Marten, but I believe we should support appending events in our projections. Event transformations and pipelines, or storing information about the success/failure of publishing, are a valid scenario for many cases or even must-haves.
I agree that this should not be the core of Marten, and we should encourage people to use Wolverine, but I also believe that we should not do vendor locking here. We should be explicit about limitations and let people decide.

I'm not saying we should support all messaging scenarios and push people to do that through Marten, but I believe we should support appending events in our projections. Event transformations and pipelines, or storing information about the success/failure of publishing, are a valid scenario for many cases or even must-haves. See, e.g. EventStoreDB projections.
I agree that this should not be the core of Marten, and we should encourage people to use Wolverine, but I also believe that we should not do vendor locking here. We should be explicit about limitations and let people decide.

I'm not as convinced that we should be emitting events so much as having a hook for side effects (maybe just part of subscriptions) that's somewhat independent of the event appending. I'd say a little bit stronger that doing things like calling a web service in a projection is probably going to be a hard to maintain architecture.
Let's maybe just talk about this more in terms of a subscription model rather than trying to force fit this into the projection model

What if projections are just a kind of subscription? Then things like first-class support for event transformations could just be abstractions built on that same foundation, or if the abstraction doesn't suit your needs you can drop all the way down to ISubscription or whatever just like IProjection today. There would still need to be guidance for things like calling a web service in a subscription - should probably send an async message in Wolverine instead of doing it right then and there - but conceptually you'd have one model to deal with - it's subscriptions all the way down, but if your use case fits here are some nice abstractions you can use for XYZ.

My take on that is that projection should be able to emit events and subscriptions should be responsible for external integrations.
I understand the current internal complexity, but we don’t need to throw on us accidental complexity. For instance, can initially allow people to append it without giving the option to e.g. apply inline projection when doing that.
I also think that having such a feature can open a lot of doors for: event transformations, pipelines, map-reduce projections, and workflows.

My take on that is that projection should be able to emit events and subscriptions should be responsible for external integrations.

Yeah, I guess my mental model is that a projection is a kind of subscription - the system needs to track the progress of the projection just like a subscription. What EventStoreDB calls "projections" are what I think of as "transformations" - since it's really transforming one event into another event(s) and not updating some form of projected state - document, etc... Anywho... </tangent>.

@mattburton, ESDB projections are not projections in the typical naming; as you said, they are instead transformations.
Logically, projections can be seen as a subset of subscriptions, especially from the ESDB perspective. Still, Marten is a different beast; we may need to optimise differently for the storage updates and forwarding externally. We have the same storage for events and read models, giving more optimisation and handling options. From the resiliency fault tolerance, they may have different needs. So we're still determining how much they will share technically. For now, we perceive that they may differ.

Back to thinking about this for the first time in awhile as it's still outstanding.
My main concern from a mechanical standpoint is concurrency issues by trying to append to a stream that might be getting edited at the same time online. That potentially makes this brittle.
The amelioration I think is to have an alternative event appending process that's:

Optimized for bigger batches, which the current event appending in EventGraph is absolutely optimized for one or few streams at a time
No inline projections will apply to these events
The event capture data mechanics should try to capture the stream version and event sequence as part of a new function generated for this specific operation. That eliminates a lot of the overhead of our current event appending
This is latched for projection rebuilds at least for now

I still personally like the side effect through Wolverine mechanism a lot better, but this has come up enough that it's worth supporting soon.
Regardless, the guidance in the documentation should be to only do this for processes that are absolutely not error prone. I also think as part of a first class subscription model that there should be a "side effect" registration mechanism to queue up extra operations outside of the initial processing. That hook would be there at least for Wolverine subscriptions, but would help for other options maybe.

Tasks & Tests

[ ] Append event given an IEventSlice. Need to be able to use quick append
[ ] If appending event to single stream projection, verify the version is set by calling LoadAsync() later
[ ] If appending event to multi stream projection, verify the version is set to the sequence number by calling LoadAsync() later
[ ] Ability to register outgoing messages and push


NormalMaps (NORMAL) not working on Tilesets

Operating system or device - Godot version:
Linux 64bit Ubuntu 16.04 - Godot 3.0 alpha commit f27d2a3355b8c577fccd961d28dd6085887623c2
Issue description:
When creating the tiles for a tilemap, every Sprite has a "Texture" and a "Normal Map" but the lights ignore them set on the Sprite GUI dropdowns, save teh scene and convert to Tileset
Steps to reproduce:
Create a new scene, create the tiles for a tilemap (Sprites), every Sprite has a "Texture" and a "Normal Map", save the scene and convert to Tileset, now use the tileset on another scene with Light2D.
The Light2D works like only the Texture is set and no Normal Map is set
Even tried creating a shaderMaterial for the tiles and setting NORMAL on the fragment, also is ignored when used as Tileset.

@bojidar-bg @karroffel  , this is not an enhancement, materials and shaders used to work on Tilesets on v2.x, thats why I put the [3.0] on the original title

@rubenjavier I marked it as enhancement because it is similar to #3637. I do understand that it might be seen as a bug as well though.
The fix should be a simple one anyway...

@bojidar-bg  got it, but retain its material like it used to, is way easier and faster to implement (and draw) than all the properties that are asked on the other issue
Thanks


Update ignore-links.txt

2024/05 Mgmt SDK monthly-release ignore links:
https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v3
https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v4
https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices/v2
https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7

/azp run go - internal - ci


Error in Style/MethodCallWithArgsParentheses (with Autocorrect)

When running rubocop --auto-correct with the following settings:
Style/MethodCallWithArgsParentheses:
  Enabled: true

I receive an exception:

undefined method `begin' for #Parser::Source::Map::Constant:0x00007f864827eb80

Expected behavior
I expect Style/MethodCallWithArgsParentheses cop to complete without exception, as per usual.
Actual behavior
I get a Parser error part way through the auto-correct procedure. That is, it fixes some number of issues and then at some point fails with:
 app/uploaders/part_photo_uploader.rb:141:5: C: [Corrected] Style/MethodCallWithArgsParentheses: Use parentheses for method calls with arguments. (https://github.com/bbatsov/ruby-style-guide#method-invocation-parens)
    new_file.content_type.start_with? "application"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 33/1553 files |===>                                                                                |  ETA: 00:01:11
33 files inspected, 92 offenses detected, 92 offenses corrected
undefined method `begin' for #<Parser::Source::Map::Constant:0x00007f864827eb80>
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/ast/node.rb:468:in `parenthesized_call?'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:95:in `args_parenthesized?'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:85:in `args_begin'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:56:in `block in autocorrect'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/corrector.rb:61:in `block (2 levels) in rewrite'
/Users/pauld/.gem/ruby/2.3.7/gems/parser-<IP_ADDRESS>/lib/parser/source/tree_rewriter.rb:220:in `transaction'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/corrector.rb:60:in `block in rewrite'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/corrector.rb:58:in `each'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/corrector.rb:58:in `rewrite'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/team.rb:126:in `autocorrect_all_cops'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/team.rb:70:in `autocorrect'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/team.rb:98:in `block in offenses'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/team.rb:115:in `investigate'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/team.rb:94:in `offenses'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cop/team.rb:44:in `inspect_file'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:265:in `inspect_file'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:212:in `block in do_inspection_loop'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:244:in `block in iterate_until_no_changes'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:237:in `loop'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:237:in `iterate_until_no_changes'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:208:in `do_inspection_loop'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:111:in `block in file_offenses'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:129:in `file_offense_cache'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:109:in `file_offenses'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:100:in `process_file'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:78:in `block in each_inspected_file'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:75:in `each'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:75:in `reduce'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:75:in `each_inspected_file'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:67:in `inspect_files'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/runner.rb:39:in `run'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cli.rb:160:in `execute_runner'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cli.rb:88:in `execute_runners'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/cli.rb:41:in `run'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/bin/rubocop:13:in `block in <top (required)>'
/Users/pauld/.rubies/ruby-2.3.7/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/bin/rubocop:12:in `<top (required)>'
/Users/pauld/.gem/ruby/2.3.7/bin/rubocop:23:in `load'
/Users/pauld/.gem/ruby/2.3.7/bin/rubocop:23:in `<main>'

Steps to reproduce the problem
I'm actually not sure what is causing this, exactly. Each time I run rubocop --auto-correct in my project with Style/MethodCallWithArgsParentheses enabled I see the above exception, though. I don't see the exception if I don't use autocorrection.
Sorry, not sure how I can be more helpful here. Will report back if I find something of use.
RuboCop version
rubocop -V
0.56.0 (using Parser <IP_ADDRESS>, running on ruby 2.3.7 x86_64-darwin17)

@pdobb Could you run RuboCop with -d to pinpoint the file where the error happens, and post a redacted version of the code that causes it?

@Drenmi Thanks, that's a useful flag! It's caused by raise NotImplementedError in any method. For example, this class reproduces the issue:
class MyTestClass
  def my_method
    raise NotImplementedError
  end
end

I also see

undefined method begin' for #<Parser::Source::Map::Variable:0x00007fcf68e263c0> /Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/ast/node.rb:468:in parenthesized_call?'

For e.g. build inside of a loop. For example:
class MyTestClass
  def my_method
    %w[a b].each do |letter|
      Object.new.build letter
    end
  end
end

Thanks @pdobb! I can reproduce both issues on master. Will start working on a fix.

Similar issue with:

undefined method begin' for #<Parser::Source::Map::Operator:0x00007ffa53f32028> /Users/pauld/.gem/ruby/2.3.7/gems/rubocop-0.56.0/lib/rubocop/ast/node.rb:468:in parenthesized_call?'

Given a sleep call:
class MyTestClass
  def my_method
    sleep 1
  end
end

Seems like they are all the same class of issue. I suspect any additional examples will point to the same root cause. 🙂


Validate hostname or IP specifications provided on command line

If an invalid name or IP is specified on the command line, the agent will not output anything after the agent header.  Add a check of the host specification and appropriate error messaging.

Checked in.


[SPARK-22193][SQL] Minor typo fix

What changes were proposed in this pull request?
[SPARK-22193][SQL] Minor typo fix in SortMergeJoinExec. Nothing major, but it bothered me going into.Hence fixing
How was this patch tested?
existing tests

Test build #82432 has started for PR 19422 at commit b66f5bb.

OK, don't bother with a JIRA for items like this

@srowen got it, just the pull you mean, didn't think of it then. thanks

Test build #82432 has finished for PR 19422 at commit b66f5bb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/82432/
Test PASSed.

Merged to master


feat(analysis): possible to create analysis with no asset

What does this pull request change?

Add a new route /analysis/new which renders the same component as /analysis/new/:asset_id
Make asset_id optional in the "New Analysis" component
Removed CRUD.tsx file
Use loginInProgress to stop flickering during login (see App.js:102)
Some other minor cleanup...

Why is this pull request needed?

Should be possible to create an analysis not associated with an asset

Issues related to this change
closes #1377 closes #1371

closes #1371


Unable to replace musl used as GCC as libc by overlay

My goal is to build a package which is linked against a custom version of musl. I'm using this nix expression:
(import <nixpkgs> {
  crossSystem = (import <nixpkgs/lib>).systems.examples.musl64;
  overlays = [(self: super: {
    musl = self.stdenv.mkDerivation {
      name = "musl";
      src = builtins.fetchGit {
        url = "git://git.musl-libc.org/musl/";
        ref = "v1.1.18";
      };
      dontDisableStatic = true;
    };
  })];
}).pkgs

However, when building the "hello" package from this, it still links to the standard musl:
% ldd /nix/store/qs9lyvjdk9cmdimzbxbnkbj0kbrvw61d-hello-2.10-x86_64-unknown-linux-musl/bin/hello
	linux-vdso.so.1 (0x00007ffd0c7e3000)
	libc.so => /nix/store/k23gcrzg18yyspkk9dflrgn6h9j1chbs-musl-1.1.19-x86_64-unknown-linux-musl/lib/libc.so (0x00007f16284bd000)

I'm not sure whether this should work as I expected. If not, please close this issue and give me a pointer what to do instead.
Technical details
 - system: `"x86_64-linux"`
 - host os: `Linux 4.16.9-1-ARCH, Arch Linux, noversion`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0`
 - nixpkgs: `/home/manu/vcs/nixpkgs`

cc @dtzWill

You should try overriding "muslCross" instead.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L9151-L9153
We should be using an override there, I think.

Closing as a dupe of #26004.


webview:  How do I specify a proxy?

I'm trying to collect html requests using fiddler.  My windows is set up to proxy to fiddler but webview seems to be ignoring it.

Never mind.  I see chromium doesn't support it.
https://code.google.com/p/chromium/issues/detail?id=172285

Actually it does work.  On windows I used apm config set https-proxy http://localhost:8888 and then fiddler picked up the traffic.  See the thread about proxies here https://discuss.atom.io/t/is-there-any-proxy-settings/710/28


Pep 8 compliance

I used the built in inspector for pycharm to find most of the pep-8 violations.

Thanks for the contribution, merged into master branch.


Accessibility - Input fields not functioning with Android TalkBack

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When Android TalkBack is enabled and the user selects an input or ion-input, the keyboard will sporadically close and/or ignore user typed letters.
Expected behavior:
When Android TalkBack is enabled and the user selects an input or ion-input, the keyboard input should be tracked in the selected field.
Steps to reproduce:
Enable TalkBack on an Android device and attempt to fill out a form.
Other information:

No issue with Samsung Voice Assistant on input fields
Applies to both input and ion-input
Workaround is having TalkBack focus on another element after selecting the input field, keyboard input is then able to work.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.5.0
Ionic Framework Version: 2.1.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.1
Xcode version: Not installed

Hello, thanks for using Ionic. We will look into this.


create a searchable subfield for commonly swapped characters

original thread here

Dupe of https://github.com/wellcomecollection/platform/issues/5672


fix links to jdk download

PR description
Fix links to Java JDK download.
Fixed Issue(s)

fixes ConsenSys/protocol-misc#277

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Alexandra Tran seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


vrouter logrotate fix

Vrouter is now honoring the filesize, so no need for consolidate for it anymore.

please test this

please test this

build failed, but it was just a clock sync issue on stmonleader


Dinamically set the expiration of token

Hi,
The token expiration is hard coded:
return $this->builder
           ->setIssuedAt($now)
           ->setExpiration($now + (60 * 60))
           ->sign($this->signer, $this->privateKey)
           ->getToken();

If I need to change it, what do you suggest? Wouldn't be nice if I could pass those parameters during
$tokenHandler->createCustomToken($uid, $claims, $mayBeHere); ?

@morfin I just released a new version of the tokens library which enables you to do this https://github.com/kreait/firebase-tokens-php/releases/tag/1.6.0
After updating the dependencies in your project, you will be able to do pass a custom expiration date:
\Firebase\Auth\Token\Generator::createCustomToken($uid, array $claims = [], \DateTimeInterface $expiresAt = null): Token
\Firebase\Auth\Token\Handler::createCustomToken($uid, array $claims = [], \DateTimeInterface $expiresAt = null): Token

:octocat:


Add ability to disable caching secrets

Fixes #512 .
By default, controller-runtime gives you a cache-backed client, which will perform a LIST operation on any API type that you fetch, even if you use a GET request like we do: https://github.com/fluxcd/helm-controller/blob/5a7d0f8535406d155ed7d0634b27574538febed0/controllers/helmrelease_controller.go#L556
So unless you restrict helm-controller to a specific namespace with --watch-all-namespaces=false, then it will attempt to populate its cache by listing all secrets in the cluster, even if it only needs to access a few in specific namespaces. That requires giving helm-controller the ability to read every secret in the cluster.
This PR allows users to avoid that restriction by disabling caching of secrets. Now users can deploy HelmReleases that use valuesFrom without having to grant Flux access to more secrets than necessary.

Overall, I do see the benefits of offering as an option the capability of decreasing the RBAC requirements in which the controller runs under. As discussed here even when impersonation is in place, the controller service account still requires list access at cluster-level.
There are some considerations worth taking around the impact of this. But giving Flux users the option to decide based on their priorities and security vs performance trade-offs, does not seem like a terrible idea.
I am just not sure about the API. Potentially, users may want to disable cache for other objects in the future, so --disable-cache-for may more flexible on that vein.  But, I would be keen on hearing other maintainers take on this.

@pjbgf I was thinking the same thing originally about --disable-cache-for, but then we'd have to parse strings like "core/v1/Secrets" into Kubernetes objects, which didn't seem straightforward to me (although I am a weak golang coder 😅 )
If you know of a helper function that does the job, I'd be happy to include it!

Hello again! Just following up on this. Given the complexity of parsing API types from strings and the lack of a defined use-case for disabling caches for things other than secrets, I think we ought to stick with just --no-cache-secrets

@mac-chaffee after some thought on this and discussions with @darkowlzz, we think that ConfigMaps and Secrets could be tied in together, as this can lower the running memory requirements, on top of the RBAC requirements benefits you are looking for.
This has been done in CAPI a while ago and should work well for us too.
Therefore, can you please:

Bundle both ConfigMaps and Secrets as part of this PR.
Add an opt-out Feature Gate instead of a flag: CacheSecretsAndConfigMaps. Source controller is a good example for feature gates in Flux: https://github.com/fluxcd/source-controller/blob/885c9f2cba44bb8a9130ef839a1dfcf0bead2c94/internal/features/features.go#L35-L37.
Rebase the PR.

Sounds good. To clarify, should CacheSecretsAndConfigMaps be set to true by default? or false?

To clarify, should CacheSecretsAndConfigMaps be set to true by default? or false?

false by default looks good, this will help us understand the impact more quickly whilst also providing a way out for users.
I am running a few tests with this version. Can you confirm the RBAC needs aligns with the expectations (as per linked issue)?

Can you confirm the RBAC needs aligns with the expectations (as per linked issue)?

Yes I ran it locally and was unpleasantly surprised to see it connect to my production cluster, but at least I was able to confirm the RBAC was working with the flag enabled/disabled!

Tested this against my setup, all works as expected. In terms of memory footprint, I don't have many secrets and configmaps in the cluster (~105 objects), but it already makes a dent. At a larger cluster this should be even more substantial:

Cache Enabled
Cache Disabled

Peak
112MiB
66MiB

Valley
43MiB
17MiB

I really like this addition thanks @mac-chaffee. I agree that this should be added to the other controllers behind feature gate.

To sort the issue in the e2e tests, please run make fmt vet. Issue with the fuzz tests is sorted by rebasing.

Oh wait I forgot the docs. Seems we don't have docs for the existing CLI flags, so I can add that too. Thinking the most logical place to put that would be https://github.com/fluxcd/helm-controller/blob/main/docs/spec/README.md instead of the page on helmreleases since spec/README is linked from the top-level README as "controller".

@mac-chaffee we do have flag documentation, but they're maintained in the options.md files in the directories found here: https://github.com/fluxcd/website/tree/main/content/en/flux/components

Is it really fine to have it false by default? This changes the controller behaviour so I would and I wonder what is the impact on a cluster where everything is deployed with Flux.

@mac-chaffee we do have flag documentation, but they're maintained in the options.md files in the directories found here: https://github.com/fluxcd/website/tree/main/content/en/flux/components

Ah thanks. I removed the docs from this PR (we don't want two sources of truth for the cli flags) and will update fluxcd/website later

Is it really fine to have it false by default? This changes the controller behaviour so I would and I wonder what is the impact on a cluster where everything is deployed with Flux.

Think based on the (realistic) assumption that we only need a tiny subset of Secrets in any cluster makes this a fair choice. Helm itself maintains its own (extremely expensive) cache anyway, so in terms of API request overhead this should be negligible.


Add Filipino Localization for the Philippines Holiday Class

The vacanza/holidays package currently supports public holidays for the Philippines, as defined in the holidays/countries/philippines.py file. However, the package lacks Filipino translations for the holiday names.  It seems we should use fil ISO 639-2 code as described here and here.
The holidays l10n documentation section -- https://holidays.readthedocs.io/en/latest/contributing.html#localization
Some l10n PR examples:

https://github.com/vacanza/holidays/pull/946
https://github.com/vacanza/holidays/pull/1341
https://github.com/vacanza/holidays/pull/2060
More PRs w/ l10n label

Personally I would prefer to see fil_PH as the default but en_PH would also work.
@code-leen we'd appreciate your help with this a lot!

@arkid15r I think it might be the best to just default to Tagalog (tl) instead of Filipino (fil) - as that's exactly what the ISO is using here https://www.iso.org/obp/ui/#iso:code:3166:PH

Based on my research Philippines has 2 official languages : Filipino and English. Even though Filipino is Tagalog based language it's different (https://en.wikipedia.org/wiki/Filipino_language)

It is a standardized variety of the native language Tagalog,[3] spoken and written in Metro Manila, the National Capital Region, and in other urban centers of the archipelago.[4] The 1987 Constitution mandates that Filipino be further enriched and developed by the other languages of the Philippines.[5]


Azure service bus send heartbeat to keep connection alive

Is your feature request related to a problem? Please describe.
If I understand correctly if there are no activity for 4 minutes on Azure service bus connection client, connection will die and that what I am hitting. I am trying to complete the message and seeing this exception.

Unexpected error occurred (ValueError('Link already closed.')). Handler shutting down.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/azure/servicebus/aio/_base_handler_async.py", line 260, in _do_retryable_operation
    return await operation(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/azure/servicebus/aio/_servicebus_receiver_async.py", line 522, in _settle_message
    await self._amqp_transport.settle_message_via_receiver_link_async(
  File "/usr/local/lib/python3.10/dist-packages/azure/servicebus/aio/_transport/_pyamqp_transport_async.py", line 320, in settle_message_via_receiver_link_async
    return await handler.settle_messages_async(message._delivery_id, 'accepted')
  File "/usr/local/lib/python3.10/dist-packages/azure/servicebus/_pyamqp/aio/_client_async.py", line 1004, in settle_messages_async
    await self._link.send_disposition(
  File "/usr/local/lib/python3.10/dist-packages/azure/servicebus/_pyamqp/aio/_receiver_async.py", line 129, in send_disposition
    raise ValueError("Link already closed.")
ValueError: Link already closed.

Describe the solution you'd like
I want to set heartbeat to keep the connection live when creating client using from_connection_string()
Describe alternatives you've considered
I am currently recreating client every 3 minutes as work around
If there is already existing solution please let me know

@ShirishGajera thanks for your question, the team will take a look and respond as soon as possible.

@ShirishGajera can you share the code sample giving you this error to help us better understand your scenario?

Even I am facing the same challenge. The python sdk doesn't have proper connection management / pooling feature for service bus. So I built my own asyncio based connection pooling based of a FIFO asyncio.Queue. However, the connection drops due to inactivity for some time, and for n requests, it takes 10 seconds each to refresh the connections, where n is the pool size.


Recommend one-liner if syntax

Not as a general recommendation, but similarly to prefer-value-in-head, I think this would make for a good custom rule allowing teams that want to standardize on this to do so.
Avoid
package policy

import future.keywords.if

allow if {
    is_admin
}

is_admin if {
    "admin" in input.user.roles
}

Prefer
package policy

import future.keywords.if

allow if is_admin

is_admin if "admin" in input.user.roles

Wrote a quick implementation, and some interesting results running this against the Regal bundle directory. This is correctly flagged, of course:
# METADATA
# description: |
#   answers if provided rule is implicitly assigned boolean true, i.e. allow { .. } or not
implicit_boolean_assignment(rule) if {
    # note the missing location attribute here, which is how we distinguish
    # between implicit and explicit assignments
    rule.head.value == {"type": "boolean", "value": true}
}

But it's not entirely clear what remediation would look like 🙃 We can't move the comment up to above the rule, as that collides with the metadata annotation. Might be fixed with an alternative syntax later, but we'll have to allow this syntax too. I'm thinking that perhaps we would do best to not consider rules with comments in the body as violations of this rule 🤔

Another reported violation where we probably should bail out:
with_text(location) := {"location": object.union(location, {"text": input.regal.file.lines[location.row - 1]})} if {
	location.row
} else := {"location": location}

Moving the body to the same line would have it exceed 120 characters. The ideal max line length could have been configured to be even tighter, but we currently don't let one rule depend on another... for this case we might want to do that though, but fall back on 120 if not provided.
Given how complex this turns out to be, I'll opt for simple defaults for a first iteration, where we might skip a few cases, but that's better than falsely reporting positives.


Prevent loss of unsaved data

After a number of other bug fixes, this one item remains. To replicate:

Open a book, make a change
Click away and observe that the save data button is now enabled
Now close that tab or refresh the page

The changes made are now lost.
The app needs a way to determine if there are unsaved changes and to alert the user.
Suggestion: expose an action from the pk cache context that the app can use to check if any data is unsaved.

Prompt: reword and make it look nice
Offer three buttons/actions:

Save: save the data and close the card
Continue closing: close the card without saving (1)
Cancel: return to card

(1) for now the continue closing will not lose the changes since the data is cached in the PK Context Provider.
@larsgson @birchamp

Seeing the Warning Prompt for Unsaved data as below:

But, when you click on Continue, the other open card gets closed.

Open gT, Add Ruth and Add Titus.
Make some edits to Ruth, see that Save button is enabled. DO Not Save yet.
Close the card by clicking X on the card. You ll see the prompt.
Click on Continue. Note that it first closes Titus card.
Again, Close the card by clicking X on the card. You ll see the prompt again
Click again on Continue , Now the Ruth Card closes.
Case II:
Add Ruth card and Add Titus.
Make some edits to Ruth, see that Save button is enabled. DO Not Save yet.
Go to Titus Card, make some edits to Ruth, see that Save button is enabled. DO Not Save.
Click on Ruth card again and make some more changes. Now Close the card without Saving. You ll see the prompt.
Click on Continue. Note that it first closes Titus card and Titus changes are lost.

Actually both popups are there. If you move the top one you'll see the other. But we obviously should only show the one for which the user has clicked to close.
Great catch!

@larsgson here is a video that shows a couple of things that need to be addressed.
Screen recording 2023-03-06 11.37.54 AM.webm

v0.3.0 build cf4f0aa Edits are not lost. If user closes the card without saving, a warning message appears for the respective card. User can choose to Cancel and save or continue without saving. If user reopens the same book card, edits are still present and Save button is enabled indicating that there are changes in the file that needs to be saved.

Tested with v0.9.0-rc.2 build 29a2450 QA. Everything looks good


How to activate Alexa when audio is played locally or via blutooth

Hi,
Just like in Amazon Echo device, when some song or audio is played via bluetooth and if it is queried by saying Alexa, then Amazon Echo paused the audio and response to the query. And then again resume the song.
So how this behaviour can be possible in avs-device-sdk?
I have to play the audio file or song locally and want avs-device-sdk to pause the song when it enters in LISTENING mode by saying Alexa Wakeword and then again resume back the song when it goes to IDLE mode.
avs-device-sdk version  - 1.6
OS - Ubuntu
Thanks,
Sumit

Hi sumit,
Bluetooth is not currently supported in C++ SDK.
Thanks
Priya

Hi Priya,
Just want to know whether avs-device-sdk can pause the music or audio which is played locally or via blutooth when it enters in Listening mode.
Currently, Amazon Echo device is supporting this functionality.
It doesn't matters whether the music is played via bluetooth or played locally.
Thanks,
Sumit

Hi Sumit,
avs-device-sdk supports pause of music played locally either through voice-control (Alexa, Pause), Alexa companion app or during barge-in.
Thanks
Priya

Hi Priya,
Here is the scenario:-
The device is supporting bluetooth. And then using my phone I connect to that device using bluetooth and then play a song.
Alexa application (avs-device-sdk)  is also running as an independent process on the same device. Now when I queried by saying Alexa, it comes in Listening mode and responds to my query but didn't pause the current music which is played locally via bluetooth.
The same scenario is supported by Amazon Echo device.
How this can be achieved in Alexa application (avs-device-sdk)?
Thanks,
Sumit

Hi @sumit3817, thanks for clearly describing the scenario.  This is not currently possible because the bluetooth audio is managed by the device's OS.  In the future when avs-device-sdk supports the Bluetooth interface (https://developer.amazon.com/docs/alexa-voice-service/bluetooth.html), then this support is possible.

Hi @sumit3817,
We have released the Bluetooth interface supporting the SINK use-case. This means that it will support a device (such as a phone) streaming to the AVS enabled device. Instructions on enabling it for Ubuntu can be found here. It can be compiled with the cmake option: -DBLUETOOTH_BLUEZ=ON.
I believe this answers your original question, so I will be closing the issue. However, please feel free to re-open if there are further questions.


[Feature] Add Incidient Tasks Support - RunPlaybook Module

Add incident tasks support to module

@piaudonn what's your opinion of giving an option for a task in the scoring module?  I'm leaning towards thinking it's not necessary, the only use I would think it having a task for the analyst to validate that that playbook ran successfully.


⚠ Jerry Savelle Ministries International Australia has degraded performance

In 3c98895, Jerry Savelle Ministries International Australia (https://jsmiaustralia.org) experienced degraded performance:

HTTP code: 200
Response time: 6999 ms

Resolved: Jerry Savelle Ministries International Australia performance has improved in d676a70 after 5 minutes.


DALY Inverted_current_meassurement not (properly) working

Describe the problem
I did insert the line "Inverted_current_meassurement = -1 " in a config.ini file (after loading the latest build of the driver file) to find that the charging is more or less behaving like before finding out about this parameter and the need to use it.
Funny thing is, that replacing it with (positive) 1 makes no visible difference.

https://github.com/Louisvdw/dbus-serialbattery/assets/35534038/7282e632-2341-4272-994a-ade6cb72eb58
Driver version
1.0.20230531
Venus OS device type
CCGX
Venus OS version
3.10~8
BMS type
Daly Smart BMS
Cell count
16
Connection type
Serial USB adapter to RS485
Config file
[DEFAULT]

; If you want to add custom values/settings, then check the values/settings you want to change in "config.default.ini"
; and insert them below to persist future driver updates.

; Example (remove the semicolon ";" to uncomment and activate the value/setting):
; MAX_BATTERY_CHARGE_CURRENT = 50.0
; MAX_BATTERY_DISCHARGE_CURRENT = 60
INVERT_CURRENT_MEASUREMENT = -1

Relevant log output
no time now

Any other information that may be helpful
no

Did you restart the driver? Invert current works for me.

Lots of times.

Please check the documentation. There was also a link on how to get the logfiles when you opened the issue.

Any update?


Bugfix/compiler warnings tests

Hi,
I have removed some compiler warnings from the tests.

Codecov Report

Merging #528 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #528      +/-   ##
==========================================
- Coverage   69.89%   69.87%   -0.02%
==========================================
  Files          49       49
  Lines        6899     6899
==========================================
- Hits         4822     4821       -1
- Misses       2077     2078       +1

Impacted Files
Coverage Δ

src/client/client.cc
81.29% <0%> (-0.2%)
:arrow_down:

Continue to review full report at Codecov.

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


Huge Security Issue with Examples

I have contacted stripe support regarding a huge security issue I have found in the examples.
Support completely misunderstood me and were no help unfortunately. Should I describe the security issue here or should I write it to someone privately?

Hey @anatolzak if you'd like to send me a DM on twitter @cjav_dev I'd be happy to chat. These examples are meant to just show the code required to build the integration, but should never be used in production with the key management as is.


feature request: i18n

another languages would be great! i'm not that into JS, but if someone prepares the code for i18n, i'd be glad to contribute a german and slovak translation.

+1

@migaspar feel free to add them to https://github.com/systeembeheerder/snappass/tree/i18n

HahhH


chore: add web-related library links to readme to avoid confusion

This change highlights the fact that this library is Node only (not client-side).
Long term fix could be to rename this repository to elevenlabs-node to further avoid confusion.

Agreed


is MarkerSet always required?

Hi! Is a MarkerSet.xml file required even if I have already labeld c3d files for training?

Hello! The algorithm uses a neural network to do the initial label prediction and then does some automatic corrections. The corrections rely on the marker set .xml definition, but you could use just the neural network step without defining a marker set.
The way the code is currently formulated though, it does need the marker set file.
I'll consider updating it so that it could work without the marker set as well.

Hello! The algorithm uses a neural network to do the initial label prediction and then does some automatic corrections. The corrections rely on the marker set .xml definition, but you could use just the neural network step without defining a marker set.
The way the code is currently formulated though, it does need the marker set file.
I'll consider updating it so that it could work without the marker set as well.

Thanks! I ended up making my own OpenSIM custom MarkerSet.xml

Thanks! I ended up making my own OpenSIM custom MarkerSet.xml


Update Utilities submodule and fix compilation with latest build of MRC

Depends on PR https://github.com/nv-morpheus/MRC/pull/511 being completed, merged, and a new conda package uploaded before testing can begin.
Fixes a small issue where MRC updated a function to be private to avoid incorrect usage of it.

/merge


Track result data events

We currently use Umami for tracking page visits to the site. We can also track where users go after they search for a keyword. We can utilize umambi data events for this.
E.g. Theo searches for "adaptor signatures". The search query is tracked by umami. The results should each have a data attribute that stores info about the link associated with the result as well as the search query params that may be appended to it like filters, sources, etc.

@0tuedon what's the status of this?
cc @IgboPharaoh who also has an umami related PR open.

@0tuedon what's the status of this? cc @IgboPharaoh who also has an umami related PR open.

I think this issue was taken off me and i was reassigned something else cc @Extheoisah


Add CLI img2img

This commit fixes broken CLI txt2img and adds basic CLI img2img.

You're right, I apologize for any errors in my code, my coding skills ain't that good.
Will commit the changes ASAP.
Thanks.

@monstruosoft Thanks for your contribution :)


Required field warning not showing

Required field warning is not being displayed in Safari but does appear in Chrome and Firefox. Not able to test any IE browsers.

Sorry but this is not SimpleForm fault. This is the browser validation feature. I recommend you to disable it on simple_form initializer as you can see here.

As I said this pop-up is browser specific, so in some browsers versions it may not work. There nothing that we can do.


BCrypt::Errors::InvalidHash in Devise::RegistrationsController#create

Environment

Ruby [2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux] ]
Rails [5.1.4]
Devise [3.1.7]

Current behavior
Got this error when creating new user for my app.

Expected behavior
I want to create a simple user

@riwaj-shrestha-iw I started getting this.  What was the solution?


Add ability to specify path with from_service_account()

Coverage increased (+0.2%) to 37.232% when pulling 323546496bc7d2efcd9fe899989115cf19b39d06 on cdrage:add-path-specification into 077a405afd366ba6f762b6d7f7e0b60d05c2ef8d on eldarion-gondor:master.


Migration of NotImplementedError in BlockEncoding to abc.abstractmethod.

See #1094.
Some methods in the BlockEncoding interface raise NotImplementedError rather than being proper abstract methods because existing implementers of BlockEncoding do not support them.
When those existing implementers are updated to the new interface, these methods should be changed to abstract methods.

Closed by #1248.


can not find module '../config.js'

module.js:487
throw err;
^
Error: Cannot find module '../config.js'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Pramod\Videos\hotelbook\hotel-booking-master
\controllers\api-yelp.js:4:17)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
how to solve this error

This can be resolved by creating a config.json file in the root directory and add the following json object.

{     "clientId": "123456789",     "clientSecret" : "123456789"   }
then require this file in the api-yelp.js file in controllers folder instead of line number 4 require("../config.js").

{ "clientId": "123456789", "clientSecret" : "123456789" }
then require this file in the api-yelp.js file in controllers folder instead of line number 4 require("../config.js").
it  should work

This can be resolved by creating a config.json file in the root directory and add the following json object.

{     "clientId": "123456789",     "clientSecret" : "123456789"   }
then require this file in the api-yelp.js file in controllers folder instead of line number 4 require("../config.js")
still  i am getting error like ==== cannot find module ..config.js


Annotating with ANNOVAR after SPRINT results in some strandness confusion.

Hello,
I'm new to Bioinformatics, so excuse me in advance for any ambiguities I come up with. I used SPRINT to identify the RES for my RNA-seq samples and after that I used ANNOVAR to annotate the files produced by SPRINT (converted into ANNOVAR compatible format). I noticed though, that for many RES, ANNOVAR provided a different strand to the one SPRINT included in the results. My reads were pair-end. I used BWA 0.7.17 and samtools 1.2 with SPRINT. I guess aditional information is needed, so you can inform me about anything else I should provide you with, in order to solve this issue.
Thank you for your time.

Is your RNA-seq data "strand-specific" data ?

If your answer is "Yes", that means some RNA editing sites may occur on the antisense transcript (please see https://en.wikipedia.org/wiki/Antisense_RNA).
If your answer is "No", please don't believe in the strand annotation of the SPRINT. It just randomly assign "+" or "-".

My RNA-seq data isn't strand-specific. In that case, should I consider only the strand annotation from ANNOVAR (Beacuse of the "random assignment" of SPRINT, should I ignore the strand annotations provided by it ?) As far as ncRNA is concerned, where + and - doesn't really apply, what is the meaning of + and - assigned by SPRINT ? As long as ANNOVAR can't assing + or - to these strands, is there a way to know if, for example, an A to G change in a non coding region is an ADAR one or a miscellaneous editing site ?
Thank you in advance for your precious help and information.

For A-to-I editing sites, the AG mismatch should be in “+” strand, while TC mismatch should be in “-“ strand.
For the A-to-I rate calculation, please see “Tip 5” in the README file.
Best,
Feng

So, since my data isn't strand specific, as long as intergenic and ncRNA regions are concerned, where ANNOVAR doesn't provide strand annotation, I shouldn't use the "+" or "-" provided by SPRINT, right ?

Please see "Tip 5", and think about the question: "how to calculate A-to-I rate".

If you trust the result of SPRINT and think all AG and TC mismatches are A-to-I editing sites, you can directly assign "+" to AG mismatch, and assign "-" to TC mismatch.

If you don't want to directly assign "+" or "-", and want to use the annotation information derived from some database, you can annotate strand without using ANNOVAR:
step1: convert gene annotation file (includes ncRNA, GTF format) into BED format file
step2: use intersect function of BEDTOOLS to annotate each editing site.

Best,
Feng

Thank you so much for your precious information. One last question: since I decided to use the "AG +/-" + "TC +/-" approach for my non strand-specific data, is there current knowledge regarding the FDR (False Discovery Rate) involded with this approach ?

It's hard to define the true positive set, but current studies usually use A-to-G rate to evaluate their methods' performance.
Since SPRINT doesn't only identify A-to-G changes, you can also use A-to-G rate to estimate the FDR (Tip 5).
Best,
Feng

Hi AlexPavlaras,
how you used ANNOVAR to annotate the files produced by SPRINT.?
how you convert the SPRINT output  into ANNOVAR compatible format?


didn't do anything on OSX

$ cargo run -- l6zpi90IT1g
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running target/debug/youtube-downloader l6zpi90IT1g
1- hd720 video/mp4; codecs="avc1.64001F, mp4a.40.2"
2- medium video/webm; codecs="vp8.0, vorbis"
3- medium video/mp4; codecs="avc1.42001E, mp4a.40.2"
4- small video/3gpp; codecs="mp4v.20.3, mp4a.40.2"
5- small video/3gpp; codecs="mp4v.20.3, mp4a.40.2"
Choose quality:
3
Please wait...
Download is starting...
0 / 0  NaN % 0.00/s
no idea why it failed...

Confirmed on my machine. Seems like its related to videos that are monetized. Every video I've tried without pre-roll ads works, but ones with ads do not.

Interesting...
The response I get is:
Response { status: Forbidden, headers: Headers { Last-Modified: Wed, 02 May 2007 10:26:10 GMT
, Content-Type: text/plain
, Content-Length: 0
, Connection: close
, X-Content-Type-Options: nosniff
, Date: Wed, 12 Apr 2017 10:55:27 GMT
, Server: gvs 1.0
, }, version: Http11, url: "https://r19---sn-aigllnll.googlevideo.com/videoplayback?itag=22&gcr=gb&initcwndbps=4580000&mime=video%2Fmp4&upn=GBjAh37Ao3k&mt=1491994408&expire=1492016125&ei=nQfuWJ3bI4bLWb6KtcgB&pl=42&ms=au&source=youtube&mv=m&key=yt6&ip=2001%3A630%3Ad0%3Aed23%3A949d%3Ad35c%3Ac358%3A7ce1&lmt=1472260352191446&dur=5655.475&id=o-AJMFHXSo8p5i_nWLllN9ef0nc42EKnzSBLK0RYa8WUtc&mm=31&mn=sn-aigllnll&requiressl=yes&ipbits=0&sparams=dur%2Cei%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&ratebypass=yes", status_raw: RawStatus(403, "Forbidden"), message: Http11Message { is_proxied: false, method: None, stream: Wrapper { obj: Some(Reading(SizedReader(remaining=0))) } } }

Note Forbidden.

Have you tested with different video id?

I'm using pytube at the moment, it seems to have worked on the same video.

I can confirm this on Raspberry Pi running Raspbian Jessie too


Not able to compile on windows following the instructions - did I miss something?

I have the CUDA_PATH set, but when I do cmake, it doesn't find the CUDA toolset:
c:\Users\petew\source\repos\cuda_nbody\build>echo %CUDA_PATH%
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:563 (message):
No CUDA toolset found.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCUDACompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:15 (project)
-- Configuring incomplete, errors occurred!
Did I miss something, or do the instructions maybe need a minor update?

Which version(s) of Visual Studio do you have installed?
Did you install CUDA before, or after installing Visual Studio?

If you installed CUDA before VS, I'd try reinstalling the CUDA SDK.
PS. see also: https://gitlab.kitware.com/cmake/cmake/-/issues/24183

VS2022
I installed VS2022 first, then CUDA.
I used a Developer command prompt.  I also tried a native tools command prompt, same error
I reinstalled the CUDA sdk and ran again from a developer command prompt and got the same error  (this time I included the full output in case there are other clues)
c:\Users\petew\source\repos\cuda_nbody\build>cmake .. -DCMAKE_BUILD_TYPE=Release
-- Running vcpkg install
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
All requested packages are currently installed.
Total install time: 200 ns
argparse provides CMake targets:
this is heuristically generated, and may not be correct
find_package(argparse CONFIG REQUIRED)
target_link_libraries(main PRIVATE argparse::argparse)
The package glew is compatible with built-in CMake targets:
find_package(GLEW REQUIRED)
target_link_libraries(main PRIVATE GLEW::GLEW)

glfw3 provides CMake targets:
this is heuristically generated, and may not be correct
find_package(glfw3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE glfw)
glfw3 provides pkg-config modules:
A multi-platform library for OpenGL, window and input
glfw3
imgui provides CMake targets:
this is heuristically generated, and may not be correct
find_package(imgui CONFIG REQUIRED)
target_link_libraries(main PRIVATE imgui::imgui)
-- Running vcpkg install - done
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:563 (message):
No CUDA toolset found.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCUDACompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:15 (project)
-- Configuring incomplete, errors occurred!

Sorry for the trouble. Just to double check a few more things:

are you using a x64 (amd64) MSVC command prompt, right?
you're using the makefile generator, not Visual Studio solution generators?
did you install the CUDA Visual Studio Extension part of the CUDA SDK? (this should not be required for makefiles, but it is for the VS solution generators)

If it still doesn't work, please attach the CMakeFiles/CMakeConfigureLog.yaml (from under the build directory)

It's OK, thanks for responding!  NO need to apologize, this is how software development works :-)

I think I am using a x64 command prompt - the prompt I am using is called "Developer Command Prompt" running on my x64 machine.  Not really sure how to check this.  I also tried the "x64 Native Tools Command Prompt", which gets the same error. Here is the banner from the command prompt
** Visual Studio 2022 Developer Command Prompt v17.9.5
** Copyright (c) 2022 Microsoft Corporation

I am making the makefile with cmake as described above.  I have not opened the project in Visual Studio (though I could try that if you think it is a good idea)

I just selected the express config, not sure if that installed the VS extension or not.  I just reinstalled using custom and made sure that the VS extension was turned on.  I still get the same error when running cmake on the command line with the VS extension installed (this is with both teh Developer Command Prompt and the x64 Native Tools Command Prompt

c:\Users\petew\source\repos\cuda_nbody\build>cmake .. -DCMAKE_BUILD_TYPE=Release
-- Running vcpkg install
...
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:563 (message):
No CUDA toolset found.
-- Configuring incomplete, errors occurred!
Below is the contents of CMakeConfigureLog.yaml:

events:
kind: "message-v1"
backtrace:
  - "C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:205 (message)"
  - "CMakeLists.txt:15 (project)"
message: |
  The system is: Windows - 10.0.22631 - AMD64

kind: "message-v1"
backtrace:

"C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
"C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
"C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCCompiler.cmake:123 (CMAKE_DETERMINE_COMPILER_ID)"
"CMakeLists.txt:15 (project)"
message: |
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:

The output was:
0
MSBuild version 17.9.8+b34f75857 for .NET Framework
Build started 7/27/2024 3:11:34 PM.
Project "C:\Users\petew\source\repos\cuda_nbody\build\CMakeFiles\3.29.0-rc3\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "Debug\CompilerIdC.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc143.pdb" /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
CompilerIdC.vcxproj -> C:\Users\petew\source\repos\cuda_nbody\build\CMakeFiles\3.29.0-rc3\CompilerIdC\CompilerIdC.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "C:\Users\petew\source\repos\cuda_nbody\build\CMakeFiles\3.29.0-rc3\CompilerIdC\CompilerIdC.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.92
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"
The C compiler identification is MSVC, found in:
C:/Users/petew/source/repos/cuda_nbody/build/CMakeFiles/3.29.0-rc3/CompilerIdC/CompilerIdC.exe

kind: "message-v1"
backtrace:

"C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
"C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
"C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCXXCompiler.cmake:126 (CMAKE_DETERMINE_COMPILER_ID)"
"CMakeLists.txt:15 (project)"
message: |
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:

The output was:
0
MSBuild version 17.9.8+b34f75857 for .NET Framework
Build started 7/27/2024 3:11:35 PM.
Project "C:\Users\petew\source\repos\cuda_nbody\build\CMakeFiles\3.29.0-rc3\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc143.pdb" /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> C:\Users\petew\source\repos\cuda_nbody\build\CMakeFiles\3.29.0-rc3\CompilerIdCXX\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "C:\Users\petew\source\repos\cuda_nbody\build\CMakeFiles\3.29.0-rc3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.81
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"
The CXX compiler identification is MSVC, found in:
C:/Users/petew/source/repos/cuda_nbody/build/CMakeFiles/3.29.0-rc3/CompilerIdCXX/CompilerIdCXX.exe

...

Hi @petewil0 , the log looks incomplete. Can you please delete everything under the build directory, run the cmake again, then add the log file as an attachment to this thread?

Had to rename the .yaml file to .txt to add it to github, so you may want to rename this back to .yaml
CMakeConfigureLog.txt

(and yes, I deleted everything and did a clean build)

Something doesn't make sense. The attached log has no mention of the CUDA configuration. At very least, it should contain something like:
...
    kind: "message-v1"
    backtrace:
      - "cmake/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:1102 (message)"
      - "cmake/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)"
...

Do you use a modified/custom cmake? If so, please try to install the official cmake too.
You can also also try this minimal example of a CUDA + CMake setup: https://github.com/tlemo/hello_cuda

I have two installations of cmake on my machine.
C:\Program Files\CMake\bin\cmake.exe
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe
When I run cmake --version, the first one (retail cmake) gives me:
cmake version 3.29.0-rc3
When I run on the one from visual studio, I get the following version string:
cmake version 3.28.0-msvc1
If I just run cmake --version from the Developer Command Prompt, I get version 3.29.0-rc3.
So, I think I am running the correct cmake.
hello_cuda is also failing to configure, CMakeConfigureLog.txt added below
CMakeConfigureLog.txt
I did try to compile cmake from source at one point, so I tried uninstalling and reinstalling cmake.
The new version of cmake is: cmake version 3.30.1
After reinstalling, I cleaned the build directory for both hello_cuda and cuda_nbody, and I get what looks like the same error with hello_cuda (nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION))
It also looks like I get the same error with cuda_nbody:
CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineCompilerId.cmake:587 (message):
No CUDA toolset found.

nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)

Ah, there was an incompatibility between CUDA 12.5 and some of the recent VS 2022 updates. If that is the root problem you should be able to resolve this by using CUDA 12.5.1 (or 12.6 which was just released)

Thanks!
Updated Cuda to 12.6 - same failure
Updated VS22 to the very latest - same failure.
Deleted everything in "build" and retried, same failure
Any other ideas?
CMakeConfigureLog.txt

(that was in hello_cuda, by the way, not cuda_nbody)

The latest log attached end with:
    kind: "message-v1"
    backtrace:
      - "C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineCompilerId.cmake:1192 (message)"
      - "C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineCUDACompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)"
      - "CMakeLists.txt:4 (project)"
    message: |
      Checking whether the CUDA compiler is NVIDIA using "" matched "nvcc: NVIDIA \\(R\\) Cuda compiler driver":
      nvcc: NVIDIA (R) Cuda compiler driver
      Copyright (c) 2005-2024 NVIDIA Corporation
      Built on Fri_Jun_14_16:44:19_Pacific_Daylight_Time_2024
      Cuda compilation tools, release 12.6, V12.6.20
      Build cuda_12.6.r12.6/compiler.34431801_0

It appears it located the right nvcc, which errors did you see? Do you still get the nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)?
If you can't build hello_cuda either, with CUDA 12.6 (from a x64/amd64 MSVC command prompt), I'm out of ideas. Something is definitely not quite right, but I don't see any hits from the logs.
If you're willing to do some cmake debugging, you could try adding messages in CMakeDetermineCompilerId.cmake  and figure out where/why exactly it fails.
Also, see this older tread on stackoverflow: https://stackoverflow.com/questions/56636714/cuda-compile-problems-on-windows-cmake-error-no-cuda-toolset-found

Thanks again for getting back to me!
(this is all for hello_cuda)

yes, I was seeing "nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)
I'm not really sure which command prompt to use.  I'm using "Developer Command prompt", and not really sure whether it is set up for 32 or 64 (and I'm not sure how to tell, in fact).  Which command prompt should I be using? (or what arguments to vcvarsall?)  I'm on a x64 machine.
I tried all of the following, not sure which I'm supposed to use
a. Developer Command Prompt - it says [vcvarsall.bat] Environment initialized for: 'x64', but you were saying it was 32 bit...
It gives an error:   nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)
b. x64 native tools command prompt - it says [vcvarsall.bat] Environment initialized for: 'x64' but gives an error:
CMakeFiles\cmTC_04091.dir\main.cu.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
c. x86 native tools command prompt - It says "[vcvarsall.bat] Environment initialized for: 'x86', but give an error
nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)
I wonder why the x86 tools command prompt is getting initialized for x64, that seems odd.
d. x64_x86 Cross Tools Command Prompt: It says   [vcvarsall.bat] Environment initialized for: 'x64' and gets error:
nvcc error : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)
e. x86_x64 Cross Tools Command Prompt:  It says [vcvarsall.bat] Environment initialized for: 'x86_x64' and gets error:
CMakeFiles\cmTC_8953e.dir\main.cu.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'

Looking at the command line output, it seems that there is a recursive call to vcvarsall - in the x86 case, for instance, on the first call it says [vcvarsall.bat] Environment initialized for: 'x86', but later on in the output it says [vcvarsall.bat] Environment initialized for: 'x64'

I don't quite understand your suggestion to "make sure you're using a ninja or nmake generator ".  I did check and both ninja and nmake are installed, is that what you meant, or did you mean something else, like checking to make sure that the cmakefile.txt is properly calling ninja?

Sure, happy to do some cmake debugging, but new to it, so it may take me awhile to get results.

The old stack overflow thread seem to deal with the error in cuda_nbody, but not the error in hello_cuda.  Still, I'll give it a try and see if it fixes cuda_nbody

The NVCC crash is unexpected. Please set the following env variable NVCC_REPORT_ALLERROR=1 and do a clean reconfigure, noting any additional error messages

Regarding the generators, you can specify one of the target build system "generators" from the command line, ex cmake -G Ninja ..

OK, here is a new error after adding NVCC_REPORT_ALLERROR=1 - it looks like there are about 71 errors of type invalid redeclaration of
#$ cudafe++ --ms_c++14 --microsoft_version=1940 --msvc_target_version=1940
--compiler_bindir "C:/Program Files (x86)/Microsoft Visual
Studio/2022/BuildTools/VC/Tools/MSVC/14.40.33807/bin/HostX86/x86/../../../../../../.."
--sdk_dir "C:/Program Files (x86)/Windows Kits/10/" --display_error_number
--orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name
"C:\Users\petew\source\repos\hello_cuda\build\CMakeFiles\3.30.1\CompilerIdCUDA\CMakeCUDACompilerId.cu"
--allow_managed --m64 --parse_templates --gen_c_file_name
"tmp/CMakeCUDACompilerId.cudafe1.cpp" --stub_file_name
"CMakeCUDACompilerId.cudafe1.stub.c" --gen_module_id_file
--module_id_file_name "tmp/CMakeCUDACompilerId.module_id"
"tmp/CMakeCUDACompilerId.cpp4.ii"

C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include\vcruntime.h(192):
error: invalid redeclaration of type name "size_t"
    typedef unsigned int     size_t;

I uninstalled and reinstalled cuda 12.5, 12.6, and VS 2022, reran, and got the same problem of error compiling while seeing previous definitions of things

Ah, yes, I was already using "-G Ninja" when executing the command for hello_cuda: I use this command to build/configure it
"cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release"

I think the next step is on my side to try debugging the cmakefiles as you suggested, it will take me a bit of time to learn how to debug cmake makefiles.

C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include\vcruntime.h(192):
error: invalid redeclaration of type name "size_t"

Is this the only error? Same command that is crashing nvcc? (this error should not lead to a crash, unless there's a new nvcc bug surfacing here)

Ah, yes, I was already using "-G Ninja" when executing the command for hello_cuda: I use this command to build/configure it
"cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release"

You still get the No CUDA toolset found error?

The old stack overflow thread seem to deal with the error in cuda_nbody, but not the error in hello_cuda.

I just noticed this comment: are you getting different errors from cuda_nbody vs the ones from hello_cuda?
My approach for troubleshooting cmake scritps was simply injecting message() tracing (aka printf debugging). But it seems that more civilized cmake-debugging solutions are starting to come up:

https://devblogs.microsoft.com/cppblog/introducing-cmake-debugger-in-vs-code-debug-your-cmake-scripts-using-open-source-cmake-debugger
https://devblogs.microsoft.com/cppblog/cmake-debugger-allows-you-to-debug-your-cmake-scripts-and-more/
https://stackoverflow.com/questions/22803607/how-can-i-debug-cmakelists-txt-files

Hooray, I have some progress!  (however, things are now failing at the "make" step, more details below)  Is there supposed to be a "makefile" in cuda_nbody\build after I run the configure (cmake) step?

Yes, the only error that I am seeing when I build hello_cuda  is the type name redeclaration error, and I am seeing 71 of them before I finally get the crash.
After I uninstalled Visual Studio, VS Command line tools, and CUDA 12.5 and 12.6 and reinstalled, I no longer get the CUDA toolset not found error when compiling cuda_nbody.  The cmake configure step succeeded!  When I tried briefly before cleaning the build directory, it looked like the previously configured cmakefiles were trying to use VS build tools (command line) instead of VS itself, so that may be related to where the problem came from.
Yes, I do get different errors from hello_cuda and cuda_nbody.  hello_cuda is getting the nvcc crash, and cuda_nbody was getting the "no cuda toolset found" (but now it is getting an error trying to find the makefile)
Since I have gotten further than I did before, I can now try the next step for cuda_nbody, which is "make -j24".  However this fails.  I installed make from gnu, and I get an error that "makefile" is not found.  Your instructions don't say that you need to install "make" on windows platforms, it might be good to add that for others who build in the future.
c:\Users\petew\source\repos\cuda_nbody\build>make -j24
make: *** No targets specified and no makefile found.  Stop.

looking in cuda_nbody\build, I don't see a "makefile" - should there be one?

Can you please share the full output (with the 71 errors) & the CMakeConfigureLog.yaml file?

hello_cuda_errors.txt
CMakeConfigureLog.txt
Here you go!

OK, I finally got back to this and got to the next step.
I think the problem was that the CUDA compiler was trying to use some 32 bit tools for a 64 bit build because I had a bad path set somewhere.
It looks like I had a combination of problems - At one point I used a developer command prompt for cross compiling (maybe the one called "Developer Command Prompt for VS 2022"), and that left the build directory in an inconsistent state.
I solved the problems by first deleting the build directory, then opening a different command prompt shell - "x64 Native Tools Command Prompt for VS 2022", and rebuilding. (this should be equivalent to running vsvarsall.bat x64)
With that specific command shell, both hello_cuda and cuda_nbody successfully get past the cmake step.
hello_cuda now builds and runs for me.  (I'll need to install "make" on my windows box to try cuda_nbody).

And I got it to run - one quick update you might want to make to the instructions.  On your github page, you say that to build it we should do:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8 # replace 8 with the number of cores
However, there is no makefile to run the "make -j8" on, at least not on windows.  Instead, I opened the project in visual studio, and I was able to build it from there.  While it didn't run for me, I was able to run by double clicking on the built executable.
So, I think I have everything figured out and working now, closing this issue.

Thanks for the update Pete, I'm glad to hear you figured it out!


missing Migrating Steps from AADPODIDENTITY, Uninstall Process and recommendation on V2

[Enter feedback here]
following the remark :
"The feature described in this document, pod-managed identities (preview), will be replaced with pod-managed identities V2"
it is not clear when V2 will come out , and if users should wait for V2 or upgrade now to V1 and then to V2.
Following the remark  :
"If you have an existing installation of AADPODIDENTITY, you must remove the existing installation. Enabling this feature means that the MIC component isn't needed."
it is not clear what are the steps here :
→ maybe "first uninstall the previous installation with" :
'kubectl apply -f https://raw.githubusercontent.com/Azure/aad-pod-identity/v1.8.1/deploy/infra/deployment-rbac.yaml
`kubectl delete -f ....... '
(but what about users which installed it with HELM ? )
→ what about the role assignments that were given in the previous installation as described here :
https://azure.github.io/aad-pod-identity/docs/getting-started/role-assignment/
→ what about MIC exceptions ? should they be removed as well ?
and the last question that needs to be answered is whether this uninstall process is dangerous ? will it leave the cluster without pod identity for a while ? this might effect the user SLA.
I think a clear guide on the migration process ,its risks and mitigation steps needed here as many users will migrate from the External Open Source Solution  (AADPODIDENTITY →  https://azure.github.io/aad-pod-identity/docs/)
I would even write few sentences about the previous solution , something like
"AADPODIDENTITY was created as an open source project that aims to.......... Now, this capability is native part of AKS ....."

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

ID: c3c187c0-27f1-11c9-41af-6c65ca36e77e
Version Independent ID: 249a570b-90ba-4a11-4467-320f0369ec25
Content: Use Azure Active Directory pod-managed identities in Azure Kubernetes Service (Preview) - Azure Kubernetes Service
Content Source: articles/aks/use-azure-ad-pod-identity.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

Thank you for the feedback!
We have added an item to the backlog and will prioritize accordingly.
#please-close

@aramase did you want to comment on the migration questions above regarding migrating from Upstream PI to Managed PI?


Pressing enter to replace selected text to a newline keeps the selected text and just inserts a newline

Steps to reproduce:

Use non-modal editing mode
Have a file open with some text selected.
Press enter

Expectation: the selected text should be removed, and a newline inserted at its place
Instead, this happens: the selected text stays intaxt and a newline is inserted at the place of the cursor.

Closed by 532b9edb875816c99e4cbad2d6c898fbd56c3708


Sokol imgui errors

sokol_imgui.h:777:33: warning: implicit declaration of function ‘_simgui_is_osx’ [-Wimplicit-function-declaration]
  777 |     io->ConfigMacOSXBehaviors = _simgui_is_osx();
sokol_imgui.h:929:26: error: ‘SAPP_MODIFIER_ALT’ undeclared (first use in this function)
  929 |     io->KeyAlt = (mods & SAPP_MODIFIER_ALT) != 0;
sokol_imgui.h:930:27: error: ‘SAPP_MODIFIER_CTRL’ undeclared (first use in this function)
  930 |     io->KeyCtrl = (mods & SAPP_MODIFIER_CTRL) != 0;

Before I included sokol_imgui.h, I defined SOKOL_IMGUI_NO_SOKOL_APP

Whoops, looks like I forgot to put an #ifndef SOKOL_IMGUI_NO_SOKOL_APP around some new code. Thanks for spotting that (I should add an automated compile test for this too).

Ok, should be fixed in this commit:
https://github.com/floooh/sokol/commit/196aa649f15a7ef05af64fedf5c90f64dc6d2fdd
I also rewrote the imgui-metal sample in sokol-samples to use sokol_imgui.h with SOKOL_IMGUI_NO_SOKOL_APP defined:
https://github.com/floooh/sokol-samples/commit/6e5d16b3df1c1dfb5f68b9d79b2f70a6b3a601bb
This should prevent that the feature regresses in the future because it's compiled during CI.

Thank you @floooh !! :)


i can't use the conference mute

Microsoft PowerToys version
0.56.2
Running as admin

[X] Yes

Area(s) with issue?
Video Conference Mute
Steps to reproduce
https://user-images.githubusercontent.com/89181055/159816951-1a095dc3-0f1c-4062-b5d2-bc6fa2e086f2.mp4
i just can not change the picture!
✔ Expected Behavior
No response
❌ Actual Behavior
i want to change the picture of the camera mute, but when i click the browse button, it happens nothing.
Other Software
No response

/dup #13215


Connections cannot be loaded anymore in owner app

owner tries to load connections, e.g. hints and gets js error (only in Chrome):
Couldn't resolve https://satvm02.researchstudio.at/won/resource/connection/9hrpac07cusrogja1f3l. reason:  {"msg":"Failed to fetch https://satvm02.researchstudio.at/won/resource/connection/9hrpac07cusrogja1f3l","causedBy":"failed to load https://satvm02.researchstudio.at/won/resource/connection/9hrpac07cusrogja1f3l due to reason: \"[object Object]\""}

no problem, were just some http headers defined in my chrome for testing ....


replace storage architecture image and data format images

as titled

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


defaultIndex is not working with 3rd or other than default index

Please look up on this issue.
Only default tab is in active mode. If I want to set other than default may be second or third index with below syntax it did not work
<Tabs
defaultIndex={2}
mode="scrollable"
style={{
backgroundColor: "transparent",
}}
dark={false}
showLeadingSpace={false}
theme={false}
uppercase={false}
>

Hey we have now a TabProvider which should make it easier to change it outside component. You can't change the defaultIndex after first render

Yes we can chnage  the defaultIndex changed to 3rd tab index but after a page load it goes to 3rd tab index then comes to  first tab
Please look into this why this is happening
Below my code snippet: (Tabs are coming dynamically )
<TabsProvider
defaultIndex={2}
// onChangeIndex={handleChangeIndex} optional
>
<Tabs
// defaultIndex={parseInt(2)}
mode="scrollable"
style={{
backgroundColor: "transparent",
}}
dark={false}
showLeadingSpace={false}
theme={false}
uppercase={false}
>
{productCategoryDetails.productCategoryDetailsList
.map((categoryItem, index) => (

<View style={[globalStyles.flex1, globalStyles.mt20]}>
<FlatList
data={categoryItem.product_list}
renderItem={({ item }) => (
// FlatList data goes here...
/>

))}


new lesson: Number Theory Part-C

⭐ Request Type
Add in-depth documentation for the lesson Number Theory Part-C.
you can start your contribution from this file
Lesson Content
The lesson must contain at least these are the topics:

Bitwise + DP
Extended Euclidean algorithm
Modulo Multiplicative Inverse
Linear Diophantine Equations
Matrix Exponentiation
Combinatorics
Mathematical Expectation
Fermat’s Theorem
Wilson's Theorem
Lucas Theorem
Chinese Remainder Theorem
NP-Completeness

💻 Location
location of file is at:
section: 10
lesson: E
order: 10E
filename: num-three.md
❌ Additional Info
You can take the help of other markdown files in the /lesson directory so that you get the idea of in which fashion you should write.
If you don't know how to do markdown, don't worry it is quite easy, just follow this docs-https://guides.github.com/features/mastering-markdown/

Hi, @Utkarsh1504 I would like to contribute to this issue.

@Singhriddhi075 yes I am dividing this issue into two parts by doing the syllabus half and half, because this may be very long for both of you. You can drop a comment there and I will assign you part-2 of this issue.

Yes @Utkarsh1504 this works


Support passing pre-created RabbitMQ instance

In case RabbitMQ plugin is used in combination with a dependency injection mechanism (e. g. Koin), there is a chicken-and-egg problem in case consumer or producer relies on any service only provided via DI.

If RabbitMQ plugin is installed before DI plugin is, then consumer may start processing messages already available in the broker early, and break down because dependency injection for the consumer will fail, as DI plugin was not yet configured;

If RabbitMQ plugin is installed after DI plugin is, it is not possible to inject an instance of RabbitMQ into services that depend on it (e. g. for publishing their output).

This PR makes it possible for DI plugin to instantiate RabbitMQ instance and make it available via DI injection context, and RabbitMQ plugin to reuse that previously instantiated RabbitMQ for plugin registration.

@JUtupe This is currently a blocker for us for using ktor-rabbitmq in production :-/. Happy to discuss alternate approaches if you think this can be done in a less intrusive way, but at the very least this change isn't a semver major, as old way to configure plugin still works without any changes.

Hmm. Can we just create generic "start ktor-rabbitmq event listener", then in configuration we can create publisher that publishes this event instantly? In koin case user can override publisher in configuration and tell it to await  KoinApplicationStarted from https://insert-koin.io/docs/reference/koin-ktor/ktor/#events

@JUtupe Sounds good, I'll give it a shot.

@JUtupe Is it possible to do so without plugin/RabbitMQ separation, though? install method is supposed to return an instance of the plugin synchronously, so we can't rely on event being fired to create one, and if we create it the way we do now, we automatically start everything.

@kibertoad I think that plugin <-> RabbitMQ separation could work, but I don't know which approach would be better. :/

@JUtupe Working on a combined approach, but from user's perspective it is more intrusive, as it is less null-safe, because application.attributes can only be populated with an empty plugin at a startup, and rabbitMqInstance will only be set on it after (and if) an event fires, so it is up to user to do a null check if they want to consume it. And since events require generic, RabbitMQConfiguration begins to require one too. So this approach will end up being a semver major. Happy to finish it in a separate branch if you want to compare both and see which one you like better.

@JUtupe Having spent some more time on this, I still believe that current PR as it is is the best approach. Temporary nullability of rabbitMQInstance when using asynchronous approach is significantly complicating everything and not really worth it.
Could you please take a second look at the PR and see if it works for you?

No problem @kibertoad

Done https://jitpack.io/#JUtupe/ktor-rabbitmq/v0.3.0 @kibertoad


Support for Telegram topic

In the November 2022 update, Telegram has introduced topics for groups.
If the Scryfall bot is used in a topic, the response with the preview of the card is sent in the general topic.
It would be nice if the bot would be able to reply in the topic chat, as you would naturally expect to happen.

Hey, thanks for reporting this!
I hadn't used topics yet, so never noticed this weird behavior.
Judging from Telegram's documentation, this is as simple as passing on the message_thread_id through when replying. Sounds easy enough, I'll try to fix it this weekend 👍

Thank you very much!
It will help a lot in large Telegram groups using topics to discuss different sets or categories of cards!
Really appreaciated!

This is now live on the Beta Bot for testing (https://t.me/ScryfallBetaBot), but seems to work fine at first glance 👍
If all goes well, I'll push it to the main bot later today.

Just tried that and it seems to be working fine!
Thank you so much for the quick fix.
Have an amazing weekend.

Closing the issue!

This should be live on the main bot now 🚀
Thanks for the kind words, hope you enjoy your weekend too!