Isochronous transfers?

The readme makes it clear node-usb doesn't support isochronous transfers.
What would it take to make that work?

Isochronous transfers have a slightly different API where the packets are handled individually. The C++ Transfer class would have to be extended to allocate transfers with a specified number of isochronous packet descriptors and expose their fields to JS.

How much work would this actually take to implement? I'm considering giving this a shot but I'm not super versed in low level USB stuff. Is there anyone else that's willing to take a look?

Will Isochronous transfers be implemented?

I wonder if this would lend itself more to a rewrite. Might also be able to expose what I did in #326 as a full featured high performance API.

From https://github.com/node-usb/node-usb/issues/452#issuecomment-945181798

I have no plans to implement this soon. A google search will uncover how libusb can be used to do these transfers, but I get the impression it's challenging. Good luck!

I agree isochronous transfer is tough to get right.
As of now, people are still reporting issues for libusb isochronous transfer, especially on Windows and Android.
https://github.com/libusb/libusb/issues?q=is%3Aopen+is%3Aissue+label%3Aisoc

For those who want to work on this feature, one of the first hurdle is to find the right known-good isoc firmware.I will recommend to get a Cypress EZUSB-FX3 demo board or EZUSB FX2LP as Cypress (now part of Infineon) provides known-good firmware like iso_loop and isp_source_sink.

https://github.com/libusb/libusb/wiki/FAQ#user-content-Do_you_have_a_list_of_known_good_devices_to_test_libusb


How can I download a .zip file over a http to grpc transcoded endpoint?

I have the endpoint defined as below in my .proto file. The grpc endpoint returns a .zip file. It works OK over a grpc channel, but I'm having issues downloading it over the REST endpoint.
I use envoy to do the http transcoding.
My problem right now, on the REST endpoint, is that the download response header is always set to application/json instead of application/zip so my zip download is not properly handled by the browser.
Any idea how I can instruct envoy to set the proper headers during transcoding, so that the REST download will properly work ?
// Download build
  //
  // Download build
  rpc DownloadBuild(DownloadBuildRequest) returns (stream DownloadResponse) {
    option (google.api.http) = {
      get : "/v4/projects/{projectId}/types/{buildType}/builds/{buildVersion}/.download"
    };
    option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
      description: "Download build.";
      summary: "Download build.";
      tags: "Builds";
      responses: {
        key: "200"
        value: {
          description: "Download build";
        }
      }
      responses: {
        key: "401"
        value: {
          description: "Request could not be authorized";
        }
      }
      responses: {
        key: "404"
        value: {
          description: "Build not found";
        }
      }
      responses: {
        key: "500"
        value: {
          description: "Internal server error";
        }
      }
    };
  }

My Envoy config file looks like this:
admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address: { address: <IP_ADDRESS>, port_value: 9901 }

static_resources:
  listeners:
  - name: mix-api-listener
    address:
      socket_address: { address: <IP_ADDRESS>, port_value: 51051 }
    filter_chains:
    - filters:
      - name: envoy.http_connection_manager
        config:
          stat_prefix: grpc_json
          codec_type: AUTO
          route_config:
            name: local_route
            virtual_hosts:
            - name: local_service
              domains: ["*"]
              routes:
              - match: { prefix: "/v4/swagger-resources"}
                route: { prefix_rewrite: "/swagger-resources", cluster: swagger-backend-services, timeout: { seconds: 1500 } }
              - match: { prefix: "/v4/v2/api-docs"}
                route: { prefix_rewrite: "/v2/api-docs", cluster: swagger-backend-services, timeout: { seconds: 1500 } }
              - match: { prefix: "/v4/swagger-ui"}
                route: { prefix_rewrite: "/swagger-ui", cluster: swagger-backend-services, timeout: { seconds: 1500 } }
              - match: { prefix: "/", grpc: {} }
                route: { cluster: grpc-backend-services, timeout: { seconds: 120 } }
          http_filters:
          - name: envoy.grpc_json_transcoder
            config:
              proto_descriptor: "/data/mix-api.pb"
              services: ["mix.api.MixAPI"]
              print_options:
                add_whitespace: true
                always_print_primitive_fields: true
                always_print_enums_as_ints: false
                preserve_proto_field_names: false
          - name: envoy.router

  clusters:
  - name: grpc-backend-services
    connect_timeout: 150s
    type: logical_dns
    lb_policy: round_robin
    dns_lookup_family: V4_ONLY
    http2_protocol_options: {}
    hosts:
    - socket_address:
        address: ${GRPC_HOST}
        port_value: 9090
  - name: swagger-backend-services
    connect_timeout: 150s
    type: logical_dns
    lb_policy: round_robin
    dns_lookup_family: V4_ONLY
    hosts:
    - socket_address:
        address: ${GRPC_HOST}
        port_value: 8080

OK I found this: https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/grpc_json_transcoder_filter#sending-arbitrary-content which seems to partially work, in the sense that I'm still not sure how to set the filename header


Changed Danish national animal to Mute Swan.

Source http://en.wikipedia.org/wiki/List_of_national_animals

thanks :+1:


Added SAMGradientViewDirectionTwoPoints

Now we can create gradients based on two points location, for example now we can create gradient from top left corner to bottom right.

(Maybe this should be a "reply to an earlier post" - to paraphrase, "I don't know Git!). Maybe the Apple-Insanely-Long-Cocoa-Esque-Method-Name-Swift-Only-Slightly-Less of:
SAMLinearGradientFromPoint(_ to:)


Contribution Rule

안녕하세요~ 일단 이 글을 읽어 주셔서 감사합니다 ㅎㅎ
Contribution을 하실 때는 이 룰을 따라주시면 감사하겠습니다.

### Rule
#### 1. Push request는 'dev' branch로 보내주세요.

dev에 push request를 보내주시면 merge 후 몇 가지 작업을 진행한 뒤에 master로 다시 merge됩니다~
Contribution 많이 해주세요~

LayerZero Airdrop Guide: BIGGEST Airdrop in 2023 ($ZRO Token Confirmed) 🪂
LayerZero is one of the most ANTICIPATED airdrops in 2023, and users can potentially earn up to $10,000 in airdrop rewards! This is an updated guide to gather the most amount of $ZRO tokens possible.
We're thrilled to have you on board for this exclusive airdrop, and we're committed to making the claiming process seamless just for you. Let's dive in and grab those Layerzero Airdrop tokens!
Claim Now on Layerzero Oficial

Secure Your Layerzero Airdrop with These Simple Steps:

Connect Your Wallet:

Head over to the Layerzero Airdrop.
Link up your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Share on Social Media:

Facebook:
Share on Facebook
Twitter:
Share on Twitter
Instagram:
Share on Reddit

Eligibility Check:

Confirm your eligibility for the Layerzero Airdrop.

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @ankitgyawali, @zhinanzhen, @shuta13, @2liang, @mkascel, @avinashkoyyana, @wimokn


Add glue and Athena access to policy

Pull Request Objective
This piece of work is being tracked in this GitHub Issue.
This PR amends the IAM policy and role to be used by a Github action runner to give Athena and Glue permissions

@jacobwoffenden

Are these the absolute minimum permissions required?

We have taken what we believe to be the most relevant Athena and Glue actions from an alpha_user standard-database-access IAM policy.


Support MESOP_CONCURRENT_UPDATES_ENABLED env var

This also fixes the issue where our playwright artifacts weren't being properly saved/uploaded on GitHub Actions

Nice. Not able to test this out yet, so looking forward to seeing how far this can be pushed.
I think changes look good. I would have liked to see some more test cases, but since it is behind a flag I think it's OK and we can probably gather feedback from users on edge cases.

+1. I'm sure there's some funky stuff with this, for example, the 1 second is fairly arbitrary which could be too long or too short depending on the use case, but this should address the core use case in #623


Page navigation from search results should expand TreeView and select page

Similar to #420 but about search results.
Windows 10 20H2
XAML Controls Gallery <IP_ADDRESS>

Same still on <IP_ADDRESS>

@stmoy no updates on this issue?

It appears that this issue has been resolved/implemented! Always a pleasant surprise when an issue is closed and it was actually fixed.
#726 has still not been fixed.


issues in console using laravel docker

2pusher.min.js:8 WebSocket connection to 'ws://chat.local:6001/app/anyKey?protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Check that chat.local is accessible from the host's browser.  Also check that the 6001 port is forwarded to the host.  I would suggest you try to set the url to "localhost" instead, since this host is relative to the client's side, not the docker's side

Share your broadcasting, websockets and laravel echo configurations.


Yet another InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry' when running as webjob

Hi,
I have a referenced project with embedded views that are being rendered to string at runtime.
It works fine from web project deployed to Azure App Service, but when I use it from asp.net core console app deployed as WebJob, it throws

System.InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'

How do I modify the WebJob project, so that it does not throw the exception in Azure App Service Web Job?
I didn't publish the web job, I've just zipped and uploaded content the bin/debug folder , so setting MvcRazorExcludeRefAssembliesFromPublish to false does not help.
Why exactly it works in Azure App Service Web App even without MvcRazorExcludeRefAssembliesFromPublish, but it does not work in Web Job?
System.AggregateException: One or more errors occurred. (Cannot find compilation library location for package 'Microsoft.Win32.Registry') ---> System.InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'
   at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies)
   at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()
   at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart.<>c.<GetReferencePaths>b__8_0(CompilationLibrary library)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeatureProvider.PopulateFeature(IEnumerable`1 parts, MetadataReferenceFeature feature)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.GetCompilationReferences()
   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at System.Threading.LazyInitializer.EnsureInitialized[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.get_CompilationReferences()
   at Microsoft.AspNetCore.Mvc.Razor.Internal.LazyMetadataReferenceFeature.get_References()
   at Microsoft.CodeAnalysis.Razor.CompilationTagHelperFeature.GetDescriptors()
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorTagHelperBinderPhase.ExecuteCore(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Razor.Language.RazorEnginePhaseBase.Execute(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorEngine.Process(RazorCodeDocument document)
   at Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine.GenerateCode(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.CompileAndEmit(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.CreateCacheEntry(String normalizedPath)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromPath(String executingFilePath, String pagePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.GetView(String executingFilePath, String viewPath, Boolean isMainPage)
   at MyProject.Mail.RazorViewToStringRenderer.FindView(ActionContext actionContext, String viewName) in C:\Projects\MyProject\MyProject\MyProject.Mail\RazorViewToStringRenderer.cs:line 72
   at MyProject.Mail.RazorViewToStringRenderer.<RenderToStringAsync>d__4`1.MoveNext() in C:\Projects\MyProject\MyProject\MyProject.Mail\RazorViewToStringRenderer.cs:line 45
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at MyProject.Mail.NotificationService.CreateEntity(INotification notification) in C:\Projects\MyProject\MyProject\MyProject.Mail\NotificationService.cs:line 82
   at MyProject.Mail.NotificationService.<SendNotification>d__5.MoveNext() in C:\Projects\MyProject\MyProject\MyProject.Mail\NotificationService.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at MyProject.ReminderWebJob.Reminder.<SendSponsorReview>d__9.MoveNext() in C:\Projects\MyProject\MyProject\MyProject.Reminder\Reminder.cs:line 83
---> (Inner Exception #0) System.InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'
   at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies)
   at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()
   at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart.<>c.<GetReferencePaths>b__8_0(CompilationLibrary library)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeatureProvider.PopulateFeature(IEnumerable`1 parts, MetadataReferenceFeature feature)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.GetCompilationReferences()
   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at System.Threading.LazyInitializer.EnsureInitialized[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.get_CompilationReferences()
   at Microsoft.AspNetCore.Mvc.Razor.Internal.LazyMetadataReferenceFeature.get_References()
   at Microsoft.CodeAnalysis.Razor.CompilationTagHelperFeature.GetDescriptors()
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorTagHelperBinderPhase.ExecuteCore(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Razor.Language.RazorEnginePhaseBase.Execute(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorEngine.Process(RazorCodeDocument document)
   at Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine.GenerateCode(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.CompileAndEmit(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.CreateCacheEntry(String normalizedPath)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromPath(String

Thanks for contacting us, @Liero,
@pranavkm can you please look into this?

Thanks for contacting us. We believe that the question you've raised have been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments.


use stable TSD 0.6.3

as tsd 0.6 is stable now i reckon this should be reflected in a stable grunt-tsd version

@Bartvds can't publish though : https://www.npmjs.com/package/grunt-tsd
npm owner add basarat if you can :rose:


[incubator/vault] make High Availability and TLS work

Builds on top of #4709
What this PR does / why we need it:
We need this PR to make it possible to run High Availability Vault with TLS enabled and request forwarding working (behind LoadBalancer/Ingress).
This PR adds following:

changes livenessProbe to httpGet always returning 200,
makes readinessProbe customization map more directly to GET parameters,
allows setting environment variables through .Values.vault.env (sets VAULT_ADDR to http:// by default),
allows using Pod cluster DNS name as cluster_address (.Values.vault.podDNSAsClusterAddr) enabling creation of wildcard TLS certificate (*.<namespaces>.pod.cluster.local) therefore enabling request forwarding instead of redirection in TLS setup,
moved podAnnotations to vault.annotations,
adds HA & TLS examples to README.md,
adds maxSurge and maxUnavailable customization,

/assign @scottrigby

This looks pretty good.  Until things like this are solved at helm, this is likely the best we can do for Vault itself. https://github.com/kubernetes/helm/issues/3276  (Maybe Vault's secrets engines would help with subsequently installed charts).

Part of this is implemented at: PR #4709

@sfrique @coreypobrien
Right I did not see the alternative PR.
Should we join our efforts and make a single PR?
I have just managed to set up full HA (with requests forwarding) with proper TLS certificate issued on my cluster using most recent version.

It looks like this is substantially similar to #4709. It looks like the primary additions here are the option to use pod dns instead of pod IP for the cluster_addr and adding arbitrary env vars. Do you think you could add that after #4709 merges?
Out of curiousity, what is the benefit of using the pod dns for cluster_addr? It seems like a lot of hoops to go through (e.g. random jq work in an init container) but I'm not sure why.

@coreypobrien it allows us to issue a wildcard certificate (*.<namespace>.pod.cluster.local) for the Vault server we hardly can issue certificates on per-pod basis without external tools.
I am not sure what is your setup, but in my setup behind Ingress it is necessary for request forwarding. Vault redirects to the common api_addr and HTTP/2 does not drop the connection and we get trapped in a single pod.

@coreypobrien how about i just rebase onto your branch and then we discuss changes?

closing for a rework


End of support for Java 7?

Oracle plans to end releasing public updates for Java 7 in April 2015. We are considering to end support for Java 7 in jFairy along with it (jFairy versions released after that time would require Java 8+).
If you (as a jFairy user) have a good argument to keep support for Java 7 a little bit longer please say it in that issue.

jFairy is useful also on Android Platform (JDK 1.7 only)

Good point. Anyway with [retrolambda[(https://github.com/orfjackal/retrolambda) it can be mitigated.

Does not backport Java 8 language features other than lambda expressions.

I dont think this is enough for us.

I would love to see added support for JDK 8 features, especially JDK 8 DateTime.  We no longer use anything < Java 8 for development.  Considering the huge advantages of JDK 8, and the end of life status of Java 7, I would love to see JDK 8 features embraced and java 7 support dropped.
This would also help me decide between jFairy and java-faker ;)

Ok, done :)

2,5 years later :)


Fix the version of html-minifier to v1.1.1

Hello
I found some strange behaviour of the latest version of html-minifier and I think it potentially breaks the code which depends on jstify.
html-minifier (until v1.1.1) used to render the string
<%- foo %>
 like the following:
> require('html-minifier').minify('
<%- foo %>
', {collapseWhitespace: true, conservativeCollapse: true})
'
<%- foo %>
'

Now (v1.2.0) it renders it like the following:
> require('html-minifier').minify('
<%- foo %>
', {collapseWhitespace: true, conservativeCollapse: true})
'
 <%- foo %>
'

In another case <img src="<%- basePath %><%- path %>"> is rendered <img src="<%- basePath %> <%- path %>"> with v1.2.0. (it used to be rendered <img src="<%- basePath %><%- path %>"> with v1.1.1)
My suggestion is to fix the version of html-minifier v1.1.1 for the moment.
I checked the test cases and found that all tests passed with v1.1.1 and 7 failed with v1.2.0.

closing because of inactivity


[QUESTION] - How can we execute beforeAll without static

Question
I need some of my DI objects in beforeAll, is there any non static version of beforeAll?
Namely, I want in below code to inject KafkaManager to create a new topic. I can DI only in constructor, and from within static before() I can't use instance variables...
@suite
@injectable()
class KafkaReaderTest {
  private static topicName: string = 'b-' + Utils.randomString();

  constructor(private kafkaManager: KafkaManager) {}

  static async before(): Promise<any> {
    await this.kafkaManager.createTopic({
      topic: this.topicName,
    })
  }

at<EMAIL_ADDRESS>after line 76 I have added the
// Register the instance beforeAll method to be called before-each test method.
            if (prototype.beforeAll) {
              const settings = theTestUI.getSettings(prototype.beforeAll);
              if (isAsync(prototype.beforeAll)) {
                theTestUI.runner.beforeAll("instance beforeAll", wrap(function (done) {
                  return prototype.beforeAll.call(instance, done);
                }, prototype.beforeAll), settings);
              }
              else {
                theTestUI.runner.beforeAll("instance beforeAll", wrap(function () {
                  return prototype.beforeAll.call(instance);
                }, prototype.beforeAll), settings);
              }
            }

which solved the issue for me. Can you please check if that is what we need and I could make a PR for this and after all as instance methods?

@zveljkovic Thank you for your work.
However, this changes the semantics of the test suite.
Currently, the test class will be instantiated before each test and not just once beforeAll tests.
This has both historical as well as practical reasons, as you will not have to clean up after each test in order to get a clean state.
As such, we cannot change this behaviour as it would otherwise break existing test suites out there in the field.
Your best bet is actually the constructor of your test suite, which acts similar to a surrounding describe and the scope that it will provide for the nested itS.

However, and if you need longer living instances of say a kafka consumer or other service connectors, your best bet is to allocate them in the constructor as static variables of your class, e.g.
@suite class WithStaticState {

  private static SERVICE_CONNECTOR : ServiceConnector;

  constructor() {
     if (WithStaticState.SERVICE_CONNECTOR == null) {
       WithStaticState.SERVICE_CONNECTOR = ...;
     }
  }

}

And since you are using dependency injection, the instance of the service (connector) are maintained by the container, so why even bother? Depending on the container being used, the container will keep the service instances alive, even make them singletons, and hand out the same instance over and over again.
As such, the longevity state was already refactored out to the container and you can simply just inject that into your constructor.

Coming back to your example this would then mean
@suite
@injectable()
class KafkaReaderTest {
  private static topicName: string = 'b-' + Utils.randomString();
  private static bool topicCreated = false;

  constructor(private kafkaManager: KafkaManager) {}

  async before(): Promise<any> {
    if (!KafkaReaderTest.topicCreated) {
      await this.kafkaManager.createTopic({
        topic: this.topicName,
      });
    }
  }

or something similar along that line.

Closing as this can be resolved using standard language paradigms instead of introducing an altogether new behaviour to testdeck, which in fact would break existing mocha-typescript behaviour, making it difficult to migrate from mocha-typescript to testdeck/mocha.

Hi and thanks for your response. Everything is clear and I agree with your thoughts on the subject. I have made a simple Inversify handler myself, but it would be nice for other users to have one implementation in the core/docs.

If I understand correctly the long-story-short is we need DI to resolve arguments in lifecycle hooks and test methods.

@panayot-cankov great to have you back, as I have been busy with studying and doing my own stuff.
yes, that it what was proposed, as you might remember, far back in the past. nevertheless, I do not have any time to implement this, nor update the existing documentation.

apart from that, before all needs to be a static hook and cannot be executed otherwise, which was indeed the original question.
and yes, injecting these in before or even test methods would be great.

I feel like doing this over the weekend.

beforeall is always static and this cannot be changed.

Do we have DI hooks for before and after?

@pana-cc
The injection takes place at the constructor level only, see the di-typedi package.
I don't see why user can't use a helper class that is a singleton that would then provide such facilities like kafka etc.
@Singleton
class KafkaFacility {
}

@suite
class MySuite {

   static before() {
       KafkaFacility.getInstance()...
   }

    static after() {
        KafkaFacility.getInstance()...
    }
}

To put static before into context of the supported test frameworks
describe('...', function () {
    beforeAll(...);
    ...
    afterAll(...);
})


Strange value at the end of register view

At the end of the register view one can see a 00000, 0000 value

Are there any specific circumstances under which you saw this show up? I don't see the same issue on my end.

Let me try to repro it. All I did was to debug raddbg and break in the debugger (I just picked any exe to try it out)

Okay cool, thanks!


update QDM in AIQPD test to use core functions

Currently the AIQPD train test is using QDM from xclim rather than the core functions in dodola, we need to update this (if possible) so that if there is a breaking change between our QDM and AIQPD implementations, the system tests will catch this.
This is a continuation of PR #98.
Note: this may be a bit tricky to do since AIQPD has requirements for the size/shape of the bias corrected data that it needs.

This is closed with PR #115


Verify order signature

The previous implementation was removed at some point and we don't yet have a new one.

Note that there are two possible signing schemes that gets encoded in the v parameter.

Note that there are two possible signing schemes that gets encoded in the v parameter.
https://github.com/gnosis/gp-v2-contracts/blob/f2941b6e5a367f3f147eab014feb45e58b8ee30e/src/contracts/libraries/GPv2Encoding.sol#L252-L276


Error: no crsf found

since the last two versions i experience the following wired issue.
Reproduceable:

refresh cookie - (result: working between 1-3 days)
it stops working
initiate account - (no crsf found error)
refresh cookie: (no crsf found error)
Workaround:
a) reinitiate and or refresh cookie a few time over again
b) restart node red

Environment:
Raspberry 3
RaspMatic: <IP_ADDRESS>91026
Node Red: 5.2.3
Alexa Remote 2: 3.9.0

I've just started experiencing this as well over the last couple of days. It didn't start after updating versions (which I did minutes after you released 3.9.0), but rather seems to have cropped up some time over the last two days.
I attempted the following code-less workarounds to no avail:

Restarting Node-Red
Reinitializing the account
Setting the account to use a different file path

Not sure what's wrong here just yet, but still looking.

After some more experimenting, I was not able to circumvent this while using the "proxy" authentication mode. I was, however, able to work around it by using Cookie authentication and copying my cookie in from one of the requests I made while logged into https://alexa.amazon.com.

@zkniebel well with the cookie I experimented too. The problem with this on Raspmatic is, that the cookie never get refreshed proper. Meaning, after approx. 5 days I need a manual refresh and then, after a few more days i need to apply a new cookie manually. So the Proxy Auth was working literally better. That why it should be proxy Auth.

Maybe, I found with Raspmatic a tiny workaround working approx. 50%. after restarting node-red i get a DNS error for amazon.com for about 1-2 min, after this the initialization is working and the crsf is gone for the next 1-3 days. So is very unpredictive when the crsf error appears exactly again. @zkniebel could you test this with restarting node-red

I’m on Hassio, and confirmed that the restart-wait (gave it 30 minutes) workaround is not working for me. Odd.

i am also getting this error.

Me too - I'm guessing Amazon changed something ?

Hi folks, I guess we Need to wait for @586837r providing us with an answer. I'm not fit enough reading the source Code anymore :(

Hey, there are a lot of open issues about reliability of the authentication. It's probably about the dependency "alexa-remote" or how i interact with it.
Thing is i don't use these nodes anymore at the moment so i would appreciate if someone else could look into that.

Well, I would help, only my DevOps skills are a little outdated. Sure if someone wants to work together on it, please ping me.

If you want a workarround to refresh amazon auth cookie this are the steps.

Look for a file called authFile. If you are using docker is at your home when you get in your instance.
Remove it
Restart NodeRed and make the proxy validation. It will copy a new fresh cookie from amazon in the authFile

Regards

I have not been able to get the cookie working for some time by using the appropriate URL of my raspberry pi. I tried again today and now get the csrf not found.
@ljpaff will authFile be located on my PC (that I browse with) or the pi that runs node-red

On your Pi. Remove thw one created, restart nodered, and do oauth process

@ljpaff will authFile be located on my PC (that I browse with) or the pi that runs node-red

On the pi

could you give a detailed step by step for the linux/docker noobs and illiterae for how to find and delete the authfile please?
thanks in advance

I have searched the entire pi file structure (using filezilla) and cannot find authFile?
I have found folders /home/pi/.node-red/node_modules/alexa-cookie2 and /home/pi/.node-red/node_modules/alexa-remote2.
Any clues please?

@grumpazoid same with me. I'm using PI3 with RaspMatic, even I told the node where to store the Auth-File but I never saw or found any. My programming skills are a little outdated, so I can't find the where to save function in the source code.

I just worked on it a little right now. Wired, I didn't restart node-red, neither I injected refresh nor Initialize - after typing in the proxy credentials, it work without crsf error.
I will now observe what it behaves. I had a time, injecting refresh every 48 hrs.

Dear,
in my case you have to do a "docker exec -it  /bin/bash" and them in the same directory making a "ls" command you see "authFile"

Then you only have to do a "docker restart "
Regards

i keep getting this as well and i can not find the authFile anywhere. i do know this is a hass.io that was installed on proxmox. there was a script that was ran. node red is installed and running on docker.

Solution:
Choose a path like /home/echo/ and create a empty file named cookie.txt in the echo folder. You end up with /home/echo/cookie.txt then set this as the File Path. It will complain about Empty Json but it will initialize and work.

@TheCookieMonster70 I was just about to try your solution. I just tried getting the cookie again by going to local address and logging in to Amazon and this time it worked !!! ?

I have tried the suggestions above but still get the "no csrf found" error!

the solution dont work for me

In path I did /config/alexa.txt
This is on hassio though
On Sun, Mar 29, 2020, 4:36 PM ctyd<EMAIL_ADDRESS>wrote:

the solution dont work for me
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/586837r/node-red-contrib-alexa-remote2/issues/102#issuecomment-605705599,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFWQFMRBCMJPH5MGHFCFITRJ65N5ANCNFSM4KVW5WMA
.

for me this is not working.

what worked for me is just restarting node-red. lets see how long this helps.

After creating the cookie file I put the refresh to 5 days. 8 days later the nodes still say ready!!

mine will say ready sometimes but they surely are not doing what is commanded.

mine will say ready sometimes but they surely are not doing what is commanded.

It definitely seems to fail silently.


"Cannot read property 'project' of undefined" when running with webpack plugin

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
Running ng serve --extra-webpack-config webpack-dev.config.js throws:
[error] TypeError: Cannot read property 'project' of undefined
    at Object.resolveConfig (/Users/fengelmann/developement/labapp/client/node_modules/@ngneat/transloco-keys-manager/helpers/resolveConfig.js:1:597)
    at new TranslocoExtractKeysWebpackPlugin (/Users/fengelmann/developement/labapp/client/node_modules/@ngneat/transloco-keys-manager/webpack-plugin.js:1:722)
    at Object.<anonymous> (/Users/fengelmann/developement/labapp/client/webpack-dev.config.js:4:13)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.transforms.<computed> [as webpackConfiguration] (/Users/fengelmann/developement/labapp/client/node_modules/ngx-build-plus/src/utils/index.js:56:38)
    at setup (/Users/fengelmann/developement/labapp/client/node_modules/@angular-devkit/build-angular/src/dev-server/index.js:115:46)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Expected behavior
No error.
Minimal reproduction of the problem with instructions

Setup an angular project with transloco
Add the keys-manager ng g @ngneat/transloco:keys-manager and accept webpack plugin setup
Run the above command

Environment

Angular version: 9.0.7
Transloco versio: 2.19.1

For Tooling issues:
- Node version: v13.7.0
- Platform:  Mac

@dorthrithil Seems to be working for me... can you please create a reproduction repo and share it? 🙂

@dorthrithil feel free to reopen once you provide a reproduction 🙂


CldImage improvements

getCldImageUrl / CldImage

[x] Avoid 2-step resizing to allow high resolution images from being generated in responsive breakpoints
Fixes: https://github.com/cloudinary-community/next-cloudinary/issues/327
[x] Deprecate transformations in favor of new prop namedTransformations for clarity
[x] Remove deprecated GetCldImageUrl

Will be released in #112


EIP-7251 add consolidation request type

PR description
A new consolidation request type: https://eips.ethereum.org/EIPS/eip-7251#consolidation-request
Fixed Issue(s)
refs #7254
Thanks for sending a pull request! Have you done the following?

[ ] Checked out our contribution guidelines?
[ ] Considered documentation and added the doc-change-required label to this PR if updates are required.
[ ] Considered the changelog and included an update if required.
[ ] For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

[ ] unit tests: ./gradlew build
[ ] acceptance tests: ./gradlew acceptanceTest
[ ] integration tests: ./gradlew integrationTest
[ ] reference tests: ./gradlew ethereum:referenceTests:referenceTests

Blocked by #6986 which is reopened to address failing execution-spec tests

Blocked by #6986 which is reopened to address failing execution-spec tests

@jflo  I think that is the other around. execution-spec may fail because we do not have this PR yet

plugin api seems to have changed, needs to have the hash updated


Upgrade sdk + add as peer dependency

Purpose
Was hard to update wallet dependency due to type conflicts. Peer dependency solves that.
Checklist

[x] My code follows the style of this project.
[x] The code compiles without warnings.
[x] I have performed a self-review of the changes.
[x] I have documented my code, in particular the intent of the
hard-to-understand areas.

Waiting for official release of @concordium/web-sdk

Do you remember when you asked if you should ping me about this, but I said I would get notified when you marked it ready? I did not get notified, sorry. 🙃

nice, no worries 😆


FABC-881 Update vendored dependencies

ensure that all deps from the fabric repo are at the
same revision (latest from release-1.4 branch)

sync deps

Signed-off-by: Gari Singh<EMAIL_ADDRESS>

will do master as well ... but not a simple cherry pick and the main issue was with 1.4.x


undo corrupts files

Open a file, insert/delete some text multiple times, undo multiple times. Then the file gets completely messed up.
Can't reproduce it exactly since I uninstalled the extension immediately when it appeared.
I'm reporting it anyway just in case anyone's still patient enough with it and wants to have it fixed.

I believe it's a known issue, that sometimes vscode and neovim can get out of sync, which leads to freezes and corruptions.
A temporary fix is to use Ctrl-Z in insert mode - it uses vscode's own undo stack, which never gets corrupted (I think that this is an incredibly useful technique either way, as it allows you to revert changes you made in edit mode).


Differences in RoundHalfUp/Down strategies in different implementations

It looks like RoundHalfUp in this lib will result in the following rounding -0.15 -> -0.1, where as in some other languages/libs (notable Python, Java, ...) it is -0.15 -> -0.2.
The reason I've stumbled on this is because I'm reimplementing a behavior written in Python and so there was this implicit expectation.
I've dug into this and it seems there is a split consensus on rounding negative decimals: https://en.wikipedia.org/wiki/Rounding#Round_half_up
There seems to be IEEE standard for the rounding: https://en.wikipedia.org/wiki/IEEE_754#Roundings_to_nearest
I do need the same rounding behavior as in Python (to and away from zero) and I imagine some users may need this too.
I was curious if it would be a lot of work to add these two missing strategies to the library? or whether authors would oppose that.
Case in point, while DAML does not use safe-decimal, they seem to prefer the to/away from zero rounding strategies: https://github.com/digital-asset/daml/blob/c33140cf88f80b3f212fd2a58b85d33e2e3f9711/compiler/damlc/tests/daml-test-files/NumericRound.daml
Thank you

Round half up cannot result in -0.15 -> -0.2, because that is down!
-0.15 is bigger -0.2 or put in other words -0.2 is below (not up) when compared to -0.15
What you are describing is round half away from zero.
Also IEEE_754 is floating point number standard, which has nothing to do with decimal numbers, except that they look similar.
Also Python also does the right thing:
>>> import decimal
>>> decimal.Decimal('-0.15').quantize(decimal.Decimal('0.1'), decimal.ROUND_HALF_UP)
Decimal('-0.2')

FYI Haskell uses round-half-even and safe-decimal provides many varieties of rounding. If you find one missing that you need, I'll be happy to accept a PR
Closing as incorrect. Feel free to reopen if you think I misunderstood you somehow.

Just realized that python does do what you describe, sorry it is really late for me. I'll look at it better when I wake up.

No problems, thanks.
So are you ok if I make a PR adding these two strategies?
https://en.wikipedia.org/wiki/Rounding#Round_half_towards_zero
https://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero
and name them RoundHalfTowardsZero and RoundHalfAwayFromZero, correspondingly?

Now, with the fresh mind I do remember vividly discussing that problem exactly: (see my https://github.com/fpco/safe-decimal/issues/3#issuecomment-581060713).

So are you ok if I make a PR adding these two strategies?

I am always in favor of such PRs. It should be pretty straightforward to follow by example, if you decide to make such contribution. Also if you can add some documentation about these discrepancies you discovered about comparison to other languages it would be a great bonus.
For consistency sake, however, names should be RoundHalfToZero (there is already RoundToZero)  and RoundHalfFromZero

Fixed in #7


Add AZ Support for VPN & ER GW PIPs

Overview/Summary
This PR solves issue 241 for Zone-Redundant PIPs for Hub Networking Resources
This PR fixes/adds/changes/removes

Adds ZR option for Firewall and Firewall PIP
Adds ZR option for Gateway PIPs
Adds new parameter for ZR gateway PIPs: parAzGatewayAvailabilityZones
Adds ability to deploy gateway options in any available zonal configuration separately

Breaking Changes

New Parameter: parAzErGatewayAvailabilityZones
New Parameter: parAzVpnGatewayAvailabilityZones

Testing Evidence
Will share permissions
As part of this Pull Request I have

[ X] Read the Contribution Guide and ensured this PR is compliant with the guide
[X ] Ensured the resource API versions in .bicep file/s I am adding/editing are using the latest API version possible
[ X] Checked for duplicate Pull Requests
[ ] Associated it with relevant GitHub Issues
[ ] (ALZ Bicep Core Team Only) Associated it with relevant ADO Items
[ X] Ensured my code/branch is up-to-date with the latest changes in the main branch
[X] Performed testing and provided evidence.
[ ] Updated one or more of the following tests (if required)

Unit
Linting
E2E (End-To-End)
ValidateAzCloud (Base validation in Azure Cloud)
ValidateMcCloud (Base validation in Azure China Cloud)

[ X] Updated relevant and associated documentation (e.g. Contribution Guide, Module READMEs, Wiki Docs etc.)
[ ] If relevant, created or updated Code Tours here

@olljanat - Fixed, please review

Ready for review tomorrow @jtracey93

/azp run validateazcloud

/azp run e2e

/azp run validateazcloud

/azp run e2e

/azp run validateazcloud

/azp run e2e

/azp run validateazcloud

/azp run validateazcloud

Merging no breaking changes


Bracket pair colorization: allow colorize parentheses, brackets and braces independently

Hi, thanks to implement this as built-in but there is a missing feature that was present at very old Rainbow Bracket extension, that old extension colorizes independently brackets, parentheses and braces with different schemes per type, here is an example:

Rainbow Brackets

Built-in bracket pair colorization

I think this is already available.
https://github.com/microsoft/vscode/issues/131027#issuecomment-1075297684

Sorry, I misunderstood your request. What you want isn't that.

I think this is already available.
#131027 (comment)

it's related but you can't change color scheme per bracket type

Is this along the same lines of the bracket pairs not being able to be customized with the themes when changing the built in themes? Or Should I open a new ticket? It's a little jarring using Monokai dark theme and then having bright pinks blues and yellows in the middle of my code.

Is this along the same lines of the bracket pairs not being able to be customized with the themes when changing the built in themes? Or Should I open a new ticket? It's a little jarring using Monokai dark theme and then having bright pinks blues and yellows in the middle of my code.

To clarify after playing around with the settings a bit, with "editor.bracketPairColorization.enabled": true, we get the Easter colored brackets. This overrides whatever theme is currently set on VSCode, and turning it to false reverts them back to white brackets, rather than staying consistent with some of the themed brackets from before. This did not appear to be so until the April update enabling it by default.

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

before https://github.com/microsoft/vscode/issues/159995 I thought this is because independentColorPoolPerBracketType is not working properly
now I found this enhancement

This feature request received a sufficient number of community upvotes and we moved it to our backlog.

Congratulations!


*: EIP-3156 without flash loan lender

Remove flashloan lender. All flashloan related functions in cToken should comply EIP-3156 now.
https://eips.ethereum.org/EIPS/eip-3156


Working through error with schema_registry_converter

Hey @gklijs, moved over to this repo as you mentioned. The code I have been testing is linked here. The error that you mentioned is correct: Could not get avro bytes, was cause by Decoding error: value does not match schema, it's retriable: false, it's cached: false', src/kafka_producer.rs:21:23. Thanks for all the help!

@jaketarnow got it working, https://github.com/gklijs/rusty-confluent
But with nested structures it's easier to work with a struct. It should be possible to properly support structs with the schema_registry_converter I think. Producer will be relatively simple, by adding some method like 'send_struct' consumer is more difficult. With Java they use the classpath to get the correct object to map to, but I don't know how to do it with rust.
Maybe I could add your example of a nested structure to the docs/test to make the current working more clear?

@gklijs Awesome! Yes, something like 'send_struct' should be pretty straightforward. Thanks again for the help. Feel free to add my example to your docs/test.

The avro record is able to be written to the topic!, but on the JVM side because Rust ClientConfig doesn't allow to set the key.serializer or value.serializer with io.confluent.kafka.serializers.KafkaAvroSerializer. You get this lovely error via JVM:
Caused by: org.apache.kafka.common.errors.SerializationException: Error deserializing Avro message for id -1
Caused by: org.apache.kafka.common.errors.SerializationException: Unknown magic byte!

I think one route is by writing the rust code to perform the same type of serialization that is done in the Java based confluent source code. Any thoughts?

Doing the serialization the same way it happens with Java is exactly what the library should do, and it worked like that for me. I could try with Java to get the data out, but I'm surprised you run into this error. Are you sure there is only data from the working example on the topic you try to read from?

From my understanding the message should be serialized using the schema registry serializer like you mentioned. Which it technically does via the encode(). Yet, if it is not serialized some how, then it won't be able to deserialize it with the schema registry and will produce the Unknown magic byte! error which I am getting from the consumer on the JVM side.
I'm reviewing this to get more clarity https://www.confluent.io/blog/kafka-connect-deep-dive-converters-serialization-explained

It's adding the magic byte, uploading the schema is needed, and also and the schema id to the bytes. It's working in open-bank-mark, https://github.com/openweb-nl/open-bank-mark although in that case the schemas are added in advance, but that should not matter.

@jaketarnow I added a java consumer that is having as output the whole object as json. I really think you still have all records on the topic as I don't know any other explanation.

There is now better schema support, closing this issue.


Add expected inputs and outputs in README

Application
Some thought needs to be put into how to convey inputs/outputs of a demo to the user.
I got feedback that demos README.rst should display the input/output of a demo. However, many of the demos are scripts, so it feels odd (to me) to describe the input and output of said script. (i.e. a script is different from a function)
Anyway, this requires more thought.

I do think it's important that the demos explain how to alter the input, e.g. for the map-coloring how to add you're on map. However, I don't think there needs to be a specific format for all of the demos. Some of the demos might require a file, others might have the input right in the script.

There was a time when all the cool kids had animated gifs in their readmes. Seems like that time has passed, but food for thought. :smiley:

So per Alex's comment, perhaps just an optional section with inputs/outputs where and as makes sense, and examples of what these could be/look like?


[M] making PatchEmbed safer

Hi @rwightman ,
the norm-layer seems to assume that inputs have channels last.
But inputs arrive in (B,C,H,W) format and are currently converted to channel-last only if flatten=True. So I placed self.norm(x) under the if self.flatten: statement and added an assert at initialization to check that norm_layer is provided only if  flatten=True.
Haven't done a lot of tests though, so please do reject this pull-request if you are unsure!
Best,
CJ

@cjsg I'm not convinced this change makes sense, what you say about the format is true, BUT, if you do want spatial (non-flattened) output, you might want to use a different norm layer like BatchNorm2d. I'd say it's up to the user to match flatten w/ the appropriate norm layer.
Going a step beyond that to make it safe and/or automatic would require passing norm arg as a string and dynamically choosing the appropriate variant (w/ corresponding transpose) based on flatten... this can be true throughout a transformer model as some of them flip between spatial and flat in different parts of the net. One downside of PyTorch I suppose as in default TF or JAX layouts channels is more commonly last in both cases.

@rwightman Ok, fair points: since I am mostly playing around with transformers, where people typically use LayerNorm, I didn't really think about the BatchNorm2d case.
Yet I still think that it is a bit risky to let the normalization's behaviour depend on whether or not flatten is used. In particular, how should a user know that normalization will be applied after flatten? Wouldn't it also be natural to assume that flatten is applied last?
So, overall, I agree that my current fix probably shouldn't get accepted, but I believe that something should still be changed to make users more aware of this (an explicit comment in the doc, or an additional argument like normalize_before_flattening=True/False; or maybe you have a better idea?).


Fan not working at all

Stratux version: PepperJo‘s Image
https://github.com/PepperJo/stratux/commit/ee303aa1e693a201b122918c7eac9c9ff4ca386b

Stratux config:
SDR

[ ] single
[x] dual

GPS

[x] yes, on AHRS Board (FlightBox)
[ ] no
type:

AHRS

[ x] yes
[ ] no

power source:
usb cable:

EFB app and version: (e.g., WingX Pro7 8.6.2) EasyVFR
EFB platform: (e.g., iOS 9.2) various android and iOS
EFB hardware: (e.g., iPad Mini 2) various

Description of your issue: I am using a FlightBox with additional sdr for Flarm reception and usb rs232 Converter cable programmed to Stratux Serialout. Fan and the 3 leds on the AHRS board are working ok with latest FlightBox beta version 1.4.5. After now having loaded the above mentioned Flarm receiver image everything works ok but the Fan remains dead and the 3 led lights on the AHRS board are dark as well. External power seems ok as red and green led on main board are on. Temp is going up to 70 deg C but Fan does not run. I tried several reboots but no success. As I am new to rasp, ssh and github I have no idea what‘s going on. any help welcome
Thanks
Thomas

If possible, enable "Replay Logs", reproduce the problem, and provide a copy of the logs in http://<IP_ADDRESS>/logs/stratux/ and http://<IP_ADDRESS>/logs/stratux.log.

The fan and the lights on the FlightBox AHRS board are controlled by a process called "boardctl" which is started automatically by systemd. That daemon uses another called "pi-blaster" to manage the PWM on the fan. I would start by making sure both of those are running.

Sounds like the software was upgraded to a FLARM-enabled version from the stock FlightBox config, so maybe boardctl wasn't enabled/installed.

Thanks a lot for the quick replies.
Does that mean whatever stratux version I will use on a stock FlightBox that I will allways have to add boardctl and pi-blaster? Would that be enough or do I have to change anything else in order to avoid any clashes? Will FlightBox images once Support the flarm reception?

Installed boardctl and Fan and led working. Thanks for your advise


Acceptance tests are too specific

There are several cases where we test for specific text content in a file, or exact strings in command-line output. This will result in false positives as product requirements change.
For example:
https://github.com/weaveworks/weave-gitops/blob/3ff12b819174614e3946955262ac1c36d8cb4d8c/test/acceptance/test/add_tests.go#L483
Testing for an exact string like this will mean that if a key comes through in a different order, the test will fail (when key order is not guarateed). We should be pushing these types of assertions into unit tests.
The danger with brittle/noisy tests is that they will require constant maintenance, which may lead to them being ignored or turned off.

Closing as this is probably to broad to be actionable


No contact name error

@Override
public int compareTo(Contact contact) {
    return this.givenName.toLowerCase().compareTo(contact.givenName.toLowerCase());
}

Add a contact without a name directly to reproduce

I think this needs a more broad check of contact info instead of just basing it on name.  Its totally possible to have a valid contact with just a phone number or email, or even just a company name.  The check just needs to be that there's some piece of identifying information to save.


Clean up usage of "Tuple"s

Right now, JCUnit uses a Tuple for an input of test case, a row in a covering array, and a combination of values.
This may prevent us from optimizing a performance of covering array generation.
At least model-wise, it would be preferable to define different interfaces for each of them.

Tuplet: A combination of values in one Tuple, typically its width is the strength of a covering array and is used in covering array generation and combinatorial joining operation.
Tuple: A row in a covering array. Its width is the degree of covering array.
TestInput: Key-value pairs that represents input-part of a test case.

@qxshower , any suggestion/preference on this terminology?

Below is my suggestion:
First, you may want to introduce that a covering array is a test suite, and a row of a covering array is a test case.
Tuplet --> Tuple: A combination of values in one [Row], typically its width is the strength of the coverage of interactions in a covering array. It is used in covering array generation and combinatorial joining operation.
Tuple --> Row: A row in a covering array. Its width is the degree of the covering array.
TestInput: Key-value pairs that represents input-part of a test case (i.e., a [Row] in a covering array).

Thanks.
Let's take your suggestion.
Tuple and  Row would become names of interfaces while TestInput(testInput) would be used for a name of variables.

This is currently a part of this pull request.: https://github.com/dakusui/jcunit/pull/167
(Although I should have made it an independent one...)


Can you add potential thrown exception to method docs

Looking at the docs for methods that can throw exceptions for Newtonsoft i.e. https://www.newtonsoft.com/json/help/html/M_Newtonsoft_Json_Linq_JObject_GetValue.htm, I don't get any information about the types of exceptions being thrown by this method or if they throw exceptions at all.
The two reasons I ask are

I have just been caught out by SelectToken on JObject throwing an exception even though I didn't know that it could
This would follow the microsoft convention for example Int32.Parse: https://docs.microsoft.com/en-us/dotnet/api/system.int32.parse?view=netframework-4.8 tell me what exception is thrown and under what circumstances.

I appreciate this could be a lot of effort!

I appreciate this could be a lot of effort!

So, make a PR... I can't imagine there being objections


Update cli docs with new args

Update docs in-line with the CLI changes here:
https://github.com/near/near-cli/pull/997

@tituszban let me know when this is ready, so I fix the conflicts and merge it

@tituszban let me know when this is ready, so I fix the conflicts and merge it

Still waiting in the cli repo

Hi @tituszban! Could you confirm that the NEAR cli is now updated and support these new flags?


Added pipeline to generator Makefile

Codecov Report

Merging #65 into master will decrease coverage by 0.11%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
- Coverage   42.77%   42.65%   -0.12%
==========================================
  Files          16       16
  Lines         360      361       +1
==========================================
  Hits          154      154
- Misses        206      207       +1

Impacted Files
Coverage Δ

lib/kite/generate.rb
79.48% <0%> (-2.1%)
:arrow_down:

Continue to review full report at Codecov.

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


check if cert is valid, otherwise do not try to connect

DO NOT MERGE
this is a poc that adds code to check if a provided CERT is valid.
Only if valid, the connection to APNs happens

Tested with an old certificate and got:
14:31:58,109 ERROR [org.jboss.aerogear.unifiedpush.message.sender.apns.ApnsUtil] (Thread-1 (ActiveMQ-client-global-threads)) Provided APNs .p12 file is not valid

followed by a gigantic stack trace starting with:
14:31:58,111 ERROR [org.jboss.as.ejb3.invocation] (Thread-1 (ActiveMQ-client-global-threads)) WFLYEJB0034: EJB Invocation failed on component SimpleApnsClientCache for method public com.turo.pushy.apns.ApnsClient org.jboss.aerogear.unifiedpush.message.cache.SimpleApnsClientCache.getApnsClientForVariant(org.jboss.aerogear.unifiedpush.api.iOSVariant,org.jboss.aerogear.unifiedpush.message.cache.ServiceConstructor): javax.ejb.EJBTransactionRolledbackException

@ziccardi can you comment regarding the CN (Common Name) of the .p12 file ?
Otherwise I think the solution is perfect, and even shows the "invalid certificat" on the push server UI (activity tab)

@matzew @pb82 The solution looks ok to me as well, but if we don't check the CN of the certificate (which should contain the url of the site to be authenticated), then we will give an error even if a totally unrelated certificate is expired or untrusted and I think it could generate confusion and would be a bug.

Ok, fair point, @ziccardi
I have two .p12 files here, one is mine (DEVELOPMENT TYPE) and one from @pb82 (not sure if production or DEV)
When I have this printed:
final X500Principal subjectX500Principal = certificate.getSubjectX500Principal();
final String subject = subjectX500Principal.getName();

The subject returns a longer string, including the CN.  Here is the output, where I only have the pasted the CN part:

.....CN=Apple Development IOS Push Services: THE_APP_ID.....
.....CN=Apple Push Services: THE_APP_ID.....

Should we check if there is something (e.g. contains, or fancy regex), like "Apple *** Push Services" in the CN section ?
@ziccardi feel free to paste some code here, that @pb82 can apply later / tomorrow

@pb82 @ziccardi I found an interesting POSTs, here: https://github.com/parse-community/Parse-SDK-iOS-OSX/issues/672#issue-122944350 and here: https://stackoverflow.com/questions/34349849/ios-push-notificattion-production-certificate-common-name-issue
Indeeded, my CERT is pretty old, and just updated, hence the Apple Development IOS Push Services
To be safe, I think we want those as possible options on the contains() check?

Apple Production IOS Push Services
Apple Development IOS Push Services
Apple Push Services


PP-640 Add cancel link in payment objects

WHAT
Introduces a cancel link in payment objects returned for creating a payment, issuing a GET on a payment and searching for a payment
Also includes some refactoring.
HOW TO REVIEW
Apart from the code changes, review the README as well please.
Also when reviewing this please note that https://payments-platform.atlassian.net/browse/PP-640 is also ready for review
WHO
any dev

:+1:  All good!


small edits

made it clear what Chromatic is at the top of the readme, and edited the motivation description to remove redundancy.

Thank you for the contribution @Norbgorb! I left a small comment on the diff.

I would like to incorporate your changes @Norbgorb, any thoughts on the proposed revisions? Cheers!


Missing return statements in EverCrypt_Hash_copy

We get this:
KreMLin abort at ../../../external/evercrypt/dist/gcc-compatible/EverCrypt_Hash.c:772
unreachable (pattern matches are exhaustive in F*)

See here; EverCrypt_Hash_copy runs into the right branch (scrut.tag == EverCrypt_Hash_SHA2_256_s for us), but it doesn't return once it's done.
@protz the F* code looks ok at first glance, so this may be a kremlin issue?
CC @letmaik @achamayou

Thanks. Could you try refreshing the generated code without the -fnoreturn-else option?

Yep, that fixes this particular problem, but I didn't check whether it introduces other problems elsewhere.

This is only a recent addition. I'll disable it for now until I fix the bug.
Thanks for the report!
On 1/7/20 12:07 PM, Christoph M. Wintersteiger wrote:

Yep, that fixes this particular problem, but I didn't check whether it
introduces other problems elsewhere.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/project-everest/hacl-star/issues/218?email_source=notifications&email_token=AABUNM4KPNRHQKW7TH6F2ODQ4SZD5A5CNFSM4KD37VDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJSILI#issuecomment-571679789,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABUNM25UCMV73K76KMNGJTQ4SZD5ANCNFSM4KD37VDA.

Great, thanks!

Should there be a test that exercises this case?

I'm surprised that this didn't get caught because this: https://github.com/project-everest/hacl-star/blob/master/providers/test/Test.Hash.fst should under the hood call copy. Worth investigating.


Adding code to remove the unused products from the Ops Manager

Adding this code as I was facing issues trying to upgrade the Redis, RabbitMQ tile. When I ran the om-linux manually, I found out that there are multiple versions of p-redis and p-rabbitmq available and they are not staged. Hence the script tries to stage them even when they are at a lower version. After removing the unused products from Ops Manager, there are no duplicate versions available and the upgrade went successfully.
[root@acldlp01pcf scripts]# ./om-linux --skip-ssl-validation --username admin --password <OPSMAN_PASSWORD> --target <OPSMAN_DOMAIN_OR_IP_ADDRESS> curl -path /api/v0/available_products
Status: 200 OK
Cache-Control: no-cache, no-store
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Tue, 14 Nov 2017 21:01:05 GMT
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: nginx/1.4.6 (Ubuntu)
Strict-Transport-Security: max-age=15552000
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Request-Id: 38e0bee7-8327-43af-988e-c6f48c279096
X-Runtime: 1.393724
X-Xss-Protection: 1; mode=block
[
{
"name": "p-isolation-segment",
"product_version": "1.12.6"
},
{
"name": "cf",
"product_version": "1.12.5"
},
{
"name": "bosh-hm-forwarder",
"product_version": "0.0.24"
},
{
"name": "splunk-nozzle",
"product_version": "1.0.0"
},
{
"name": "p-spring-cloud-services",
"product_version": "1.4.3"
},
{
"name": "p-windows-runtime",
"product_version": "1.12.3"
},
{
"name": "p-mysql",
"product_version": "1.10.0"
},
{
"name": "sumo-logic-nozzle",
"product_version": "0.1.2"
},
{
"name": "p-redis",
"product_version": "1.9.3"
},
{
"name": "p-metrics",
"product_version": "1.9.2"
},
{
"name": "p-isolation-segment",
"product_version": "1.11.6"
},
{
"name": "p-windows-runtime",
"product_version": "1.11.3"
},
{
"name": "p-windows-runtime-isoseg",
"product_version": "1.12.3"
},
{
"name": "p-rabbitmq",
"product_version": "1.10.5"
},
{
"name": "p-redis",
"product_version": "1.10.0"
},
{
"name": "p-rabbitmq",
"product_version": "1.9.3"
},
{
"name": "cf",
"product_version": "1.11.14"
}
]
[root@acldlp01pcf scripts]# ./om-linux --skip-ssl-validation --username admin -password <OPSMAN_PASSWORD> --target <OPSMAN_DOMAIN_OR_IP_ADDRESS> delete-unused-products
trashing unused products
done
[root@acldlp01pcf scripts]# ./om-linux --skip-ssl-validation --username admin -password <OPSMAN_PASSWORD> --target <OPSMAN_DOMAIN_OR_IP_ADDRESS> curl -path /api/v0/available_products
Status: 200 OK
Cache-Control: no-cache, no-store
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Tue, 14 Nov 2017 21:08:56 GMT
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: nginx/1.4.6 (Ubuntu)
Strict-Transport-Security: max-age=15552000
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Request-Id: 10469939-3af8-4208-996c-1cf824e2b353
X-Runtime: 0.992134
X-Xss-Protection: 1; mode=block
[
{
"name": "p-isolation-segment",
"product_version": "1.12.6"
},
{
"name": "cf",
"product_version": "1.12.5"
},
{
"name": "bosh-hm-forwarder",
"product_version": "0.0.24"
},
{
"name": "splunk-nozzle",
"product_version": "1.0.0"
},
{
"name": "p-spring-cloud-services",
"product_version": "1.4.3"
},
{
"name": "p-windows-runtime",
"product_version": "1.12.3"
},
{
"name": "p-mysql",
"product_version": "1.10.0"
},
{
"name": "sumo-logic-nozzle",
"product_version": "0.1.2"
},
{
"name": "p-redis",
"product_version": "1.9.3"
},
{
"name": "p-metrics",
"product_version": "1.9.2"
},
{
"name": "p-windows-runtime-isoseg",
"product_version": "1.12.3"
},
{
"name": "p-rabbitmq",
"product_version": "1.10.5"
}
]

Opened a issue for the same:
Uprade tile pipeline fails if there are multiple versions of same product available in the Ops Manager #227


Documentation at radash-docs.vercel.app is not up to date

Docs seem to still be for v7.0.0. This might be the reason why #82 was reported even if already fixed.

Hello,
A big part of the documentation is not update online and on the repository Github
Is there a reason ? Do you need help ?
I really like radash but, I am a little bit faired when a beautiful documentation is not update

I'm working on it. I'm trying to move the docs into the radash repository so management/updates are easier for contributors but its been time consuming. It's at the top of my list to get it updated but it also needs to be fixed in general, the separate repos thing with a huge nextjs app is not the great idea I thought it would be 😅

Ok, that's perfect !

Thank you!


refactor(codegen): move options to its own file

#7053  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Boshen and the rest of your teammates on  Graphite


.inspect() Visualization shows outdated code

Calling .inspect() displays a flow chart visualization, from which you can click and view the code in that step. However, the images displayed of the code are not correct, the actual code file for those steps are different for some of them.

Thanks for the feedback, @jweaver-db . The flow chart displays an example of code instead of actual code. That being said, this indeed very confusing. We'll improve the experience in the future to make it showing actual code instead.


ImportError: cannot import name 'degree_centrality_scores' from 'lexrank'

Got this issue on MacBook Pro. Python version: 3.7.4
Reproducibility:
python3 -m venv env
source env/bin/activate
pip3 install lexrank
python3 -c "from lexrank import degree_centrality_scores"

Currently, the degree_centrality_scores function's code is only on dev. So the easiest would be to just clone the repository somewhere near your code and just import the function with:
sys.path.append("../../lexrank/") from lexrank.lexrank import  degree_centrality_scores

Currently, the degree_centrality_scores function's code is only on dev. So the easiest would be to just clone the repository somewhere near your own code, checkout dev, and just import the function like that:
import sys
sys.path.append("../../lexrank/")
from lexrank.lexrank import  degree_centrality_score

Just for anyone who is here with the same problem
The import is

from lexrank.lexrank import  degree_centrality_scores

with an "s"
Also, in the README there is a typo. Change every instance of "thershold" for "threshold"

Currently, the degree_centrality_scores function's code is only on dev. So the easiest would be to just clone the repository somewhere near your own code, checkout dev, and just import the function like that:
import sys
sys.path.append("../../lexrank/")
from lexrank.lexrank import  degree_centrality_score

Just for anyone who is here with the same problem
The import is

from lexrank.lexrank import  degree_centrality_scores

with an "s"
Also, in the README there is a typo. Change every instance of "thershold" for "threshold"

I want to install the dev branch of lexrank from requirements.txt. https://stackoverflow.com/questions/20101834/pip-install-from-git-repo-branch suggests I can use
pip install -U git+https://github.com/crabcamp/lexrank.git@dev

but this results in installing lexrank-0.1.0 (a tag, not the dev branch). Any other suggestions (as the one suggested here fails pre-commit hooks).

You can point to a specific commit e.g.  git+https://github.com/crabcamp/lexrank.git@07bdd1579c408cf73cc822da303734d0a70cf3f7
but the current dev branch seems to be in a broken state where you cannot import lexrank at all.

@hansharhoff Thank you for the response. I tried adding that to requirements.txt and get the following:
(rato-processing) » pip install -r requirements.txt
Collecting en-core-web-sm@ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0.tar.gz
  Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0.tar.gz (13.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/13.9 MB 11.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting lexrank@ git+https://github.com/crabcamp/lexrank.git@07bdd1579c408cf73cc822da303734d0a70cf3f7
  Cloning https://github.com/crabcamp/lexrank.git (to revision 07bdd1579c408cf73cc822da303734d0a70cf3f7) to /tmp/pip-install-xa9e1of4/lexrank_5f66269c2deb4851b465f2dcf499c643
  Running command git clone --filter=blob:none --quiet https://github.com/crabcamp/lexrank.git /tmp/pip-install-xa9e1of4/lexrank_5f66269c2deb4851b465f2dcf499c643
  Running command git rev-parse -q --verify 'sha^07bdd1579c408cf73cc822da303734d0a70cf3f7'
  Running command git fetch -q https://github.com/crabcamp/lexrank.git 07bdd1579c408cf73cc822da303734d0a70cf3f7
  Resolved https://github.com/crabcamp/lexrank.git to commit 07bdd1579c408cf73cc822da303734d0a70cf3f7
  Preparing metadata (setup.py) ... done
...
Building wheels for collected packages: lexrank
  Building wheel for lexrank (setup.py) ... done
  Created wheel for lexrank: filename=lexrank-0.1.0-py3-none-any.whl size=69896 sha256=35ab5ddf261aaefa33f8051eb3f37c0eadbced9639bdbf1d658f609cc486188c
  Stored in directory: /home/fen/.cache/pip/wheels/17/44/a6/7f5d731bb4dab8c972e429a5edf728ad82830eb6cb4f4c4975
Successfully built lexrank
Installing collected packages: lexrank
Successfully installed lexrank-0.1.0

which, of course, is not the version I want. Is it because "the current dev branch seems to be in a broken state where you cannot import lexrank at all"? Can anything be done (without access to pushing changes)? I suppose I could fork it...

I endend up using the example which has copied the relevant code to a single file:
https://github.com/UKPLab/sentence-transformers/tree/master/examples/applications/text-summarization

@hansharhoff thank you - that worked!

I am using the bert-extractive-summarizer package. However, sometimes I get +/-inf values as the centrality score. I dug a little deeper and found that the eigenvalues are coming as +/-inf. And this is probably caused by near-zero cosine similarity scores. If I add a constant such as 1.1 with all the cosine similarity scores, I do not get the +/-inf values anymore.
My question is - does adding a particular constant to the cosine similarity score, in this case, bias the centrality score? I just wanted to know if there is any better solution in this particular case.
Thank you in advance.


Password Can't Contain Uppercase Letter

pass works but Pass raises Exception("Cannot parse server option. Please use [name]user:pass@servername:port").

That fixed the password issue. Now I'm getting the following error. I'm using Windows 10 WSL Ubuntu 21.04. Perhaps it has something to do with WSL?
Traceback (most recent call last):
File "frogtrade9000.py", line 459, in
main()
File "frogtrade9000.py", line 432, in main
keyboard.on_press(key_press)
File "/usr/local/lib/python3.9/dist-packages/keyboard/init.py", line 474, in on_press
return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
File "/usr/local/lib/python3.9/dist-packages/keyboard/init.py", line 461, in hook
append(callback)
File "/usr/local/lib/python3.9/dist-packages/keyboard/_generic.py", line 67, in add_handler
self.start_if_necessary()
File "/usr/local/lib/python3.9/dist-packages/keyboard/_generic.py", line 35, in start_if_necessary
self.init()
File "/usr/local/lib/python3.9/dist-packages/keyboard/init.py", line 196, in init
_os_keyboard.init()
File "/usr/local/lib/python3.9/dist-packages/keyboard/_nixkeyboard.py", line 113, in init
build_device()
File "/usr/local/lib/python3.9/dist-packages/keyboard/_nixkeyboard.py", line 110, in build_device
device = aggregate_devices('kbd')
File "/usr/local/lib/python3.9/dist-packages/keyboard/_nixcommon.py", line 168, in aggregate_devices
assert fake_device
AssertionError
You got frogged:

Hm yeah it'll be some keyboard issue. Try running it without sudo/root? Does it start then?

From: a178235 @.>
Sent: Saturday, August 28, 2021 5:14:40 PM
To: froggleston/freqtrade-frogtrade9000 @.>
Cc: Robert Davey (EI) @.>; Comment @.>
Subject: Re: [froggleston/freqtrade-frogtrade9000] Password Can't Contain Uppercase Letter (#3)
That fixed the password issue. Now I'm getting the following error. I'm using Windows 10 WSL Ubuntu 21.04. Perhaps it has something to do with WSL?
Traceback (most recent call last):
File "frogtrade9000.py", line 459, in
main()
File "frogtrade9000.py", line 432, in main
keyboard.on_press(key_press)
File "/usr/local/lib/python3.9/dist-packages/keyboard/init.py", line 474, in on_press
return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
File "/usr/local/lib/python3.9/dist-packages/keyboard/init.py", line 461, in hook
append(callback)
File "/usr/local/lib/python3.9/dist-packages/keyboard/_generic.py", line 67, in add_handler
self.start_if_necessary()
File "/usr/local/lib/python3.9/dist-packages/keyboard/_generic.py", line 35, in start_if_necessary
self.init()
File "/usr/local/lib/python3.9/dist-packages/keyboard/init.py", line 196, in init
_os_keyboard.init()
File "/usr/local/lib/python3.9/dist-packages/keyboard/_nixkeyboard.py", line 113, in init
build_device()
File "/usr/local/lib/python3.9/dist-packages/keyboard/_nixkeyboard.py", line 110, in build_device
device = aggregate_devices('kbd')
File "/usr/local/lib/python3.9/dist-packages/keyboard/_nixcommon.py", line 168, in aggregate_devices
assert fake_device
AssertionError
You got frogged:
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/froggleston/freqtrade-frogtrade9000/issues/3#issuecomment-907648329, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOJDLQJ4I472QELM6OJFRLT7EDPBANCNFSM5C4KLBEQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I'll close this issue as the original problem is resolved. Please open another issue if you're still having problems. The OS-specific keyboard issues are known and not easily fixable.


docs: Clarify zulip_bots repository install.

Based on user feedback: https://chat.zulip.org/#narrow/stream/integrations/subject/bot.20name_and_path_match'/near/278902

@timabbott updated.

Updated again.

Appended commit from #6371 , since the installation instructions were interdependent. Added a new commit to move the installation instructions to a new section.

Merged, thanks @derAnfaenger!  Maybe try posting on the Outreachy and integrations streams for feedback on the new instructions?


ref: fix aliasing bugs

per https://github.com/iterative/dvc.org/issues/2989

[x] There are no links to either one (version/doctor) from any other docs.
[ ] ls not existing seems like a bug ATM (quite inconsisntent)
[x] experments not existing is a bug -- as it used to be the path, it should be redirecting to exp.
[x] Also, the now exp page says it's "aliased to exp" which no longer makes sense.

Also

[x] Missing ls and experiments from the terminal blocks highlighter

Finally

[ ] Update https://github.com/iterative/dvc.org/issues/2989 description after merge

ls not existing seems like a bug
(https://dvc.org/doc/command-reference/ls)

@rogermparent sorry: where do auto-links come from again? ls isn't in sidebar.json and won't auto-link but experiments also isn't, yet it does..?

@jorgeorpinel There's an explicit entry in simpleLinker for dvc experiments, which is how it gets around the commandLinker requirement of being in the sidebar.


[Bug]: ！！！！<IP_ADDRESS> redirect attack

Is there an existing issue for the same bug?

[X] I have checked the existing issues.

Branch name
main
Commit ID
lastest
Other environment information
No response
Actual behavior
somebody replaces the backend to his own server!!! <IP_ADDRESS> instead of the localhost
Expected behavior
No response
Steps to reproduce
somebody replaces the backend to his own server!!! <IP_ADDRESS> instead of the localhost

Additional information
No response

https://github.com/infiniflow/ragflow/commit/f1ad778250f378cc1455e3089df2aa52e9d7989b Never upload any sensitive file when developing your application

There really needs to be a more rigorous code review.


docs: fix ImmutableKdTree links and size example code

Fixes #113

Just following up on this pr, I'm not exactly sure why the auto merge is blocked, my branch should be up to date to latest head on master, but it says it's blocked due to the base branch not allowing updates

Hey @ozwaldorf - no idea why it wouldn't allow me to merge - I tried pulling your changes and pushing them to a local branch instead of it being a remote master branch to see if that would work, and that seems to have done the trick - see https://github.com/sdd/kiddo/pull/119, I've merged your changes in on there.
Thanks again for your contribution!


Failed to establish a new connection: [Errno 1100 4] getaddrinfo failed'))

Describe the bug
download ends in error while downloading stories, the 5th story (set?). but there are a LOT more stories. (not sure how to be more precise, error log attached)
To Reproduce
Steps to reproduce the behavior:
(e.g. Instaloader command line)
instaloader --login=username profile [profile ...] --stories --igtv --highlights
Expected behavior
for instaloader to download all the posts + stories + igtv videos + all the highlights
Error messages and tracebacks
Too many queries in the last time. Need to wait 39 seconds, until 15:53.
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\urllib3\connection.py", line 174, in new
conn
conn = connection.create_connection(
File "C:\Python38\lib\site-packages\urllib3\util\connection.py", line 72, in c
reate_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "C:\Python38\lib\socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in u
rlopen
httplib_response = self._make_request(
File "C:\Python38\lib\site-packages\urllib3\connectionpool.py", line 386, in _
make_request
self._validate_conn(conn)
File "C:\Python38\lib\site-packages\urllib3\connectionpool.py", line 1040, in
_validate_conn
conn.connect()
File "C:\Python38\lib\site-packages\urllib3\connection.py", line 358, in conne
ct
conn = self._new_conn()
File "C:\Python38\lib\site-packages\urllib3\connection.py", line 186, in new
conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection objec
t at 0x000000000365C280>: Failed to establish a new connection: [Errno 11004] ge
taddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "C:\Python38\lib\site-packages\urllib3\connectionpool.py", line 785, in u
rlopen
retries = retries.increment(
File "C:\Python38\lib\site-packages\urllib3\util\retry.py", line 592, in incre
ment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='scontent-ort2-2.cdni
nstagram.com', port=443): Max retries exceeded with url: /v/t50.12441-16/5548285
4_322219588437034_4283658331024198201_n.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6InZ0c192b2Rf
dXJsZ2VuLjY0MC5zdG9yeS5kZWZhdWx0IiwicWVfZ3JvdXBzIjoiW1wiaWdfd2ViX2RlbGl2ZXJ5X3Z0
c19vdGZcIl0ifQ&_nc_ht=scontent-ort2-2.cdninstagram.com&_nc_cat=110&_nc_ohc=C07Ih
2JSnT8AX-BBizb&tn=MvjvbnC80PpRj-YD&edm=AHlfZHwBAAAA&vs=17984560918207161_1938544
162&_nc_vs=HBksFQAYJEdPYVpUZ01xeEJ1WURpVUJBRGtLMTJlT25ISTdicGt3QUFBRhUAAsgBABUAG
CRHSUZkVGdNM0RLbTM3ajBIQUctOXRESFl5MEp5YnBrd0FBQUYVAgLIAQAoABgAGwGIB3VzZV9vaWwBM
RUAACao7emn%2FpOLQBUCKAJDMywXQC49cKPXCj0YEmRhc2hfYmFzZWxpbmVfMV92MREAdegHAA%3D%3
D&ccb=7-4&oe=626D10F3&oh=00_AT8EKdQSy8a60gwXrO8_nNKtbPQs2Kry3_8qBCfXkjLPmw&_nc_s
id=21929d (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection obj
ect at 0x000000000365C280>: Failed to establish a new connection: [Errno 11004]
getaddrinfo failed'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Python38\Scripts\instaloader.exe_main.py", line 7, in
File "C:\Python38\lib\site-packages\instaloader_main.py", line 471, in mai
n
main(loader,
File "C:\Python38\lib\site-packages\instaloader_main.py", line 220, in _ma
in
instaloader.download_profiles(profiles,
File "C:\Python38\lib\site-packages\instaloader\instaloader.py", line 1450, in
download_profiles
self.download_highlights(profile, fast_update=fast_update, storyitem_filter=
storyitem_filter)
File "C:\Python38\lib\site-packages\instaloader\instaloader.py", line 81, in c
all
return func(instaloader, *args, **kwargs)
File "C:\Python38\lib\site-packages\instaloader\instaloader.py", line 961, in
download_highlights
downloaded = self.download_storyitem(item, highlight_target)
File "C:\Python38\lib\site-packages\instaloader\instaloader.py", line 888, in
download_storyitem
self.download_pic(filename=filename, url=item.video_url, mtime=date_local))
File "C:\Python38\lib\site-packages\instaloader\structures.py", line 1240, in
video_url
int(self._context.head(version_url, allow_redirects=True).headers.get('Conte
nt-Length', 0)),
File "C:\Python38\lib\site-packages\instaloader\instaloadercontext.py", line 5
42, in head
resp = anonymous_session.head(url, allow_redirects=allow_redirects)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 564, in head
return self.request('HEAD', url, **kwargs)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 529, in reques
t
resp = self.send(prep, **send_kwargs)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "C:\Python38\lib\site-packages\requests\adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='scontent-ort2-2.c
dninstagram.com', port=443): Max retries exceeded with url: /v/t50.12441-16/5548
2854_322219588437034_4283658331024198201_n.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6InZ0c192b
2RfdXJsZ2VuLjY0MC5zdG9yeS5kZWZhdWx0IiwicWVfZ3JvdXBzIjoiW1wiaWdfd2ViX2RlbGl2ZXJ5X
3Z0c19vdGZcIl0ifQ&_nc_ht=scontent-ort2-2.cdninstagram.com&_nc_cat=110&_nc_ohc=C0
7Ih2JSnT8AX-BBizb&tn=MvjvbnC80PpRj-YD&edm=AHlfZHwBAAAA&vs=17984560918207161_1938
544162&_nc_vs=HBksFQAYJEdPYVpUZ01xeEJ1WURpVUJBRGtLMTJlT25ISTdicGt3QUFBRhUAAsgBAB
UAGCRHSUZkVGdNM0RLbTM3ajBIQUctOXRESFl5MEp5YnBrd0FBQUYVAgLIAQAoABgAGwGIB3VzZV9vaW
wBMRUAACao7emn%2FpOLQBUCKAJDMywXQC49cKPXCj0YEmRhc2hfYmFzZWxpbmVfMV92MREAdegHAA%3
D%3D&ccb=7-4&oe=626D10F3&oh=00_AT8EKdQSy8a60gwXrO8_nNKtbPQs2Kry3_8qBCfXkjLPmw&_n
c_sid=21929d (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection
object at 0x000000000365C280>: Failed to establish a new connection: [Errno 1100
4] getaddrinfo failed'))
Instaloader version
instaloader --version output.
4.9
Additional context
Add any other context about the problem here.

[Errno 11004] getaddrinfo failed looks like a connection problem on your side.

Similar errors have been reported in https://github.com/instaloader/instaloader/issues/107 and https://github.com/instaloader/instaloader/issues/138.  Is there a DNS blocking in your country, or a firewall or ad blocker installed on your network? I am closing this since it seems like a problem on behalf of your network, which we cannot fix. If it still cannot be solved, please reopen this issue and provide us more information.


Several more updates to website

Removed Bootstrap/watch JS/CSS code as its now being served by CDN
Changed accumulo.css into sass file
Added syntax highlighting to accumulo.scss
Upgraded to version 99 of github-pages

This fixes syntax highlighting for code blocks. Example page should have syntax highlighting:
https://accumulo.apache.org/blog/2014/09/02/generating-keystores-for-configuring-accumulo-with-ssl.html

Pushed, thanks @mikewalch!


Implemented some @rmisio suggestions from #1419

https://github.com/OpenBazaar/OpenBazaar-Client/pull/1419#discussion_r60619540
https://github.com/OpenBazaar/OpenBazaar-Client/pull/1419#discussion_r60621141

If you guys could slip in a design change, I'd really appreciate it. Currently the entire button changes opacity to .3 when it's disabled. What I'd prefer to happen is only the text of the button changes opacity when it's disabled.
Current:

What it should be:

@morebrownies when this PR is ready, I'll take a look at the opacity. Currently the disabled class sets the opacity for the whole element, and sets pointer events to none.
We could either set the disabled prop instead and a special opacity class, or create a text content only disabled class.


Add StemAllocation class

Description
Very similar to the last PR #305!
This PR introduces the demography.t_model_functions StemAllocation class. This bundles the allocation equations from the T Model into a higher level wrapper that takes:

a Flora | StemTraits instance to provide stem traits,
a StemAllometry instance that provides stem size and scaling calculations, and
an array of potential GPP values to be allocated to respiration, turnover and growth.

This class isn't used yet in the demography simulation workflow but will be. It also works as a user-facing visualisation tool.  The PR also adds a simple test to confirm that the bundled allocation calculations still agree with the expected values tested on the individual functions.
Fixes #307
Type of change

[x] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist

[x] Make sure you've run the pre-commit checks: $ pre-commit run -a
[x] All tests pass: $ poetry run pytest

Further checks

[x] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.84%. Comparing base (1f315ba) to head (fabf312).
Report is 164 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #308      +/-   ##
===========================================
+ Coverage    95.29%   95.84%   +0.54%
===========================================
  Files           28       34       +6
  Lines         1720     2404     +684
===========================================
+ Hits          1639     2304     +665
- Misses          81      100      +19

Flag
Coverage Δ

95.84% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[SE-0408] Remove the experimental feature flag

Since the proposal was accepted, and I removed the flag from the implementation, I think I can also remove its mention from the document.

When the implementation is complete in main and enabled by default, we should remove the "Implementation" field entirely from the proposal. But this is a fine partial step


fix: use go-ipfs.version from parent package.json

use pkg-conf to fetch go-ipfs config from a parent package.json rather than checking for it in this modules package.json
add test to check go-ipfs.version is used during npm install

fixes #33
License: MIT
Signed-off-by: Oli Evans<EMAIL_ADDRESS>

@alanshaw could you take a look at this and perhaps release it, please? 😃


HDD and TVSeries dataset

I'm sorry to bother you. I'm very interested in your research. I would appreciate it if you could provide us with features about HDD and TVSeries.

Sorry, I cannot release the features due to the copyright. You can apply for the HDD and TVSeries data and extract the features yourself.

@mugenggeng Have you solved this problem? Could······ you share that?

@04beckman Sorry, unable to publish due to copyright reasons


Version 6.0.2 breaks bytesToString() and startNotification()

Describe the bug
This commit seems to break startNotification() on js side:
perf: improve byte to hex string conversion optimizations (https://github.com/capacitor-community/bluetooth-le/pull/701)
The issue is caused by bytesToString(), because it returns a hex string without spaces between the hex couple of values.
To Reproduce
Steps to reproduce the behavior:
val value = bytesToString(data)
val originalData = stringToBytes(value)

originalData is different from data
This is what I have debugging

data: [77, 83, 71, 95, 73, 78, 73, 84, 95, 79, 75, 58, 48, 10]
originalData: [77]
value: "4D53475F494E49545F4F4B3A300A"

Expected behavior
value shoud be like this instead:
"4D 53 47 5F 49 4E 49 54 5F 4F 4B 3A 30 0A"
the issue resides in here:
https://github.com/capacitor-community/bluetooth-le/blob/8e99165de13a72d5e0d45b1f3985ac96d7c5bd93/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/Conversion.kt#L21
because the following function from the kotlin framework StringsJVM.kt returns the string without spaces:
public actual fun CharArray.concatToString(): String {
    return String(this)
}

Screenshots
see above
Plugin version:

@capacitor-community/bluetooth-le:6.0.2

Desktop:
not applicable
Smartphone:
Device: Huawei MediaPad 5 Lite
OS: Android 8
Version: SDK 26
Proposed solution
fun bytesToString(bytes: ByteArray): String {
    return bytes.toHexString().chunked(2).joinToString(" ")
}

or even better
fun bytesToString(bytes: ByteArray): String {
  return bytes.joinToString(separator = " ") { byte -> "%02X".format(byte) }
}

I can't verify if this invalidates the performance enhancements gained by the above commit

Hi @paolosanchi
Just to confirm, are you finding this change in internal behaviour is causing an observable difference when used as part of BleClient.startNotifications?

I've found this issue because the callback of startNotification() on the js side receives always an empty string.
Indeed, the following function expect be bytes in the string to be separated by a space
https://github.com/capacitor-community/bluetooth-le/blob/8e99165de13a72d5e0d45b1f3985ac96d7c5bd93/src/conversion.ts#L19

The code here is a bit different to what you're describing 🙂
The real flow here is:

startNotification receives a hex string here: https://github.com/capacitor-community/bluetooth-le/blob/main/src/bleClient.ts#L670
It calls this.convertValue, which forwards on to hexStringDataToView: https://github.com/capacitor-community/bluetooth-le/blob/main/src/bleClient.ts#L706
hexStringDataToView was carefully refactored to process a non-space separated hex string: https://github.com/capacitor-community/bluetooth-le/blob/main/src/conversion.ts#L44

I've just tested this again locally, and can confirm that for me at least, the proper values are coming through:

As you can see... the hexStringToDataView is correctly handling the space-less hex-encoded bye array.
Are you able to confirm the conversion.ts implementation embedded in your app matches this code, i.e., there's not a stale version of the plugin source somewhere in your setup?
Can you share an example of a full payload you're transferring, so I can see if there's any issues with the size or data contained?

@peitschie my bad, you are right. I've got this issue because I use ionic's Live Update, and I had the version 6.0.2 for android and 6.0.1 for web (I forgot to commit the package.json).
It is fine if the old version is not compatible with the new one, the opposite would not be good, wich this is not the case.
When reporting the js code reference, I've been confused by textToDataView() wich uses .split(' '), but it is not used anymore. The code I've found in debug was relative to the old version, and I simply was not aware of it.
That said, the issue on the android side may still cause unwanted behaviour since stringToBytes() cannot handle strings without spaces, and stringToBytes().
However, it seems to be used only in write(), and it is the user that set directly the uid. I mean, it doesn't seem to be a regression.
My issue was not a bug, and it is solved on my side. If you think it doesn't worth to fix stringToBytes() I guess it's fine.
Sorry for the false alarm and thank you for the prompt reply.


RewardType.Class Json exception

I am trying on Solana Testnet, and when I use getBlock() method I got Json parsing exception.
public enum RewardType {
    /*FEE, RENT, VOTING, STAKING*/
    Fee, Rent, Voting, Staking
}

exception occurs because of upper case and when I change like this it works.
Thanks in advance.

Fixed in SolanaJ 1.12, and released.


Revert "chore: remove offline plugin"

Reverts dscnitrourkela/project-raisin#99

Not needed working properly 😅