Devise throwing strange exception when under heavy load

So this is a very strange issue.  Currently, I'm trying to load test our app in anticipation of heavy traffic next week, and it seems that Devise could be the culprit of our failing load tests... or it could be a red herring.
For all intents and purposes, our setup should be able to handle in excess of 500 requests a second, yet any attempt to reproduce over 20 requests a second results in this strange error below.  The odd thing is, it only seems to happen on certain routes of our site.  If I run the test on one of our more database intensive pages, the error below is thrown.  If I run the same test on a less intensive page (for example, our health check URL which does a simple request to our database and displays the result) this error is not generated.  To contrast, on the more page that makes more requests to the database, I can barely get 20 requests per second through to the server before Puma starts logging this error, while when hitting the health check URL, I can get 200+ requests per second with no issue from Rails or Puma.
The other odd thing is this - the actions I'm hitting both live in the same controller, and both call the same initializations methods on application_controller before being run.  set_raven_context is the first before_action method called in application_controller, so I would assume the test on the healthcheck URL would produce the same result - this does not seem to be the case.
Error during failsafe response: Devise could not find the `Warden::Proxy` instance on your request environment.
Make sure that your application is loading Devise and Warden as expected and that the `Warden::Manager` middleware is present in your middleware stack.
If you are seeing this on one of your tests, ensure that your tests are either executing the Rails middleware stack or that your tests are using the `Devise::Test::ControllerHelpers` module to inject the `request.env['warden']` object for you.
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/devise-4.2.0/lib/devise/controllers/helpers.rb:141:in `warden'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/devise-4.2.0/lib/devise/controllers/helpers.rb:124:in `current_user'
  /var/app/current/app/controllers/application_controller.rb:62:in `current_user'
  /var/app/current/app/controllers/application_controller.rb:70:in `user_signed_in?'
  /var/app/current/app/controllers/application_controller.rb:120:in `set_raven_context'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:432:in `block in make_lambda'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:164:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:164:in `block in halting'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:504:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:504:in `block in call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:504:in `each'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:504:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:81:in `run_callbacks'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/abstract_controller/callbacks.rb:19:in `process_action'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_controller/metal/rescue.rb:29:in `process_action'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:164:in `block in instrument'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:164:in `instrument'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/abstract_controller/base.rb:137:in `process'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionview-<IP_ADDRESS>/lib/action_view/rendering.rb:30:in `process'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/rack-mini-profiler-0.10.1/lib/mini_profiler/profiling_methods.rb:76:in `block in profile_method'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_controller/metal.rb:196:in `dispatch'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_controller/metal.rb:237:in `block in action'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/routing/route_set.rb:74:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/routing/route_set.rb:43:in `serve'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/journey/router.rb:43:in `block in serve'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/journey/router.rb:30:in `each'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/journey/router.rb:30:in `serve'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/routing/route_set.rb:817:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/middleware/show_exceptions.rb:47:in `render_exception'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/middleware/show_exceptions.rb:35:in `rescue in call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/railties-<IP_ADDRESS>/lib/rails/rack/logger.rb:38:in `call_app'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/railties-<IP_ADDRESS>/lib/rails/rack/logger.rb:20:in `block in call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/tagged_logging.rb:68:in `block in tagged'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/tagged_logging.rb:26:in `tagged'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/tagged_logging.rb:68:in `tagged'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/railties-<IP_ADDRESS>/lib/rails/rack/logger.rb:20:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-<IP_ADDRESS>/lib/action_dispatch/middleware/request_id.rb:21:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/sentry-raven-1.2.3/lib/raven/integrations/rack.rb:50:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/rack-mini-profiler-0.10.1/lib/mini_profiler/profiler.rb:171:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:518:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:165:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/rack-reverse-proxy-0.11.0/lib/rack_reverse_proxy/roundtrip.rb:19:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/rack-reverse-proxy-0.11.0/lib/rack_reverse_proxy/middleware.rb:25:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/newrelic_rpm-<IP_ADDRESS>5/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/puma-2.14.0/lib/puma/configuration.rb:78:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/puma-2.14.0/lib/puma/server.rb:541:in `handle_request'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/puma-2.14.0/lib/puma/server.rb:388:in `process_client'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/puma-2.14.0/lib/puma/server.rb:270:in `block in run'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/puma-2.14.0/lib/puma/thread_pool.rb:106:in `call'
  /opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/puma-2.14.0/lib/puma/thread_pool.rb:106:in `block in spawn_thread'

@siraris have u injected `request.env['warden'] in ur tests

@ethirajsrinivasan This is not while running tests, this is in production.

@siraris.  Yes I can understand that it happens in production.. but can you replicate it  in some way or the other in ur local machine?

@ethirajsrinivasan The only way I can replicate it is if I use something like apache benchmark against my local machine.

@Siraris @ethirajsrinivasan The offending lines are:
  /var/app/current/app/controllers/application_controller.rb:62:in `current_user'
  /var/app/current/app/controllers/application_controller.rb:70:in `user_signed_in?'
  /var/app/current/app/controllers/application_controller.rb:120:in `set_raven_context'

The app is using config.exceptions_app = self.routes and the exceptions app is inheriting from ApplicationController, which means it needs to skip_callback :set_raven_context and anything else that might look for session info.
I'd recommend not inheriting from ActionController:Base at all for an exceptions app.
For comparison, the default in Rails (railties/lib/rails/application/default_middleware_stack.rb ) is
   def show_exceptions_app
          config.exceptions_app || ActionDispatch::PublicExceptions.new(Rails.public_path)

i.e. PublicExceptions which just has a call method.
See https://github.com/rails/rails/blob/5-0-stable/actionpack/lib/action_controller/base.rb#L183-L191 for help on making your own minimal exceptions controller that doesn't get all the ActiveSupport.on_load(:action_controller) mixin effects

Hi,
Could you solve it ?, I have the same problem, when deploying the application in development environment everything works perfect, but when I try to deploy the application in production environment I get this error and I do not know why ... Any ideas?

@ccamargov Just to update, you need to solve it by making your exception application not inherit from ActionController. That means it needs to take env and return a Rack middleware shape:
[StatusCode, Headers, Body | Array<Body>]`

where those types are defined as:
KeyType = string
StatusCode = number
Headers = {
  [key: KeyType]: string | number
}
Body = string

tl;dr: Your "exception application" (aka middleware) has too much knowledge, which includes devise stuff. Delete that thing and make a function that returns the above shape.

I'm closing this since it looks like it is not a devise problem.

Just for the sake of this kind of debugging,
When you are using production Environment, is helpful to display (temporarily) Rails errors  (instead of public/500.html or custom app page).
In your environment (on this case config/environment/production.rb) change
config.consider_all_requests_local  = true

Absolutely do not do this.


Last line of multiline strings in debug console not shown

To Reproduce
Steps to reproduce the behavior:

Start a debug session and open the debug console
Type "one\ntwo\nthree" and press enter
Observe the echoed output is'one
two

Log File

VS Code Version:
Version: 1.63.0-insider
Commit: d450b04c783dfa6f83dc439017767acccd4e9fac
Date: 2021-11-17T07:45:14.150Z (2 days ago)
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 21.1.0
Node used in debug session: 16.13.0.

Line height is 0 (auto)

Terminal-specific stuff:

Sure enough, when I build VS Code from source, this doesn’t repro 😮
It still does repro in Insiders with all my extensions disabled. Is there a way to launch a VS Code window with all default settings?

It also doesn’t repro in my installation of VS Code stable, which I pretty much never use!! I even turned on Settings Sync and replaced the local settings with what was in the cloud. I can’t figure out what the difference is.

The debug console has its own font/line height settings.
You can start code-insiders with --user-data-dir /tmp/codedata --extensions-dir /tmp/codeext or just temporarily copy your settings into another file and clear out settings.json. Might help to share the original heights of the .monaco-list-rows and .monaco-list-row elements too

This was the culprit.

I don’t recall why I disabled it, but that’s still a bug, right?

I can repro it now, thanks!

Crap, this is not quite right

It was fixed for an OutputEvent but still off by a line for an evaluation result

What's the best way to verify this?

"debug.console.wordWrap": false
Debug JS, enter "one\ntwo\nthree" and console.log("one\ntwo\nthree") in the debug console, make sure that all messages are sized correctly. You could check some other cases too.


Fix. Add the Octaveh5 from the test_octaveh5 in the try section to av…

Fix bug of h5py import from unittests.

Looks fine


/duplicate #1

/duplicate #1
Originally posted by @licaon-kter in https://github.com/urbandroid-team/dontkillmy-app/issues/2#issuecomment-664362813

/close this


As a SounderSIPS users, i want to request subset transformations through a Unity DAPA endpoint

Need to determine if this will be done in FY22, since we are starting with DAPA interfaces to SDAP Time Series.  If we do proceed, this would entail wrapping the BCDP WPS-T interface with a layer that speaks DAPA.  That new layer would set up the inputs for a BCDDP job and make a call to the WPS-T "execute" endpoint.


Update Dockerfile to use poetry groups

Current Behaviour

You have to manually remove unused packages from the pyproject.toml file for deployment files.
Redundant steps in Dockerfile.
Default docker image is not using slim version.
Docker container is being run as root.
Poetry version is not being pinned for Docker images.

Solution

Use poetry's dependency groups to optionally include/exclude dependencies.
Using multi-stage builds and slim image versions to reduce Docker image size.
Not running as root.
Pinned poetry version

@ShalaevPavel can i have a reapproval? resolved conflicts from main branch


Selecting segmentation labels and saving result to external variable

📚 Documentation
I saw a demo at Bioimage Informatics where specific labeled objects were selected. I can't remember the exact sequence to make this happen. I think this is a useful feature that would be good to have an example in the demo repository to show selecting a subset of the labeled objects, and then exporting those object IDs for use in analysis

Can you expand a little more on what you mean by select the labels / export IDs - say in the below image what would you like to achieve:

you can use the "picker" tool such that when you click on a pixel it sets the selected labels to be those values
or you can go into the console and type viewer.layers['segmentation'].data to get a numpy array of the ids of each pixel (note how we used the name of the layer segmentation).
You can read more about the labels layer here - http://napari.org/tutorials/labels.html

The use case I have in mind is that I want to get the IDs corresponding to all of the coins in the bottom row. I draw a region around all of the coins in the bottom row (or any other subset of the images), and this gets saved as a grouping of IDs that is exportable to Python

I get it - to do this now you’d have to add a shapes layer so you could draw such a rectangle or polygon and then right a custom callback that would give you the indices inside when you finished drawing. I can mock this up as an example, but it won’t be super clean. We can then think about how to make it nicer.
Actually can you clarify one thing - do you want to draw that region using a paintbrush on another labels layer, or is a rectangle ok, or a polygon ok? Those last two are probably a bit easier from my perspective, but curious what you want

I think there are two possible implementations: one would be a paintbrush
where any objected touched is included in the groping. The other would be a
freehand ROI/shape creator where anything inside the bounding box created
would be included.
I think the most useful would be a lass-like freehand shape functionality,
where everything contained within the resulting shape is included.
 I can mock
this up as an example, but it won’t be super clean. We can then think about
how to make it nicer.
Actually can you clarify one thing - do you want to draw that region using
a paintbrush on another labels layer, or is a rectangle ok, or a polygon
ok? Those last two are probably a bit easier from my perspective, but
curious what you want
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/napari/napari/issues/582?email_source=notifications&email_token=ADJB47J2UTWYVC3CO4KCXGDQONNB5A5CNFSM4JAECCF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBC3QBQ#issuecomment-541440006,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADJB47KDZFWZFEI2MXUP7NTQONNB5ANCNFSM4JAECCFQ
.

Ok makes sense, both our doable - I can put together examples for both. As I said above it won't look pretty at first, but we can then think about how to improve

Awesome, thanks so much!
On Sun, Oct 13, 2019 at 9:08 PM Nicholas Sofroniew<EMAIL_ADDRESS>wrote:

Ok makes sense, both our doable - I can put together examples for both. As
I said above it won't look pretty at first, but we can then think about how
to improve
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/napari/napari/issues/582?email_source=notifications&email_token=ADJB47KTQZ64TMUURQ2437DQOPWERA5CNFSM4JAECCF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBDJNRY#issuecomment-541497031,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADJB47OE6WXCSO7E2T4A6PTQOPWERANCNFSM4JAECCFQ
.

Just wanted to follow up on this. I noticed Mantis-Viewer has a nice
example of how this functionality would look:
https://mantis.parkerici.org/populations/
On Mon, Oct 14, 2019 at 6:26 PM Noah Greenwald<EMAIL_ADDRESS>wrote:

Awesome, thanks so much!
On Sun, Oct 13, 2019 at 9:08 PM Nicholas Sofroniew <
<EMAIL_ADDRESS>wrote:

Ok makes sense, both our doable - I can put together examples for both.
As I said above it won't look pretty at first, but we can then think about
how to improve
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/napari/napari/issues/582?email_source=notifications&email_token=ADJB47KTQZ64TMUURQ2437DQOPWERA5CNFSM4JAECCF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBDJNRY#issuecomment-541497031,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADJB47OE6WXCSO7E2T4A6PTQOPWERANCNFSM4JAECCFQ
.

@ngreenwald so sorry I havn't ended up getting to this yet - what you're looking for isn't too dissimilar from this demo: https://github.com/napari/napari/pull/675#issuecomment-553672258 where someone is dragging a Line across the image and plotting the profile of the image along the line. If you want to give any of this a go yourself I can try and help you through it

Sure thing. I haven't ever worked with vispy or qt before, only scientific
stack in python. Any getting started resources you'd recommend?
On Fri, Dec 6, 2019 at 12:51 PM Nicholas Sofroniew<EMAIL_ADDRESS>wrote:

@ngreenwald https://github.com/ngreenwald so sorry I havn't ended up
getting to this yet - what you're looking for isn't too dissimilar from
this demo: #675 (comment)
https://github.com/napari/napari/pull/675#issuecomment-553672258 where
someone is dragging a Line across the image and plotting the profile of
the image along the line. If you want to give any of this a go yourself I
can try and help you through it
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/napari/napari/issues/582?email_source=notifications&email_token=ADJB47LLLMUPOUWW7YCUPRDQXK3OVA5CNFSM4JAECCF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGFJ6TI#issuecomment-562732877,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADJB47OEU3NB6HBJHIIUANTQXK3OVANCNFSM4JAECCFQ
.

@ngreenwald when I was starting out I mostly just dug around the Qt and vispy docs and googled a lot. Sorry that's not so helpful, and maybe someone else can weigh in if they know good resources. It might also be a good idea to add links to those resources to our contributing guide for others to see too.
I think though for now from an "alpha" testing standpoint I can get you going with some pretty crude napari code so you won't have to play around with the Qt and vispy stuff.
Also after thinking more about this issue I realized there is some nice refactoring we can probably do to make this stuff much much cleaner and I've opened #772 to discuss it. I'm not sure exactly the timeline around #772 and how others will feel about it, but I think I have at least some idea of what a path forward could be.
For now though here's a gif just leveraging what napari already has using a bounding box to print the unique label Id's inside the box:

You should be able to reproduce this with the following:
import numpy as np
from skimage import data
from scipy import ndimage as ndi
import napari

with napari.gui_qt():
    blobs = data.binary_blobs(length=128, volume_fraction=0.1, n_dim=2)
    labeled = ndi.label(blobs)[0]
    viewer = napari.view_labels(labeled, name='blob IDs')
    selection_layer = viewer.add_shapes([[[0, 0], [128, 128]]],
        shape_type='rectangle',
        face_color=[1, 1, 1, 0], edge_color=[0, 0.6, 1, 1],
        edge_width=1, name='selection box')

    @viewer.mouse_drag_callbacks.append
    def get_unique_labels(viewer, event):
        yield

        # on move
        while event.type == 'mouse_move':
            labels_layer = viewer.layers[0]
            shapes_layer = viewer.layers[1]
            coords = np.round(shapes_layer.data[0]).astype(int)
            top_left = np.min(coords, axis=0)
            bottom_right = np.max(coords, axis=0)
            top_left = np.max([top_left, [0, 0]], axis=0)
            bottom_right = np.min([bottom_right, labels_layer.data.shape], axis=0)
            cutout = labels_layer.data[top_left[0]:bottom_right[0], top_left[1]:bottom_right[1]]
            print(np.unique(cutout))
            yield

Note this code is super brittle and trivial changes (like to the orders of the layers) will cause it to break. A lot of assumptions have also been hard coded into it, so I'd consider it very experimental, but it should run.
The major thing about it that I don't like is the we need to add this "fake" shapes layer to get the bounding box (because that's where our bounding box rendering code is right now). The goal of the #772 refactor for anyone following along there (@kne42 @kevinyamauchi @jni) would be to enable people to use things like bounding boxes without having to have "fake" layers like this.
Maybe @ngreenwald you want to try extending this example into something that is useful to you and maybe then post a gif / code / link to a gist back in here to keep the discussion going. That functionality may end up being so specific that it will be in a plugin, but still useful to see what it will look like at this point in time. Hope this helps!


Improve dap-mode extension to use Camel debug adapter in Emacs

https://emacs-lsp.github.io/dap-mode/page/adding-debug-server/
note that in our case for dap-register-debug-provider, the parameter :dap-server-path must be used (and not :debugPort and :host)
A good example to get inspiration from is the Java debugger https://github.com/emacs-lsp/lsp-java/blob/master/dap-java.el
Given that Came debugger supports only attach mode for now. Seems the most important part is https://github.com/emacs-lsp/lsp-java/blob/a1aff851bcf4f397f2a968557d213db1fede0c8a/dap-java.el#L196
and update the readme in this repository to provide information to use it

 :dap-server-path '("java" "-jar" "/home/npr/Downloads/camel-dap-server-0.4.0.jar"). But I still have some difficulties attaching camel-dap-server. I'm planning to look at the dap logs to understand what is going wrong here. Please if you have any suggestions let me know.


refactor(gnome-extensions): Support for automatic install of latest G…

…nome extensions
Also adds support for uninstalling extensions.
Extension name is used as a format for module recipe input.
Extension ID format is inconsistent in results, hence the reason why it's not implemented, as noted here:
https://github.com/blue-build/modules/issues/237#issuecomment-2132398386
Legacy config is still compatible, but it is advised to migrate to latest config. Users are warned about this in logs.
I find this pretty much ready, except I think about something down below.
Latest Gnome extension version, that is compatible with Gnome version of the image, is installed by default.
Legacy config format can be used to have support for extension version override, but I want to depreciate legacy config format in the future.
So Idk If I should add this feature as an option in new config format. It can be useful in case of some extension regressions.

The remaining ShellCheck warning is harmless

The remaining ShellCheck warning is harmless

Yes, but do you really need to use =~ there?

Yes, but do you really need to use =~ there?

Yes, it's needed, because metadata.json can contain multiple compatible Gnome versions,
like now, where most extensions have 45 & 46 in shell-version array).
== wouldn't work in this scenario.


Update _config.yml

Closes #
📑 Description

✅ Checks

[ ] My pull request adheres to the code style of this project
[ ] My code requires changes to the documentation
[ ] I have updated the documentation as required
[ ] All the tests have passed

☢ Does this introduce a breaking change?

[ ] Yes
[ ] No

ℹ Additional Information

Summary by Sourcery
Build:

Change the Jekyll theme from 'dinky' to 'cayman' in the _config.yml file.

Description by Korbit AI
What change is being made?
Change the theme of the Jekyll site from "jekyll-theme-dinky" to "jekyll-theme-cayman".
Why are these changes being made?
To update the visual style of the site with the "cayman" theme, which offers a more suitable design for the content being presented, enhancing user experience without altering the site's functional aspects.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Summary by CodeRabbit

New Features

Updated the website theme to a new design for improved aesthetics and user experience.

@gstraccini create labels


pkg/trace/{agent,config,filters}:create validator struct for filtering by required tags

Accidentally closed the initial PR.
Add new validTags method to validate root trace's spans by adding configurable RequiredTags and RejectedTags.
Fixes #7050

I'll close this since we now have #7338


Fix: Default configuration files

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


Document the .dockerignore file

Release Playbook

[ ] Rebase against master
[ ] Code review
[ ] Merge into master
[ ] Verify changes at http://site-staging.convox.com
[ ] Promote release on site-production in the convox/production Rack

Based on what I remember from the last time I looked, I believe the way we handle .dockerignore is a bit unusual in that we recursively check directories (or maybe check in each COPY or ADD directory). If the parent dir isn't added/copied, we ignore that .dockerignore file.


Missing "rgw dns name" in ceph/demo

Hi,
default config created by ceph/demo does not include "rgw dns name", which causes radosgw to return signature error when using S3 interface. AFAICT there is no easy way to inject this variable into generated config (other than mounting external volume, which is not my use case).
Any chance of having this set from env variable? Would you accept pull request for this?

Absolutely :)


Closing the extension window being debugged didn't stop debugging

Testing #121763
Repro:

Open extension sample in insiders codespace/Safari (I used https://github.com/microsoft/vscode-extension-samples/tree/main/terminal-sample)
npm ci
F5
Press continue to open the new window
Close the window, debugging doesn't stop

This actually works just fine for me when I run locally via resources/server/web.sh
And when I run codespaces now with insiders I get a weird error so I can not try this with codespaces.
However assigning to @connor4312 since it sounds like the js-debug extension does not detect a tab going down in codespaces scenario. Or maybe the codespace workspace provider does not emit a correct event?

I tried this out -- I ended up with duplicate ext host tabs but I also noticed that when I closed the windows, the extension hosts were not being torn down: https://memes.peet.io/img/aaeec40a-9cc4-4108-b712-9af0b3f6f988.mp4. So it looks like the problem is not in js-debug.

@bpasero how does codespaces notify VS Code that the window goes down? Is it though some web api?

@isidorn there is no API for it, we install a listener for the unload event:
https://github.com/microsoft/vscode/blob/ec972e8acc0f1f3853ec54994a69bafacf6fc844/src/vs/workbench/services/lifecycle/browser/lifecycleService.ts#L30-L30
Anything happening in that event needs to execute sync though, there is no support for long running ops.

Dup of https://github.com/microsoft/vscode/issues/124128


Spike: Unified async abstractions for streaming and batch

Demonstrate viability of Jonathan's async approach for supporting both streaming and batch CAR Mirror use cases.

Experimental branch at https://github.com/fission-codes/go-car-mirror/pull/42.

This is complete.


Crash in verifier method when using preconditionIsolated

How frequently does the bug occur?
Always
Description
I am encountering a crash when using the latest version of Realm and attempting to fetch objects from DB. This issue arises specifically both on iOS 16 and iOS 17. I'm using Xcode15-beta.
The crash occurs within the verifier method, which is associated with the preconditionIsolated call.
@available(macOS 10.15, tvOS 13.0, iOS 13.0, watchOS 6.0, *)
internal extension Actor {
    func verifier() -> (@Sendable () -> Void) {
#if swift(>=5.9)
        // When possible use the official API for actor checking
        if #available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *) {
            return {
                self.preconditionIsolated()
            }
        }
#endif

Please take a look at this issue and let me know if any addition things are needed for this!
Stacktrace & log output
RealmSwift/Realm.swift:1469: Precondition failed: Incorrect actor executor assumption; Expected 'UnownedSerialExecutor(executor: (Opaque Value))' executor.

Can you reproduce the bug?
Always
Reproduction Steps
To provide some context, I have implemented a RealmManager and used a custom actor. Below is an example of the code structure:
A custom Actor for Realm:
/// A custom global actor for Realm
@globalActor actor RealmActor: GlobalActor {
    static var shared = RealmActor()
}

Below code creates realm instance with the custom actor.
final class RealmManager {
    static let shared = RealmManager()

    private let realmApp: RealmSwift.App
    private(set) var user: RealmSwift.User?
    private var realm: Realm?

    private init() {
        realmApp = RealmSwift.App(id: ConfigManager.shared.appId)
        user = realmApp.currentUser
    }

    func login() async throws {
        do {
            user = try await realmApp.login(credentials: .anonymous)
        } catch {
            user = nil
            throw RealmManagerError.signInFailed
        }
    }

    func openSyncedRealm() async throws {
        guard let user else {
            throw RealmManagerError.invalidUser
        }

        do {
            var config = user.flexibleSyncConfiguration(initialSubscriptions: { subs in
                subs.append(QuerySubscription<Tag>(name: "tags"))
            })
            config.objectTypes = [Tag.self]
            realm = try await Realm(configuration: config, actor: RealmActor.shared, downloadBeforeOpen: .always)
        } catch {
            throw RealmManagerError.openRealmFailed
        }
    }
}

extension RealmManager {
    /// Read an object by its primary key
    @RealmActor
    func object<T: Object, KeyType>(_ type: T.Type, key: KeyType) -> T? {
        realm?.object(ofType: type, forPrimaryKey: key)
    }

    @RealmActor
    func objects<T: Object>(_ type: T.Type) -> Results<T>? {
        realm?.objects(type)
    }
}

I called the objects method to fetch the Tag data from DB in main thread (@MainActor)
private func testRealm() async {
      do {
          try await RealmManager.shared.openSyncedRealm()
          var tags = await RealmManager.shared.objects(Tag.self)
          print("A tag=", tags?.count)
      } catch {
          print("RealmError=\(error)")
      }

  }

Version
10.41.0
What Atlas Services are you using?
Atlas Device Sync
Are you using encryption?
No
Platform OS and version(s)
iOS 16, 17
Build environment
Xcode version: 15.0 beta 8 (15A5229m)
Dependency manager and version: SPM

You need to mark openSyncedRealm and testRealm as @RealmActor. An actor-isolated Realm can only be used from within functions isolated to that actor.

@tgoyne Thanks for checking this issue.
Yeah, in case of marking the testRealm as @ReamlActor works.
But I don't think that is needed because it needs to access the result objects from @RealmActor within @MainActor.
Any thoughts?

If you need to read values in a @MainActor function then you need to open a Realm isolated to the main actor.


Proposal: Retire the legacy ES5.1 build profile

JerryScript is a full ES5.1 compliant JavaScript engine since its first release (JerryScript 1.0 in 2016). JavaScript language is continuously evolving: the first popular version (5.1) was released in 2011 and new releases have been rolled out every year since 2015. JavaScript engines are evolving too, JerryScript finished implementing ES2015 features in 2020 and then the project has been retargeted (#3737) to ES.Next (always to the latest ECMAScript specification). Now 83.6% of the Official Conformance Test Suite (Test262) pass - which contains tests for Stage 4 and Stage 3 features too (features will be released in the next or any future specification).
Since there are many incompatible changes between ECMAScript versions, furthermore the ES5.1 specification is more than 10 years old, we would like to drop its support. A pull request is already prepared for this cleanup: #4915. If there are no reasonable objections within two weeks, we would like to drop it.

I have no objections, but I'd like to suggest that put a tag on the last stable commit which contains the ES5.1 build profile. So if someone needs it in the future then they can find it and rollback to it easily.

No es5.1 related development happened since the 2.4 release so it's a suitable tag for this purpose.

Already merged in 4924f9fd315e9281a89d0621f278f3a6c1c7efd2


add contributing guidelines

Description
Adding CONTRIBUTING.md. Read it over and lmk what you think!

I can't tell you how much I needed this!

Always nice to provide more guidelines for those hoping to contribute to the project!


Application crashed after installed this lib

ENV:
MacOs m1 on iPhone 14 simulator

@abdugaffor-abdurahimov Can you share more details(Exception stack trace ) please?


Phantom errors on AzureResourceManagerTemplateDeployment@3

Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: AzureResourceManagerTemplateDeployment@3
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment

Server - Azure Pipelines or TFS on-premises?

If using TFS on-premises, provide the version:

If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

vavacars / Solution / pipelineId=71 / #TR-DEV-DEV-19

Agent - Hosted or Private:

If using Hosted agent, provide agent queue name: Agent: Azure Pipelines 2

If using private agent, provide the OS of the machine running the agent and the agent version:

Issue Description
Phantom errors are generated
Here you can see many errors
[Include task name(s), screenshots and any other relevant details]

But in reality when you navigate to logs there is no errors

Task logs
logs_1259.zip
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
[Insert error from the logs here for a quick overview]

Same issue: https://developercommunity.visualstudio.com/content/problem/1224035/no-message-found-for-this-issue-error-in-azure-dev.html

As 'Andre 365' said in the forum, the cause of the error looks that 'MissingSubscription' is reported as an error, but it isn't translated. This error occurs at GET request to this URL in GetServicePrincipal method.

URL: 'https://management.azure.com//servicePrincipals?$filter=appId%20eq%20''. (both  and  are obtained from service connection setting.) The line is here.
Source: https://github.com/microsoft/azure-pipelines-tasks/blob/6e24f3b285397073443f29db64e654e578f885db/common-npm-packages/azure-arm-rest-v2/azure-graph.ts#L51

We can see this error when we access this URL from browser directly.

If this error can be ignored, to stop reporting it as an error can be a resolution.  Or, if this URL isn't valid to get service principal's information, URL should be changed.

Yes @rikat-ms you are right this is happening because GetServicePrincipal is failing due to wrong endpoint. We are working on the fix on high priority.

Sample problem here, the ARM deployment happens fine, no errors detected.

hi @stas-sultanov / @RobertoBorges , we have merged and deployed. Please let us know, if you are still seeing this issue

Closing this thread as issue  is fixed. Feel free to open a new ticket if you see this error again

Closing as issue  is fixed and deployed


#87 constants.js added.

I have added constants.js and replace all hardcode value with constant defined.

Addresses: #87

Summary by CodeRabbit

Refactor

Improved code readability and consistency in BreadcrumbNavigation and HierarchySwitcher components.
Enhanced error handling in breadcrumb navigation interactions.

New Features

Integrated defaultRegion constant to standardize the initial state across navigation-related components.

Style

Standardized code formatting and import statement styles in multiple components for better alignment with project code style guidelines.

Documentation

No visible changes to end-user documentation.

@coderabbitai review

The changes related to the introduction of the defaultRegions constant look fine.
Nevertheless, avoid unnecessary code reformatting, please.

Thanks! @OhmSpectator , I will take care of it>

The changes related to the introduction of the defaultRegions constant look fine.
Nevertheless, avoid unnecessary code reformatting, please.

Thanks! @OhmSpectator , I will take care of it.


feat: default security HTTP headers for assets in node starter project

Description
Closes https://dfinity.atlassian.net/browse/SDK-473
Closes https://dfinity.atlassian.net/browse/PSEC-710
How Has This Been Tested?
Checklist:

[x] The title of this PR complies with Conventional Commits.
[ ] I have edited the CHANGELOG accordingly.
[ ] I have made corresponding changes to the documentation.

@robin-kunzler @eduard-dfinity here is a little script so you can test things on your end.
git clone https://github.com/dfinity/sdk sdk_sec_headers
cd sdk_sec_headers
git checkout SDK-473-default-security-headers
cargo run -- new sec_headers
cd sec_headers/
cargo run --manifest-path ../Cargo.toml -- start --clean --background
cargo run --manifest-path ../Cargo.toml -- deploy
FE_CAN_ID=$(cargo run --manifest-path=../Cargo.toml -- canister id sec_headers_frontend)
open "http://<IP_ADDRESS>:8000/?canisterId=${FE_CAN_ID}"
curl --head "http://<IP_ADDRESS>:8000/index.js?canisterId=${FE_CAN_ID}"
curl --head "http://<IP_ADDRESS>:8000/main.css?canisterId=${FE_CAN_ID}"

Output
The headers are loaded as expected, and to my untrained eye, everything seems to work as expected also in the browser.
HTTP/1.1 200 OK
content-type: application/javascript
ic-certificate: ic-certificate: certificate=:.....:, tree=:....:
content-security-policy: default-src 'self';script-src 'self' 'unsafe-eval';connect-src 'self' https://ic0.app https://*.ic0.app;img-src 'self' data:;style-src * 'unsafe-inline';style-src-elem * 'unsafe-inline';font-src *;object-src 'none';base-uri 'self';frame-ancestors 'none';form-action 'self';upgrade-insecure-requests;
x-content-type-options: nosniff
x-frame-options: DENY
referrer-policy: same-origin
strict-transport-security: max-age=31536000; includeSubDomains
x-xss-protection: 1; mode=block
permissions-policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), speaker-selection=(), conversion-measurement=(), focus-without-user-activation=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), sync-script=(), trust-token-redemption=(), window-placement=(), vertical-scroll=()
etag: "................"
content-length: 628071
date: Mon, 08 Aug 2022 11:21:12 GMT

HTTP/1.1 200 OK
content-type: text/css
ic-certificate: certificate=:.....:, tree=:....:
content-security-policy: default-src 'self';script-src 'self' 'unsafe-eval';connect-src 'self' https://ic0.app https://*.ic0.app;img-src 'self' data:;style-src * 'unsafe-inline';style-src-elem * 'unsafe-inline';font-src *;object-src 'none';base-uri 'self';frame-ancestors 'none';form-action 'self';upgrade-insecure-requests;
referrer-policy: same-origin
x-xss-protection: 1; mode=block
x-frame-options: DENY
x-content-type-options: nosniff
permissions-policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), speaker-selection=(), conversion-measurement=(), focus-without-user-activation=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), sync-script=(), trust-token-redemption=(), window-placement=(), vertical-scroll=()
strict-transport-security: max-age=31536000; includeSubDomains
etag: "................"
content-length: 537
date: Mon, 08 Aug 2022 11:21:12 GMT

Hey @smallstepman sorry for the late reply. I've reviewed the PR, everything looks good to me: headers are correct and I haven't seen any CSP violation or other errors in the browser.
btw, it would be nice to have a FOLLOW ticket for the http security headers comments so we can track its progress, would you mind creating it in your side?

blocked by https://github.com/dfinity/sdk/pull/2489

@ericswanson-dfinity please suggest a better PR name

secure configuration for assets in default frontend canister starter project
?

@ericswanson-dfinity please suggest a better PR name

secure configuration for assets in default frontend canister starter project

?
(I'll modify the changelog header too)

What you put in the changelog looks good

default secure configuration for assets when creating a new frontend project
or
default secure configuration for assets in frontend project template

I like the second one better

ready for re-review @ericswanson-dfinity


reverting back to consistent treatment of mirror when port is defined

fixed this in 227 branch, thank you for the fix Troy

fixed this in 227 branch, thank you for the fix Troy


Update netron to 1.1.4

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Fork has been deleted, unable to edit.
Closing in favour of https://github.com/caskroom/homebrew-cask/pull/42130


Fixed: mountpoints containing spaces were truncated (Linux/Darwin)

/Volumes/ReactExplorer 2.3.1 would be listed as /Volumes/ReactExplorer instead.

Just saw there was already a PR for that: why hasn't it been merged?

seriously i have no idea, i would like to do so much on this node but idk if the owner is still managing it.
I am lurking about making a fork and publishing it on npm ...


Document the setup and usage instructions for the monitoring tool.

User Story

#41

I need more explanation

sir i want to take this ticket

Sir i really don't get it.
How am i to document on the setup and usage instructions when i don't know the tools they used is the codes?.
Am i to get feedback from the other members?.

Yes @Tekum-Emmanuella, you should discuss with the others to write a better documentation.


Cannot creating relation between entities that have different folders

I recently used the ORM Cycle to make my task easier. But when I create 2 entities that have relationships in different folders, I get an error. The error says that
"Cannot complete the target` relations`.`city` relation (not found or invalid) "

But when I put all the entities in one folder, I didn't get any errors.
This is my Venue entity code in the App\Domain\Venue\Entities folder :
<?php

namespace App\Domain\Venue\Entities;

use Cycle\Annotated\Annotation\Column;
use Cycle\Annotated\Annotation\Entity;
use Cycle\Annotated\Annotation\Table;
use Cycle\Annotated\Annotation\Relation\BelongsTo;
use Cycle\Annotated\Annotation\Relation\HasMany;
use Cycle\Annotated\Annotation\Table\Index;
use App\Domain\Region\Entities\City;

/**
 * @Entity(table = "venue", database = "main")
 * @Table(
 *      indexes = {
 *          @Index(columns = {"name"}),
 *          @Index(columns = {"published"}),
 *          @Index(columns = {"latitude"}),
 *          @Index(columns = {"longitude"}),
 *      }
 * )
 */
class Venue {
    /** @Column(type = "primary", name = "ID") */
    protected $id;

    //....

    /**
     * @HasMany(target = "VenueImage", innerKey = "id", outerKey = "venueId")
     */
    protected $images;

    /**
     * @BelongsTo(target = "City", innerKey = "cityId", outerKey = "id")
     */
    protected $city;

    //....
}

This is my City entity code in the App\Domain\Region\Entities folder :
<?php

namespace App\Domain\Region\Entities;

use Cycle\Annotated\Annotation\Column;
use Cycle\Annotated\Annotation\Entity;
use Cycle\Annotated\Annotation\Table;
use Cycle\Annotated\Annotation\Relation\BelongsTo;
use Cycle\Annotated\Annotation\Table\Index;

/**
 * @Entity(table = "city", database = "region")
 * @Table(
 *      indexes = {
 *          @Index(columns = {"name"}, unique = true),
 *          @Index(columns = {"governingDistrictID"})
 *      }
 * )
 */
class City {
    /** @Column(type = "primary", name = "ID") */
    protected $id;

    //...
}

Hi, can you show me the code which triggers an error. Are you trying to persist or select entity? Is main and region two separate physical databases?

Also, you entities are in different namespaces. Please use full class name or specify role in Entity annotation and use it for refences.

     * @BelongsTo(target = "App\Domain\Region\Entities\City", innerKey = "cityId", outerKey = "id")
     */

Hi, @wolfy-j Thank you very much for your response. It works...

You can also do:
@Entity(table = "city", database = "region", role="city")

And then you can refer this entity using the role instead of class name:
@BelongsTo(target = "city", innerKey = "cityId", outerKey = "id")
 */


White background in "new message" window

Does anyone else have this problem? When I write a new email, lines with text in them in the message body have a white background instead of the usual dark one.
Thunderbird 60.3.3 (32 bit)
Windows 7 x64

Thanks for the report, I'm seeing the same now as well and will look into it.

I found the cause to be the first bit of code in about_pages.css, i'm not sure what exactly that's for but it's a normal white background without it. Also I've done some work for the new Thunderbird 64 options menu, as I'm using the beta at the moment. If you want to see what I've done, it's in my "beta" branch and the changes within the two patch_windows.css files, as that might save you some time when it's released.
Changes are:
userChrome.css

Windows: Fixed minor padding issue in Search window
Windows: Dark scrollbar for Windows Aero theme only

userContent.css

Windows: Removed dark background from Write window
Compatible with Thunderbird 64 Options menu [Tested on Windows only]

Thanks @loopy750!
I've made the page background white for composition.  It's not ideal, but probably better than messing with people's composition area.
I'll look at your changes as well!

Looks like I'll have to review my beta changes. Thunderbird 65 beta has changed everything, so much of it no longer works. A good thing though is they've worked a lot on the dark theme, so technically ShadowBird might no longer be needed when it's released, unless people want to use it for the dark theme "extras". Either way, it's good to see them working on it.

I got the same problem, the thunderbirth version is 60.6.1 - Any advice about how to fix it? Thanks!

I'm getting the same error on Debian unstable, Thunderbird version 60.8.0.


Modified readme to mention telemetry is enabled by default #1924

Changes proposed in this pull request

Updated the README
Context

This fixes issue #1924
Added the README to explicitly mention telemetry is enabled by default.
Checklist

[ ] Related issues linked using fixes #number
[ ] Tests added/updated
[x] Documentation added
[ ] Make sure that all checks pass
[ ] Postman collection updated

@JoblersTune @beniaminmunteanu do we need to wait for some of your changes before we merge this?

@sabineschaller I think we need to wait a little more in case there are any further changes we realise we need to make.
For one, I still want to convert all the payment amounts to an asset scale of two before sending them to Prometheus so that we can display aggregate and average values more effectively in the dashboard. We are keeping currency info but I don't think there's much value in keeping asset scale info for the dashboard.

Thanks so much for your interest and contribution @Cioraz
I should have been a little more clear in the issue description. I'll update the comment in the issue now. We're still working on enabling the telemetry so we're holding off on the docs until that process is complete. Then we'd like to add information into the README regarding exactly which metrics are being collected and also how to fully enable / disable telemetry. We just don't have the full picture yet.
My apologies for not writing out all of the details.
Please check out issues marked with the good first issue label if you're looking for any other points to contribute and reach out if you have any questions :)


Cannot upload file

While in Submission form drag&drop a file on form and "Upload Failed" appears on screen.
In developer tools network tab you can see an error response to workspace save request :
{timestamp: "2021-02-15T22:09:04.642+0000", status: 403, error: "Forbidden",…} error: "Forbidden" message: "Access is denied. Invalid CSRF token." path: "/server/api/submission/workspaceitems/3508" status: 403 timestamp: "2021-02-15T22:09:04.642+0000"

My mistake...after further investigation, it seems this is a bug in dspace-angular.  Moving this ticket back.


Using custom nuget version script hangs while restoring packages

I'm using the custom nuget version script as described here:
http://devcenter.bitrise.io/docs/nuget-restore-with-custom-nuget-version
I set the nuget version to 3.3.0.
It always hangs on MvvmCross.DownloadCache, I did however try with another branch and another set of packages and I experienced the same issue (one of the packages would get stuck).
Downloading packages for this project takes about 24 seconds on my computer.
Restoring NuGet package Acr.UserDialogs.4.2.1.
Restoring NuGet package akavache.4.1.2.
Restoring NuGet package akavache.core.4.1.2.
Restoring NuGet package akavache.sqlite<IP_ADDRESS>.
Restoring NuGet package Cheesebaron.MvxPlugins.Sms.1.2.2.
Restoring NuGet package Microsoft.Bcl.1.1.10.
Restoring NuGet package Microsoft.Bcl.Async.1.0.168.
Restoring NuGet package Microsoft.Bcl.Build.1.0.21.
Restoring NuGet package Microsoft.Net.Http.2.2.29.
Restoring NuGet package modernhttpclient.2.4.2.
Restoring NuGet package MvvmCross.4.0.0.
Restoring NuGet package MvvmCross.Binding.4.0.0.
Restoring NuGet package MvvmCross.Core.4.0.0.
Restoring NuGet package MvvmCross.Platform.4.0.0.
Restoring NuGet package MvvmCross.Plugin.Color.4.0.0.
Restoring NuGet package MvvmCross.Plugin.DownloadCache.4.0.0.

Hi @modplug!
The time difference between the build machines and your machine is because of the cached packages.
Can you please invite our support user to the app and we will take a look:
username: xamarin-support

Hi @birmacher.
Thanks for the fast reply! I've added xamarin-support to the app.
What kind of role should I set for the xamarin-support user?

I run a test and it seems the NuGet hangs for some reason.
I'll close this ticket because it's unrelated to the repository and I'll follow up a bit later when I found out more about the issue.


chore: remove legacy code of recreating azure HNS network when node restarts

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
It is legacy code because XXXXXX (TODO)
Which issue(s) this PR fixes:

Fixes #
Requirements:

[x] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.39%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2292

Relevant Lines:
2887

💛  - Coveralls

LGTM

cc @sbangari


Y24-431 - [BUG] Plate location report fails to show labware retention instructions

The plate location report is failing to show the retention instructions even though it is set in the manifest and these are present in the labware view page
e.g. SQPP-61178-N

RT Ticket Number
RT812071
Additional context
Run plate location reports from here

Was a typo in the metadata name used in the labware report, using retention_instructions when should be retention_instruction (no s)

@andrewsparkes see https://github.com/sanger/sequencescape/issues/4095 - legacy data should have been migrated already. What are you seeing - do you think some were missed?

The bug here was because the data was in the Labware field only (which is correct) but the location report code was ONLY looking for the value in the custom metadata. So not aware of a data issue.
A check needs to be made that everything in code that was expecting the value in custom metadata has been changed to look in labware. Maybe this was the only instance.


Add high-level layers

Missing so far:

[x] conv_transpose
[x] transpose
[x] reshape (convenience to ignore batch dimensions)
[x] pad (convenience to ignore batch dimensions)
[x] concatenate
[x] add
[x] subtract
[x] multiply

Other layers tracked in #1.

Closed with e47bb61042a2e63b08abb9b3697d6a5c0f860e13


Wrong *.json file encoding

Hi!
I want to use Russian alphabet, such as:
@Api(value = "/accounts", description = "Описание на русском языке")
public interface AccountsBotService {
...
    @ApiOperation(
            value = "Что-то еще на русском языке", ...)
... }

But as the result I get 2 files: *.html - with correct encoding (correct alphabet) and *.json with uncorrect encoding (wrong alphabet). And these 2 files in UTF-8.
How can I fix this issue?

<configuration>
      <encoding>${project.build.sourceEncoding}</encoding>
       ...
</configuration>


Update dropdowns in issue templates to have no option selected by default

Description
Update required dropdowns in issue templates to have no option selected by default.
This change updates the bug and feature templates to set the first option as empty. This prevents form submission until an option is selected.
This wasn't all that intuitive, see https://github.com/orgs/community/discussions/61648, but workaround here is to set the first option to empty.
See my fork to test this behavior out - https://github.com/mch2/OpenSearch/issues/new/choose The form cannot be submit until a value is selected.
Related Issues
N/A
Check List

[ ] ~New functionality includes testing.~

[ ] ~All tests pass~

[ ] ~New functionality has been documented.~

[ ] ~New functionality has javadoc added~

[x] ~Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)~
[x] Commits are signed per the DCO using --signoff
[ ] ~Commit changes are listed out in CHANGELOG.md file (See: Changelog)~
[ ] ~Public documentation issue/PR created~

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

❌ Gradle check result for adf0d6e: FAILURE
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

https://github.com/opensearch-project/OpenSearch/issues/1703

LGTM


File filter on explorer

Add an input text field into the explorer panel used to filter the list of files show in this panel ( using regular expression for the selection)
It s very usefull when we have a lot of file directory into the workspace
this feature exist in visual studio in the solution explorer panel

Seems largely like a duplicate of https://github.com/Microsoft/vscode/issues/9373 which is a duplicate of https://github.com/Microsoft/vscode/issues/10026


When to update react-native version?

what are the scenarios that require to update react native version? will it break implemented library?

@waleedarshad-vf that is a question you need to answer yourself.
keeping it up to date would be a good option..
Breaking changes are noted in the release-notes..

@stoffern i tried update with 0.33.0 and code just break. facebook login issue began to appear. and what about those library which don't have support with latest version of RN. we will be stuck in our development.

@waleedarshad-vf please give more details.

what version did you upgrade from?
what libs are you using?
what errors do you get?

i update from react-native 0.27.2
this is the package.json file
"dependencies": {
"@remobile/react-native-action-sheet": "^1.0.1",
"alt": "^0.18.5",
"base-64": "^0.1.0",
"base64-js": "^1.1.2",
"js-base64": "^2.1.9",
"lodash": "^3.10.0",
"react": "^15.1.0",
"react-expandable-listview": "^0.5.1",
"react-motion": "^0.4.4",
"react-native": "0.27.2",
"react-native-accordion": "^1.0.1",
"react-native-android-share": "0.0.4",
"react-native-bottom-sheet": "^0.1.1",
"react-native-button": "^1.6.0",
"react-native-collapsible": "^0.7.0",
"react-native-custom-action-sheet": "0.0.11",
"react-native-drawer": "^2.2.3",
"react-native-facebook-login": "^1.3.0",
"react-native-gifted-spinner": "0.0.4",
"react-native-lazyload": "^1.1.0",
"react-native-parallax-scroll-view": "^0.19.0",
"react-native-scrollable-tab-view": "^0.5.4",
"react-native-scrollview-lazyload": "^1.0.5",
"react-native-share": "^1.0.13",
"react-native-social-auth": "^0.5.6",
"react-native-storage": "^0.1.2",
"react-native-swiper2": "^2.0.7",
"react-native-twitter-signin": "0.0.1",
"react-native-viewpager": "^0.2.11",
"superagent": "^2.1.0",
"twitter-node-client": "0.0.6"
},
"peerDependencies": {}
and this is the error
https://github.com/magus/react-native-facebook-login/issues/164
for react native twitter sign in
i got @override issue
Which is working fine with react-native 0.27.2

you need to make sure your modules that are giving errors are fully up to date.
when you are upgrading react-native your corresponding modules may have made updates to resolve those issues as well.
If your dependencies are up to date and you have cleaned and build again
then you file an issue with the dependency that is causing the error.
Android: (cd android && ./gradlew clean && cd ..)

Let me do if that works :)

Thanks for your question!
We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of React Native.
Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #react-native? We'll be happy to answer there. Post a link to your Stack Overflow question here, so that we don't lose track of it.

@hansonw  I Already  :)
http://stackoverflow.com/questions/39567356/when-to-update-react-native-version/39567491?noredirect=1#comment66445397_39567491

@lwhiteley i tried, althougt build get install but just crashed as we tried to open :(

checkout your plugins.. 0.29.0 has a breaking change


Fix newRule.js lint issues

Fixes #55

Thanks for your interest in palantir/tslint-react, @no23reason! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.


Added data model validation.

Added a new scoreboard data model.
Added validation attributes to models.
Adjusted the form on pages and components to handle attribute validation.
Fixes #2

Thanks for the PR! This will be usefull :)


alternative case conversion

closing #150
using https://github.com/uni-algo/uni-algo instead of boost

I just saw that Conan uses the header-only version. Please double check first if the header-only version works. There seems to be a limitation with the header-only version regarding locale: https://github.com/uni-algo/uni-algo-single-include
I think we should update the uni-algo Conan package then to make it configurable if it should build a library or use the header-only version.

See https://github.com/rdf4cpp/rdf4cpp/issues/163
This can be merged before non-header-only uni-algo v0.7.1 is published on Conan Central.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_bc1e7304-286e-47ce-9f58-61e41749fba8/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_bc1e7304-286e-47ce-9f58-61e41749fba8.git

Docs Build status updates of commit e578f57:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Issue/add custom options to standard system fields

Custom Options are not visible on product page by default.
I add custom_options to standardSystemFields and options will be now visible on product page.

This change is fine however I'm not sure if it could have fixed the custom options issue as standardSystemFields property is being used just in one single place in the code to optimize the attribute meta data loader: https://github.com/DivanteLtd/vue-storefront/blob/cde3b9c03eff3deeea7dc0bdd5cc9e311cfafa07/core/modules/catalog/store/product/actions.ts#L618
?


Feature Request

Could you provide a small feature - a downloadable csv of alz policy vs scope? Not just the custom alz policy but all that are considered in the standard alz deployment

https://github.com/Azure/Enterprise-Scale/blob/main/docs/wiki/media/ALZ Policy Assignments v2.xlsx
Is that something you can use instead of a csv.

@SharmainePopov as @MikaelJcSoderberg kindly shared we do have an Excel that contains all the default assigned policies and initiatives by scope. It is available on the ALZ Policies wiki directly above this link https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Policies#intermediate-root.
Closing as this seems to address your requirement. Should you have a further ask, feel free to re-open.

I just want to point out - for cases where a client may want to compare what they have implemented vs what the Microsoft ALZ implementation recommends and provides (as in a brownfield engagement, a partner ALZ etc)  - it would be very helpful to have this as a csv or text list.
Sharmaine Popov
Cloud Solution Architect |Microsoft Canada Inc. |<EMAIL_ADDRESS>|<PHONE_NUMBER>
From: Sacha Narinx @.>
Sent: November 1, 2024 5:36 AM
To: Azure/Enterprise-Scale @.>
Cc: Sharmaine Popov @.>; Mention @.>
Subject: Re: [Azure/Enterprise-Scale] Feature Request (Issue #1815)
@SharmainePopovhttps://github.com/SharmainePopov as @MikaelJcSoderberghttps://github.com/MikaelJcSoderberg kindly shared we do have an Excel that contains all the default assigned policies and initiatives by scope. It is available on the ALZ Policies wiki directly above this link https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Policies#intermediate-root.
Closing as this seems to address your requirement. Should you have a further ask, feel free to re-open.

Reply to this email directly, view it on GitHubhttps://github.com/Azure/Enterprise-Scale/issues/1815#issuecomment-2451592167, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIIVNWRBCYR2S4WUHNXKNCDZ6NDQBAVCNFSM6AAAAABQ2NGPF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGU4TEMJWG4.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Hi this is a wiki
Sharmaine Popov
Cloud Solution Architect |Microsoft Canada Inc. |<EMAIL_ADDRESS>|<PHONE_NUMBER>
From: Sacha Narinx @.>
Sent: November 1, 2024 5:36 AM
To: Azure/Enterprise-Scale @.>
Cc: Sharmaine Popov @.>; Mention @.>
Subject: Re: [Azure/Enterprise-Scale] Feature Request (Issue #1815)
@SharmainePopovhttps://github.com/SharmainePopov as @MikaelJcSoderberghttps://github.com/MikaelJcSoderberg kindly shared we do have an Excel that contains all the default assigned policies and initiatives by scope. It is available on the ALZ Policies wiki directly above this link https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Policies#intermediate-root.
Closing as this seems to address your requirement. Should you have a further ask, feel free to re-open.

Reply to this email directly, view it on GitHubhttps://github.com/Azure/Enterprise-Scale/issues/1815#issuecomment-2451592167, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIIVNWRBCYR2S4WUHNXKNCDZ6NDQBAVCNFSM6AAAAABQ2NGPF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGU4TEMJWG4.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>


How to enable RTTI without modify leveldb/CMakeList.txt

I use cmake to build leveldb with my project,
add_subdirectory(leveldb)
target_link_libraries( ${APP_EXEC}  ...leveldb )

It seems leveldb disable RTTI (-f no-rtti) by default, there is some other third party library in my project which requires RTTI, is there any way to enable  RTTI without modify leveldb/CMakeList.txt?

Does your other third party library need to dynamically determine the type of the leveldb objects in include/leveldb, or for other objects? If not the you should be OK to leave RTTI disabled for leveldb, but enable it for other code. However, if you really do need RTTI enabled for leveldb then I think you will need to modify CMakeLists.txt as it is hard-coded to be disabled. I'm not a CMake expert, so there may be some environment variable that can modify CMAKE_CXX_FLAGS.

It seems the leveldb’s Comparator is not compatible with rtti, https://stackoverflow.com/questions/57670944/undefined-symbols-for-architecture-x86-64-typeinfo-for-leveldbcomparator, is there any way to fix this issue while leave my code rtti enabled?

@luguoxiang
Separating the comparator into its own cpp file and compiling with the -fno-rtti flag worked best for me.

@luguoxiang
I have the same problem as you. And my code uses a lot of typeid, so I can't do as @muffinrecon said:

Separating the comparator into its own cpp file and compiling with the -fno-rtti flag worked best for me.

My only way is to enable rtti for leveldb. What did you do in the end?

I went back to use leveled 1.22 which seems enabled rtti by default.

This breaks @ceph /ceph:

[ 1547s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../../lib/libkv.a(LevelDBStore.cc.o):(.data.rel.ro._ZTI17CephLevelDBLogger[_ZTI17CephLevelDBLogger]+0x10): undefined reference to `typeinfo for leveldb::Logger'

The addition of -fno-rtti between 1.22 and 1.23 is an ABI change and should include an soname bump as well.
As susnux mentions above, this breaks the Ceph build, in my case in Fedora F35/rawhide.
see https://github.com/google/leveldb/issues/927

this also prevents leveldb 1.23 to be used in python via plyvel, see e.g. https://github.com/wbolster/plyvel/issues/114


How to combin 2 midifile?

Hello~
i have a piano midi file and a drum midi file.
i want to combin two midi file into one midi file.
what is the best way?
Thanks Danny

Drum_pt4_4_hi-hats.zip
Hi
it is zip file and two midi file length is different.
Thanks

Unfortunately your files have different tempo maps (different time divisions, different tempo) so there is no way to merge files easily. Merging is possible but it's pretty complex algorithm to preserve both tempos and I have no time right now to implement it. I have such plans but for future releases.
In general you need to reduce both time divisions to least common multiple and handle all tempo and time signature changes (depending on what time type you need to preserve – seconds, bars/beats or smth else).

Unfortunately your files have different tempo maps (different time divisions, different tempo) so there is no way to merge files easily. Merging is possible but it's pretty complex algorithm to preserve both tempos and I have no time right now to implement it. I have such plans but for future releases.
In general you need to reduce both time divisions to least common multiple and handle all tempo and time signature changes (depending on what time type you need to preserve – seconds, bars/beats or smth else).

oh i understand~
thanks!


[Bug Report] PWM frequency is causing noisy cv output

Additional observation from @t-schreibs

Ran into an odd issue the other day. Probably not a support thing, but idk where else to drop this, and I'd be interested to hear what y'all think. I was feeding CV values from one EuroPi into another, where the second one was running Poly Square, and the output I was getting was bizarre, like almost FM-y. It was like the input analog value was super noisy. However, feeding those CV values into another oscillator (was testing w Beads w no audio input) sounded crystal clear, and any other CV value into Poly Square was also crystal clear. I'm trying to figure out where to start debugging this. Any chance it's a weird hardware thing?

Further observations from @t-schreibs

I have one EuroPi which, I believe, is still running 0.3.0 of the firmware, and the rest are up to 0.5.0. I'm testing w RadioScanner into Poly Square just to get an easily controllable steady CV value. While the output from 0.3.0 is not perfect by any means (I'm getting audible pops & crackles), the pitch center is much more stable. The output from 0.5.0 wanders quite a bit

Yep, I've confirmed there's something up with the latest version - I brought the other EuroPi up to 0.5.0 and now it's demonstrating the same problems as the other ones

Root cause suspected to be the change in PWM freq:
https://github.com/Allen-Synthesis/EuroPi/commit/f0ae072c8d8b9be717c8cc5740b783c510d81367
Oscilloscope testing between versions:
https://imgur.com/a/C5h0YYn

Documentation on valid PWM freq ranges:
https://docs.micropython.org/en/latest/rp2/quickref.html#pwm-pulse-width-modulation
In my testing, I found that the PWM freq can be set to match the machine freq, with the higher the machine & pwm freq, the less noisy the cv output will be. Both machine and pwm freq overclocked to 250mhz had the best results. However, I don't know if this has any performance implications on the rest of the script. That will require a bit of further testing.

Another consideration is for the firmware to provide a mechanism for switching between PWM modes, for example:

High resolution (default): lower pwm freq to produce smoother resolution at the cost of stable voltage (eg. envelopes)
High CV Accuracy: higher pwm freq to produce more stable cv at the cost of step resolution (eg. pitch cv)


Tables folder list is empty after using Azure Resource Mover for SQL

Issue Type: Bug
After moving a database to a different region, the table list is now empty. I can execute queries on the missing tables.

Azure Data Studio version: azuredatastudio 1.24.0 (eb3c0f5d9df86b9490606aab7fffaa253b0aca4d, 2020-11-10T23:35:27.682Z)
OS version: Darwin x64 20.2.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
6, 6, 6

Memory (System)
16.00GB (0.10GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions: none

@ablyler have you tried to refresh the 'Tables' node? do you see anything in the Developer tools Console? (Help -> Toggle Developer Tools and then go to the console tab)

@alanrenmsft refreshing the 'Table' node doesn't help, I have tried that. Here are some interesting logs that I found in the Developer tools Console: https://gist.github.com/ablyler/33e8132ba3f462d49fe6ad5397d3cf70


Mocking requests and NOT sending them to GA

Hello everyone,
Here is my problem : I want my testcafe tests to run multiple times a day and I do NOT want the Pageviews and other events from my tests to appear in Google Analytics. However, I tried mocking requests AND the request hook.
Every single time, I still see the data appearing in my Google Analytics dashboard and stats.
I went through the testcafe documentation and didn't find the answer I was searching for.
Thank you ! Here is my setup :
const collectDataForGA = new RegExp('https://www.google-analytics.com/collect');

const mockedResponseGA = Buffer.from([0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01]);

const mock = RequestMock()
  .onRequestTo(collectDataForGA) // collectDataForGA
  .respond(mockedResponseGA, 202, {
    'content-length': mockedResponseGA.length,
    'content-type': 'image/gif'
  });

fixture `Use Case : LACAPITALE-INTERCEPTOR`
  .page `https://www.lacapitale.com/fr?raph=testcafeMOCKER3333333333333333`.requestHooks(
    logger, mock
  );

@Raph-Capitale
Hello,
I think it is a common task to turn off your Google Analytics in a testing environment. Here are some links about it:
https://developers.google.com/analytics/devguides/collection/android/v4/advanced#testing
https://developers.google.com/analytics/devguides/collection/gtagjs/user-opt-out
As for your RequestMock workaround, I suggest you collect all your non-blocked Google Analytics requests: may be you should add addition URLs in your RequestMock or make your filter more common (onRequestTo(/google-analytics/)).


Setting 'OAUTH2_CACHE_TYPE' to 'filesystem' fails

All of the Werkzeug cache types seem to work with flask_oauthlib.contrib.oauth2.bind_cache_grant, except for filesystem. When I specify the following config:
app.config.update({'OAUTH2_CACHE_TYPE': 'filesystem'})
...and then run the app, filesystem throws an RuntimeError:
RuntimeError: '_filesystem' is not a valid cache type!

Oh. This error message is wrong. I think you are missing OAUTH2_CACHE_DIR.

Thanks! That makes sense, and glad to see a fix is planned for 0.10.


[Bug] Required in [K in keyof Required<T>] differ when using arrow function and normal function

Bug Report
🔎 Search Terms

required
arrow

🕗 Version & Regression Information
In typecript generated type (d.ts) they is an error while using Required in [K in keyof Required<T>] in a arrow function definition

This changed between versions 4.6.4 and newer version of typescript

⏯ Playground Link
https://www.typescriptlang.org/play?jsx=0&ts=4.6.4#code/KYDwDg9gTgLgBAYwgOwM7xsdAmOBeOAHgBV84AlYJKAE0PSgEtkBzAGjmWADdgoA+fgApUCABbAAtgEMAXHADeAKDiq4AbQDScZnADWwAJ4QAZhWABHAK6MowOsX4BdecS1OA3EoC+ASnz8iipqSGgQADbAAHThECwi4lLSvl7eSkqgkLBwJlbICDCMKHCY6ACMJGSU1HQMzOycPHyCCRIy8spqGtq6BsZmlNa29iTOru6p-p0hKKgR0bHxom3JqR5AA
💻 Code

export const test2 = <T = Record<string, never>>(schema: {
    [K in keyof Required<T>]: T[K];
}) => {
    console.log(schema);
}

export function test1<T = Record<string, never>>(schema: {
    [K in keyof Required<T>]: T[K];
}) {
    console.log(schema);
};

🙁 Actual behavior
In typescript 4.6.4 the d.ts file look like this:
export declare const test2: <T = Record<string, never>>(schema: { [K in keyof Required<T>]: T[K]; }) => void;
export declare function test1<T = Record<string, never>>(schema: {
    [K in keyof Required<T>]: T[K];
}): void;

And starting from 4.7 the d.ts file look like this:
export declare const test2: <T = Record<string, never>>(schema: Required<T> extends infer T_1 ? { [K in keyof T_1]: T[K]; } : never) => void;
export declare function test1<T = Record<string, never>>(schema: {
    [K in keyof Required<T>]: T[K];
}): void;

🙂 Expected behavior
This should be compiled to the same output as the 4.6 version

This was likely changed by https://github.com/microsoft/TypeScript/pull/48091 , cc @weswigham

@weswigham based on reviewing the linked PR / its upstream issue / this repro, it seems like maybe we missed a case in that PR?


Use configuration file just created in the previous step

First-time contributors' checklist

[x] I've signed Contributor License Agreement that's required for repo owners to accept my contribution.

What is changed, added, or deleted? (Required)
This pull request uses the same configuration file name created in the previous step conf/source1.yaml. If mysql-source-conf.yaml specified, it would get this error.

Result without this change

$ ./bin/dmctl --master-addr=<IP_ADDRESS>:8261 operate-source create mysql-source-conf.yaml
Error: error in get file content: open mysql-source-conf.yaml: no such file or directory

Results with this change

$ ./bin/dmctl --master-addr=<IP_ADDRESS>:8261 operate-source create conf/source1.yaml
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "",
            "source": "mysql-replica-01",
            "worker": "worker1"
        }
    ]
}
$

Which DM version(s) do your changes apply to? (Required)

[x] master (the latest development version)
[ ] v2.0 (TiDB DM 2.0 versions)
[ ] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

This PR is translated from:
Other reference link(s):

Do your changes match any of the following descriptions?

[ ] Delete files
[ ] Change aliases
[ ] Need modification after applied to another branch
[ ] Might cause conflicts after applied to another branch

 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.


Demo

The Vitessce approach of demo versions unconnected to NPM versions is not something to emulate. On the other hand, Alex with 4DN has put demos into the NPM release, and you can view it via unpkg, ie: https://unpkg.com/<EMAIL_ADDRESS>Serving gh-pages from a docs directory, which in turn references unpkg and npm is another option.
It would be good if the same demo code that gets built and deployed could also be used for local development.

@ilan-gold : I know you were thinking about how to deploy the demo. I not sure if this is the best way, but I wanted to remind you that it is an option.

Why not have both: a gh-pages build for the latest and greatest on master and a build bundled with the npm package for a version guaranteed to work with that release?
My personal preference (and one I frequently look for) is a gh-pages version built via CI so that I can see the latest and greatest.

I like @bherr2's idea a lot actually - this will give us an always up-to-date view of master which my not-so-careful self would like.  This isn't a top priority right now, but I will get around to this (unless someone else wants to).

@ilan-gold : The demo is up, so just add a section to the README saying how the npm and demo deploy are done, I think?


I would like the Node Package Analyzer to be able to skip dev dependencies.

In a project I work on, we frequently fail security scans due to dev only dependencies.
Describe the solution you'd like
I am aware of the --nodeAuditSkipDevDependencies flag, and I would like a similar option to be available for the Node Package analyzer.
Additional context
Sometimes the node package analyzer seems to pick up CVEs that the Node Audit analyzer does not, which makes me uncomfortable disabling the Node Package analyzer all together. Instead, I would just like to be able to skip dev dependencies in the Node Package analyzer.

The node package analyzer is planned for retirement as it is today. Some of its functionality will be folded into the node audit analyzer.

@jeremylong Can you expand on your statement that the node package analyzer is planned for retirement? We have built a framework that depends upon the CVE id format and we'd prefer to use this analyzer over the node audit analyzer (which, as you know, uses a very different id format). So, why retire the n.p. analyzer?

Some of the code from the node package analyzer will be incorporated into the node audit analyzer. So in the future the CVE data will be included with the info from Node Audit. Note, by not using the node audit analyzer you are likely going to have false negatives as the database used by npm audit has non-CVE related vulnerabilities.


Compiling exported code

I have an old windows-program (32 bit) - probably compiled with visual studio as a C/C++ program.
I can load the program in Ghidra, and decompile it, but the exported c-code gives me a lot of compiler errors.
Some is due to missing declarations, and others are because of calling conventions.
So how is it intended that the generated C-code should be compiled?

The exported "C-like" code is not designed to be compiled without some customization on the part of the user.  See #236 for additional discussion.


Cloudflare Rate Limiting Too Aggressive

I can't load the staking UI (start from uad.ubq.fi, navigate to staking) due to rate limits. We need some exceptions on this subdomain.

@rndquu how was rate limiting set up? I can't seem to find it on Cloudflare

@rndquu how was rate limiting set up? I can't seem to find it on Cloudflare

Rate limiting for uad.ubq.fi was set up this way. Try to search for rate limiting rules in cloudflare dashboard:
a) Security > WAF > Rate limiting rules
b) In the "Rules" section of the ubq.fi domain settings

I don't have permissions to view the rules in the cloudflare dashboard for your account.

I've also accidentally found the redirect rule for the ethcon.ubq.fi subdomain. Perhaps try to move it higher in the UI so that it takes precedence over the *.ubq.fi/* rule.

Fixed 1. but 2. it looks like .ubq.fi/ is not enabled so I don't think this is the full picture.

@gentlementlegen can you fix the main branch of conversation rewards

@0x4007 Then I will merge https://github.com/ubiquity-os-marketplace/text-conversation-rewards/pull/142 and still work on the fixes that will be merged afterwards.

Looks like the settings of behavior is wrong. rndquu should have received some credit for the comment

The p are still excluded from word count, I didn't fix it yet. You can temporarily fix it by setting explicitly all the values in the configuration.


UFcalculator energies and energy calculated directly from features don't match

If we calculate energies (and forces) directly from features as shown below-
feature_handler = process.BasisFeaturizer(bspline_config=model.bspline_config)

f2b = feature_handler.featurize_energy_2B(geom)
f3b = feature_handler.featurize_energy_3B(geom)
features_2b_3b = np.concatenate(([0],[0],f2b,f3b))
print("Energy from flat:",np.matmul(features_2b_3b,model.coefficients))

and using UFcalculator as shown below-
calc = calculator.UFCalculator(model)
geom.set_calculator(calc)
coeffs = model.dump()["coefficients"]

one_body_energy = 0
for i in set(geom.get_chemical_symbols()):
    one_body_energy += coeffs[i]*geom.get_chemical_symbols().count(i)

print("Energy:", geom.get_potential_energy()-(one_body_energy))

The two energies don't match. Similarly, if we calculate the forces they don't match.
(Here model is some learned model)

It seems like this is an older bug and the latest changes to fix the symmetry bug didn't introduced this issue.
I am attaching a jupyter notebook (ref_data.zip) and a model json that clearly shows this issue. The jupyter notebook should be run using the UF3 version from 24th of August 2023 (here).
(BEWARE The model json file should not be used for any MD simulation, it is only for testing purpose)
Interestingly the energies calculated using the features and UFCalculator match for molecules in a box.
They don't match for periodic crystal geometry.

There shouldn't be a bug when UF3 featurizes. The issue is how the Jupyter notebook calls the featurization methods:
f2b = feature_handler.featurize_energy_2B(geom)
f3b = feature_handler.featurize_energy_3B(geom)
...
f2bf = feature_handler.featurize_force_2B(geom)
f3bf = feature_handler.featurize_force_3B(geom)

These methods take in an optional argument called supercell, which should be created beforehand to include all relevant ghost atoms in neighboring cells. If supercell is not passed in, it defaults to using geom as the supercell. It makes sense why the difference in the calculated values was observed only for bulk but not for a molecule.
After creating a supercell like this and passing it in to the featurization methods, the energy values agree for the bulk structure:
from uf3.data import geometry
r_cut = feature_handler.r_cut
supercell_Nb6Sn2 = geometry.get_supercell(geom_Nb6Sn2, r_cut=r_cut)

f2b = feature_handler.featurize_energy_2B(geom, supercell=supercell_Nb6Sn2)
...

In UF3, this shouldn't be an issue because the supercell is handled by evaluate_configurations(). A high-level flowchart of the featurization goes something like:

geom(s) is converted into df_data with uf3.data.io.DataCoordinator.dataframe_from_lists()
df_data is passed into uf3.representation.process.BasisFeaturizer.evaluate_parallel()
evaluate_parallel() --> evaluate() --> evaluate_configuration() (this is where the supercell is handled) --> featurize_energy_2B(), featurize_force_2B(), ...

Yup you are correct @sunghjung3. I was not using the featurize method correctly, that's why I removed the bug label. In order to close the issue I will do two things-

Unit test to compare UFCalculator energy and forces with energy and forces obtained from representation.
Add warning when featurize_energy_* is called without a supercell as an input.


Conductor not able to acquire lock on redis for distributed locking

Describe the bug
Occurs only when due to some reason cluster restarted. Below error noticed whenever cluster restarted
ERROR com.netflix.conductor.locking.redis.RedisLock  - Failed to acquireLock for lockId: f19a832a
org.redisson.client.RedisException: ERR Error running script (call to f_dad): @user_script:1: @user_script: 1: -READONLY You can't write against a read only replica.. channel: [id: 0xece8af7f, L:/<IP_ADDRESS>:11111 - R:<IP_ADDRESS>/1<IP_ADDRESS>:5555] command: (EVAL), promise: RedissonPromise [promise=ImmediateEventExecutor$ImmediatePromise@46f3044a(incomplete)], params: [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call(..., 1, conductor.f19a832a, 60000, b46947ad:333]
Details
Conductor version: 2.30.3
Persistence implementation: Postgress
Queue implementation: Postgres
Lock: Redis
Workflow definition: N/A
Task definition: N/A
Event handler definition: N/A
To Reproduce
Steps to reproduce the behavior:

Enable Redis locking using SENTINEL . Redis should work fine on first deployment.
restart the cluster
See the below error coming in conductor logs
com.netflix.conductor.locking.redis.RedisLock  - Failed to acquireLock

Expected behavior
Redis pods should come up without any issue in case cluster restarted.
Screenshots
N/A.
Additional context
Both conductor and redis are running in a Kubernetes cluster.
Note

This working fine during first deployment of distributed locking until cluster not restarted
I tried redission:3.17.3 version with conductor:2.30.1 version but issue not resolved

@v1r3n

actually this issue is during performance testing. So when cluster restarted, 50% of workflows not working due to this RedisLock issue . May be out of 10 workflow 3-4 working fine but rest giving this issue.

For now temporary  resolution is , every time we need to restart all redis pod whenever cluster got restarted .

As we are using Conductor : 2.30.3 version below are the details

workflow.redis.locking.server.type=SENTINEL
workflow.redis.locking.server.master.name=master
workflow.redis.locking.server.address=redis://<MY_HOST>:26379
workflow.redis.locking.server.password=<MY_PASSWORD>
workflow.decider.locking.enabled=true
workflow.decider.locking.namespace=conductor
workflow.decider.locking.server=REDIS
workflow.locking.lease.time.ms=60000
workflow.locking.time.to.try.ms=500

@trivedishalini side note: v2.30.3 is no longer supported. It's recommended to migrate to the latest 3.x version.

@trivedishalini side note: v2.30.3 is no longer supported. It's recommended to migrate to the latest 3.x version.

@aravindanr , Yes , we already moved to 3.x but still having one customer on 2.x .

Hi @trivedishalini , Looks like when the redis node is restarted, the replica is marked as read-only and conductor is trying to write to it. Quick google search shows these two options, solution 1:
Open the configuration file corresponding to the redis service and modify the value of the attribute slave-read-only to no, so that it can be written.
solution 2:
Or a faster way is through run this command
redis-cli -h <IP_ADDRESS> -p 6379 slaveof no one

Thanks @manan164  for suggestion . I will update here once I tried these.

Hi @trivedishalini , Looks like when the redis node is restarted, the replica is marked as read-only and conductor is trying to write to it. Quick google search shows these two options, solution 1:
Open the configuration file corresponding to the redis service and modify the value of the attribute slave-read-only to no, so that it can be written.
solution 2:
Or a faster way is through run this command
redis-cli -h <IP_ADDRESS> -p 6379 slaveof no one

Note that as per redis documentation, making a replica writable is strong not recommended:

You may wonder why it is possible to revert the read-only setting and have replica instances that can be targeted by write operations. The answer is that writable replicas exist only for historical reasons. Using writable replicas can result in inconsistency between the master and the replica, so it is not recommended to use writable replicas.

Therefore, I would put this option out of the game.
What I believe is happening in your case is this:

You start conductor just fine with redis and everything is working;

Note that conductor here just call the k8s service which can forward it to ANY of the nodes (including the slaves).

You restart the cluster;
When the cluster comes back again, the k8s service might be redirecting your request to a slave, not a master and hence you see the failure.

AFAIK, Redis has basically two operation modes for HA: Cluster and sentinel. The thing about sentinel is that the client (conductor) must query the sentinel in order to get back the IP of the current master. Then after receiving back the IP it can connect to the master. More on it here. Like this: app (conductor) --> sentinel --> master info --> app (conductor) --> write data to master.
In cluster mode, this is not required because if you connect to a wrong node, that wrong node tells you right away the IP of the correct master, i.e., you would need only to follow redirection in the client. More about this here.
Now, with this in mind and looking at conductor code, we see this: https://github.com/Netflix/conductor/blob/main/redis-lock/src/main/java/com/netflix/conductor/redislock/config/RedisLockConfiguration.java#L79
This method of redisson library accepts a comma separated list for multiple address: https://github.com/redisson/redisson/blob/master/redisson/src/main/java/org/redisson/config/SentinelServersConfig.java#L128
Then maybe something to try is: Pass in conductor config redis lock properties the individual PODs ip and port instead of the service name. Note that this is not ideal as those IPs can change, but at least you can rule out this hypothesis. Another thing to consider is maybe adding a proxy (e.g. HAProxy) before the sentinel config which can adjust things directly for you in case of failover. More on it here.

I did find in the redis lock configuration that the sentinel config is missing the .split(","). could that be part of the problem?