Question: How to use Phased LSTM for regression data?

Hey Danny,
I could send you a mail directly but I guess it's better to keep track here so that other people can have a look.
In the Phased LSTM paper, you discussed mostly about classification problems.
Do you have any ideas how Phased LSTM could be used for a regression problem with  asynchronous data?
Let's say, I have a sensor that sends data asynchronously. I would like to be able to predict the next data point. But its value depends on the time of arrival. It's not the same if it comes 1 second after or 10 minutes after.
When it's synchronous data, it's quite easy because you can assume that data points are spanned every minute. In this case, it would just be forecasting at t+1. But when it comes to asynchronous data, I guess it's more tricky as the next point could come 15 seconds or 25 seconds later. So if we give the next data point to predict, the model will not have the information of when this data point actually arrived.
Toy example is:
data_point_1 {value = 0.02, timestamp = 0010}
data_point_2 {value = 0.04, timestamp = 0023}
data_point_3 {value = 0.01, timestamp = 0035}
data_point_4 {value = -0.02, timestamp = 0060}
data_point_5 {value = 0.04, timestamp = 0076}
data_point_6 {value = 0.09, timestamp = 0078}
data_point_7 {value = 0.03, timestamp = 0090}
data_point_8 {value = 0.01, timestamp = 00101}
data_point_9 {value = 0.02, timestamp = 00102}
Let's predict:
data_point_10 {value = 0.05, timestamp = 00106}
We can give data_point_1 up to data_point_9 to the network, along with their timestamps, as inputs. The network can figure out the frequencies and phases of the signals (strength of Phased LSTM!).
But how do we give the target? If we just give data_point_10.value, 0.05, it does not mean much since the timestamp is omitted. I guess we want to give the timestamp too.
For inference we would just query the model with {data_point_1 to data_point_9} and data_point_10.query_timestamp = 00106 (or possibly data_point_9.timestamp + forecasting_time_ahead in the general case), and hope to match data_point_10.value.
Am I correct? How could I improve my thinking?
Thanks!

I'm not well-versed in the particulars of the phased LSTM but for RNNs in general, I think you have two options.
 It has the benefit of improved generalization across different sequences as absolute time is discarded.
Alternatively, if there are non-stationary effects in the process you're modelling (e.g. values are noticeably different around early timestamps compared to later timestamps or something) you'll want to try choosing a fixed sample rate and inserting zero values to match, like:
{value = 0.02, timestamp = 0010}
{value = 0.00, timestamp = 0011}
{value = 0.00, timestamp = 0012}
...
{value = 0.00, timestamp = 0021}
{value = 0.00, timestamp = 0022}
{value = 0.04, timestamp = 0023}

Then it's up to the RNN to learn the importance of durations between consecutive events.
I'm sure there's smarter stuff out there, but maybe this could be a start.

@carlthome thanks for this clarification :)


Supporting fast MARS.

Issue #1
It is a way to approximate the forward pass to gain speed. This adds
three new parameters to Earth, which will control the behavior
of fast MARS. This commit contains also
a benchmark program which compares the normal behavior
to the fast MARS.

@mehdidc Thanks for this!  I really appreciate all the work.  I've been very busy, but I should be able to review this later this week.  This goes for your other PRs as well.

Very nice.  Merged it in.


Update NodeJS to v20

Github is deprecating NodeJS 16 soon, update Node to 20 to silence warnings for users running this action:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Thanks, and sorry for taking so long 🙇

Thanks, and sorry for taking so long 🙇


MailSender failed recipients always empty

Description
Failed recipients are always empty.
Possible Solution
Get failed recipients from exception or envelope
Additional context
https://github.com/shopware/platform/blob/trunk/src/Core/Content/Mail/Service/MailSender.php#L40

Since it uses symfony/mailer under the hood, it's no longer possible to check for status of the email due to Symfony\Component\Mailer::send() returning void. It also supports using an async messenger transport so wouldn't be possible anyways.


[e2e]: delegator-generic workflow_dispatch main checkout slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7706406387
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Jan 30 04:48:16 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7706617301
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Jan 30 05:17:17 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7719178626
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Wed Jan 31 00:16:53 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7730673496
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.main.checkout.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Wed Jan 31 18:31:25 UTC 2024
Tests are passing now. Closing this issue.


Code coverage

Vitest lcov coverage for SonarQube
Cypress lcov coverage for SonarQube
Upload the coverage to coveralls.io and get a coverage badge:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


The generated aar for native plugin in build/host/outputs/repo should have a correct version number.

Steps to reproduce

create a flutter project
add a plugin with native code, such as image_picker(It depens on image_picker_android)
build AAR for android with flutter  build aar --build-number 2.0
check the output assets located in "${projectRoot}/build/host/outputs/repo/io/flutter/plugins/imagepicker/image_picker_android_release/". The generated version of aar will be "2.0"(same as --build-number specified).
check the version number of image_picker_android in ${projectRoot}/pubspec.lock, It might be "0.8.12+1".
clean the workspace with flutter clean(this will not remove pubspec.lock)
re-build AAR for android with flutter  build aar --build-number 3.0
check the output assets again. The generated version of aar will be "3.0" this time.
check the version number of image_picker_android in ${projectRoot}/pubspec.lock, It should still be "0.8.12+1".

Expected results
The generated aar for image_picker_android in "${projectRoot}/build/host/outputs/repo/io/flutter/plugins/imagepicker/image_picker_android_release/" should retain it's version number when I rebuild aar without changeing it's version.
Actual results
It always has the same version of --build-number, even though I didn't change the version number of image_picker in pubspec.yaml.
Code sample
Code sample for pubspec.yaml
version: 1.0.0+1

environment:
  sdk: ^3.6.0-91.0.dev

dependencies:
  flutter:
    sdk: flutter
  image_picker: 1.0.0

dev_dependencies:
  flutter_lints: ^4.0.0

flutter:
  module:
    androidX: true
    androidPackage: com.example.flutter_project
    iosBundleIdentifier: com.example.flutterProject

Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.24.0-1.0.pre.349, on macOS 14.5 23F79 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 15.4)
    ✗ Unable to get list of installed Simulator runtimes.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] Connected device (3 available)
[✓] Network resources

@chunfengyao Thanks for the report and potential fix. I think it is similar to https://github.com/flutter/flutter/issues/98108 that you can check and confirm.

@chunfengyao Thanks for the report and potential fix. I think it is similar to #98108 that you can check and confirm.

Yes, this issue is similar but has a slight discrepancy as #98108. I'll also link #98108 to the pull request.

In your steps to reproduce can you add a step 4 that describes how to tell what is wrong?

In your steps to reproduce can you add a step 4 that describes how to tell what is wrong?

I've added some details in the "Steps to reproduce" and "Expected results" sections.

The generated aar for image_picker_android in "${projectRoot}/build/host/outputs/repo/io/flutter/plugins/imagepicker/image_picker_android_release/" should retain it's version number when I rebuild aar without changeing it's version.

Could you elaborate on why this is the expected result? It's entirely possible to edit a plugin's source without changing the version, and end up with different build output, so if build-number is supposed to uniquely identify output, then ignoring build-number seems potentially problematic.

The generated aar for image_picker_android in "${projectRoot}/build/host/outputs/repo/io/flutter/plugins/imagepicker/image_picker_android_release/" should retain it's version number when I rebuild aar without changeing it's version.

Could you elaborate on why this is the expected result? It's entirely possible to edit a plugin's source without changing the version, and end up with different build output, so if build-number is supposed to uniquely identify output, then ignoring build-number seems potentially problematic.

Actually, this can be a potential problem when a plugin maintainer modifies code but doesn't update the plugin's version. While it's not mandatory, it's good practice to give the assets a new version number when publishing to pub.dev to ensure compatibility.
This issue arises from our Flutter add2app project using a private Maven repository to manage third-party libraries. We've encountered difficulties managing the aars generated by flutter build aar for native plugins like image_picker. since flutter apply --build-number as the version number for all aar outputs, our private Maven repository accumulates numerous aars with distinct version numbers but identical code, making management challenging.
In my initial local code fix, I aimed to disregard the --build-number for native plugins, allowing it to exclusively impact the flutter.aar version. Ideally, the default native plugin version would be sourced from ${pluginSourceRoot}/android/build.gradle's version property. However, most native plugins neglect to update this property, leaving it consistently as 1.0.
The second approach involves cloning each plugin's source code and modifying its version property within ${pluginSourceRoot}/android/build.gradle. Subsequently, the first solution can be applied to obtain the correct version number in the plugin's build.gradle. However, this method is not ideal.
Eventually, we discovered the actual version number for each library in the pubspec.lock file.
I believe most plugin maintainers should and will update the plugin's version number when they modify the code and re-publish it.
Even for locally sourced plugins, running flutter build aar triggers the gradle assemble task, which always uses the latest code to generate the aar file.

I believe most plugin maintainers should and will update the plugin's version number when they modify the code and re-publish it.

It's impossible to re-publish the same version; I'm talking about cases like editing the source of a path based plugin, or using an unpinned git source for a plugin, where the source can easily change without the version changing.

Even for locally sourced plugins, running flutter build aar triggers the gradle assemble task, which always uses the latest code to generate the aar file.

But then under your proposed change, you would have different build output with the same version number, which directly violates the purpose of build-number.

It's impossible to re-publish the same version; I'm talking about cases like editing the source of a path based plugin, or using an unpinned git source for a plugin, where the source can easily change without the version changing.

In the first case, the version in pubspec.yaml needs to be updated after editing the source code each time. However, for the second case (based on the git repo), I have not yet found a good way to handle it. If there is a way to specify a version number for the git based dependency, it should solve this problem.

But then under your proposed change, you would have different build output with the same version number, which directly violates the purpose of build-number.

Indeed, for the two situations mentioned above, if no additional action is taken, the PR will encounter this problem.


fishPlugins.grc error regarding cat

Describe the bug
Installing grc and fishPlugins.grc on Nixos 22.11 yields cat: /nix/store/rhnplhpv0y8kbaybaypdgvgqqh8pbdld-fishplugin-grc-unstable-2022-05-24/share/fish/vendor_conf.d/executables: No such file or directory when building. This error also appears everytime the fish shell is started and makes it hardly usable.
Steps To Reproduce
Steps to reproduce the behavior:

install grc and fishPlugins.grc on Nixos 22.11 with fish as your shell
see the error message during build and when starting the fish shell afterwards

Expected behavior
The Plugin working without further configuration.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

@onny could you please take a look at this? Unfortunately, i don't have the required understanding of nix to do it myself.

I'll have a look, thank you for reporting the issue! I'm still using this plugin but not sure what the error is here

@onny any progress? 🙂

Can you provide your configuration?
This is how I'm using the grc plugin in fish with Home Manager https://nixos.wiki/wiki/Fish#Configuration
Maybe this solves the problem for you

Hah, you finally made me use home-manager! 😉
With home-manager it works. Previously, i installed the fishPlugins as environmentPackages and configured fish the ordinary way via its config.fish file. All other Plugins from Nixos worked fine but the grcPlugin doesn't because of the error with cat.
So i guess that this could be fixed but i'm no expert.

Hey @Schweber
I can reproduce the problem now in a virtual machine. I'll try to fix the package and add an additional section to the NixOS wiki page on how to use plugins without Home Manager (by just putting them into environment.systemPackages)

Thanks!

Added an example configuration for enabling plugins system wide to the Wiki page https://nixos.wiki/wiki/Fish#System_wide
The following PR fixes system wide usage https://github.com/NixOS/nixpkgs/pull/214144
Thank you for the bug report :)

Thank you!

Is there any advice on how I could use this change as of now? I'm new to NixOS and am having the same issue currently. I'm wondering if I can use this patch before its released

As a general tip, at the beginning of your configuration.nix add the following:
{ config, pkgs, lib, ... }:

let
  unstableTarball = fetchTarball
    "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
 in {
  imports = [
    ./hardware-configuration.nix
  ];
  nixpkgs.config = {
    packageOverrides = pkgs: {
      unstable = import unstableTarball { config = config.nixpkgs.config; };
    };
  };

and then you can prefix every package with unstable. that you want from unstable. In this case, you could have added unstable.fishPlugins.grc to environment.systemPackages = with pkgs; [


Aggregate all AI components in one repo

I received several suggestions from the last questionnaire to aggregate all AI components in one repo. It's an interesting idea and I plan to test it soon: https://github.com/ctuning/ai

Done: https://github.com/ctuning/ai . Now need to update the references...

Done!


Extension stopped working

The Chrome extension stopped working since about 22 hours ago. This happened before and the problem would be gone if I tried to submit on LeetCode a few more times. But this time the issue persists. I was wondering if there’s any bug or is there any solution for the issue on my end?

Not working for me either :(

It also doesn’t work on my chrome

Try changing the LeetCode UI to the old version until the issue gets fixed

Try changing the LeetCode UI to the old version until the issue gets fixed

Do you mean to stop using the Dynamic layout and revert to split view mode? I tried this but still failed

@hyunjinjeong I can fix this quickly, will you accept my pull request?

@lizihanov17
When you click your profile icon, there is a Revert to old version button. In my case, the extension worked again after reverting the UI.
@aystream
I'm sorry but I'm not a maintainer 😢

Hi @arunbhardwaj,
I've submitted a pull request addressing the issue with the LeetCode V2 detection function. I've made enhancements to the isLeetCodeV2 function, ensuring it more accurately identifies the LeetCode page version and UI theme.
These changes have been thoroughly tested on my local machine with different scenarios. The extension now performs more reliably with the updated logic.
I look forward to your feedback and am happy to make any further adjustments as needed.
Thank you for your time and consideration.

Is it working now for other ? Still not working for me?

Is it working now for other ? Still not working for me?

It works in the pull request branch, no one has merged it so far

Still not working  😢

Not working now.

Still not working

not working brother

I hope this PR is merged and deployed soon.

New version is published to chrome store but there's no new commits to the repo?

If @arunbhardwaj no longer has time for this project, I would suggest creating a new repository to continue the work. What do you guys think?
But let's wait a few more days, maybe he's just temporarily busy :)

@raphaelheinz Did you upload leethub 3.0 to Chrome web store, or not yet?

@raphaelheinz Did you upload leethub 3.0 to Chrome web store, or not yet?

it probably takes a few days to get approved

I have submitted the plugin to the Chrome web store. It still needs to get approved. Should be available soon. I will add the link to my repository as soon it is available.

@raphaelheinz I created a new fix in this repository https://github.com/raphaelheinz/LeetHub-3.0 here https://github.com/raphaelheinz/LeetHub-3.0/pull/1, because now extension does not work without sending correct submissionId field

Great work @aystream! Thank you very much, I will update my submission

Finally I am happy to announce that Google approved Leetcode-3.0. It is available in Chrome Web Store from now on. Please check this repository and don’t forget to star so that you stay updated:
https://github.com/raphaelheinz/LeetHub-3.0

Not working for me even with old UI.
Also, of possible, please implement for new UI.

Not working for me even with old UI.
Also, of possible, please implement for new UI.

Look at here https://github.com/raphaelheinz/LeetHub-3.0 ,  https://chromewebstore.google.com/u/1/detail/leethub-v3/kdkgpjpenaeoodajljkflmlnkoihkmda

The extension still isn't working for me either, since Nov 7, 2023 (so almost 2 months) :(


WIP: Improve docs

The goal of this PR is to improve the overall docs:

add links to blogs (maybe we could add thumbnails?)
improve readme
how to generate and which metrics to look for in PPO
how to use a trained model for inference (#599)

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Dispatcher has no subscribers for a consumer

Hi,
I've got an application where I'm trying to consume from a kafka topic. It looks like everything is set up fine, but every time I put a message in the configured topic, I get the following exception:
2016-11-11 00:19:13,602 -ERROR o.s.k.listener.LoggingErrorHandler - Error while processing: ConsumerRecord(topic = breakthroughSessionTopic, partition = 0, offset = 2, key = null, value = [B@36ba90f4)
org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel 'consumer'.; nested exception is org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers
        at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:81)
        at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:423)
        at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:373)
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:115)
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:45)
        at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:105)
        at org.springframework.integration.handler.AbstractMessageProducingHandler.sendOutput(AbstractMessageProducingHandler.java:292)
        at org.springframework.integration.handler.AbstractMessageProducingHandler.produceOutput(AbstractMessageProducingHandler.java:212)
        at org.springframework.integration.handler.AbstractMessageProducingHandler.sendOutputs(AbstractMessageProducingHandler.java:129)
        at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:115)
        at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:127)
        at org.springframework.integration.channel.FixedSubscriberChannel.send(FixedSubscriberChannel.java:70)
        at org.springframework.integration.channel.FixedSubscriberChannel.send(FixedSubscriberChannel.java:64)
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:115)
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:45)
        at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:105)
        at org.springframework.integration.endpoint.MessageProducerSupport.sendMessage(MessageProducerSupport.java:171)
        at org.springframework.integration.kafka.inbound.KafkaMessageDrivenChannelAdapter.access$000(KafkaMessageDrivenChannelAdapter.java:47)
        at org.springframework.integration.kafka.inbound.KafkaMessageDrivenChannelAdapter$IntegrationMessageListener.onMessage(KafkaMessageDrivenChannelAdapter.java:197)
        at org.springframework.kafka.listener.adapter.RetryingAcknowledgingMessageListenerAdapter$1.doWithRetry(RetryingAcknowledgingMessageListenerAdapter.java:76)
        at org.springframework.kafka.listener.adapter.RetryingAcknowledgingMessageListenerAdapter$1.doWithRetry(RetryingAcknowledgingMessageListenerAdapter.java:71)
        at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:276)
        at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:172)
        at org.springframework.kafka.listener.adapter.RetryingAcknowledgingMessageListenerAdapter.onMessage(RetryingAcknowledgingMessageListenerAdapter.java:71)
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:597)
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.access$1800(KafkaMessageListenerContainer.java:222)
        at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer$ListenerInvoker.run(KafkaMessageListenerContainer.java:778)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers
        at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:154)
        at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:121)
        at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
        ... 29 common frames omitted

I have an @Output channel configured and a @StreamListener set to use the name of the channel. My application.yaml is set up with the right topic and channel names.
Somehow, the relevant @StreamListener method doesn't seem to be called. As mentioned above, the app is receiving messages from kafka, it just doesn't seem to know where to send them.
Thoughts on how to resolve?

Interesting, it appears I have to annotate the class with @Component. I had previously annotated it with @Service, and that wasn't working.

This can be closed, but if anyone has thoughts on why that is, I'd love to learn.

Can you share your configuration, please? @Service is meta-annotated with @Component so they should be equivalent. Looks like the bean doesn't get picked up, but it's hard to tell why without more context.

Closing this issue now. As @mbogoevici pointed out @Service itself is expected to work. @wooder79 If you run into the issue again, please share your code/configuration for investigation.

We are running into similar problems but my case is little different. After a successful container start up we need to put few notification messages on a Kafka topic and several of our microservices does same function and for this reason we have a common jar that contains out put channel definitions and dispatch utils. And the functionality works as expected as long as we invoke util right after the SpringApplication.run call.
Following is one of our microservices Application class sample.
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext context =SpringApplication.run(Application.class, args);
        context.getBean(SchedulerConsumerUtils.class).registerOrRestartConsumerJobs();
    }
}

The above set up works as expected, however this puts unnecessary burden the developer to write the boiler template code on every microservice. So to avoid this, we wrote an Aspect to do the same function however with our aspect approach we are running into the following error.

org.springframework.context.ApplicationContextException: Failed to start bean 'outputBindingLifecycle'; nested exception is org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel 'schedulertestsvcs:dev:1180.scheduledJobExecutionResponseOutput'.; nested exception is org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers

We tried several approaches like Spring SmartLifeCycle to get a handle on all Kafka Output/Input channel startup completion but all of them are running into the same error.
Following is our Aspect implementation on org.springframework.boot.SpringApplication.run(..)
@Aspect
@Component
public class SchedulerConsumerAspect {

    @Autowired
    protected ApplicationContext applicationContext;
    @AfterReturning(value = "execution(* org.springframework.boot.SpringApplication.run(..))",returning = "result")
    public void afterConsumerApplicationStartup(JoinPoint pjp, Object result) throws Throwable {
        if(result!=null){
            ConfigurableApplicationContext context=(ConfigurableApplicationContext) result;
            if(context.containsBean("schedulerConsumerUtils")){
                //For what ever reason the following call resulting in Dispatcher has no subscribers for channel error.
                //TODO fix the above issue and enable the following call.
                context.getBean(SchedulerConsumerUtils.class).registerOrRestartConsumerJobs();
            }
        }
    }

}

During our debug sessions, we found out org.springframework.boot.SpringApplication.run(..) Aspect was called several times during the bootstrap process. First when the aspect was called we got result value as null, after some time spring boot calls the same aspect this time result is not null. Even after getting result not null there is no grantee the component is completely initialized that's why you see a check for  context.containsBean("schedulerConsumerUtils").  However after the bean initialization we are seeing output channels are not completely bound.
What is the best way to get handle on Spring Cloud Stream Kafka output/input channel binding completion ?
Why the component invocation works fine in SpringBoot Application but not through Aspect? I struggled on this few days couldn't find the right solution. Any help greatly appreciated.

@dvsridhar If possible, please do not comment on already closed issues. Instead you can open an existing one and reference this. We prefer Stack Overflow for questions and GH issues for actual bugs that need to be reported.

@mbogoevici  will do that.


Add support for animated background color change

When using the lt_setBackgroundColorthe color changes somewhat abruptly.
Ir would be awesome if the color could change in a smoother way with an animation.

you can call the method in an animation block to achieve it:
[UIView animateWithDuration:3 animations:^{
    [self.navigationController.navigationBar lt_setBackgroundColor:[UIColor redColor]];
}];

Cool tks.


Last pair in a map has a comma when followed by a comment

The last pair in a map shouldn't have a comma, but if it is followed by a comment, it does:
(czprint "{;commenta\na b\n;commentx\n}" {:parse-string? true})
{;commenta
 a b,
 ;commentx
 }

Fixed in 1.0.0.


Add missed loaders for the ReLU and ELU activation layers

Each layer should have an implementation for export/import from/to JSON configuration (Keras compatible format) (see ModelLoader.kt  and ModelSaver.kt)
The saving functions for the ReLU  and ELU activation layer are missed
As an integration example, add a convolutional neural network to the examples package (in CNN package for example), it could be based on improved LeNet model, train it on "mnist" or "fashion mnist" and add it as an integration test to the "examples" module tests

[ ] add saving function for ReLU activation layer
[ ] add saving function for ELU activation layer
[ ] add an example
[ ] convert this example to the integration test
[ ] train network, tune it to achieve accuracy more than >70%

I can take if there are no volunteers for this issue and I was adding the ELU layer as I don't see other work for now for me and I'd like to try to export the trained model in kotlinDL to see how it works :wink:

I suppose you are enough mature for second-level tasks, let's leave it for newcomers, it's easy to add, but need to understand some important things.
If it will be not closed till the end of July, I'll notify you or fix it be myself

I can volunteer for this issue.
I already see there is support for loading ELU and ReLU layers in ModelLoader.kt
So only the saving part needs to be done right?

Nevermind my commits, we happened to work on it at the same time :D

@kokorins @dosier Just a tip: it's much better to first leave a comment mentioning that you are working on a PR for an existing issue in the issue page (or create an issue first if it does not already exist and let the maintainers know that you are interested to work on it). With that, you can prevent duplicated effort and you don't end up working on an issue which another person is also working on at the same time. Further, for some of the issues, you may need to confirm and check with maintainers that you want to start working on it; this is so as to prevent working on an issue which is not really an issue or is not a priority at least in a near future. Currently, the maintainer of this project is @zaleslaw.

Yeah, as @dosier we have not yet the contribution guidelines, but looks like this is a time to write something about that.
Sorry for the situation, @dosier

@kokorins could you please write any comment here, to assign the ticket on you

I've just read a code a bit and decided to contribute. As there were no action until the Pull Request, I havent expected any parallel work.
Can someone share the code style for the project (IntelliJ xml or something of those lines)?

It's ok @kokorins, no code style/contribution guideline in the project yet ( we are working on it).
I've committed some days ago gradle.properties file with the setting kotlin.code.style=official, so it's enough, for now, to apply Ctrl+Alt+L to the file and remove double blank lines


Compatibility with GHC 8.4

GHC 8.4 completely changes the definition/nature of == from Data.Type.Equality; it is no longer an open type family, so the previous instance in Type.Family.Nat no longer builds.  Instead, the new == makes NatEq redundant, so NatEq is could now be defined in terms of == (instead of the other way around).
Addresses #8.
(Note this PR also includes some patches/rebases to sync up the repository with the one currently on hackage, since HEAD on github atm does not build.)

I can confirm that this builds on GHC-8.4 -- it would be nice to get this merged in as >= singletons-2.4 has a base >= 4.11 restriction.

Ping!
@kylcarte -- It would be great to get this merged and uploaded to hackage. It would be nice to release hasktorch (the haskell bindings to torch) "as-is" with the base >= 4.11 requirement.

Currently unable to build otp-authenticator due to this issue.


How can I use Stitch to assemble my peptide sequences?

Hello Sir,
I used PEAKS to generated my peptides sequences and exported them into csv. format. I would like to ask if I use Stitch to assemble them, can I just edit the pathand Format in monoclonal.txt from batchfiles, then run the monoclonal.txt ? Do I need to modify other places?

Yes, that's it! Unless you want Stitch to behave differently in some areas that is all you need. So, I would advise to just try it out, looks through the results and see what it does. Once you have a bit of an understanding of how it works you can play with the settings to make the runs more specific for your usecase. If you want more information about specific settings, or an overview of which exist, take a look at the manual that you can find next to the download.
As I assume this answers your question I will close this issue, if you have any other questions feel free to ask!


Events for payments in separate instances of the sdk

Say there's two clients with the same seed. One makes a payment. The one making the payment will receive a PaymentSucceeded event in the event listener. The other doesn't.
It could be useful to provide these events in other instances of the sdk as well. So you can have a separate listener in another instance that can do 'work' when payments are made. This listener wants to know about all payments being made.
The main question is, how to expose this? Do you send events over the current eventlistener on payments from other instances of the sdk too (on sync)? That might give some clutter, since apps would get events for payments they're not interested in. A separate event listener?
Another option could be an interface that gives you the 'new' payments. Or payments you haven't seen yet, based on a 'last-seen' index.

This can be implemented today by the user by simply routing events from the "instance" listener to a global one (handled by the user).
I am not sure we want to complicate the sdk here given that there is a simple way for the user to implement it.

Hi,
This issue came from a question I had for the development team about using the Breez SDK in a backend instead of a user-facing app. The backend uses micro-service architecture. It is still not clear if using the Breez SDK makes sense in this scenario. I will describe it anyways:
Scenario
Let's say Saylor's company wishes to create a FOSS enabling anyone to deploy their own Lightning Address (if I own my-domain.com, I can send an receive bitcoin to username@my-domain.com). This FOSS is a simple wrapper around the Breez SDK that supports the Lightning Address protocol.
This FOSS is a set of micro-services with a "worker" listener and a "worker" sender.
Issue 1
Currently, the Breez SDK saves its data using SQLite and persistence operations happen in the background (hidden inside the SDKs methods). This is great for user-facing apps like smartphone wallets or browser extensions where storage is tied to the hardware itself. In the case of the FOSS scenario, what's the impact? Can I run multple "senders" or "listeners" and scale horizontally?
Issue 2
In the case where the FOSS software generates an invoice to receive payments following the Lightning Address protocol. Will the payment event be received by a listener? Can I run multiple listeners and scale horizontally? If yes, the Breez SDK will update the state upon reception of the payment. If I extended the data by linking this invoice to a specific username, how do I manage the extended data and avoid data inconsistencies?

Thanks for the quick response. It seems that I misunderstood the storage aspect of the SDK. If it is only internal storage like a cache then it is not an issue.
Regarding the architecture, you are correct that relying on events is not sufficient due to missed events. Your flow seems to be fine as well for this implementation. Maybe websockets will make this a bit easier and actually avoid having to spawn listeners completely? If we imagine 3 MSs that communicate through a message queue:

an API MS that receive requests, validates data and orchestrates the flow via a message queue
Sender MSs that send the payments (received from API)
Listener MSs that listen for invoices (received from API)

It seems that the listeners can be avoided completely if Breez sends a request to a callback upon payment success. So the API MS can:

On service startup, get all invoices without final status
Update status by fetching from Breez
During runtime, expose an endpoint to update a payment as a callback (websocket) for Breez

So this way is more push/sub instead of actively listening to events.
In any case, it seems that the implementation can be done without issues in the current state of the SDK so I think the issue can be closed. Whether by websocket once implemented or today via events.


How use TEENSY 4.1 with linorobot

Hi, i plan to use teensy 4.1 on your linorobot project.
Can you give me the processus to use it?
Best regards

James, the Teensy 4.1 will probably work fine, just be sure to consult a spec chart about the connections to the board, and go by name, not by position number on the board. I'm having trouble now using my Teensy 3.2 because Platformio finds the older Python version loaded earlier in installation, and refuses to run.

James, the Teensy 4.1 will probably work fine, just be sure to consult a spec chart about the connections to the board, and go by name, not by position number on the board. I'm having trouble now using my Teensy 3.2 because Platformio finds the older Python version loaded earlier in installation, and refuses to run.

https://www.pjrc.com/store/teensy41.html
This site has lots of info about it. It is a lot more powerful than the 3.2 but still has PMW output pins. Some of Juan's code for the Teensy is elaborate (machine language) and may not work in a chip so different.

Did anyone test Teensy 4.1?

Did anyone test Teensy 4.1?

I did and it was a nightmare. I adapted the libraries amd completely gave up on platformio. I used arduino ide.

@casakontar can you please share your modify version please?


Corrected the secondary button instructions

Corrected the instructions for the secondary button component for issue #689

Please Verify @Rajdip019

Great work @RavindraP04
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow these steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/)
Go to the profile section from the top right-hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.
That’s it. Follow the leaderboard!
And don’t forget to share your achievement with your friends.


Error When Launching UVR5

When i try to lauch UVR5, both from the launcher and the application file i get this error:
Failed to execute script 'UVR' due to unhandled exception: [WinError 1455] The paging file is too small for this operation to complete. Error loading "C:\Users\jjcoo\AppData\Local\Programs Ultimate Vocal Remover\torch\lib\shm.dlI" or one of its dependencies.
Traceback (most recent call last):
File "UVR.py", line 21, in < module>
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 "Pylnstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "torchL_init•py", line 128, in < module>
OSError: [WinError 1455] The paging file is too small for this operation to complete. Error loading "C.Users\jjcoo\AppData\Local\Programs\Ultimate Vocal Remover\torch\ lib\shm.dil" or one of its dependencies.
Any help is greatly appreciated as i would really like to use UVR5!

The same thing is happening to me after updating with the latest version UVR_Patch_10_6_23_4_27.exe:
Traceback (most recent call last):
File "UVR.py", line 21, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "torch_init.py", line 231, in
TypeError: can't set attributes of built-in/extension type 'torch._C.DisableTorchFunctionSubclass'

I'm getting:
Traceback (most recent call last):
File "UVR.py", line 21, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "torch_init.py", line 128, in
OSError: [WinError 1455] The paging file is too small for this operation to complete. Error loading "C:\Users\theod\AppData\Local\Programs\Ultimate Vocal Remover\torch\lib\cufft64_10.dll" or one of its dependencies.
anyone ever figure this out? I uninstalled and reinstalled receving the same error both times the application tries to load.


HHH-9665 Changing the unwrap method of EntityManagerFactoryImpl to only ...

...allow unwrapping into public types.
Making sure that all public methods of EntityManagerFactoryImpl are available via a public interface.

So are you disallowing casting into non-public types?  If so, why?  Sure its not great form, but why disallow it?

So are you disallowing casting into non-public types? If so, why? Sure its not great form, but why disallow it?

I think the functionality which we want to expose to the user via unwrapping should be clearly defined. In our case in HibernateEntityManagerFactory That's the type one should unwrap to. Allowing to unwrap to internal classes exposes them to the user which is something we want to avoid in the first place, right?

Well you just made it public ;) So yeah, in that sense it should now have a publicly exposed type as well. Previously this was not a publicly exposed method.

It was a public method on the EntityManagerFactoryImpl to which you could unwrap to. I just made it more explicit by moving it into HibernateEntityManagerFactory. I am happy to leave it out not exposing another internal type, but I wanted to make sure that in case anyone would use it, they have an alternative via unwrapping to HibernateEntityManagerFactory.

What is the use case for a user to access findEntityGraphByName from the EMF?
I am not a believer that everything needs to have a public contract.  If a user wants to cast something to a non-public type, they can still do it.  Your unwrap protection does not stop that.  E.g.
SessionFactory sf = emf.unwrap( SessionFactoryImpl.class );

simply becomes:
SessionFactory sf = (SessionFactoryImpl) emf.unwrap( SessionFactory.class );

You did not stop the access.  You just made their code to do it uglier.  IMO

To answer your question..  Yes, given the changes you have made here, HibernateEntityManagerFactory#getEntityTypeByName and HibernateEntityManagerFactory#findEntityGraphByName should expose non-private methods.
However, I don't think that the "plain" JPA contracts (javax.persistence.metamodel.EntityType and javax.persistence.EntityGraph) work.  We'd want a "publicly exposed Hibernate variant" of those (just like we do with HibernateEntityManagerFactory itself).  That's the rabbit hole here...

This Pull Request does 2 things:

Pull some exposed methods up to the EMF contract.
Disallow unwrapping to certain types.

I am OK with the first one in principle.  But as we discussed in comments, this work does not go far enough.  ATM your changes there still:

Expose internal types
Do not address usages of those methods

And the second one I do not really agree with.
Next week I hope to release the next 5.0.  At that time I'd like to have this resolved in some fashion.  As it is, I am inclined to just reject this Pull Request and the issue because its become stale.

@sebersole, I pushed an update. Now HibernateEntityManagerFactory only exposes public methods. To call public methods of EntityManagerFactoryImpl which are exposing internal types you need to cast.
Updated the test and test based classes to use unwrap to show "proper use".

@sebersole one more update :-)

@sebersole, yet another update. Now it is allows to unwrap to the two impl classes in question. Not what I had initially in mind, but I guess there is still some value in this pull request.

I had applied this, but forgot to close the PR...  Thanks Hardy!


How to Install this on laravel 5.8

I already installed your package. Also I added "Ayra\Providers\AyraServiceProvider::class," on config.app.php. But when I run php artisan ayra:install User I get this error "Method Ayra\Console\InstallCommand::handle() does not exist"

add this in composer.json
"imajkumar/laravel-binary-tree": "dev-master",
composer install
add only
'Ayra\Providers\AyraServiceProvider',
in config/app.php 's provide


Update version from 0.0.86 to 0.0.87

This is an automated update of version in pyproject.toml. This action is performed by publish.yml.

updated version from 0.0.86 to 0.0.87, @SuleyNL pls review


Remote imports

This PR adds the basic support for remote imports. That means:

The language is extended with a builtin URL literal:let Some/function = http://domain.tld/Some/function.ffg
in Some/function "hello"

A type for resolvers newtype Resolver = Resolver { runResolver :: Text.URI.URI -> IO (Maybe Text) }.
A resolver receives the URL as an argument and shall return Just code if can process the URL (e.g. an HTTP resolver can resolve http:// URLs but not file:// URLs.) and Nothing it not.
Several functions - like interpretWith or mainWith - take a value of type Grace.Interpret.InterpretSettings. Part of those settings is a list of resolvers which are tried one after another.
grace-core includes two simple resolvers:

A resolver for environment variables matching env:// URLs.
A resolver matching file:// URLs that is basically equivalent to the filepath-based imports.
A catchall resolver matching any url called External Resolver. This resolver tries to invoke a program grace-resolver-<scheme> ${URL}. If such an executable is not found in $PATH the resolver fails, i.e. does not match the URL passed to it.

@Gabriel439 The last commits implement the ideas from https://github.com/Gabriel439/grace/pull/16#discussion_r709911625. Please let me know if that is closer to the API you envision.

Yet another approach for the configuration topic is here: https://github.com/mmhat/grace/tree/remote-imports-backpack
IMHO it is quite elegant but it has the downside that Stack users cannot use this project due to https://github.com/commercialhaskell/stack/issues/2540.

@Gabriel439 Aaaah, okay! Thank you very much for clarification! :+1:
I could have figured that from your comment above but I guess I was mentally stuck in the classic library development scenario... I apologize for the attention this PR draw from you.
Anyway, I will prepare this PR such that it does not have a configurable API and mark the respective parts as entrypoints for customization.

@Gabriel439 Ok, this is now more in the spirit of this project: The interpreter does not take a callback function for URI resolving anymore and the grace-resolver-builtin package is gone.

I think this looks great!  I think I can put up a PR of my own with the remaining proposed change for ImportError

Thank you! :rocket:
Regarding ImportError: Which path are you going to take?


Unpected Behavior in iwasm

Build commands
I compile the code with commit id da79e3e9b283272a63ad53b24310d88c640fbd8a.
Platform: Ubuntu 20.04
CPU: amd64
compile:
export CC=/usr/bin/clang-14
export CXX=/usr/bin/clang++-14
cd product-mini/platforms/linux/;rm -rf build
cmake  -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_AOT=0 -DCMAKE_BUILD_TYPE=Debug -DWAMR_BUILD_FAST_INTERP=0 -Bbuild
cd build
make -j40

execute:
iwasm --heap-size=0 -f _start cp907_b1.wasm

cp907_b1.zip
Expected behavior:
It should raise an exception indicating the "unknown opcode 0xc5 (at offset 0xce)".
Actual behavior:
On the code with commit id da79e3e9b283272a63ad53b24310d88c640fbd8a , iwasm output:
0x3ff570a3:i32

Thank you.

@erxiaozhou Thanks for reporting the issue! I uploaded PR #1464, please try again.

Close this issue as it was fixed.


rootless.md finished

The guide for using Spark+Hadoop+Hive+Zeppelin rootless is finished and configuration files added.

Thanks Dan.


Configured fineract.yml

fineract.yml was using wrong docker image, which used to cause
 ✘ fineract Error                                                                                0.4s
 ✘ prometheus Error                                                                                0.4s
 ✘ grafana Error                                                                                0.4s
 ✘ tempo Error                                                                                0.4s
 ✘ db Error                                                                                0.4s
 ✘ loki Error                                                                                0.4s
Error response from daemon: pull access denied for fineract, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Description
Describe the changes made and why they were made.
Ignore if these details are present on the associated Apache Fineract JIRA ticket.
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[ ] Write the commit message as per https://github.com/apache/fineract/#pull-requests

[ ] Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

[ ] Create/update unit or integration tests for verifying the changes made.

[ ] Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

[ ] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes

[ ] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

@00RohitRoshan ... this Docker Compose file is not meant to pull the Docker Hub image of Apache Fineract. You need to build the Docker image locally and THEN you can start the Docker Compose stack.
Note: at the moment we don't provide regular updates to Docker Hub that's why this is the recommended way for now. But we are working on it (doing regular updates to Docker Hub).
Not an issue. Closing.

There's no Dockerfile to build.  Please at least mention some clue for people who aren't understanding how to "build" from the cloned content.
https://issues.apache.org/jira/browse/FINERACT-1164?focusedCommentId=17816236&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17816236


Add transitive typecheck output group

Changes are visible to end-users: yes/no
With isolated declarations in TypeScript, it's no longer necessarily the case that typechecking a project also causes all of its dependencies to be typechecked. Some people prefer/expect the previous behavior when running typechecking locally, so this PR exposes a test target that will always typecheck a project and its dependencies, regardless whether any of them have enabled the isolated_typecheck flag.
Test plan
Works well in our codebase!

Can you explain the use case again in the PR description?

Can you explain the use case again in the PR description?

Done!

This is cool. Needs to be more discoverable. There are some docs on macro expansion in docs/transpiler.md that should be updated if a new expansion is added.
I'll pull it down and experiment with it over the weekend. Feels like it should be possible to set as the default behavior as long as the type check actions are still able to be run in parallel.

@gregmagolan I was thinking of explicitly not making it discoverable to start, and marking it as manual so it doesn't show up doing test //.... Mainly just so we can try it out before making it public API. Even just so people can test it at HEAD for now 🤷
I think you are correct that the type-check actions should still be able to run in parallel, we just need to make sure we set this _test target is setup correctly and make sure. In that case I think we can do that by default and we only need one build_test target? Which would be another reason not to make this new one public to start...?

For the parallelization, assuming we have isolated_typecheck enabled:

each _typecheck (slow tsc) target needs the _types of each dependency
_types can all be done in parallel by the declaration_transpiler
nothing depends on _typecheck, so tsc never depends on another tsc

For this _transitive_typecheck... that output_group is basically just a depset of tsc actions, but those actions themselves never depend on eachother so I think they will still all be done in parallel? So do we still need the non-transitive one? I feel like "typecheck this target only" should still be an option but 🤷


Update CMake version up to 3.17.2

Hi Jacques!
Please review and squash 3 commits for me -
I missed master's commits that are in the PR now
(When merged in my fork).
Thanks!

Please polish your commits. Add a proper description and clean up.

Squashed the first three commits, where I updated CMake up to version 3.17.2, added cleaning up of downloaded files

Fix script name. Squash commits by the way.

Done

Created ci folder, all external scripts  moved to it.


build error: NoSuchMethodError: scala.Predef$.refArrayOps

Depends on #1277

when I run mvn clean install , I get this error-message:
A NoSuchMethodError exception was thrown: scala.Predef$.refArrayOps
I have not used scala before - I have installed sbt and the Scala plugin for IntelliJ.
Is there something else I need to install or some config that I am missing?
Detailed output:
[INFO] Vavr Parent ........................................ SUCCESS [  0.373 s]
[INFO] Vavr Match ......................................... SUCCESS [  1.976 s]
[INFO] Vavr ............................................... FAILURE [  8.922 s]
[INFO] Vavr Benchmark ..................................... SKIPPED
[INFO] Vavr Test .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
...
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.3.1:script (default) on project vavr: wrap: java.lang.Exception: A NoSuchMethodError exception was thrown: scala.Predef$.refArrayOps([Ljava/lang/Object;)[Ljava/lang/Object; -> [Help 1]

A similar issue has been reported recently by @szarnekow: https://gitter.im/vavr-io/vavr?at=59d4e81b01110b723176edde
I was not able to reproduce it on my Mac. One of my next steps towards Vavr 1.0.0 is

the move to Gradle builds
and with that, not using the scala-maven-plugin anymore (if possible)

I can workaround the error by using an older scala version. Then the compilation works:
        <!-- scala.version>2.12.2</scala.version -->
        <scala.version>2.10.6</scala.version>

But a test fails - not sure if this is now a result of the different scala version or a real issue.
shouldAwaitAndTimeout(io.vavr.concurrent.FutureTest)  Time elapsed: 0.123 sec  <<< FAILURE!
java.lang.AssertionError:

Expecting:
 <119L>
to be between:
 [100L, 110L]
        at io.vavr.concurrent.FutureTest.shouldAwaitAndTimeout(FutureTest.java:504)

Running io.vavr.collection.euler.Euler34Test

System Info:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1\plugins\maven\lib\maven3\bin\..
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_121\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"


Add util to check executables/shared libs for missing shared libs

Summary
Inspired by the issue we ran into with met having a missing python dependency (rpath wasn't set), this PR adds a utility to check installations for missing shared library dependencies of libraries and executables.
Testing
Tested on Orion and in CI.
Applications affected
none
Systems affected
none
Dependencies
https://github.com/JCSDA/spack-stack/pull/884 / https://github.com/JCSDA/spack/pull/371 (wait for met/python dep fix)
Issue(s) addressed
none
Checklist

[x] This PR addresses one issue/problem/enhancement, or has a very good reason for not doing so.
[x] These changes have been tested on the affected systems and applications.
[x] All dependency PRs/issues have been resolved and this PR can be merged.

@climbfuji if this looks useful, can you populate the Darwin block with the appropriate command(s) & output pattern (I think it'll involve otool -L and/or dyld_info -dependents but I'm not sure)? It's not urgent since we'll need to wait for the met fix anyway.

Thanks @AlexanderRichert-NOAA I can do the macOS part, but realistically not before the 1.6.0 release.


BUG: route with pluralization - e.g. subscriptions and subscription/{id} (without s) - broken

This needs steps to reproduce the bug.


Minimum training samples for 'create_synthetic_data_from_csv_or_df'

Hi! thanks for the repo, May I ask what is the minimum number of training samples required for creating synthetic_data_from_csv_dataframe? My CSV had less than 100 samples and i received an error 'RuntimeError: Model training failed. Your training data may have too few records in it. Please try increasing your training rows and try again' when running the cell  model.train() from a create_synthetic_data_from_csv_or_df notebook.

Generally we recommend over a 1000. But really depends on the composition of the data.
You may want to try the "low record count" config template to see if that works. You can reference the template directly in the Notebook instead of using the "default" template.

Thanks,@johntmyers, I have tried to use the low-record-count configuration but there is no synthetic data generated in my CSV. Please advise if there is anything I can adjust to get the desired output. My dataset has 70 rows with 7 columns

That is probably just too little of an amount of data. You might try oversampling by repeating your rows 5x, 10x etc. If you do this be sure to shuffle the rows. At this point though there could be an increased chance of repeating records during generation.

Thanks, @johntmyers I was able to generate the data after replicating and shuffling rows as suggested using a low-record-count.

@Ab-Abdurrahman Glad to hear it works. Another alternative could be to drop the batch_size to 1, and the vocab_size to 0 (this means character-based vocab) before training, which shouldn't require you to repeat the dataset rows. Hope that helps!
You can see an example configuration for low record counts: https://github.com/gretelai/gretel-blueprints/blob/main/config_templates/gretel/synthetics/low-record-count.yml

Thanks @zredlined, will check this out and let you know.


Help with error when running demo

Code version (Git Hash) and PyTorch version:
Branch: master
Pytorch: 0.4.0
Dataset used
--
Expected behavior
Save the video in data/demo_result/
Actual behavior
/home/ximenes/.virtualenvs/gcn/bin/python3.6 /home/ximenes/PycharmProjects/graph/st-gcn/main.py demo --openpose /home/ximenes/openpose/build/ --video /home/ximenes/Desktop/openpose/videos/dataset/S001C001P001R001A001_rgb.avi
Traceback (most recent call last):
File "/home/ximenes/PycharmProjects/graph/st-gcn/main.py", line 29, in
p = Processor(sys.argv[2:])
File "/home/ximenes/PycharmProjects/graph/st-gcn/processor/io.py", line 26, in init
self.init_environment()
File "/home/ximenes/PycharmProjects/graph/st-gcn/processor/io.py", line 57, in init_environment
self.io.save_arg(self.arg)
File "/home/ximenes/.virtualenvs/gcn/lib/python3.6/site-packages/torchlight-1.0-py3.6.egg/torchlight/io.py", line 118, in save_arg
FileNotFoundError: [Errno 2] No such file or directory: '{self.work_dir}/config.yaml'
Steps to reproduce the behavior
A follow the instructions to install the libraries
My environment

Command:
/home/ximenes/.virtualenvs/gcn/bin/python3.6 /home/ximenes/PycharmProjects/graph/st-gcn/main.py demo --openpose /home/ximenes/openpose/build/ --video /home/ximenes/Desktop/openpose/videos/dataset/S001C001P001R001A001_rgb.avi
Other comments
Openpose is working corretly in my machine.

Hi, @ximenesfel, you should first change the directory to the project root folder.

Hi @yysijie. Thanks for your quick response. If I understood correctly, I changed the working directory to root folder but I having the same error.

This work_dir variable refers to work_dir folder in the project?

@yysijie I get this error when I run ntu_gendata.py. Repo structure is maintained as it is, I am not sure why this error occurs
import tools
ModuleNotFoundError: No module named 'tools'

@ximenesfel,
Sorry for the late reply.
I think this is a duplicate of this issue.
Could you move to there and tell me your python version?

@ximenesfel ,
I think it is caused by the f-strings, which is a new feature of python3.6.
We removed all f-strings in the codebase. I think it will help.


As a Craft player, I want a new texture for the autogenerated tree so that Craft is unique in comparison to the original Minecraft game.

@CrimsonBlack she is doing the textures for it as well.

ok got it. I'll leave it to you then @IndecisiveMagician


Document checkout flow

We need to document how the checkout flow works in Storefront 2.0. Since there is no documentation for this project at all, we could initiate it with this section. @patrys recommended checking docs/docs by Apollo as a tool for writing documentation.

Another tool worth checking is Gatsby.js. It became quite popular and I've seen some other projects use it for documentation.

We have documentation for checkout mutations: https://docs.getsaleor.com/docs/next/api-process/check-out/ which is basically how the flow works in the storefront.


testing out simultaneous creation event identification and deduping

Wooohoooo it worked. Gonna test a re-open now.


[Feature request] - Add an option to the CMS to specify background color crop fill

I would like to have an option to specify crop fill color. Id want to specify this fill crop color in my types/on query level. This way, images with x fade background, could be cropped into an extended background color frame. Currently, you can't crop out of boundary.

Hey @Bram-Zijp thanks for the feature request! Just so I understand fully, do you mean you'd like to extend outside of the image, like an outward crop where you could specify the color?
For example, if I did this outward-crop with red, I'd get this result:

Is that the general idea?

Exactly. It might be a niche, but for my use case, id like to fade out images with a certain background color (in your example images, this would be blueish). These images are made to have a certain fade out color that matches the design. In terms of functionality, the default could be white/transparent. In terms of priority, it would be a nice to have when including functionality like cropping smaller as the specified image dimensions.

Hey Bram-Zijp , apologies for the very late reply!
We've added it to the list of things we'll consider as we do a rewrite of the editor in the coming year. I do think there would be ways to implement this by using CSS that might be more optimal. That way, you wouldn't be shipping a larger image and wouldn't introduce the potential for editors to accidentally get the solid color border when they didn't intend to.
Maybe two fields, one a color field, and another a number field to determine the spacing around the image.
I know this sort of thing probably isn't ideal for your specific use case, but might be better than nothing.
Thanks so much for the suggestion!

Hey @Bram-Zijp, after consideration, I think something like this is better suited in a custom component. It could be handled using a combination of <div>s and CSS, like @a-trost recommended.
We will be thinking of how a <PrismicImage> component could be implemented (issue: #124). While it may not include the background color functionality you are requesting here, it might be used in your custom component once it is available.
If you have any questions about how you might accomplish what you are trying to achieve, please feel free to ask here. And please feel free to share other suggestions in the future as well! 🙂


Add a doc to show publish to App Service from VSMac

It looks like we don't have a doc covering publishing to Azure App Service from VSMac.
I am working on a doc and will submit a PR today.
cc @Rick-Anderson

@sayedihashimi if this is merged are you happy to close it?

Yes closing


Definition of camera.camera_client.CamClient.get_attrs()

Hi,
I had a question while I was reading the CamClient class code.
CamClient.init_attr_dict() method is defined as follows,
https://github.com/stefsmeets/instamatic/blob/2be8cdb1e2337b1df437868a8de50878d178bd88/instamatic/camera/camera_client.py#L143-L145
I am curious where get_attrs() method is defined for CamClient class.

Hi @kttn8769,
It's defined here: https://github.com/stefsmeets/instamatic/blob/2be8cdb1e2337b1df437868a8de50878d178bd88/instamatic/server/cam_server.py#L130
It's used for my own implementation of RPC. It's a bit of a hack to enable tab completion IPython when the camera (or tem for that matter) are run in host/server mode.

Thank you @stefsmeets ,
then, CamServer.get_attrs is somehow incorporated into CamClient class??
It is difficult for me to see such interaction in the code...
Sorry if this is a silly question. Maybe I'm overlooking or misunderstand something.

Yeah, it mimicks the attributes from the actual camera interface in CamClient, because it goes over a socket connection to enable interprocess communication. Therefore CamClient does not know what it is looking at, it just passes the attributes/function calls to the actual interface (e.g. https://github.com/stefsmeets/instamatic/blob/2be8cdb1e2337b1df437868a8de50878d178bd88/instamatic/camera/camera_simu.py#L11). The .get_attrs method simply copies the function signatures across so that tab completion and doc strings are available in IPython.

Ok, I understand the point.
Thank you for your kind explanation!


No connect button in appimage build

I don't see any connect button on your last appimage build after pasting key?

The "Add Server" button only appears after you paste a valid link on the access key box.
You can use this fake key to test: ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTp0ZXN0QDE5Mi4xNjguMTAwLjE6ODg4OA#example-server

I already did that and no button showing !

Is this a daily build?  I ran into this issue a couple weeks ago and fixed it with https://github.com/Jigsaw-Code/outline-client/pull/961

yes, it's a daily build. How have you fixed it ?

It was caused by rendering erroring out from the renderer process needing the app name and not getting it from a deprecated Electron feature.
@alalamav made a couple more fixes today, could you try the binary from https://github.com/Jigsaw-Code/outline-client/releases/tag/linux-v1.3.0 and see if it works for you?

It's working fine now.
-------- Original Message --------
On Feb 25, 2021, 9:51 PM, Jonathan Cohen wrote:

It was caused by rendering erroring out from the renderer process needing the app name and not getting it from a deprecated Electron feature.
@alalamav made a couple more fixes today, could you try the binary from https://github.com/Jigsaw-Code/outline-client/releases/tag/linux-v1.3.0 and see if it works for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Awesome, thanks for reporting the issue!

Unfortunately another issue. after disconnecting from VPN and closing the app I cannot get back my regular connection. Outline interface (outline-tun0) still exist.
-------- Original Message --------
On Feb 25, 2021, 10:16 PM, Jonathan Cohen wrote:

Awesome, thanks for reporting the issue!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Selection of year and month in Date Picker

In date picker is it possible to select year and month manually like date.

For suppose I want to select the 2000 year, it will be very hard for me to click that many times.
Hope you will understand.

In fact, you can type the year and month (even date too) manually in the input section

We don't make it as plan at least right now.

We don't make it as plan at least right now.

Okay!


Do not release the latest docker tag for v1 after v2 is released

Remember to make it generic so that we fix it once and for all.

The general idea, in order to fix this is to modify the list of tags to generate based on the active GH releases.
If the version the workflow is running for is the latest released on GH (make sure the GH API properly sort releases), then we also generate the latest tag, otherwise we do not.


Discovery: Make queue parameters configurable

Is this a BUG REPORT, PERFORMANCE REPORT or FEATURE REQUEST?:
FEATURE REQUEST
What happened:
During performance testing, we noticed that the discoverers were taking a long time to drain the discovery queue when testing with a large number of services (>1k). The issue is that we are using the default client-go rate limited queue, which limits us to 10 items per second.
What you expected to happen:
Ideally, the rate limit should be configurable so that it can be adjusted according to the environment.

After further investigation, I realized that what is actually limiting us is the rate at which the API server can create services.
The API server we are using for testing can handle approximately 4 services per second. I arrived at this number using time and kubectl. This means that discovering 1000 services will take approximately 4 minutes, which is pretty much what we are seeing in our performance tests.
Lowering the priority on this for now.
cc: @stevesloka @rosskukulinski

Are we creating Services one by one or are we using ServerList type?

One by one. There is no API endpoint that takes a list of services for creation AFAIK.

@alexbrand is this the same as #150 which was merged?

@rosskukulinski This is different. This issue is about the queue we use to put all the services and endpoints that we have found in the backend cluster, before they are created in the Gimbal cluster. Currently, we are using the default rate limiter for this queue.
Issue #150 was about the Kubernetes client, which also has a built-in rate limiter to control the number of QPS.


:green_heart: ci: run continuous deployment on push to main or alpha

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Garbage gets sent all the time - big console logs cause lag

Probably some testing code left over. This should get fixed until the next 0.9!

If combo garbage is pushed it only pushes it once. Chain is pushing it on multiple frames.
          this.garbage.update(cnc[0],cnc[1])
I think the reason is that chain persists while a combo only lives for one frame.


Implement shellcheck

Changes

Implements shellcheck for linting and safety
Uses /bin/sh shebang for better compatibility
Updates pyproject.toml to reflect current state
Ensured all tests are successful (except for matplotlib since it won't build)

PR Checklist:

[ ] All new features have been tested
[ ] All new features have been documented
[X] I have read the CONTRIBUTING.md file
[X] I will abide by the code of conduct

hmm....CI isn't reporting the failures...I'll see what I can do

I was able to go through build (nearly) all of the packages and run the available tests to ensure the packages work with these changes (on the iOS simulator anyway).
The one thing I can't figure out if why a failed forge command completely kills my terminal in macOS. For instance, if a build fails or even if argparse fails for forge asdf.
> forge iOS matplotlib
...

Successful builds for:
 * matplotlib (default version) (ios_13_0_arm64_iphonesimulator)
 * matplotlib (default version) (ios_13_0_x86_64_iphonesimulator)

Failed builds for:
 * matplotlib (default version) (ios_13_0_arm64_iphoneos)

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

I don't understand why this is happening; I'm hoping it's just something happening in my VM...


Add ADR about carrying applications over to the next cycle

Context
Writing up decisions following a meeting on 12th August about #2681.
Changes proposed in this pull request
Add an ADR about what we decided.
Guidance to review

Does this fairly reflect the meeting?
Did we miss anything?

Link to Trello card
N/A
Things to check

[X] This code does not rely on migrations in the same Pull Request
[X] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[X] API release notes have been updated if necessary
[X] New environment variables have been added to the Azure config

Thanks for your comments @mnacos! I've removed "Conditions met" from the "makes sense to carry over" section and added some additional text explaining the rationale for when things are carry-over-able.

re application choices being in mixed states, I think the rule of thumb is that if at least one choice is not yet "finished" it is not possible to carry over. Once they're all done for, it is.


Use CP2K to pass UPF files

https://github.com/cp2k/cp2k/issues/728

We now have pugixml intgegrated. It can read UPF files directly, to in theory it should be straightforward to test. @mtaillefumier

Merged in cp2k.


TinyB unable to find service

Hello everyone!
when I call device.getServices().size()  return 0，but when  I call device.getUUIDs().length return 4.
please tell me how to get BluetoothGattService  object
Here's my code
public static void main(String[] args) throws Exception {
		BluetoothManager manager = BluetoothManager.getBluetoothManager();
		manager.startDiscovery();
		List<BluetoothDevice> list = manager.getDevices();
		for(BluetoothDevice device : list){
			if("08:7C:BE:87:75:26".equals(device.getAddress())){
				System.out.println("name:"+device.getName()+
						" services:"+device.getServices().size()+
						" UUIDs:"+device.getUUIDs().length);

				break;
			}
		}
	}

system information：ubuntu16.0.4、bluez:5.9、BLE Device: xicoo aTM07
I checked the TROUBLESHOOTING.md and all set.
Alternatively, I can get services using bluez gatttool
(1) gatttool -b 08:7C:BE:87:75:26 -I
(2) connect
(3) primary
Returns four entries
attr handle: 0x0001, end grp handle: 0x000b uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x000f uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0010, end grp handle: 0x0016 uuid: 0000fee8-0000-1000-8000-00805f9b34fb
attr handle: 0x0017, end grp handle: 0x001c uuid: 0000fffa-0000-1000-8000-00805f9b34fb

Are you calling this immediately after the device has been discovered? I found that the services are populated for some devices asynchronously after connecting and I needed to do this (Java 8):
  LocalDateTime startTime = LocalDateTime.now();
  while (LocalDateTime.now().isBefore(startTime.plusSeconds(30))) {
    if (this.device.getServicesResolved()) {
      logger.debug("Got characteristics after " + ChronoUnit.MILLIS.between(startTime, LocalDateTime.now()) + "ms");
      break;
    }
    try {
      Thread.sleep(100);
    } catch (InterruptedException ie) {
      throw new BluetoothException("Interrupted in Thread.sleep()", ie);
    }
  }
  if (!this.device.getServicesResolved()) {
    try {
      this.device.disconnect();
      this.device.remove();
    } catch (tinyb.BluetoothException bte) {
      throw new BluetoothException("Unable to disconnect from " + this.toString(), bte);
    }
    throw new BluetoothException("Unable to get services for " + this.toString());
  }

I am working on rapberry p1 3 with SensorTag CC2650STK. I have same issue. I can connect with sensorTag but services are not discovered: When I use Please have a look over the code and suggest:
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.;
import java.util.concurrent.locks.;
import tinyb.BluetoothDevice;
import tinyb.BluetoothException;
import tinyb.BluetoothGattCharacteristic;
import tinyb.BluetoothGattService;
import tinyb.BluetoothManager;
import java.util.concurrent.TimeUnit;
public class HelloTinyB {
private static final float SCALE_LSB = 0.03125f;
static boolean running = true;
static void printDevice(BluetoothDevice device) {
    System.out.print("Address = " + device.getAddress());
    System.out.print(" Name = " + device.getName());
    System.out.print(" Connected = " + device.getConnected());
    System.out.println();
}

static float convertCelsius(int raw) {
    return raw / 128f;
}

/*
 * After discovery is started, new devices will be detected. We can get a list of all devices through the manager's
 * getDevices method. We can the look through the list of devices to find the device with the MAC which we provided
 * as a parameter. We continue looking until we find it, or we try 15 times (1 minutes).
 */
static BluetoothDevice getDevice(String address) throws InterruptedException {
    BluetoothManager manager = BluetoothManager.getBluetoothManager();
    BluetoothDevice sensor = null;
    for (int i = 0; (i < 15) && running; ++i) {
        List<BluetoothDevice> list = manager.getDevices();
        if (list == null)
            return null;

        for (BluetoothDevice device : list) {
            printDevice(device);
            /*
             * Here we check if the address matches.
             */
            if (device.getAddress().equals(address))
                sensor = device;
        }

        if (sensor != null) {
            return sensor;
        }
        Thread.sleep(4000);
    }
    return null;
}

/*
 * Our device should expose a temperature service, which has a UUID we can find out from the data sheet. The service
 * description of the SensorTag can be found here:
 * http://processors.wiki.ti.com/images/a/a8/BLE_SensorTag_GATT_Server.pdf. The service we are looking for has the
 * short UUID AA00 which we insert into the TI Base UUID: f000XXXX-0451-4000-b000-000000000000
 */
static BluetoothGattService getService(BluetoothDevice device, String UUID) throws InterruptedException {
    System.out.println("Services exposed by device:");
    BluetoothGattService tempService = null;
    List<BluetoothGattService> bluetoothServices = null;

    do {
        bluetoothServices = device.getServices();

        if (bluetoothServices == null)
            return null;

        for (BluetoothGattService service : bluetoothServices) {
            System.out.println("UUID: " + service.getUUID());
            if (service.getUUID().equals(UUID))
                tempService = service;
        }
        Thread.sleep(2000);
        System.out.println("bluetoothServices.isEmpty(): "+bluetoothServices.isEmpty());
        System.out.println("running: "+running);
        System.out.println("bluetoothServices: " +bluetoothServices.toString());
        System.out.println("bluetoothServices: " +bluetoothServices.size());
    } while (bluetoothServices.isEmpty() && running);
    return tempService;
}

static BluetoothGattCharacteristic getCharacteristic(BluetoothGattService service, String UUID) {
    List<BluetoothGattCharacteristic> characteristics = service.getCharacteristics();
    if (characteristics == null)
        return null;

    for (BluetoothGattCharacteristic characteristic : characteristics) {
        if (characteristic.getUUID().equals(UUID))
            return characteristic;
    }
    return null;
}

/*
 * This program connects to a TI SensorTag 2.0 and reads the temperature characteristic exposed by the device over
 * Bluetooth Low Energy. The parameter provided to the program should be the MAC address of the device.
 *
 * A wiki describing the sensor is found here: http://processors.wiki.ti.com/index.php/CC2650_SensorTag_User's_Guide
 *
 * The API used in this example is based on TinyB v0.3, which only supports polling, but v0.4 will introduce a
 * simplied API for discovering devices and services.
 */
public static void main(String[] args) throws InterruptedException {

	System.out.println("Started...");

    if (args.length < 1) {
        System.err.println("Run with <device_address> argument");
        System.exit(-1);
    }

    /*
     * To start looking of the device, we first must initialize the TinyB library. The way of interacting with the
     * library is through the BluetoothManager. There can be only one BluetoothManager at one time, and the
     * reference to it is obtained through the getBluetoothManager method.
     */
    BluetoothManager manager = BluetoothManager.getBluetoothManager();

    /*
     * The manager will try to initialize a BluetoothAdapter if any adapter is present in the system. To initialize
     * discovery we can call startDiscovery, which will put the default adapter in discovery mode.
     */
    boolean discoveryStarted = manager.startDiscovery();

    System.out.println("The discovery started: " + (discoveryStarted ? "true" : "false"));
    //args[0] = "abc";
    System.out.println("Looking for " +  args[0]);
    BluetoothDevice sensor = getDevice(args[0]);

    /*
     * After we find the device we can stop looking for other devices.
     */
    try {
        manager.stopDiscovery();
    } catch (BluetoothException e) {
        System.err.println("Discovery could not be stopped" );
        System.err.println("Reason: " + e.getMessage());
    }

    if (sensor == null) {
        System.err.println("No sensor found with the provided address.");
        System.exit(-1);
    }

    System.out.print("Found device: ");
    printDevice(sensor);

    if (sensor.connect()) {
        System.out.println("Connected with "+sensor.getAddress()+ ": " +sensor.getName()+" connected");
    }
    else {
        System.out.println("Could not connect device.");
        System.exit(-1);
    }

    Lock lock = new ReentrantLock();
    Condition cv = lock.newCondition();

//        Runtime.getRuntime().addShutdownHook(new Thread() {
//            public void run() {
//                running = false;
//                lock.lock();
//                try {
//                    cv.signalAll();
//                } finally {
//                    lock.unlock();
//                }
//
//            }
//        });
    LocalDateTime startTime = LocalDateTime.now();
    while (LocalDateTime.now().isBefore(startTime.plusSeconds(120))) {
        if (sensor.getServicesResolved()) {
        	System.out.println("Got characteristics after " + ChronoUnit.MILLIS.between(startTime, LocalDateTime.now()) + "ms");
          break;
        }
        try {
          Thread.sleep(100);
        } catch (InterruptedException ie) {

        }
      }

    BluetoothGattService tempService = getService(sensor, "F000AA00-0451-4000-B000-000000000000");

    if (tempService == null) {
        System.err.println("This device does not have the temperature service we are looking for.");
        sensor.disconnect();
        System.exit(-1);
    }
    System.out.println("Found service " + tempService.getUUID());

    BluetoothGattCharacteristic tempValue = getCharacteristic(tempService, "f000aa01-0451-4000-b000-000000000000");
    BluetoothGattCharacteristic tempConfig = getCharacteristic(tempService, "f000aa02-0451-4000-b000-000000000000");
    BluetoothGattCharacteristic tempPeriod = getCharacteristic(tempService, "f000aa03-0451-4000-b000-000000000000");

    if (tempValue == null || tempConfig == null || tempPeriod == null) {
        System.err.println("Could not find the correct characteristics.");
        sensor.disconnect();
        System.exit(-1);
    }

    System.out.println("Found the temperature characteristics");

    /*
     * Turn on the Temperature Service by writing 1 in the configuration characteristic, as mentioned in the PDF
     * mentioned above. We could also modify the update interval, by writing in the period characteristic, but the
     * default 1s is good enough for our purposes.
     */
    byte[] config = { 0x01 };
    tempConfig.writeValue(config);

    /*
     * Each second read the value characteristic and display it in a human readable format.
     */
    while (running) {
        byte[] tempRaw = tempValue.readValue();
        System.out.print("Temp raw = {");
        for (byte b : tempRaw) {
            System.out.print(String.format("%02x,", b));
        }
        System.out.print("}");

        /*
         * The temperature service returns the data in an encoded format which can be found in the wiki. Convert the
         * raw temperature format to celsius and print it. Conversion for object temperature depends on ambient
         * according to wiki, but assume result is good enough for our purposes without conversion.
         */
        int objectTempRaw = (tempRaw[0] & 0xff) | (tempRaw[1] << 8);
        int ambientTempRaw = (tempRaw[2] & 0xff) | (tempRaw[3] << 8);

        float objectTempCelsius = convertCelsius(objectTempRaw);
        float ambientTempCelsius = convertCelsius(ambientTempRaw);

        System.out.println(
                String.format(" Temp: Object = %fC, Ambient = %fC", objectTempCelsius, ambientTempCelsius));

        lock.lock();
        try {
            cv.await(1, TimeUnit.SECONDS);
        } finally {
            lock.unlock();
        }
    }
    sensor.disconnect();

}

}

@daviessm  Thanks，delay some time can solve

example for TI Sensortag (example -tinyb/examples/asynctinyb.cpp) to read temperature gets struck in below line
Waiting for service f000aa00-0451-4000-b000-000000000000 to be discovered.
None of the services gets discovered .Please help geeks.

The issue was closed without solving my problem. I have boiled my blood but could not make it work for my, definitely there were errors in tinyB implementation.

On Resbian there is a tool called "gatttool" installed. This is a command line tool and I had used Java process API to execute shell commands to access sensor.

@mqaisar @EnricoHarder Have you guys found the solution to the problem? I Have the same problem. Gatttool recognizes my services but tinyb does not.

Hi @joaopmarques66, I couldn't find the reason and couldn't come across any solution. I have written a small Java class which opens a Process to gatttool and then makes use of gatttool commands to read sensors. That's much easier than to use this heavy weight java lib which didn't work for me.

Just update to latest version of Bluez,it will work fine.
On Mon, 8 Apr, 2019, 15:33 Qaisar Choudhary<EMAIL_ADDRESS>wrote:

Hi @joaopmarques66 https://github.com/joaopmarques66, I couldn't find
the reason and couldn't come across any solution. I have written a small
Java class which opens a Process to gatttool and then makes use of gatttool
commands to read sensors. That's much easier than to use this heavy weight
java lib which didn't work for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/intel-iot-devkit/tinyb/issues/123#issuecomment-480768389,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AaFGgysdUmTKL7I2dkkWvS0RofAKNKRJks5vexP7gaJpZM4Pjtlx
.

Just update to latest version of Bluez,it will work fine.
…
On Mon, 8 Apr, 2019, 15:33 Qaisar Choudhary, @.***> wrote: Hi @joaopmarques66 https://github.com/joaopmarques66, I couldn't find the reason and couldn't come across any solution. I have written a small Java class which opens a Process to gatttool and then makes use of gatttool commands to read sensors. That's much easier than to use this heavy weight java lib which didn't work for me. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#123 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AaFGgysdUmTKL7I2dkkWvS0RofAKNKRJks5vexP7gaJpZM4Pjtlx .

Nope, it doesn't help at all and this is 2021 now...

Hi
There is an API called getServicesResolved.
If resolution were immediate there was no reason for that API. Since resolution may take some time one should implement the loop that waits for service resolution or use enableServicesResolvedNotifications callback.
Small code snippet that worked for me.
`
System.out.println("allow 1 minute for service resolution");
for (int i=0; i<60; i++) {
System.out.println("attempt #" + i);
if (device.getServicesResolved()) {
System.out.println("services resolved");
break;
}
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }`

Hi There is an API called getServicesResolved. If resolution were immediate there was no reason for that API. Since resolution may take some time one should implement the loop that waits for service resolution or use enableServicesResolvedNotifications callback.
Small code snippet that worked for me: ``
        for (int i=1; i<60; i++) {
            System.out.println("attempt " + i);
            if (device.getServicesResolved()) {
                System.out.println("services resolved");
                break;
            }

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

``
Output: attempt 1 attempt 2 attempt 3 services resolved

I've tried that but somehow it never resolves and I'm stuck in the loop.


Can't load basic spreadsheets created in Google Docs

Version
'~> 0.6.1'
Describe the bug
Error I'm getting when trying to load very basic spreadsheets:
error: valueNotFound(CoreXLSX.Fonts, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "fonts", intValue: nil)], debugDescription: "Expected Fonts value but found null instead.", underlyingError: nil))

To Reproduce
HelloWorld.xlsx
Blank.xlsx
Attaching two files which fail to load with the below code:
        let f = Bundle.main.url(forResource: "Models.scnassets/levels/HelloWorld", withExtension: "xlsx")!
        guard let file = XLSXFile(filepath: f.path) else {
            fatalError("XLSX file corrupted or does not exist")
        }

        do {
            let styles = try file.parseStyles()

            let ws = try file.parseWorksheet(at: "xl/worksheets/sheet1.xml")
            for row in ws.data?.rows ?? [] {
                for c in row.cells {
                    print(c)
                }
            }
        } catch CoreXLSXError.archiveEntryNotFound {
              print("CoreXLSXError.archiveEntryNotFound")
        } catch {
            print("error: \(error)")
        }

Expected behavior
The files should load and just ignore empty border/font tags similar to this:
<borders count="1"><border/></borders>
<fonts count="2"><sz val="10.0"/><color rgb="FF000000"/><name val="Arial"/></fonts>

Hi @grin, thank you for the detailed report, great catch! This is currently blocked by MaxDesiatov/XMLCoder#101, which is our main dependency. But it should be an easy fix overall. As soon as that PR is merged I'll tag a new XMLCoder release and bump the dependency here, which will fix the reported styles issue.

@MaxDesiatov  Thanks a lot, that was fast! ...and thanks for a great library.

This is now fixed in master and will be included in 0.6.2 bugfix release.

Uh, looking at it more closely now, there's no way that it will be backward compatible, optionality of a few properties will have to change. This means 0.7.0 instead of 0.6.2.


MasterDetailRelation

How to use MasterDetailRelation with multiple columns as foreign key
[MasterDetailRelation(foreignKey: "CustomerID, OrderID"), ClientSide]
is not working

You can't. Add a proper ID, or write your own behavior.


Removed the red background

Removed the red background when running load_phenopacket_folder by taking the notebook warnings out of the stderr and putting them in stdout. I noticed everything was printing to the stderr file, and that always prints as red in jupyter-notebook. By moving the warnings out of the stderr file, only the errors will return with a red background now.
Also discovered tqdm has a module specifically for jupyter-notebook, so I added that. I like that the progress bar is now blue/green ☺

@lnrekerle I think this is good despite CI failures. The failures are unrelated, due to REST API timing out. We'll have to do something with it at some point. However, I think this is ready to go and, therefore, I will merge.


queue.py: Add Queue in Python

**Implemented Queue in Python #94 **

@AkashM398 : We are unable to merge your PR as there are conflicts
Can you check it and make sure the conflict is resolved
Thanks

@AkashM398 : We are unable to merge your PR as there are conflicts
Can you check it and make sure the conflict is resolved
Thanks

Sure will look into it. Is any changes made in the code @jenistenxavier ?


Update CORS Plugin Documentation for Global Plugin

Where is the problem?
https://docs.konghq.com/hub/kong-inc/cors/
What happened?
The global definition is not correct, specifically:

If the upstream service does not have OPTIONS defined as a method then a 404 error is always returned (this seems like a bug in the implementation also)

See also:

https://github.com/Kong/kong/issues/4859 which references the OPTIONS
https://support.konghq.com/support/s/article/404-not-found-of-CORS-OPTIONS-requests - this is incomplete, the example doesn't work as written - needs to specify exactly what the kubernetes definition is

What did you expect to happen?
Needs text on how this needs to actually find a route, which implies a global OPTIONS route
Needs an example of the default route - see second link
Code of Conduct and Community Expectations

[X] I agree to follow this project's Code of Conduct
[X] I agree to abide by the Community Expectations

This worked for me:


Add params for v1.3.2

Add params for v1.3.2

A new image has been built to help with testing out this PR: quay.io/opendatahub/data-science-pipelines-operator:pr-346
An OCP cluster where you are logged in as cluster admin is required.
To use this image run the following:
cd $(mktemp -d)
git clone git@github.com:opendatahub-io/data-science-pipelines-operator.git
cd data-science-pipelines-operator/
git fetch origin pull/346/head
git checkout -b pullrequest 9261d09f2a438dcbb06687c1c18d93d84d4c9acd
make deploy IMG="quay.io/opendatahub/data-science-pipelines-operator:pr-346"

More instructions here on how to deploy and test a Data Science Pipelines Application.


⚠ Empornium has degraded performance

In c371591, Empornium ($EMP) experienced degraded performance:

HTTP code: 200
Response time: 10278 ms

Resolved: Empornium performance has improved in 5877e15.


undefined symbol

Sorry to disturb. I met the error when I ran the command: $ python demo.py
And the error shows like this:
Traceback (most recent call last):
File "demo.py", line 29, in
from model.roi_layers import nms
File "/Stereo-RCNN/lib/model/roi_layers/init.py", line 3, in
from .nms import nms
File "/Stereo-RCNN/lib/model/roi_layers/nms.py", line 3, in
from model import _C
ImportError: /Stereo-RCNN/lib/model/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_30E
I ran this on Ubuntu 16.04, Python  3.6.8, CUDA 9.0, pytorch 1.1.0.
I have search a lot to try to solve this issue, but it didn't work.

Someone said that it is because the mismatch version of Pytorch.  I have tried both version 1.0.0 and 1.1.0, however it doesn't work. Thank you.

I finally find that it is because of the torchvision.