Namespace rules

This code:
using System.Globalization; // SA1200
using System.Threading; // SA1200
namespace Nbsi.Dei.Goit.Web // SA1516
{
    using System;
    using System.Diagnostics.CodeAnalysis;
    using System.Linq;
    using System.Web;
    using System.Web.Http;
    using System.Web.Mvc;
    using System.Web.Optimization;
    using System.Web.Routing;

reports warnings as stated in the comments.
However, there's no fix offered for SA1200.

And what wrong here?

Closing as a duplicate :smile:


error bug 1790

Welcome! Please use this template for reporting bugs or requesting features. For questions about using Workbox, the best place to ask is Stack Overflow, tagged with [workbox]: https://stackoverflow.com/questions/ask?tags=workbox
Library Affected:
workbox-sw, workbox-build, etc.
Browser & Platform:
E.g. Google Chrome v51.0.1 for Android, or "all browsers".
Issue or Feature Request Description:
Your request here.
When reporting bugs, please include relevant JavaScript Console logs and links to public URLs at which the issue could be reproduced.

Hi there,
Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:

For PRs, we closed everything that doesn't target the current v7 branch.
For Issues, we closed everything that was created before 2024.

Thanks, and we hope for your understanding!
The Workbox team


Add another policy for Azure Backup should be enabled for Virtual Machines

Please add the following policy to the set:
98d0b9f8-fd90-49c9-88e2-d3baf3b0dd86
So that we can use the exclusionTags for resources that do not require backup. This is not possible with the already included policy for VM Backup:
013e242c-8828-4970-87b3-ab247555486d
Thanks!

We want only audit, deny or disabled policies in the policy initiative this to prevent that we require a managed identity for the policy initiative. This is not required for audit, deny or disabled policies, result in we will not have deploy if not exist policies in this policy initiative.

Closing as not planned


Observing very high latencies with Lettuce Redis Cluster Configuration

Bug Report

Overview
We are planning to migrate our blocking Spring boot micro-service to a non-blocking IO Spring webflux. We are keen to use Lettuce for our Redis related dependencies.
But during load testing and comparison testing of a small micro-service with our old service, we found out that we are observing very high latencies while fetching data from the Redis cluster using Lettuce.
Current Behavior

Apache Jmeter load testing results:
All latencies are in ms.
Number of threads/users : 1000
ramp-up time = 60sec
Object/Payload size = A simple 100KB JSON string fetched from Redis Cluster.
New Test Service using Lettuce client

While that of our old service using Jedis client, the latencies are:

Stack trace
One thing I noticed in logs while trying some cases like to put the 'Redis get' code in different Schedulers is that everytime the same thread was used for every request. i.e. even if I put the Redis fetching code to be run in a, like say Schedulers.elastic() it will still run in the same one thread i.e. "[lettuce-epollEventLoop-7-5]". Pasting a very small chunk of a stack trace showing the name of the thread.
:25,621 INFO  [lettuce-epollEventLoop-7-5] r.M.S.3:274:[, ] - onComplete()
2020-12-07 22:02:25,651 INFO  [reactor-http-epoll-7] r.M.S.6:274:[, ] - onSubscribe(MonoSubscribeOn.SubscribeOnSubscriber)
2020-12-07 22:02:25,651 INFO  [reactor-http-epoll-7] r.M.S.6:274:[, ] - request(unbounded)
2020-12-07 22:02:25,687 INFO  [lettuce-epollEventLoop-7-5] r.M.S.2:274:[, ] - onNext({"230":{"applyOn":"COUPON_AMOUNT","name":"DD_BKTTRIBE","version":"1","updateOn":"Thu Feb 14 12:29:25 IST 2019","dimensions":{}},"110":{"applyOn":"COUPON_AMOUNT","name":"DD_BKTTRIBE","version":"1","updateOn":"Fri Feb 15 13:11:25 IST 2019","dimensions":{"DD_BKTTRIBE":{"weight":100,"scale":30,"text"

Input Code

Input Code
Configuration Class:
ApplicationConfig.java
@Configuration
public class ApplicationConfig {
  @Bean
  public ReactiveRedisConnectionFactory reactiveRedisConnectionFactory() {
    List<String> list = new ArrayList<>();
    list.add("<IP_ADDRESS>:7000");
    return new LettuceConnectionFactory(new RedisClusterConfiguration(list));
  }
}

Backend Service code:
DDService.java
@Service
@Slf4j
public class DDService {
  @Autowired
  private ReactiveRedisTemplate<String, String> redisTemplate;

  public Mono<String> getPolicyObjFromCache(String key) {
    return redisTemplate.opsForValue().get(key);
  }
}

Expected behavior/code

IMHO, the latencies should be somewhat similar if not better to that of the old Blocking Service using Jedis Client.
Environment

Lettuce version(s): 6.0.1.RELEASE
Redis version: 3.2.4

Possible Solution
NA

Additional context
We are not using any connection pooling in the old service as well as in the new test service.

Reactive throughput is almost always worse than blocking because blocking has no context switching involved as everything stays on the same thread.
In any case, try enabling publishOnScheduler via ClientOptions. What happens here is deserialization on the I/O Thread whereas in blocking land deserialization was a caller thread task.

Can you provide with a small reference/example of how you're suggesting it?

Something like https://github.com/lettuce-io/lettuce-core/blob/main/src/test/java/io/lettuce/examples/ConnectToRedisCluster.java.

Can you highlight what is the difference between connecting this way and that way?

Can you highlight what is the difference between connecting this way and that way?

Gotcha, what you were saying.

Btw, can you suggest something, other than this?
Do we really need connection pooling when connecting with Redis like with Lettuce or for that matter any other client? Does providing a connection pool helps in increasing performance, decreasing latencies when multiple requests hit?
Also, if we don't use any connection pool, does lettuce at least keep one connection opened even if no requests come for some time?

Closing since this discussion isn't going in a helpful way. We don't have enough context to diagnose a problem.


No access to the localturk server.

Should be cd localturk\sample (Backslash) on Windows.
On Sun, Oct 25, 2020 at 10:56 PM chrisa530<EMAIL_ADDRESS>wrote:

[image: image]
https://user-images.githubusercontent.com/60558439/97129406-3cfe8f80-1715-11eb-81ba-edb0707a742f.png
[image: image]
https://user-images.githubusercontent.com/60558439/97129438-4c7dd880-1715-11eb-9345-786b6186b3e7.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/danvk/localturk/issues/33, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAX77NHZADJKNUXEKNWIX3SMTQOHANCNFSM4S6ZQO5Q
.

Thank you for replying. The localhost blocks the connection. This is the error that I keep getting

It's likely that this was an issue with the CSV file ("Error: Number of columns is inconsistent on line 2").


FIX: calculate_distance distance to origin

Hi!
Thanks for this library.
traj.calculate_distance raised a ValueError, so I tried to fix it. Is it ok for you that way?
Samuël

Your fix is clearer and more consistent with the rest of the function.  Thank you for your contribution!


fix default proxy lookup

Failed downloading host kernel package. Other steps worked fine so not catched by CI.


custom strategy returning "uninitialized constant Devise::Models::CustomStrategy"

Following the guide to adding a an ldap strategy, I am creating a new custom strategy on version 3.5.6 and I am running up against this error when spinning up rails:
uninitialized constant Devise::Models::CustomStrategy

I added an initializer file custom_strategy.rb
require 'devise/strategies/authenticatable'

module Devise
  module Strategies
    class CustomStrategy < Authenticatable
      def authenticate!
        resource  = password.present? && mapping.to.find_for_database_authentication(authentication_hash)
        encrypted = false

        if validate(resource){ encrypted = true; resource.valid_password?(password) }
          remember_me(resource)
          resource.after_database_authentication
          success!(resource)
        end

        mapping.to.new.password = password if !encrypted && Devise.paranoid
        fail(:not_found_in_database) unless resource
      end
    end
  end
end

Warden::Strategies.add :custom_strategy, Devise::Strategies::CustomStrategy

and added the default to devise.rb
  config.warden do |manager|
    manager.default_strategies(scope: :login).unshift :custom_strategy
  end

but no luck. Am I doing something wrong?
UPDATE
I updated to 4.1.0 with the same error
ANOTHER UPDATE
I removed the reference to :custom_strategy in my model login.rb so it reads:
class Login < ActiveRecord::Base
  devise :rememberable, :trackable, :validatable, :lockable, :timeoutable
end

but now I'm getting a browser error Too many redirects

I'm not sure if the proper way of creating a custom strategy is extending a Devise class and using the Devise namespace. The custom strategy example extends the Warden strategy and not use the Devise namespace, take a look on this test case.

Now I see, you are following this wiki right? Well, can you provide a sample application that reproduces the error?

Right, I was following the wiki. I don't know how, but it magically started working. Not sure what did it, but it's working now! Thanks.

Welcome back, I've got the issue
11: from /home/mcdostone/X/app/models/user.rb:3:in `<main>'
10: from /home/mcdostone/X/app/models/user.rb:4:in `<class:User>'
9: from /home/mcdostone/.rvm/gems/ruby-2.5.1/gems/devise-4.5.0/lib/devise/models.rb:86:in `devise'
...
/home/mcdostone/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `block in load_missing_constant': uninitialized constant Devise::Models::LdapAuthenticatable (NameError)

# config/initializers/devise.rb
config.warden do |manager|
    manager.strategies.add(:ldap_authenticatable, Devise::Models::LdapAuthenticatable)
    manager.default_strategies(scope: :user).unshift :ldap_authenticatable
  end

# app/models/user.rb
class User < ApplicationRecord
  devise :ldap_authenticatable
}
end

Any idea what is going wrong?

@Mcdostone I've got the same error, Did you find the solution?

same here

@remipou Can you open a new issue and include a sample application? That would help us find the problem.

@tegon i got it to work now:
ldap_authenticable.rb:
require 'net/ldap'
require 'devise/strategies/authenticatable'

module Devise
  module Strategies
    class LdapAuthenticatable < Authenticatable
      def authenticate!
       (...)
    end
  end
end

Warden::Strategies.add(:ldap_authenticatable, Devise::Strategies::LdapAuthenticatable)

devise.rb:
Devise.setup do |config|
  config.warden do |manager|
    manager.default_strategies(:scope => :admin_user).unshift :ldap_authenticatable
  end

without including the stategy in the model
admin_user.rb:
class AdminUser < ApplicationRecord
  devise :database_authenticatable,
         :recoverable, :rememberable, :trackable, :validatable
end

@remipou That seems good to me. Anyway, if you find any problems feel free to open a new issue.
Thanks!


Metadata: Init Metadata and add SVG sheet

Init metadatas for each board and report.
Also, move README sheet to a couple of SVG pictures.
notice: This pr may frozen browser while opening file changes

I think it should rebase.

rebased to newest commit, squash changes into two commit

Updated needed since a new PR merged.

rebased


GitHub Remote Repositories throwing error on MacOS when accessing Repositories

When trying to use Remote Repositories in VSCode, I get this error:
Steps to Reproduce:

Open Remote Explorer
Click Open Remote Repository

Error on the Popup:
Error running command remoteHub.openRepository: n.provider.getRemoteSourceProviders is not a function. This is likely caused by the extension that contributes remoteHub.openRepository.

@ashumaster do you have the latest version of the GitHub Repositories extension installed and enabled?

When trying to use Remote Repositories in VSCode, I get this error:
Steps to Reproduce:

Open Remote Explorer

Click Open Remote Repository

Error on the Popup:
Error running command remoteHub.openRepository: n.provider.getRemoteSourceProviders is not a function. This is likely caused by the extension that contributes remoteHub.openRepository.
prizes 100k
4000$
{$$$}}}}}}
Papa
100 000 $$$

When trying to use Remote Repositories in VSCode, I get this error:
Steps to Reproduce:

Open Remote Explorer

Click Open Remote Repository

Error on the Popup:
Error running command remoteHub.openRepository: n.provider.getRemoteSourceProviders is not a function. This is likely caused by the extension that contributes remoteHub.openRepository.

Yes @joyceerhl I am using the latest version of the GitHub Repositories extension.

I tried using the same setup in Windows and it's working perfectly. I think it's only showing the error message on the macOS. The above Error screenshot is from the Mac system.

Do you have 0.38.1 of Remote Repositories?

I tried using the same setup in Windows and it's working perfectly. I think it's only showing the error message on the macOS. The above Error screenshot is from the Mac system.

When trying to use Remote Repositories in VSCode, I get this error:
Steps to Reproduce:

Open Remote Explorer

Click Open Remote Repository

Error on the Popup:
Error running command remoteHub.openRepository: n.provider.getRemoteSourceProviders is not a function. This is likely caused by the extension that contributes remoteHub.openRepository.

FWIW I tried to reproduce this error and I couldn't.
macOS Monterey 12.6.7
Name: Azure Repos
Id: ms-vscode.azure-repos
Description: Remotely browse and edit any Azure Repos
Version: 0.36.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-repos
VSCode:
Version: 1.80.1 (Universal)
Commit: 74f6148eb9ea00507ec113ec51c489d6ffb4b771
Date: 2023-07-12T17:20:23.298Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 21.6.0

My apologies for the oversight. I'm pleased to let you know that the problem has been resolved. The error was caused due to my VS Code not being the latest version on macOS. After updating VS Code to the latest version, the Azure Repos Extension also got updated to version v0.36.0. Previously, I was using version v0.34.0 of the Azure Repos Extension. Now, after the update, everything is working perfectly.


Print statement

Hi
Please put parenthesis to all the print statements:
print("stuff to print")
not
print "stuff to print"
The second one makes everything crash with python 3.x
I replaced all of it in my current PR  but please remember it for the future.

Do we need Python 3?

We're not the only one using this, and some (will) use python 3

Anyway, a good point to make is that we shouldn't use print statements but Devito logger class

We should never use print. We should rather use the logger module. You can use parentheses in there if you think are needed.


K3D schema upgrade to v1alpha5 Simple.

K3D have upgraded their configuration schema to v1alpha5.

https://github.com/k3d-io/k3d/blob/main/pkg/config/v1alpha5/schema.json

Using it in a cluster configuration will yield an unmarshalling error:
% ctlptl apply -f k3d-cluster.yaml
visiting k3d-cluster.yaml: decoding {Cluster ctlptl.dev/v1alpha1}: yaml: unmarshal errors:
  line 12: field v1alpha5Simple not found in type api.K3DCluster

When switching back, K3D also suggests to migrate:
WARN[0000] Default config apiVersion is 'k3d.io/v1alpha5', but you're using 'k3d.io/v1alpha4': consider migrating.

What would be required to support the v1alpha5 Simple schema?

shouldn't be too hard to add, see the PR that added v1alpha4: https://github.com/tilt-dev/ctlptl/pull/265


Add --run-file support for stdin

Description
Update run command so that if the --run-file argument is speficied as - the config file is read from stdin.
This is the same idea as kubectl apply -f - and allows the configuration to be generated by some other means (e.g. by applying values to a template version of the file).
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[X] Code compiles correctly
[ ] Created/updated tests
[ ] Extended the documentation

NOTE: I haven't added tests to this as it wasn't clear to me how I would set up stdin in a test

@pravinpushkar -I'm happy to look at a PR to the docs to include this

I've created a PR for the related docs update: https://github.com/dapr/docs/pull/3872
Let me know if there's anything else needed to merge this PR - thanks!


Does uTensor support only NN?

Can we also use LinearClassifier or RandomForest?

As long as the resulting computational graph consists only of the op supported (see readme). That being said, I believe RandomForest will be unlikely until branching is supported? Tagging @dboyliao

I think so.
And it will take us four a long time to get there ;)

For non-neural-network models you can use https://github.com/emlearn/emlearn


definitionAndBoundSpan empty on destructured parameter

ES6 has added a new syntax called object destructuring, which can be used in variable assignment and function argument list.
My request is to add support for auto-jump and finding references for parameters written in destructuring format.
Consider this:
function test({a, b}) {
    console.log(a);
    console.log(b);

    console.log({a, b});
}

test({
    a: 1,
    b: 2,
});

Currently if I hold Ctrl and click on the variables in the function body, I can jump back to the variable names in the parameter list. But the reverse is not yet supported, i.e. holding Ctrl and clicking on a or b should show the references to where they are used in the function body.
Hope that this functionality can be added so that I can better see where and how many times each destructured variable is used in the function.

@ytxmobile98 As a workaround,  you can use Find all references for this, either by right clicking or using the command/keybindings

The root cause is that definitionAndBoundSpan returns "definitions": [] when triggered inside the parameter list

This behavior is more or less intentional (it's consistent). If you had written
function test({ a, b } = { a: 4 }) {

then control clicking on a on the left side would take you to the a on the right side, because that's where we consider a to have its definition. Basically from our perspective it's a use site, because there's at least potentially a place where a is defined that is not here. If you think VS Code should do Find All References when there are no definition spans, then you'll have to implement that behvaior.

think VS Code should do Find All References when there are no definition spans, then you'll have to implement that behvaior.

@RyanCavanaugh We only do find all references on click if we we know you are already on the definition. Is there some other way that we can know that the clicked symbol is both a definition and a use site?

I'm not sure if that information is surfaced in the protocol or not. If not, we should add it

This behavior is more or less intentional (it's consistent). If you had written
function test({ a, b } = { a: 4 }) {

then control clicking on a on the left side would take you to the a on the right side, because that's where we consider a to have its definition. Basically from our perspective it's a use site, because there's at least potentially a place where a is defined that is not here. If you think VS Code should do Find All References when there are no definition spans, then you'll have to implement that behvaior.

Don't quite agree. What is = on the right hand side is a default value rather than a definition.
Consider this:
function foo({a, b}: {c: 4}) {
  // ...
}

This is also valid JavaScript code, even though the default value {c: 4} has no effect here because you cannot use c at all.
In this case a and b' are still defined in the destructured parameter list.

Reopening because this is an annoying papercut

Moving to vs code repo


db-up: ModuleNotFoundError: No module named 'psycopg2._psycopg'

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az postgres up
Errors:
The command failed with an unexpected error. Here is the traceback:
No module named 'psycopg2._psycopg'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.27.2/libexec/lib/python3.9/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.27.2/libexec/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 556, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/local/Cellar/azure-cli/2.27.2/libexec/lib/python3.9/site-packages/azure/cli/core/__init__.py", line 517, in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments via reflection
  File "/usr/local/Cellar/azure-cli/2.27.2/libexec/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 313, in load_arguments
    super(AzCliCommand, self).load_arguments()
  File "/usr/local/Cellar/azure-cli/2.27.2/libexec/lib/python3.9/site-packages/knack/commands.py", line 104, in load_arguments
    cmd_args = self.arguments_loader()
  File "/usr/local/Cellar/azure-cli/2.27.2/libexec/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
    op = self.get_op_handler(self.op_path)
  File "/usr/local/Cellar/azure-cli/2.27.2/libexec/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
    handler = import_module(mod_to_import)
  File<EMAIL_ADDRESS>line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/benfisler/.azure/cliextensions/db-up/azext_db_up/custom.py", line 15, in <module>
    import psycopg2
  File "/Users/benfisler/.azure/cliextensions/db-up/psycopg2/__init__.py", line 51, in <module>
    from psycopg2._psycopg import (                     # noqa
ModuleNotFoundError: No module named 'psycopg2._psycopg'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az postgres up --resource-group {} --server-name {} --storage-size {}

Expected Behavior
Environment Summary
macOS-11.5.1-x86_64-i386-64bit
Python 3.9.6
Installer: HOMEBREW

azure-cli 2.27.2

Extensions:
db-up 0.2.4

Additional Context

db up


feat: RPC plugin demo

This PR adds a new demo, showcasing the RPC plugin and also serves as a general LOB example. Since it contains many of the same features as the existing plugin demo, such as automatic tenant reservation and approval, automatic webhook registration, etc., it effectively supersedes the existing demo (which has therefore been removed as a part of this PR)
In the future this demo folder can and should be expanded to include other examples.
Documentation has been included.

The build/deploy checks are all failing as this is a PR from a fork so it won't run any of the steps on the BC Gov OCP infra. Which is fine for this change as it's specifically to the demo folders "outside" the Traction app so none of it is built or deployed for PRs anyways.
So can be undrafted/marked Ready for review if it's ready without worrying about the branch/build.


mac compilation workaround + mixer ui labels

Temporary workaround for osx compilation error (on 'std::' ...)
Copied a few labels from Mixer.svg to MentalMixer.svg and updated include path.

Thanks @EO2
I don't have a mac or macvm so I've been getting others to do the mac builds.
It appears that the new version doesn't return those errors, so maybe Andrew has changed something.
Someone did a build last night of the new code against the rack master branch and it built without the std:: errorrs
Maybe you could try building the development version of rack, then the plugin and see if you get the errors still.
Glad you got the binaries working, hope you find the modules useful.

After updating osx, xcode, xcode_commandline_tools, gcc, cmake, etc...
I found there was a problem with whitespace in my new Rack path
'pwd' issue during make dep, that I should have noticed some days ago :)
Everything builds fine now - no std:: errors
Thanks for the tip! :)
The other part was the missing labels on MentalMixer, but that might be intentional? :)
I added labels for only one row.
To save space - perhaps using a blank module for labels would be nice..
Aka optional labels.
Thanks again for great modules!


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/56556

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/67053

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/99583


[Question]Problem for server interruption, training task to continue

:question: Question

Hi,
My linux server was interrupted, causing the training task to stop. Since I have been training for a long time, I do not want to start the training again. Can nndetection, like nnunet, have the command to choose to continue the training as follows:
"python /nnUNet/nnunet/run/run_training.py 3d nnUNetTrainerV2 121 all -c"
Does nndetection have the parameter "-c"?
Thank you!
Lynclock

nnDetection can continue training via the -o train.mode="resume" option.

Thank you.


Stepping Down as Org Maintainer

With the Notary Project making great progress and my focus on other IETF SCITT work, it's time I step down as an Org Maintainer.
It's been great to see the project evolve, and the new maintainers (@toddysm, @priteshbandi, @shizhMSFT) taking on their roles.

@SteveLasker I would like to thank you for your work on Notary Project and for helping bring it to its current state. I wish you good luck with your new endeavors.

@SteveLasker Thank you for your contributions to the Notary Project. I appreciate your hard work and dedication in helping the project evolve. I wish you all the best in your future endeavors.

@SteveLasker, I would like to thank you for your contributions to the Notary Project. Your dedication and hard work in advancing the project are truly appreciated. Wishing you the very best in your future endeavors.

@SteveLasker  I wanted to take a moment to thank you for your contributions to the Notary Project, and your support when I joined the community. I wish you all the best in your future endeavors.

@SteveLasker  I am also grateful that you made a lot of contributions the Notary Project and reviewed a lot of my work when I joined the community. I wish you all the best and hope we could continue to collaborate in the open-source community.

@SteveLasker, I would like to thank you for your contributions to the Notary Project. Your subject matter expertise and deep dive discussions during design discussions truly had a major impact for the project. Wishing you all the very best and good luck for your future endeavors.

@SteveLasker thank you for all your contributions to the Notary Project and sharing so many valuable insights from the industry. I wish you all the best with the IETF SCTT work and other future endeavors.

Closed this issue as completed. MAINTAINERS and CODEOWNERS were updated in each repository.


Use ocm module for library imports

Use dedicated ocm export for importing library modules
Depends on https://github.com/openshift-assisted/assisted-ui-lib/pull/972

Depends on a new version of the openshift-assisted-ui-lib containing this change https://github.com/openshift-assisted/assisted-ui-lib/pull/972

Unfortunately this PR won't work yet, we need to bump the TS version (btw, if we were using JS here it should have worked).
Also before we bump the TS version we need to make sure that TS version implements this feature: https://github.com/microsoft/TypeScript/issues/33079#issuecomment-878934422


New Relic cannot be used in another swift package as a dependency

I am trying to use new relic in my swift package. This is my Package.swift file
let package = Package(
    name: "DeunaSDK",
    platforms: [
           .iOS(.v11)  // This specifies that the package is compatible with iOS 13 and later versions
       ],
    products: [
        // Products define the executables and libraries a package produces, making them visible to other packages.
        .library(
            name: "DeunaSDK",
            targets: ["DeunaSDK"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        .package(url: "https://github.com/DUNA-E-Commmerce/deuna-ios-client", .upToNextMajor(from: "1.0.0")),
        .package(url: "https://github.com/newrelic/newrelic-ios-agent-spm", .upToNextMajor(from: "7.4.9")),
    ],
    targets: [
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .target(
            name: "DeunaSDK",
            dependencies: ["deuna-ios-client","NewRelic" ], // NewRelic is not detected
            path: "Sources/DeunaSDK"),
        .testTarget(
            name: "DeunaSDKTests",
            dependencies: ["DeunaSDK"]),
    ]
)

The problem is solved if I use the name parameter (Deprecated)
 .package(name:"newRelic", url: "https://github.com/newrelic/newrelic-ios-agent-spm", .upToNextMajor(from: "7.4.9")),

Thank you for bringing this to our attention. I will investigate what can be done from the agent side to better document the solution you found or fix from our side.


Ordering

Order API results by field by using the and orderby GET parameter. Example

/api/fighters/?orderby=name orders by name ascending.
/api/fighters/?orderby=-name orders by name descending.
/api/fighters/?orderby=name,style orders by name ascending and then by style ascending.
/api/fighters/?orderby=-name,style orders by name descending and then by style ascending.

Fixed in https://github.com/kasappeal/sparrest/commit/42f685dbb3e2b11bccf58bfa596c0ea20135a28e
The way to use this is:

/api/fighters/?_order=name orders by name ascending.
/api/fighters/?_order=-name orders by name descending.
/api/fighters/?_order=name,style orders by name ascending and then by style ascending.
/api/fighters/?_order=-name,style orders by name descending and then by style ascending.


Is it possible to run a couple of commands each with different tags?

I'd like to start a couple of programs automatically when I use dvtm and for them to have different tags. Is this possible?

The Action part does this exact thing in the config.


Update meta.yaml

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

License is not an SPDX identifier (or a custom LicenseRef) nor an SPDX license expression.

@conda-forge-admin please rerender

Xref: https://github.com/conda-forge/r-compositions-feedstock/pull/5

@conda-forge-admin please rerender


Documentation for Icon component missing

Description
The documentation for Icon is not accessible from the table of contents, and the link from Icon Button documentation page points to https://material-web.dev/components/icon-button/icon/#usage, which does not exist. Instead, it should point to https://material-web.dev/components/icon/#usage.
Browser/OS Environment
No response

I don't think the documentation is missing, are you reporting a bad link somewhere? If so, can you add a link to the source code for the docs that are incorrect?

Hi, thanks for the quick reply. Here's the link to the source: https://github.com/material-components/material-web/blob/8eb1f30e6f65e2580231fbeee7d048ee90fb00b7/docs/components/icon-button.md?plain=1#L77
There are basically two issues:

The Icon component is not selectable from the table of contents on the left side
The link from the Icon Button component mentioned above points to the wrong location, assuming icons.md is nested within icon-buttons. I guess it should be top-level?

Thank you!

https://material-web.dev/components/icon/ is available but it's not on the sidebar. I thought it's intentional because Elevation is not there as well. Interestingly Ripple wasn't there but it's now.


Win32: Fix some VIMDLL issues

When compiled with VIMDLL, some tests fails or hangs. This PR fixes them.

Test_termguicolors failed on GUI. Fixed the test.
Test_Filter_noshelltemp hanged on console.

has('filterpipe') should return 0 on console, because it is not supported.
set noshelltemp didn't work on console.

Test_menu_only_exists_in_terminal hanged on console.
A menu item for tearoff menu was added unintentionally. Stopped adding it.
Test_imgetstatus and Test_iminsert2 failed on console.
Call the IM handling code for console.

Codecov Report

Merging #5283 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #5283      +/-   ##
==========================================
+ Coverage   82.14%   82.14%   +<.01%
==========================================
  Files         134      134
  Lines      147597   147598       +1
==========================================
+ Hits       121239   121249      +10
+ Misses      26358    26349       -9

Impacted Files
Coverage Δ

src/evalfunc.c
91.04% <ø> (ø)
:arrow_up:

src/mbyte.c
66.4% <ø> (ø)
:arrow_up:

src/menu.c
73.41% <ø> (ø)
:arrow_up:

src/ex_cmds.c
84.45% <100%> (ø)
:arrow_up:

src/profiler.c
94.11% <0%> (-0.57%)
:arrow_down:

src/if_xcmdsrv.c
85.99% <0%> (-0.18%)
:arrow_down:

src/drawline.c
85.3% <0%> (-0.14%)
:arrow_down:

src/window.c
88.27% <0%> (-0.07%)
:arrow_down:

src/message.c
79.43% <0%> (-0.05%)
:arrow_down:

src/os_unix.c
63.45% <0%> (ø)
:arrow_up:

... and 4 more

Continue to review full report at Codecov.

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


add Sengled W41-N13 bulb

1. Add the light-level-colorTemperature-color.yml file to the path SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/profiles/
2. Modified  SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/fingerprints.yml  file, a new device id is added.

 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.


Exiting during arming causes a sensor bypass issue.

Alarmo Version
v1.9.4
HA Version
core-2022.6.2
Bug description
When I set the alarm to Armed_Away, I have a 90 second delay that begins. Within that 90 seconds, up until I upgraded to version 1.9.4, I was able to set the alarm to Armed Away, exit the house through my garage door and everything worked normally. Now- when I set the alarm to armed away, the 90 second countdown begins, but if I open the garage door, the countdown stops and tells me that the garage door being opened caused an arming failure.
Steps to reproduce
Attempt to leave the house while armed away countdown is running.
Relevant log output
Nothing relevant that I have found. Everything runs the way it should, except now the ability to set the armed away countdown and leave has stopped.

Please share the configuration of this sensor.

Is the configuration inside of the Alarmo configuration what you're looking for?

I see. Was this a breaking change from v1.9.4? I haven't made any modifications to any sensors in months and this only started happening after I upgraded to v1.9.4. I do see on the configuration that this option is not checked, so I'm sure that will resolve it. But it's weird to me that that toggle is now turned off.

No, it should always have worked like this. But I got a similar comment the other day: https://github.com/nielsfaber/alarmo/issues/494#issuecomment-1146652310.
It seems the previous version had different (unintentional) behaviour, so a bug.
I think for doors (which you use to exit) the 'use exit delay' setting should be on, for windows it should be off.
That way you will be notified immediately when arming starts of windows being left open, doors should all be closed by the end of the delay time.

Copy that. I'm pretty certain "use exit delay" was turned on when I set up the Alarmo integration on my HA instance, so I'm sure this is the fix. I'll test it tonight when I get back home and let you know if it doesn't work. Thanks for the quick answers!

I recently updated (can't recall which version I was on) and now seem to be running v1.8.7. I think there are newer versions but for some reason I can't see any updates available in HACS. I am running into the same issue as reported in this ticket, but I think I have observed behavior that is a bit different than what has been previously explained.
Prior to updating, the alarm would refuse to start when a window or door is open, which makes sense. You don't want to leave and unknowingly leave a door open. Now I run into the issue described in this ticket - after starting countdown, when I open a door, the alarm is cancelled. I can mark the sensor as described in this ticket, but the issue with this is that now there isn't any feedback if a door was accidentally left open. The result is that I set the alarm, leave through a door, and then the alarm cancels at the end of the countdown because there wasn't any feedback that the door was open to begin with.
I think I can work with the current setup with my own automations, but wanted to share this experience since I felt like it was missing from the discussion.

@jutley You should be able to open/close a door during the exit delay for allowing you to leave the house (assuming you're arming while you're inside still). This is intended behavior.
If you don't want this, you can control it via this setting:

The result is that I set the alarm, leave through a door, and then the alarm cancels at the end of the countdown because there wasn't any feedback that the door was open to begin with.

If the door which you used to leave the house is the only open door, it should be fine (assuming you close it after leaving). If there is a second door, you would indeed be notified at the end of the exit delay.
However I would recommend to either have only 1 door for exiting (others are not allowed to be open while exiting), or use this setting to skip the remainder of the exit delay after closing the door:


Dialog API issue with file selection [bug]

Describe the bug
I'm trying to use the dialog API in my Tauri app, specifically the FileDialogBuilder to select files but I'm having some issues with the way it's shown on MacOS (see picture).
It always appears in the top right corner of the screen, overlayed by the menu bar. This file selection window cannot be moved. I'm calling the dialog like this:
FileDialogBuilder::new().pick_folder();
I've used the dialog API for simple Yes/No boxes and it works well so unsure what could be the cause.

Reproduction
I'm not doing anything special to reproduce this issue, just using to open the file dialog.
let file_selection = FileDialogBuilder::new().pick_folder();

Expected behavior
The file selection dialog should not appear on top of the screen, overlayed by the menu bar and blocked (cannot resize it or move it at all).
Platform and versions
Environment
  › OS: Mac OS 13.4.1 X64
  › Node.js: 18.13.0
  › npm: 9.3.0
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.25.1
  › rustc: 1.70.0
  › cargo: 1.70.0
  › Rust toolchain: 1.70.0-aarch64-apple-darwin

Packages
  › @tauri-apps/cli [NPM]: 1.2.3
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: 1.4.0,
  › tauri-build [RUST]: 1.4.0,
  › tao [RUST]: 0.16.1,
  › wry [RUST]: 0.24.1,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../build
  › devPath: http://localhost:3000/
  › framework: React
  › bundler: Webpack

App directory structure
  ├─ .husky
  ├─ docker
  ├─ node_modules
  ├─ public
  ├─ scripts
  ├─ .github
  ├─ src-tauri
  ├─ build
  ├─ .git
  ├─ .vscode
  └─ src

Stack trace
No response
Additional context
No response

I'm also seeing this same behavior on macOS. The only workaround seems to be setting a parent window when building the file dialog, which is not ideal. It also makes using the builder a lot less ergonomic (since I need to pass around a window).


[Bug]: @tma.js/sdk 2.5.0 version not working

Telegram Application
Telegram for iOS
Describe the Bug
As of version 2.5.0, the documented methods are basically ineffective, e.g.
import { initMainButton } from<EMAIL_ADDRESS>const mainButton = initMainButton();
mainButton.show();
will report an error:
TypeError: mainButton.show is not a function.
The same goes for other things like backButton, viewport, is it being used in the wrong way?
To Reproduce
As written in the documentation, it can take effect
Expected Behavior
As written in the documentation, it can take effect

Seems like the documentation is outdated. Use this code:
import { initMainButton } from<EMAIL_ADDRESS>
const [mainButton] = initMainButton();
mainButton.show();


⚠ Inventory API Endpoint has degraded performance

In 95b3c13, Inventory API Endpoint (https://inventory.roblox.com/v1/users/82738847/assets/collectibles?limit=10&sortOrder=Asc) experienced degraded performance:

HTTP code: 500
Response time: 1167 ms

Resolved: Inventory API Endpoint performance has improved in 5f8eaa9 after 9 minutes.


Support Transformer LM

This PR support transformer LM training in icefall.
Initial testing: an RNNLM and a transformer LM trained on LibriSpeech 960h text and their best perplexities are shown below.

LM
Num params
Perplexity

RNN LM
38.5M
17.94

Transformer LM
41.5M
15.13

TODO:

Finish training a larger version
Implement decoding methods supporting transformer LM

Some updates:
I am training a larger transformer LM using librispeech-lm-corpus. The results are here:

Model
Num params
Perplexity

RNNLM
102.8M
9.97

Transformer LM
98.6M
9.73

The perplexity is still going down. I will upload it to huggingface and paste the link here once it's done.

Update of transformer LM decoding:

Model
LM
test-clean
test-other

lstm_transducer_stateless2
RNNLM
2.42
6.46

lstm_transducer_stateless2
TransformerLM
2.37
6.48

Upload the pre-trained model to huggingface: https://huggingface.co/marcoyang/icefall-librispeech-transformer-lm/tree/main

Some LODR results:

Model
LM
test-clean
test-other

lstm_transducer_stateless2
RNNLM
2.24
5.89

lstm_transducer_stateless2
TransformerLM
2.19
5.90

pruned_transducer_stateless3
RNNLM
1.77
3.99

pruned_transducer_stateless3
TransformerLM
1.75
3.94

pruned_transducer_stateless3
RNNLM
1.91
4.57

pruned_transducer_stateless3
TransformerLM
1.91
4.51

Could you also update the CI?
(Decoding test-clean/test-other with transformer LM)

Could you also update the CI? (Decoding test-clean/test-other with transformer LM)

Will do.


models/webhook.go linting

still incomplete

Current coverage is 3.03% (diff: 100%)

Merging #198 into master will not change coverage

@@            master      #198   diff @@
========================================
  Files           33        33
  Lines         8106      8106
  Methods          0         0
  Messages         0         0
  Branches         0         0
========================================
  Hits           246       246
  Misses        7840      7840
  Partials        20        20

Powered by Codecov. Last update bd13c81...831a0e3

This is ready for merge, please review.

This is not building:
# code.gitea.io/gitea/models
models/webhook.go:395: t.SimpleMarshalJSON undefined (type *HookTask has no field or method SimpleMarshalJSON, but does have simpleMarshalJSON)
models/webhook.go:398: t.SimpleMarshalJSON undefined (type *HookTask has no field or method SimpleMarshalJSON, but does have simpleMarshalJSON)

^

Build should be fixed now, sorry for the noise

LGTM

LGTM

resolved #70


feat: resource name

Summary
add name field for route, service, upstream to name each instance, and it is  unique, can't be duplicate.

@nic-chen Is this PR reday for review?

yes , please.  @moonming

@nic-chen missing doc

done. @membphis


NSM DNS simplification

Signed-off-by: denis-tingajkin<EMAIL_ADDRESS>
Description
Coredns guys suggested using forward plugin with zones handling instead of fanout plugin.
This way looks good for us and it also some simplify NSM DNS specific part.
Motivation and Context

https://github.com/networkservicemesh/networkservicemesh/issues/2089
Removed nsm-coredns image
Removed plugin fanout(moved to separate repo https://github.com/networkservicemesh/fanout)

How Has This Been Tested?

[ ] Covered by existing integration testing
[ ] Added integration testing to cover
[X] Tested locally
[ ] Have not tested

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[X] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

TODO: improve docs

Pr is not ready to merge yet, but be free to comment

@denis-tingajkin This looks good to me, could you rebase?

@edwarnicke done


Support for Java 8 date time types in the metadata requests

I have the following meta endpoint (completely vanilla actually):
   @GET
    @Path("meta")
    public MetadataResponse<ContentModule> getMetadata(@Context UriInfo uri) {
        return LinkRest.metadata(ContentModule.class, configuration)
                      .forResource(ContentModuleApi.class)
                      .uri(uri).process();
    }

For entity attributes of type LocalDateTime, the type is reported as null:
{
"name": "publishDate",
"type": null,
"mandatory": true
}

@atomashpolskiy

Types encoding is done in com.nhl.link.rest.encoder.PropertyMetadataEncoder#getPropertyType. We probably shouldn't render Java8 date-time types as date, because it's misleading and because we won't be able to parse a conventional date in all cases. In fact, I now think that it would be better to not translate types into a JS-like simplistic type system, but rather specify Java FQCN. Even more so with LR client and java-to-java integration. What do you think?

 Though I am not comfortable with using Java FQNs either. We shouldn't leak anything Java-specific.
So perhaps we follow Swagger and specify the JSON type, but add a secondary qualifier (called "format" in Swagger). See "Data Types" under http://swagger.io/specification/ ).

Seems fine. Per RFC3339 we'll end up with the following metatypes:
LocalDate: type: date, format: full-date
LocalDateTime: type: date, format: date-time
LocalTime: type: date, format: full-time

fixed


Destroy ipsets prefixed weave- only (fixes issue #2751)

Changes to destroy weave's ipsets only so that it can co-exist with other tools that use ipsets (e.g., keepalived-vip).

Thanks for the contribution, @stephan2012 !
I've made some comments in a review.

@bboreham: Thanks for your feedback. The idiomatic stuff is related to me being a newbie in Go…
What are the expectations regarding this PR?

If you fix up the points we can merge it.  Or someone else will fix them up.
Thanks!
One more thought: it would be good to have a test for the extended functionality, e.g. create an ipset before running, then check it's still there afterwards, in test/840_weave_kube_3_test.sh.  But to execute that test you'd need to set up 3 VMs with Kubernetes installed, which is quite a lot of faff.  (We have scripts to do it, but they have dependencies, etc.)

I made the changes that I suggested, and added a test: https://github.com/weaveworks/weave/compare/stephan2012-master
CI build passed at https://circleci.com/gh/weaveworks/weave/8207
I also checked that the test fails on existing 1.9: https://circleci.com/gh/weaveworks/weave/8208

@bboreham Could you open PR with your changes?

Closing this PR as #2846 has been merged instead, but thanks again for the contribution @stephan2012!


Removing python2

Any plans on removing the python 2 support (directory) and just keep python3, moving it to the root directory and also removing support for older python versions?

I think it's time. Anyone learning Python should use Python 3.


Provide links for latest articles

💥 Proposal
It will provide links for the medium articles which are published (today) according to genre
It will give article link, title, writer and publisher name.
Have you read the Contributing Guidelines on Pull Requests ?
Yes

Please assign me this issue as a part of Cross Woc

Please assign me this issue as a part of Cross Woc

You can work on it @Akash20x
You are given 6 days to complete it.

This issue will take too much time to solve and less days for crosswoc to end, so I withdraw from this issue.
So I will close this issue.

Please help me regarding this issue, Check my DM on discord

Please check my pull request


6.1.2 Release

Hi Team,
This commit fixes some great issues when using NextJS, is there an ETA for the next tagged 6.1.2 release?

Hi Team, do you think you can tag a new release please? 🙏 🙏

6.1.2 released


copy and paste the content

There must be a way to listen for highlight or clipboard and provide the actual arabic text for the copied. I have to look into it but i have an idea of how. We just need to get off our clipboard!

Closing for now


Ignore words started with an underline

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 47.835%

Totals

Change from base Build<PHONE_NUMBER>8:
0.0%

Covered Lines:
499

Relevant Lines:
974

💛  - Coveralls


Unable to open 'Settings': resource is not available.

Unable to open 'Settings': resource is not available.
I seldomly get this when I open settings for the very first time via Preferences > Settings
If I try to open settings for the second time everything works fine

I haven't seen it, please reopen if you see it again

Ok, was on vacation. Will reopen if I see it again.


StockChart is unknown chart type for 0.4.1 version

I've tested StockChart for 0.4.1 version. it dosen't work.
i got message "stockchart is unknown chart type"
so i changed engine 0.3.4 then StockChart's working well
could you check this problem?

I have the same problem.

Could you please specify more details ? what kind bundler do you use ? did you follow the instructions from this section https://github.com/gevgeny/angular2-highcharts#installation ?

I have followed the instructions but am having the same problem. I have posted a basic example to github. It would be nice if you could please take a quick look and help out.
https://github.com/bencameron00/Ng2HighStocks

did you specify this https://github.com/gevgeny/angular2-webpack-starter-and-angular2-highcharts/blob/fffbebfd7974f808242dbbb8eccdfc108dde72cf/config/webpack.common.js#L73 ?

That's it, That's what i missed! Thank you!

What should I do with this file or with this line??

this is part of an example config which you should to your config

I don't have this config files

I all, I have the same issue, but with the Chart Type "gauge". I don't use angular-cli neither webpack, only using systemjs.config.js.
Here my app.module.ts:
import { ChartModule } from 'angular2-highcharts';

@NgModule({
  imports: [
    ChartModule.forRoot('highcharts'),
    ChartModule.forRoot('highcharts/highcharts-more'),
    ChartModule.forRoot('highcharts/modules/solid-gauge'),
  ]
})
export class AppModule {
}

And my sistemjs.config.js:
        packages: {
            highcharts: {
                main: './highcharts.js',
                defaultExtension: 'js'
            },
            'angular2-highcharts': {
                main: './index.js',
                defaultExtension: 'js'
            }
        },
     resolve: {
      alias: {
        // NOTE: You should set 'highcharts/highcharts.src.js'
        // if you are not going to use <chart type="StockChart"
        highcharts$: "highcharts/highcharts-more.src.js"
      }

What am I missing?

@beabri check this https://github.com/gevgeny/angular2-highcharts#for-systemjs-environment

@gevgeny I did exactly like in the example, but also with the simple chart it gives me the same error: "Chart is unknown chart type".

UPDATE: it seems not to be a gauge error... it doesn't work always with the simplest highchart inside my Angular 2 app, it always gives me the following error:

I looked for the answer everywhere and my code is a mix of all solution I found, but it is still not working.
Here my app.module.ts:
import { ChartModule } from 'angular2-highcharts';

@NgModule({
  imports: [
    ChartModule.forRoot('highcharts')
  ]
})
export class AppModule {
}

My sistemjs.config.js:
    map: {
        'angular2-highcharts': 'npm:angular2-highcharts',
        'highcharts': 'npm:highcharts'
    },
    packages: {
        highcharts: {
            main: './highcharts.js',
            defaultExtension: 'js'
        },
        'angular2-highcharts': {
            main: './index.js',
            defaultExtension: 'js'
        }
    }

And, inside my component:
import { Component } from '@angular/core';
import { ChartModule } from 'angular2-highcharts';

@Component({
  selector: 'highchart',
  template: '<chart [options]="options">'
})

constructor() {
    this.options = {
        title : { text : 'angular2-highcharts example' },
        series: [{
            name: 's1',
            data: [2,3,5,8,13],
            allowPointSelect: true
        },{
            name: 's2',
            data: [-2,-3,-5,-8,-13],
            allowPointSelect: true
        }]
    };

    console.log(this.options);
}
options: Object;

Any ideas? Thanks a lot.

App.Module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ChartModule } from 'angular2-highcharts';
export function highchartsFactory() {
const hc = require('highcharts');
const dd = require('highcharts/modules/drilldown');
const ex = require('highcharts/modules/exporting');
const st = require('highcharts/modules/stock');
dd(hc);
ex(hc);
st(hc);
return hc;
}
@NgModule({
providers: [
{ provide: HighchartsStatic, useFactory: highchartsFactory }
],
bootstrap: [AppComponent]
})
export class AppModule { }
Component
import { Component, OnInit } from '@angular/core';
import * as HighchartsTyping from 'highcharts';
import { HighchartsOptions } from './../../_helpers/highcharts/highcharts-options';
@Component({
selector: 'app-onion-track',
templateUrl: './onion-track.component.html',
styleUrls: ['./onion-track.component.sass']
})
export class OnionTrackComponent implements OnInit {
private highcharts: HighchartsOptions;
public chart: HighchartsTyping.ChartObject;
public options: Object;
constructor() {
this.highcharts = new HighchartsOptions();
HighchartsTyping.setOptions(this.highcharts.Theme('darkunica'));
this.options = {
  title: { text: 'AAPL Stock Price' },
  series: [{
    name: 'AAPL',
    data: [
      [1280966400000, 37.39],
      [1281052800000, 37.16],
      [1281312000000, 37.39],
    ],
    tooltip: {
      valueDecimals: 2
    }
  }]
};

}
saveInstance(chartInstance) {
this.chart = chartInstance;
}
ngOnInit() {
setInterval(() => {
if (this.chart.series[0].data.length > 15) {
this.chart.series[0].data[0].remove();
}
this.chart.series[0].addPoint(Math.random() * 10);
}, 1000);
}
}
Template Html


boards: stm32: Extend stm32f746g_disco board with Arduino header

Adding GPIO mapping for Arduino connector.
Signed-off-by: Marco Peter<EMAIL_ADDRESS>

Used nucleo_l452re as example.

Used nucleo_l452re as example.

Well, no luck ;-). I'll fix it


Mitaka nfp 03 june 2016 - Devstack fixes for Paloalto and LBaaaSV2

This is not mergeable. Closing this. Need to raise new PR and merge it to main branch.


predefined clue idea is mentioned yet undefined

It's mentioned between task and tip, but is not defined in lib/predefined.typ.
https://github.com/jomaway/typst-gentle-clues/blob/edbe54dace92ce1717b5aea2097d09e3a0184dc8/README.md?plain=1#L30

True, i thing it is still called conclusion instead of idea. Add to the list to fix Thanks.


CI: Fix checks fallback logic when changed files listing is missing

Follow-up to #76263 and #76296.
The file would be one byte (newline) so the check with '-s' failed.

Note to maintainers: Don't merge this one. We need to test it with a batch merge, so it will be included into one of those.

Cherry-picked for 4.0.3.


Collation fixes

Fixes the following issues:

https://github.com/dolthub/dolt/issues/4172
https://github.com/dolthub/dolt/issues/4168

Fixes https://github.com/dolthub/dolt/issues/4172


Create a libp2p maintainers org in the libp2p Google org and delegate meeting admin to members

@sukunrt was not able to run the meeting for the go-libp2p call. The answer is to set up a "libp2p maintainers" org group and grant members the permissions to admin meetings. Here's the documentation from google: https://support.google.com/a/answer/7304109?hl=en

I requested @masterwayne promote me to an admin of the libp2p Google Org so that I can make these changes and manage it without his intervention.
https://filecoinproject.slack.com/archives/D06AEDREGP3/p1714066971597429

@MarcoPolo requested that himself, @sukunrt and @p-shahi and @yiannisbot to the group. @p-shahi is already in the libp2p Google Org and should already have the permissions but I'll formalize it into a maintainers group.

@p-shahi and I set the google meetings to be open meetings so that anybody can start them. that solves the problem and we don't need to add anybody to the libp2p GW.


Error in PadDynamicalDecoupling error message

Environment

Qiskit Terra version: 0.24.1
Python version:  3.9
Operating system: MacOs

What is happening?
When I try and use the timing_constraints kwarg (incorrectly) I get an error when it is attempting to print the actually error message.
What I was trying to do is see if this arg can be used to set a minimum duration for inserted delays, but I think this arg is actually supposed to be making delays multiples of this value?
How can we reproduce the issue?
running the example code with this extra kwarg:
import numpy as np
from qiskit import transpile
from qiskit.circuit import QuantumCircuit
from qiskit.circuit.library import XGate, RZGate
from qiskit.transpiler import PassManager, InstructionDurations
from qiskit.transpiler.passes import ALAPScheduleAnalysis, PadDynamicalDecoupling
from qiskit.visualization import timeline_drawer

circ = QuantumCircuit(3)
circ.x(0)
circ.cx(0, 1)
circ.cx(1, 2)
circ.measure_all()
durations = InstructionDurations([
    ("h", 0, 50), ("cx", [0, 1], 700), ("reset", None, 10),
    ("cx", [1, 2], 200), ("cx", [2, 3], 300),
    ("x", None, 50), ("measure", None, 1000)
])

# balanced X-X sequence on all qubits
dd_sequence = [XGate(), XGate()]
pm = PassManager([ALAPScheduleAnalysis(durations),
                  PadDynamicalDecoupling(durations, dd_sequence, pulse_alignment=64)])
pm.run(circ).draw(fold=-1)

raises
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In [51], line 24
     21 dd_sequence = [XGate(), XGate()]
     22 pm = PassManager([ALAPScheduleAnalysis(durations),
     23                   PadDynamicalDecoupling(durations, dd_sequence, pulse_alignment=64)])
---> 24 pm.run(circ).draw(fold=-1)

File ~/mambaforge/envs/pec/lib/python3.9/site-packages/qiskit/transpiler/passmanager.py:231, in PassManager.run(self, circuits, output_name, callback)
    229     return circuits
    230 if isinstance(circuits, QuantumCircuit):
--> 231     return self._run_single_circuit(circuits, output_name, callback)
    232 if len(circuits) == 1:
    233     return [self._run_single_circuit(circuits[0], output_name, callback)]

File ~/mambaforge/envs/pec/lib/python3.9/site-packages/qiskit/transpiler/passmanager.py:292, in PassManager._run_single_circuit(self, circuit, output_name, callback)
    280 """Run all the passes on a ``circuit``.
    281
    282 Args:
   (...)
    289     The transformed circuit.
    290 """
    291 running_passmanager = self._create_running_passmanager()
--> 292 result = running_passmanager.run(circuit, output_name=output_name, callback=callback)
    293 self.property_set = running_passmanager.property_set
    294 return result

File ~/mambaforge/envs/pec/lib/python3.9/site-packages/qiskit/transpiler/runningpassmanager.py:125, in RunningPassManager.run(***failed resolving arguments***)
    123 for passset in self.working_list:
    124     for pass_ in passset:
--> 125         dag = self._do_pass(pass_, dag, passset.options)
    127 circuit = dag_to_circuit(dag, copy_operations=False)
    128 if output_name:

File ~/mambaforge/envs/pec/lib/python3.9/site-packages/qiskit/transpiler/runningpassmanager.py:173, in RunningPassManager._do_pass(self, pass_, dag, options)
    171 # Run the pass itself, if not already run
    172 if pass_ not in self.valid_passes:
--> 173     dag = self._run_this_pass(pass_, dag)
    175     # update the valid_passes property
    176     self._update_valid_passes(pass_)

File ~/mambaforge/envs/pec/lib/python3.9/site-packages/qiskit/transpiler/runningpassmanager.py:202, in RunningPassManager._run_this_pass(self, pass_, dag)
    199 if pass_.is_transformation_pass:
    200     # Measure time if we have a callback or logging set
    201     start_time = time()
--> 202     new_dag = pass_.run(dag)
    203     end_time = time()
    204     run_time = end_time - start_time

File ~/mambaforge/envs/pec/lib/python3.9/site-packages/qiskit/transpiler/passes/scheduling/padding/base_padding.py:130, in BasePadding.run(self, dag)
    127     if t0 - idle_after[bit] > 0 and self.__delay_supported(bit_indices[bit]):
    128         # Find previous node on the wire, i.e. always the latest node on the wire
    129         prev_node = next(new_dag.predecessors(new_dag.output_map[bit]))
--> 130         self._pad(
    131             dag=new_dag,
    132             qubit=bit,
    133             t_start=idle_after[bit],
    134             t_end=t0,
    135             next_node=node,
    136             prev_node=prev_node,
    137         )
    139     idle_after[bit] = t1
    141 self._apply_scheduled_op(new_dag, t0, node.op, node.qargs, node.cargs)

File ~/mambaforge/envs/pec/lib/python3.9/site-packages/qiskit/transpiler/passes/scheduling/padding/dynamical_decoupling.py:307, in PadDynamicalDecoupling._pad(self, dag, qubit, t_start, t_end, next_node, prev_node)
    303 time_interval = t_end - t_start
    304 if time_interval % self._alignment != 0:
    305     raise TranspilerError(
    306         f"Time interval {time_interval} is not divisible by alignment {self._alignment} "
--> 307         f"between DAGNode {prev_node.name} on qargs {prev_node.qargs} and {next_node.name} "
    308         f"on qargs {next_node.qargs}."
    309     )
    311 if not self.__is_dd_qubit(dag.qubits.index(qubit)):
    312     # Target physical qubit is not the target of this DD sequence.
    313     self._apply_scheduled_op(dag, t_start, Delay(time_interval, dag.unit), qubit)

AttributeError: 'DAGInNode' object has no attribute 'name'

What should happen?
It should have printed the actual error message for me using the kwarg incorrectly (if thats what I was doing wrong).
Any suggestions?
Fix the error message.
Separately is there a way to set a minimum delay duration using this pass without truncating everything to multiples of this value? (@nkanazawa1989)

About the error message, the problem here is that the prev_node is being passed as a DAGInNode, which doesn't has the name and qargs attributes.
In my tests I've changed the dynamic_decoupling.py file to this:
        if time_interval % self._alignment != 0:

            prev_node_name =  str(prev_node._node_id) if not isinstance(prev_node, DAGOpNode) else prev_node.name
            prev_node_qargs = () if not isinstance(prev_node, DAGOpNode) else prev_node.qargs

            raise TranspilerError(
                f"Time interval {time_interval} is not divisible by alignment {self._alignment} "
                f"between DAGNode {prev_node_name} on qargs {prev_node_qargs} and {next_node.name} "
                f"on qargs {next_node.qargs}."
            )

Once the DAGOpNode class has these attributes, we can check if the node is an instance of it and whether not , just left empty or with other value.
This is just a preliminary test, There might be another way to fix it, but if the prev_node.name and prev_node.qargs aren't used in other functions/contexts, maybe just changing the error message could be a good solution.

Separately is there a way to set a minimum delay duration using this pass without truncating everything to multiples of this value? (@nkanazawa1989)

Can you give me more context?


General Question - Real-Time Logging

Just a general question as my wife went out on an errand.
Is the data logged real time?
Does the car have to be on WiFi (same network as teslamate) in order for data to get pulled, etc?
I saw that the 1st 21 minutes of a trip won't be logged. If we run short errands, etc none of this will be tracked/logged?

Is the data logged real time?

Yes, data is logged in real time. It polls vehicle data from Tesla API. Therefore the car needs to be online but it does not necessarily need to be on WiFi.

I saw that the 1st 21 minutes of a trip won't be logged.

That only happens after the car has been idling for 15 minutes (e.g. after charging / driving). If you then start driving again, data may not be logged until those 21 minutes have elapsed.
It depends on your usage pattern whether that happens regularly. If so, you could try out the solution described in the FAQ :)

Hm Ok. I purposely woke the car up at home a few times before my wife drove it on an errand. It didn't log the trip to there, but it logged the trip back. She was there for over 40 minutes (sentry mode on) We don't leave sentry mode on at home in the garage so it sleeps regularly.

@natrlhy You could create a script on your computer that will resume logging and run it before you leave if the options in the FAQ don't work for you (not quite as convenient as from your phone though).
https://gist.github.com/Rfvgyhn/55c146dcc2615261e004c28cc987a425

Since I don't have teslamate public facing I may try a local script.
What I'm wondering is would it be a curl command with http://localiphere:4000/apiapi/car/1/logging/resume
In both examples, there is no port specified so I'm just trying to understand what API call to which docker container it's going to be referencing (if this makes sense)

curl should have no problem parsing the port. Assuming http://localiphere:4000 is the address you use in your browser to access the web interface and assuming anonymous auth, it should look like curl -X PUT http://localiphere:4000/api/car/1/logging/resume

@natrlhy The 15-minutes period could also be made configurable. Would it help to increase it to 30 or even 60 minutes?

@adriankumpf making the timeout / callback / check if car is awake period configurable would be great also if it can be changed by api. Then one could do interesting home automation tweaks. ie: when car is "home" then configure a longer check time vs when the car isn't "home" etc ...

Making it configurable to an increase in time would make it so less data would be captured, no?
Is there a way to set the API to see if the car is online and resume logging based on that state? Since it has a persistent connection, why not just poll for the Status. If the status changes from asleep to online, then send an instant resume for logging.
I love data, even though I may not understand it all at times, so the more data that can be captured, the better! :)

@adriankumpf making the timeout / callback / check if car is awake period configurable would be great also if it can be changed by api. Then one could do interesting home automation tweaks. ie: when car is "home" then configure a longer check time vs when the car isn't "home" etc ...

Okay, so you mean the default interval of 60 seconds if the car is asleep, right? Theoretically we could just reduce it a bit e.g. to 30 seconds for everyone. It only increases the load on the Tesla servers but besides that there is no negative impact on power consumption on the car.

Making it configurable to an increase in time would make it so less data would be captured, no?

No, it would cause the car to stay online longer i.e. if you're run short errands where the car is parked only for a short period of time, it would become less likely that no data is logged.

Is there a way to set the API to see if the car is online and resume logging based on that state? Since it has a persistent connection, why not just poll for the Status. If the status changes from asleep to online, then send an instant resume for logging.

This is the way it works :) When the car is asleep teslmate checks it status every 60 seconds.

@adriankumpf making the timeout / callback / check if car is awake period configurable would be great also if it can be changed by api. Then one could do interesting home automation tweaks. ie: when car is "home" then configure a longer check time vs when the car isn't "home" etc ...

Okay, so you mean the default interval of 60 seconds if the car is asleep, right? Theoretically we could just reduce it a bit e.g. to 30 seconds for everyone. It only increases the load on the Tesla servers but besides that there is no negative impact on the power consumption of the car.

Oh I meant the 21 minute period but I think either one being configurable ... Maybe I'm getting confused by how you have polling setup during different states ...

So the logger API call is different than me opening up my Tesla app and "waking" the car up a bit before I might be leaving seems to be different. Is that act just sending a wake API call and not triggering any logging/scraping?
I was able to manually run curl -X PUT http://myiphere:4000/api/car/1/logging/resume and right away TeslaMate changed from "offline" to "online". Sending the curl command to suspend put it into a "falling asleep" status.
I guess I'm not understanding why, if teslamate checks every 60 seconds if the car is online/offline, why it won't just start logging data right away if the state changes from offline to offline at any given point. If changing this status check from 60s to 30s only loads Tesla's API servers and won't consume any more power for the car, that would be great!
I guess in the end my thinking is, if any data gaps can be eliminated that's the ideal goal.

In general the suspend and resume calls are not required for the logger to work. It may just happen that in some situations the first few minutes (up to 21 in the worst case) of a trip are not logged. But really most of the time you should not notice any data gaps.
By explicitly informing the logger when its safe to start "falling asleep" (suspend) and when the process of falling asleep i.e. the 21-minute period should be aborted (resume), any data gaps can be eliminated.
It's a bit confusing, I guess.
Just give it a try and see if it's worth the effort to perform these API calls :)

I'm a new Tesla owner so maybe I'm opening up the Tesla App too much :). It wakes it up, then I'm not sure how long it takes to fall back asleep (maybe that 15 minutes that you are referring to?).
So part of me is thinking this helps the teslamate logging be ready. But if I don't end up driving the car anywhere after I wake up, it's going back to sleep, etc.
Also I ended up setting up VPN on my home router and the iOS tasks I've created do work so I'm good with not exposing my instances to the outside world since I can leverage home VPN (thanks again to Synology and their cool routers/NAS solutions).
If in doubt about logging, maybe I can just tell it to resume right when I'm about to jump in the . car and see how that goes. I try not to overthink this stuff but I can't help myself with all the cool things that one can do with a Tesla!

It wakes it up, then I'm not sure how long it takes to fall back asleep (maybe that 15 minutes that you are referring to?).

Almost. Teslamate assumes it takes 21 minutes and tries again if it takes longer than that.

Also I ended up setting up VPN on my home router and the iOS tasks I've created do work so I'm good with not exposing my instances to the outside world since I can leverage home VPN (thanks again to Synology and their cool routers/NAS solutions).

👍

If in doubt about logging, maybe I can just tell it to resume right when I'm about to jump in the  car.

Yes, that's the way to if you really want to make sure everything is logged from the start.
Closing this for now. Feel free to open another issue if there are any more questions.

@adriankumpf thanks for being very responsive to all these threads and questions :)

You're welcome! :)


\path macro should be parsed like \verb

<EMAIL_ADDRESS>should be parsed analogous to<EMAIL_ADDRESS>

Could you please let me know what package the \path macro comes from?

https://ftp.snt.utwente.nl/pub/software/tex/macros/generic/path/path-doc.pdf

Okay, the path package can be added to unified-latex-ctan. It won't verbatim parse (because verbatim parsing can only be done by modifying the grammar itself), but it would be able to parse the argument of \path. As long as people don't use the \path\...\ syntax, it should work just fine :-)


How to get unread item count and highlight unread items?

Hi,
The plugin is easy to use.
Is it possible to get unread item count and highlight (bold or colored) unread items?
Thanks
Wicky

Yes, it is possible, but it should be totally custom soultion. You need to store somewhere (for example in localStorage) read/unread flag and display it using custom templates.

Thank you!


Clean up branches

There are some branches left to clean up.
May someone delete the already merged branches?
https://github.com/philippabele/developers-guide-to-linux/branches/all

Done


Reaper khjob

Implemented a function to reap khjobs utilizing new function khJobDelete

I think this one is blocked waiting on #584

This should be unblocked after a change in #584


uncaughtError: read ECONRESET on using !next

(Just a reminder for myself)
If you run BananaBot on linux and you skip the current playing track an uncaughtError occurs and the bot crashes. I think the stream module of nodejs is different on linux distro's...

The issue is still there apparently. Still only happened while hosting it on linux...
Gonna try the fix mentioned here fent/node-ytdl-core#65

Ffs this error is killing meh...

Not pretty...but fixed here -> https://github.com/ItsBanana/BananaBot-Base/commit/7282dbf58a73c96ca54a7d2bab51bab6720deb25

Okay the problem still isn't fixed :(
One way to fix it is by changing exitOnError to false in src/Bot.js of the bananabot-base module


backport changes from #139 for current spec

backport better ucan header / payload types
alter encode/decode & signing
add ucan.isValid  and update test

Huh. The fs concurrency test is failing ... I'll have a look at that too 🤔

@icidasset after doing a little more testing, I rolled back to single proof - keeps our types more explicit and in-step with server for now. we can update when server is ready. cool?

Aight, sounds good 👍


Fix dot_axis API

Make the default value of dot_axes more useful.

The default value of dot_axes is pretty useless as of now. See : #918 . The dot_axes argument had to be explicitly provided even in such a simple case.

Sounds good.


Support publishing public scoped packages to npm

When you want to publish scoped packages to npm, you need to run npm publish --access public (https://docs.npmjs.com/configuring-your-npm-client-with-your-organization-settings)
It would be great to support this in jsii-release.

Contributions are welcome

I believe this is already supported


Correcting Kurdish language locale code

Package
filament/filament
Package Version
v2.0.0
Laravel Version
v8.0
Livewire Version
No response
PHP Version
php 8.0
Bug description
Please change the Kurdish language (Sorani) that added with short code (ku) to this project with (ckb) because this is a correct locale code.
Steps to reproduce
No response
Relevant log output
No response

Sorry, not sure what you mean. What exactly should I rename and what should it be?

One of the languages of translation is Kurdish (sorani). The language code is (ku) but the correct is (ckb).

from wikipedia:

As far as I know, Laravel uses ISO 639-1 codes and not ISO 639-3.
You can see the differences here - https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes


Does not work on CPU

When installed with CUDA support, the module does not work on CPU.
After installing DCNv2 on a device with GPU, I am able to successfully run both testcpu.py and testcuda.py.
However, when trying to run testcpu.py while hiding the GPU (CUDA_VISIBLE_DEVICES='' python testcpu.py), the test fails with a cuda runtime error on the import of _ext:
THCudaCheck FAIL file=../aten/src/THC/THCGeneral.cpp line=50 error=100 : no CUDA-capable device is detected
terminate called after throwing an instance of 'std::runtime_error'
  what():  cuda runtime error (100) : no CUDA-capable device is detected at ../aten/src/THC/THCGeneral.cpp:50
Aborted (core dumped)

Any advice on how to solve this?

After digging some deeper I found that this issue can be avoided by replacing line 11 of src/cuda/dcn_v2_cuda.cu
THCState *state = at::globalContext().lazyInitCUDA();

by
extern THCState *state;

Even though everything seems to work after this change, I wonder if this has any hidden side effects?

Another solution, inspired by https://github.com/pytorch/pytorch/pull/11893/files, is to remove the same line and delaying the lazyInitCUDA to the start of dcn_v2_cuda_forward and dcn_v2_cuda_backward where the state is actually used.


Detect module for code sharing (ng) not working properly

Environment
NS: 7.0.7
Angular CLI: 10.2.0
Angular: 10.2.2
Describe the bug
Somethimes detecting which module/component (.ts or .tns.ts) should be used not working properly. My component have a property 'isAvailable' only in component.ts file (and not for component.tns.ts).  Html file for web is using that property, and for mobile is not. If I run mobile app I can see errors like:
ERROR in src/app/words/words.component.html:2:11 - error TS2339: Property 'isAvailable' does not exist on type 'WordsComponent'.

2   *ngIf="!isAvailable"
            ~~~~~~~~~~~~~~~~~~~~
  src/app/words/words.component.tns.ts:21:16
    21   templateUrl: './words.component.html',
                      ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component WordsComponent.

But this is wrong template/ts! This is only for web.
I found that I can declare which module should be used for web/mobile in tsconfig files (https://docs.nativescript.org/angular/code-sharing/intro#lazy-loaded-modules) but with the same results..
What can be wrong? I use @src aliases when import files
I can fix it (for now) If I add 'tns' extensions to templateUrl in tns.ts but it shouldn't work like that, correct?
@Component({
  selector: 'app-words',
  templateUrl: './words.component.tns.html',
  styleUrls: ['./words.component.tns.scss'],
})

I am having the same issue, I reported this some weeks ago: https://github.com/NativeScript/nativescript-angular/issues/2271

Duplacated bug, so I'm closing it.


Add Airflow DAGs

lgtm & awesome work, this is a proper ETL use case, let's merge it & show it as part of upcoming Examples Documentation


Broadcasting before tl.dot

Hi,
I was trying to implement a kernel for computing a quadratic form with a Cholesky factor and got the below code working on my local machine with a GTX 1080 Ti (for all problem and block sizes I tried). However, trying to run the code with a A100 gives wrong results and running it on a V100 causes a segfault regardless of what block sizes / number of warps I use. I am using the latest preview build (2.0.0.dev20220713).
I suspect its due to the broadcasting before the tl.dot - if I try to replace the dot function broadcasted multiply and sum it also segfaults on all the machines I tried.
import torch

import triton
import triton.language as tl

@triton.jit
def _chol_quad_form(W_TRIU, XN, XM, OUT,
                    M, D,
                    W_triu_n, W_triu_d1, W_triu_d2,
                    xn_n, xn_d,
                    xm_m, xm_d,
                    out_n, out_m,
                    BLOCK_M: tl.constexpr,
                    BLOCK_D: tl.constexpr):
    n = tl.program_id(0)
    m = tl.program_id(1) * BLOCK_M

    W_TRIU = W_TRIU + n * W_triu_n
    XN = XN + n * xn_n

    out = tl.zeros((BLOCK_M,), OUT.dtype.element_ty)
    rm = m + tl.arange(0, BLOCK_M)
    rd = tl.arange(0, BLOCK_D)

    for ci in range(0, D, BLOCK_D):
        acc = tl.zeros((BLOCK_D, BLOCK_M), OUT.dtype.element_ty)
        for cj in range(0, D, BLOCK_D):
            xn = tl.load(XN + (cj + rd) * xn_d, mask=cj + rd < D, other=0)
            xm = tl.load(XM + rm[None, :] * xm_m + (cj + rd)[:, None] * xm_d,
                         mask=(rm < M)[None, :] & (cj + rd < D)[:, None],
                         other=0)
            w_triu = tl.load(W_TRIU + (ci + rd)[:, None] * W_triu_d2 + (cj + rd)[None, :] * W_triu_d1,
                             mask=(ci + rd < D)[:, None] & (cj + rd < D)[None, :],
                             other=0)
            acc += tl.dot(w_triu, xm - xn[:, None])
            # acc += tl.sum(w_triu[:, :, None] * (xm[None, :, :] - xn[None, :, None]), axis=1)
        out += tl.sum(acc * acc, axis=0)
    OUT = OUT + n * out_n + rm * out_m
    tl.store(OUT, out, mask=rm < M)

def chol_quad_form(W_triu, Xn, Xm, out=None, BLOCK_M=128, BLOCK_D=16, num_warps=4):
    N = Xn.size(0)
    M = Xm.size(0)
    D = W_triu.size(-1)

    assert N == W_triu.size(0)
    assert Xn.size(1) == Xm.size(1) == W_triu.size(1) == W_triu.size(2)

    if out is None:
        out = W_triu.new_empty(N, M)

    grid = lambda META: (N, triton.cdiv(M, META['BLOCK_M']))
    _chol_quad_form[grid](W_triu, Xn, Xm, out,
                          M, D,
                          W_triu.stride(0), W_triu.stride(1), W_triu.stride(2),
                          Xn.stride(0), Xn.stride(1),
                          Xm.stride(0), Xm.stride(1),
                          out.stride(0), out.stride(1),
                          BLOCK_M=BLOCK_M, BLOCK_D=BLOCK_D,
                          num_warps=num_warps)
    return out

def chol_quad_form_torch(W_triu, Xn, Xm):
    diff = Xm[None, :] - Xn[:, None]
    LX = W_triu.transpose(-1, -2) @ diff.transpose(-1, -2)
    return LX.pow_(2).sum(dim=-2)

if __name__ == '__main__':
    torch.manual_seed(0)
    N = 5000
    M = 5000
    D = 8

    W_inv = torch.rand(N, D, D, device='cuda')
    W_inv = W_inv @ W_inv.transpose(-1, -2)
    W_inv += torch.eye(D, device='cuda').expand_as(W_inv)

    W_inv_tril = torch.linalg.cholesky(W_inv)
    W_triu = torch.linalg.inv(W_inv_tril).transpose(-1, -2)

    Xn = torch.randn(N, D, device='cuda')
    Xm = torch.randn(M, D, device='cuda')

    res1 = chol_quad_form(W_triu, Xn, Xm)
    res2 = chol_quad_form_torch(W_triu, Xn, Xm)

    print(res1)
    print(res2)
    assert torch.allclose(res1, res2)

Hope this proves useful :)
Best regards,
Kenny

Thanks for the bug report! We are working on rewriting the backend, and I am sure that we will be able to fix this issues once this is done (~3 months)

seems fixed! I can see some minor  numerical differences but I think it's all expected


Lk pd 2736 doublets

testing new warp-tools docker with scikit learn and scanpy; custom doublet script for Multiome analysis

This PR is for warp-tools docker v2.4.0


Add a section to build docs locally

Pull request details
Describe the changes made in this pull request
New section in the README.dev to build and see the documentation locally.
List of related issues or pull requests
Closes #207
Collaboration confirmation
As a contributor I confirm

[x] I read and followed the instructions in README.dev.md
[NA] The documentation is up to date with the changes introduced in this Pull Request (or NA)
[NA] Tests are passing
[x] Lint is passing

Thanks!


fix: enabling disabled test

This test should pass now.

@theseion Can you see more info what happened?

You now need to use the reflect endpoint to specify the response:
            # ...
              Content-Type: "application/json"
            method: "POST"
            version: "HTTP/1.1"
            uri: "/reflect"
            data: "{\"body\": \"<html>\\n<head>\\n<title>Ru24PostWebShell -\"}"
           # ...

Still no luck.


Add zora network

thank you sir!

updated a few contracts to their proxy addresses, should be good now!

@kulkarohan pls remove yarn.lock :)


Query does not work

Even with the code like below all posts will be retrieved.
dataSource = Post.order(by: \Post.createdAt).limit(to: 1).dataSource()
...
}.listen()

Thank you.
I will fix it in the next version.

I want someone to fix....!

I have released a new version.
Please use version 0.2.2

@1amageek Thank you for the quick fix! I immediately tried it on my project and the query worked. 👍  but I found the following two problems. Maybe there are other bugs... 😿  I'd like you to check it.

The callback is no longer called in real time when updating the database.

dataSource = Post.where(\Post.isDeleted, isEqualTo: false)
            .order(by: \Post.createdAt, descending: true)
            .limit(to: 50)
            .dataSource()
            .on {  _, _ in
                // It is called only once...
            }
            .listen()

Unable to get document of sub collection.

post.videos.order(by: \Video.createdAt).dataSource()
            .onCompleted {  _, videos in
                // `post.videos.cout` is 1 but videos is empty...
            }
            .get()


Update label edit

Description
Updated the label editing logic and added a check for label type update. If the user needs to update the label type, he has to manually review the selection instances of the particular label. Otherwise, he can simply update the label title and the selections will be updated accordingly.
Related to #423
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Screenshots
On Success

Update dialog
Project details screen

On Error

Update dialog
Project details screen

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@cazci can't we cascade the updated label to the selections?

Sure, my guess for reviewing was to prevent deletion of any important selections automatically

@cazci In the case of editing label type, I think we should not allow it. Because even if allow it the user will lose all the selections done with previous type and that no different than deleting the label and creating it.

Yes true, I'll update it accordingly

@cazci please rebase to resolve confilcts


ImageSlideShow still working after I pop or dismiss the viewcontroller.

I have an ImageSlideshow in viewcontrollerB. The issue is ImageSlideshow still working after I pop, dismiss even I unwind viewcontrollerB back to viewcontrollerA.
When I push to viewcontrollerB again and then pop it back to viewcontrollerA.
The currentPageChanged method still working and it fired twice each time.
I have no idea. Did I miss something?

Hi, it seems like you have a memory leak in your code. Check you use the weak references when necessary, especially in the pageSelected closure.

Yes you are right!! Finally I solved the problem.
Thank you so much. You are awesome!


@MessageMapping Conflicting With WebSockets Implementation

Hey,
I use WebSockets in my Spring application and I wanted to integrate with Spring Cloud AWS Messaging to use SNS and SQS.
For my WebSockets I use @MessageMapping and it works great. However, the SQS listener is picking up all @MessageMapping annotated methods (regardless of what the class level annotation is) and assuming that it's an SQS queue and continually retrying to poll them.
Is there a quick fix, some configuration I could use, to make only @SqsListener annotated methods available for polling? I looked at the code -- so I know there's no class level filter annotation, and all @SqsListener and @MessageMapping annotated methods are being pulled in. Is there anyway this behaviour can be replaced with custom code?
Thanks!

So, I've noticed that during boot a check is done in SQS to see if a queue by a given name exists. Even after the check fails, I continually keep getting these logs every 10 seconds for queues that do not exist:
[tomcat:launch] WARN  [org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer#0-2] 2017-04-18 15:47:53.189 SimpleMessageListenerContainer:271 - An Exception occurred while polling queue '/test'. The failing operation will be retried in 10000 milliseconds
[tomcat:launch] java.lang.NullPointerException
[tomcat:launch] 	at org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer$AsynchronousMessageListener.run(SimpleMessageListenerContainer.java:255)
[tomcat:launch] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[tomcat:launch] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[tomcat:launch] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[tomcat:launch] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[tomcat:launch] 	at java.lang.Thread.run(Thread.java:745)


python310Packages.meilisearch: 0.24.0 -> 0.25.0

Diff: https://github.com/meilisearch/meilisearch-python/compare/refs/tags/v0.24.0...v0.25.0
Changelog: https://github.com/meilisearch/meilisearch-python/releases/tag/v0.25.0
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 217773 run on x86_64-linux 1

2 packages built:

python310Packages.meilisearch
python311Packages.meilisearch


About DB integrity [moved]

This is Issue 455 moved from a Google Code project.
Added by 2011-06-22T05:02:42.000Z by<EMAIL_ADDRESS>Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Low, v2.1
Original description
Hi Luca,
I care about db integrity, escpecially about lost links.
We can save any link (#x:y) to any place. OrientDB does not care if address exists now.
It would be nice if OrientDB has mode which supports integrity.
I offer to have one global index (references) which contains master and details links.
Now before saving of record is necessary
1. Collect all links which records has
2. Check if all are exist
3. Update index:references for this record

It is not necessary to care which field has link to master record. It is enough just to know that link exists

Before record deleting we can check if index:references has links to this record

Example

create class A;
insert into A (f) values ('Rec1'); // #5:1
insert into A (f) values ('Rec2'); // #5:2
insert into A (f) values ('Rec3'); // #5:3

create class B;
insert into B (f,A) values (1,#5:1); // #6:1
// Need to check if #5:1 exists
// insert into index:references (key,rid) values (#5:1,#6:1)

insert into B (f,A,A1) values (1,#5:1,#5:2); // #6:2
// Need to check if #5:1 and #5:2 exist
// insert into index:references (key,rid) values (#5:1,#6:2)
// insert into index:references (key,rid) values (#5:2,#6:2)

delete from A where f like "Rec%"
// Collect RIDs of records which should be deleted (#5:1,#5:2,#5:3)
// select from index:references where key in (#5:1,#5:2,#5:3)
// now if selection from references does not contains any records we can realize deteting

So it is possible to support DB integrity without schema.

Evgeny

P.S.
This is can be more complicated if remember that indexes do have links too.
Also as I have read OrientDB will support version of records.

This is not needed anymore if you use graph api.

If somebody needed there is the following implementation of a hook for consistency support without graph api: https://github.com/OrienteerDW/Orienteer/blob/master/orienteer-core/src/main/java/org/orienteer/core/hook/ReferencesConsistencyHook.java

Thanks Ilia @PhantomYdn.
How would that work out on performance?
Scott

Optimized, but still might be not ideal.


[View] Border radius greater than half of width/height works strange

  circle: {
    width: 50,
    height: 50,
    borderRadius: 25
  }

with borderRadius greater than 25 it isn't going to be a circle anymore.
I made a Demo https://rnplay.org/apps/vj3mJQ
You could reproduce it in react v.0.0.6-rc

From CSS, border-radius should be half of width/height. If you set bigger value, then browser render the circle anyway but it is not a good practice. Maybe react-native is the same.

@JonasJonny totally agree. Maybe it is not a bug at all, but I think most people will expect to get circle in that case.

We aim to follow the CSS spec as closely as possible with the border styles, even if the spec is weird. If it's behaving differently from a spec-compliant browser like Chrome then it may be a bug, otherwise it's as intended.

The spec says to prevent overlapping which is what produces the circle effect: http://www.w3.org/TR/css3-background/#corner-overlap. If you were to set a 50pt radius on just one corner it should produce a quarter-circle: https://jsfiddle.net/36uax3oL/1/

Just ran into this.  In 0.5.0, borderRadius equal to the width/height got me a circle.  Upgrading to 0.6.0 cause that break.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out it's new home: https://productpains.com/post/react-native/view-border-radius-greater-than-half-of-widthheight-works-strange

Fixed in https://github.com/facebook/react-native/commit/b115277d00f54fa7af5d61062c9e3cf362b7c5da


Various Bug Fixes and unnecessary code removal episode 2 (actually works edition)

Description
Fixed following open issues:

Implemented "Squad Queue" tier from recent Lounge API update (Untested)
Fixed Predict command and eradicated all URL shortening code (useless as tinyurl API has become unavailable) (Untested)
Fixed list formatting issues within certain commands (Tested)

Checklist

[ ] If code changes were made, they have been tested
[x] This PR fixes an issue
[ ] This PR is not a code change (ie. documentation, typehinting, comments, etc.)

LGTM

still some old references of multiple_rxxs_used, but getting close

i did provide an update for this but idk how to merge the changes now

i did provide an update for this but idk how to merge the changes now

there is one line that needs to be deleted entirely, it is in the merge_room_command async function in commands.py (sets a value to True just before state is saved
one reference of multiple_rxxs_used somewhere, cant remember where