Re-adds cloud-haskell packages.

The upper bounds of the HUnit dependency have been increased and minor releases have been uploaded to hackage. First reported here: https://github.com/fpco/stackage/issues/768

I need some help interpreting the output of travis. It tries to build distributed-process-tests-<IP_ADDRESS> which is deprecated. Should be building http://hackage.haskell.org/package/distributed-process-tests-<IP_ADDRESS>.

I restarted the build, it can take up to an hour before travis gets access to new uploads.

Thank you!


Start a tab as admin

Description of the new feature/enhancement
Please create an option to create a new tab running as admin.  I don't currently see a way to start a new tab running as an administrator, but I would love having one terminal window with multiple tabs at different elevation, rather than opening an entirely new window.  I realize there's a use-case for having a window of admin tabs and a window of normal tabs, however I think the flexibility of opening an admin tab in a single window would be helpful.  With the new tab dropdown menu, if the option to run as admin were available with a right click on the tab type, that would be great.  Maybe an Alt+Shift+# hotkey option?

Proposed technical implementation details (optional)

I think this is covered in #1032 if I'm not mistaken.

Thanks for the suggestion! Please make sure to search for duplicates when filing new issues. This is already being tracked by another issue on our repo - please refer to #1032 for more discussion.
/dup #1032 #632 #5000


Maybe add some alias to PreferredSizeLocateableWidget?

Since most of the time it looks like we need widget.PreferredSizeLocateableWidget for AddChild() argument, perhaps there could be a shorthand for widget.PreferredSizeLocateableWidget? It can't be widget.Widget, since that name is already used, but the current way of spelling "an arbitrary widget that can be a child of another widget" is quite verbose and not very intuitive.
This is just a suggestion though. The library users can define an alias on their own like:
type Widget = widget.PreferredSizeLocateableWidget

Why do we even need to spell that type in the first place? Well, mostly when you want to define some sort of a factory function that may return an arbitrary UI widget. Any forms of abstractions on top of widgets would like to avoid spelling the concrete widget type directly in my opinion. If we want to have a collection of widgets (a slice), it should also be more concise to say []Widget (our local type alias) instead of []ebitenui.PreferredSizeLocateableWidget but having a library-bundled alias could make writing tutorials a little bit easier.
Note that widget.PreferredSizeLocateableWidget is used inside the examples/demo too. So it's not a totally artificial use case. :)

I've been using HasWidget as the primary alias interface within the library. This seems to work quite well.  At this point I don't plan to make any changes to the library for this since I believe it to be sufficient. Please feel free to reopen this ticket if you feel very strongly about this and have any additional suggestions about it.
Thank you for your care about this library!


17.x backport: Allow enhancing the ContentsPropertiesModal schema (#6248)

@davisagli thx also for this backport. I best most of us are on 17 now and it's good to have this supported still :)


Error caught on passed in variable to SQS module

I am getting a tfsec error caught for aws-sqs-enable-queue-encryption for a module, despite the fact that there is a kms_master_key_id being passed in to the module. Within the module source, the variable has a default value of null, but the implementation of the module has that variable defined and so this error should not be caught.
Any thoughts on what might be causing this? I am currently using v1.1.3. I would be using v1.1.4, which may fix this issue, but homebrew does not yet have v1.1.4

Sure, here is an example:
The resource to be created, located in the module source:
resource "aws_sqs_queue" "default" {
   name              = "sqs_queue"
   kms_master_key_id = var.kms_master_key_id
}

variable block of kms_master_key_id:
variable "kms_master_key_id" {
   default = null
}

module implementation that causes aws-sqs-enable-queue-encryption:
module "queue" {
  source            = "./sqs-module"
  kms_master_key_id = "alias/aws/sqs"
}

I do believe that this would still present an error, as we have seen in some of our modules too. The alias/aws/sqs key is an internal shared key that is used to encrypt the queue, but tfsec does not have differentiating checks for encrypted vs. encrypted using customer key.
I think the likely recommended path forward would be to separate the aws-sqs-enable-queue-encryption into 2 separate checks -- one of high importance checking that the queue is encrypted, and one of slightly lower importance that the user has encrypted the queue with a customer managed KMS key. The shared internal key that AWS provides should be sufficient to satisfy the condition of considering the queue "encrypted".
This logic is likely also relevant for other services where we can encrypt the data using AWS' shared encryption key (which is hardware backed, gets rotated occasionally, etc.) -- eg. RDS, etc.

I do believe that this would still present an error, as we have seen in some of our modules too. The alias/aws/sqs key is an internal shared key that is used to encrypt the queue, but tfsec does not have differentiating checks for encrypted vs. encrypted using customer key.

This is true, we have recently broken out the check for CMK usage and the check for encryption into two checks for S3 and need to do it for the remainder of the encryption checks

So in the mean time, I suppose we'll just have to add ignore comments to offending blocks, despite the fact that they will be inaccurate representations of the actual warnings?


⚠ Processors has degraded performance

In 1906490, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 125 ms

Resolved: Processors performance has improved in 84a6e9f.


ST modules organization

Introduction
Due to move of ext/hal/st to modules a reorganization of ST libraries is needed.
This issue is mainly a formal request about what was discussed in #16044 and summarized in https://github.com/zephyrproject-rtos/zephyr/pull/16044#issuecomment-493023435
Problem description
ext/hal/st contains 2 different types of 'libraries' (in the most generic acceptance of the word):

Code that is supposed to run on STM32 products (STM32Cube HAL/LL, Product specific IPC library). This restriction does not come from license type but purely that it is made to drive STM32 HW.
Code that is made to drive ST products, with no restriction on the CPU on which it could run (could be STM32 or also HW from any other vendor). This is typically small libraries driving a small ST component (sensor, RF module, ..)

Following introduction of Zephyr module, all code under ext/hal/st should be moved under zephyr module. Moving it as a whole inside a single ST module would imply that anyone that want to use a ST component on a non ST product would have to pull the whole STM32Cube packages (> 220MB).
Proposed change
Split ST libraries into 2 modules:

hal_stm32: For the code meant to run on STM32
hal_st: For the code meant to drive ST components

Detailed RFC
Move code under ext/hal/st in 2 ST specific modules, using the following trees:
hal_stm32
 └── stm32cube
 │   ├── common
 │   ├── stm32f1
 │   ├── ...
 │   └── stm32wb
 └── lib
     ├── stm32wb
     │   └── hci  (cf #14188)
     └── ...

hal_st
 └── stsensors
 │   ├── audio
 │   │   └── microphone
 │   ├─ ....
 │   ├── proximity
 │   │   └── vl53l0x
 │   └── stmemsc  (cf #14111)
 │       ├── stmems_pids
 │       ├── a3g4250d
 │       ├── ais328dq
 │       └── ...
 └── strf
     ├── subg1 (cf #16086)
     └── ...

Alternatives
Move ext/hal/st in a single ST module, with the drawbacks listed above.

@avisconti, can you review ?

@nashif, created modules label. Feel free to edit.

@erwango
Yes, it seems aligned to what we said earlier.
Two points just for the sake of a better undertsanding:

Question: for microphone directory should we want to go with
hal_st/stsensors/audio/microphone
or with
hal_st/stsensors/microphone
I'm not against your proposal (first option), but I'm not sure we will ever have other than
microphones sensors in audio.

stmemsc and stmems_pids are basically the same thing.
The first directory will be a3g4250d. But I guess it was just a typo.

@erwango

I'm not against your proposal (first option), but I'm not sure we will ever have other than microphones sensors in audio.

Ok, I guess that this is something that can be fixed on the way.

stmemsc and stmems_pids are basically the same thing.
The first directory will be a3g4250d. But I guess it was just a typo.

Updated

@erwango

I'm not against your proposal (first option), but I'm not sure we will ever have other than microphones sensors in audio.

Ok, I guess that this is something that can be fixed on the way.

Yes, sure

stmemsc and stmems_pids are basically the same thing.
The first directory will be a3g4250d. But I guess it was just a typo.

Updated

Are you going to prepare the repos or will be @nashif doing that?

Are you going to prepare the repos or will be @nashif doing that?

I'm following recent rules concerning modules (https://github.com/zephyrproject-rtos/zephyr/pull/16081).


How to validate host keys (i.e. how to access information about NIOSSHPublicKey)?

SwiftNIO SSH commit hash: 5d95ebaddd7f546502f9760df3a2de8c167369da
Context:
I'm trying to implement a NIOSSHClientServerAuthenticationDelegate that actually verifies the host key.
The problem:
Except for debug printing, I have not found any way to access any information about the supplied NIOSSHPublicKey.
Is there currently a way to access information about a NIOSSHPublicKey? (Apologies if I missed something obvious, I'm fairly new to swift).
System Information
$ swift --version
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin19.6.0

$ uname -a
Darwin tim-mac.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro12,1 Darwin

What question about the key are you specifically trying to answer?

What question about the key are you specifically trying to answer?

I ask because we're being very tentative with exposing up API on these types. We can definitely add more, but the first question is whether what we have will work. One thing you can do, for example, is load the key you expect to see into a NIOSSHPublicKey and then use the Equatable conformance to check if they're equal.

I ask because we're being very tentative with exposing up API on these types. We can definitely add more, but the first question is whether what we have will work. One thing you can do, for example, is load the key you expect to see into a NIOSSHPublicKey and then use the Equatable conformance to check if they're equal.

What question about the key are you specifically trying to answer?

Whether it is a known / expected key.

One thing you can do, for example, is load the key you expect to see into a NIOSSHPublicKey and then use the Equatable conformance to check if they're equal.

I didn't think of that solution, but it would solve part of my problem, thanks!
Though I don't think this would allow me to implement a behavior similar to e.g. OpenSSH, where a public (host) key is accepted (and stored) when it is first encountered (because, as far I could tell, there is not API to serialize an NIOSSHPublicKey).
Or would it be recommended to use the Hashable conformance (with an appropriate Hasher) for this feature? Is the Hashable implementation guaranteed to be stable across versions / platforms?

because we're being very tentative with exposing up API on these types

That sounds like a very sensible approach :). What about exposing the opposite of init(openSSHPublicKey: String), i.e. a method to serialize the key back to an OpenSSH public key? That might be desirable in any case for interoperability.

What question about the key are you specifically trying to answer?

Whether it is a known / expected key.

One thing you can do, for example, is load the key you expect to see into a NIOSSHPublicKey and then use the Equatable conformance to check if they're equal.

I didn't think of that solution, but it would solve part of my problem, thanks!
Though I don't think this would allow me to implement a behavior similar to e.g. OpenSSH, where a public (host) key is accepted (and stored) when it is first encountered (because, as far I could tell, there is not API to serialize an NIOSSHPublicKey).
Or would it be recommended to use the Hashable conformance (with an appropriate Hasher) for this feature? Is the Hashable implementation guaranteed to be stable across versions / platforms?

because we're being very tentative with exposing up API on these types

That sounds like a very sensible approach :). What about exposing the opposite of init(openSSHPublicKey: String), i.e. a method to serialize the key back to an OpenSSH public key? That might be desirable in any case for interoperability.

Or would it be recommended to use the Hashable conformance (with an appropriate Hasher) for this feature? Is the Hashable implementation guaranteed to be stable across versions / platforms?

Nope, Hashable is not even stable across invocations from the same process.
For your specific solution, yes, we could add OpenSSH public key serialisation. That's likely to be the best solution, not least because the OpenSSH public key serialisation format is basically the same as the wire format.

Or would it be recommended to use the Hashable conformance (with an appropriate Hasher) for this feature? Is the Hashable implementation guaranteed to be stable across versions / platforms?

Nope, Hashable is not even stable across invocations from the same process.
For your specific solution, yes, we could add OpenSSH public key serialisation. That's likely to be the best solution, not least because the OpenSSH public key serialisation format is basically the same as the wire format.

Out of curiosity, is that a patch you'd be interested in adding?

Out of curiosity, is that a patch you'd be interested in adding?

Out of curiosity, is that a patch you'd be interested in adding?

Yes, assuming that there's agreement that this is the way to go (i.e. the patch is likely to be accepted if it is of sufficient quality).
(Though I'll have to jump through some hoops to get the contribution approved - I'll see how that goes and will update this issue in a week at the latest).

Out of curiosity, is that a patch you'd be interested in adding?

Yes, assuming that there's agreement that this is the way to go (i.e. the patch is likely to be accepted if it is of sufficient quality).
(Though I'll have to jump through some hoops to get the contribution approved - I'll see how that goes and will update this issue in a week at the latest).

Yes, I believe this is a reasonable API, and a sufficiently high quality patch would be merged. In general I'm in favour of patches that add minimal API surface, and so a simple inverse function would be fantastic. I suspect we want to handle this as an extension on String.
Let me know if the contribution boundaries get too high, I may be able to put you in touch with some Googlers who might be able to help.

Yes, I believe this is a reasonable API, and a sufficiently high quality patch would be merged. In general I'm in favour of patches that add minimal API surface, and so a simple inverse function would be fantastic. I suspect we want to handle this as an extension on String.
Let me know if the contribution boundaries get too high, I may be able to put you in touch with some Googlers who might be able to help.

I may be able to put you in touch with some Googlers who might be able to help.

Thank you for the offer. Since there's been little progress on getting the contributions approved, I would like to take you up on it. You can find my personal email on my profile. My work email is <my GitHub<EMAIL_ADDRESS>

I've reached out to some folks, they should be in touch.

What about exposing the opposite of init(openSSHPublicKey: String), i.e. a method to serialize the key back to an OpenSSH public key? That might be desirable in any case for interoperability.

I'm currently working on developing a SSH tools for iOS, and I don't know how to get the exact information of the public key. But I think it is a good idea to serialize the bey back to a public key.

@Military-Doctor the OpenSSH format for public & private keys is agnostic to the type of public key. So while the format could by representing a type known to CryptoKit & NIOSSH, this is not necessarily the case. A good example is RSA based keys, which NIOSSH does not (intend to) support.


Improvement/UI no #3725

What is the purpose of the pull request
ui improvement. Change the no to taskinstance, processinstance, processdefinition id
Brief change log
Change the no to taskinstance, processinstance, processdefinition id
Verify this pull request
ui improvement. check projects page ui

@break60 please review this PR, thx

The number is not the read id value. If you read the id value, it will become the following situation, which will cause the number to not increase automatically

The number is not the read id value. If you read the id value, it will become the following situation, which will cause the number to not increase automatically

@kalencaya , I think you can add a column for id if needed

The number is not the read id value. If you read the id value, it will become the following situation, which will cause the number to not increase automatically

@kalencaya , I think you can add a column for id if needed

sorry for can't understand what the issue means. i'm confused change what to the taskinstance, processinstance, processdefinition id?
[Improvement][ui] Change the no to taskinstance, processinstance, processdefinition id#3725
if change the NO(编号) to the id, i can't understand how it help user to locate the params of taskinstance, processinstance, processdefinition faster.
i may need some help t point out what ui style this issue want to achive.

sorry for can't understand what the issue means. i'm confused change what to the taskinstance, processinstance, processdefinition id?
[Improvement][ui] Change the no to taskinstance, processinstance, processdefinition id#3725
if change the NO(编号) to the id, i can't understand how it help user to locate the params of taskinstance, processinstance, processdefinition faster.
i may need some help t point out what ui style this issue want to achive.

sorry for can't understand what the issue means. i'm confused change what to the taskinstance, processinstance, processdefinition id?
[Improvement][ui] Change the no to taskinstance, processinstance, processdefinition id#3725
if change the NO(编号) to the id, i can't understand how it help user to locate the params of taskinstance, processinstance, processdefinition faster.
i may need some help to point out what ui style this issue want to achive.

From the perspective of user use, generally do not pay attention to id. If you know the id from the developer positioning problem, it is nothing more than the fastest, but the id is not displayed. You only need to know the project name and work name, which workflow and project name can be located And the name of the workflow under the project are unique
从用户使用角度一般不会关注id，如果从开发者定位问题知道id，无非是最快的，但是不显示id，你只需要知道项目名称和工作名称，是可以定位哪个工作流，项目名称和项目下的工作流名称都是唯一的

sorry for can't understand what the issue means. i'm confused change what to the taskinstance, processinstance, processdefinition id?
[Improvement][ui] Change the no to taskinstance, processinstance, processdefinition id#3725
if change the NO(编号) to the id, i can't understand how it help user to locate the params of taskinstance, processinstance, processdefinition faster.
i may need some help to point out what ui style this issue want to achive.

From the perspective of user use, generally do not pay attention to id. If you know the id from the developer positioning problem, it is nothing more than the fastest, but the id is not displayed. You only need to know the project name and work name, which workflow and project name can be located And the name of the workflow under the project are unique
从用户使用角度一般不会关注id，如果从开发者定位问题知道id，无非是最快的，但是不显示id，你只需要知道项目名称和工作名称，是可以定位哪个工作流，项目名称和项目下的工作流名称都是唯一的

sorry for can't understand what the issue means. i'm confused change what to the taskinstance, processinstance, processdefinition id?
[Improvement][ui] Change the no to taskinstance, processinstance, processdefinition id#3725
if change the NO(编号) to the id, i can't understand how it help user to locate the params of taskinstance, processinstance, processdefinition faster.
i may need some help to point out what ui style this issue want to achive.

From the perspective of user use, generally do not pay attention to id. If you know the id from the developer positioning problem, it is nothing more than the fastest, but the id is not displayed. You only need to know the project name and work name, which workflow and project name can be located And the name of the workflow under the project are unique
从用户使用角度一般不会关注id，如果从开发者定位问题知道id，无非是最快的，但是不显示id，你只需要知道项目名称和工作名称，是可以定位哪个工作流，项目名称和项目下的工作流名称都是唯一的

I don't think so, usually the users or developers need a meaningful field, not a serial no

thanks for your first contribution, looking forward to your deep participation.


New column 'Potential APR' in Unstaked Pools table

Right now, user's who've added liquidity to eligible staking pools see their current APR but may not realize how much extra they could be earning by staking.
Describe the solution you'd like
Add a new column for 'Potential APR' that is only displayed in the 'Unstaked pools' table.

If the pool is eligible for staking, add an APR range (see logic below).
If the pool is not eligible, the cell should read N/A
If the pool is for the 80/20 BAL/WETH pool, just show a single number instead of the range (swap fee + 10%).

Logic for the APR range:

The lower number in the range is based on what would be the user's current boost if staked. e.g. If based on the liquidity provided and their veBAL, what would their APR be? This must be >= 1.0x.
The higher number should be <= 2.5x. Note: the max boost for a pool is not always 2.5x. If the user has a large share of the liquidity in a pool, the max boost will be less than 2.5x. In these cases, show the max boost for the user based on their liquidity size and veBAL holdings.

Cleaning up old issues, please reopen if applicable


El Capitan sanity check + ARC conversion

Hi Kurt,
I upgraded a couple of my systems to El Capitan GM the other day - and have some major beach ball regression in my http://komposer.io app. It was all working so sweet in Yosemite.
I was thinking of chipping in to help with some ARC conversion.
What are your thoughts? Did you try El Capitan?  I'll send you an invite to my app.
JP

I haven't tried El Capitan yet; I will give it a shot this weekend.  I don't know of any changes that would cause issues in SnoizeMIDI, but anything's possible.
If you are getting beachballs in your app, have you sampled the app (using Activity Monitor or Instruments) to see what's happening when it locks up?  Does the same thing happen in other MIDI apps, for instance Audio MIDI Setup?
If you have changes to convert to ARC I would love to integrate them!  But I wouldn't expect that to fix (or cause) any performance issues.

I'm not seeing any obvious problems with MIDI Monitor or SysEx Librarian running on El Capitan.
I didn't see any beachballs in Komposer, but I only just launched the app and saw a bunch of mostly blank windows.  I don't know how to test your app.
Without any more information, the best I can suggest is that you check for old and outdated drivers in /Library/Audio/MIDI Drivers. If you have a bad driver it's very likely that apps using MIDI will lock up. Any MIDI app would do that, Audio MIDI Setup is easiest to test since everybody has it.
I'm closing this since I don't see anything actionable for me to do.

fyi

I wouldn't be too concerned with that bug above - more of a motivation to ARC everything.
It was occurring under edge case that non midi instruments were turned on.
It's weird - I'm seeing problems with AudioToolbox core functionality.
I hope the el captian GM fixes this. Otherwise I'll have to create a radar.

If you have an NSData object that crashes when retaining it, you have big problems. Where did that NSData come from? Did you set a breakpoint on malloc_error_break (as the message suggests) and see what happens? Did you try the other memory debugging tools?
If you switched to ARC, you wouldn't have to write the call to -retain, but the compiler would still be doing exactly the same thing. So it's unlikely that switching to ARC would fix this bug.
I don't have much experience with AudioToolbox so I can't supply much help there, sorry.


Automatically release container image for ARM

Automatically release container image for ARM.

CI on main branch: https://github.com/kedacore/keda/actions/workflows/main-build.yml
Do the release as part of https://github.com/kedacore/keda/actions/workflows/release-build.yml

Relates to https://github.com/kedacore/keda/issues/779

No binaries are currently published? Only docker images. https://github.com/kedacore/keda/releases
If so I don't think this task is required/blocker to add ARM support in #779


I can't add photos to the extent report

Hi. Is there a way to save the photos in each step that is made?
I currently have this

and my extent report settings are this

when executing if you save the photo but save it on my desktop and I do not know why

please i would like to see the way to add the photos to the report

Can u share the code in a repository?

Can u share the code in a repository?

Can u share the code in a repository?

https://github.com/York6666/ExtentReport
this is !!!

@grasshopper7  hello anything you want to consult me let me know, Thank u!!

Sent a PR to your repo. Merge it and try.

Sent a PR to your repo. Merge it and try.

ok now i try it, can i take a photo for each step?

thank you very much I was able to solve everything !! thank you again @grasshopper7


How to make inline edit with rowDoubleClick in JsGrid

//     rowDoubleClick: function(args) {
//       if(this.editing.item.rowClick) {
//              this.editItem($(args.event.target).closest(this, args));
//         }
//       },
//     rowDoubleClick: function (args) {
//         if(args.item.rowClick) {
//               jsGrid.Grid.prototype.editing.call(this, args);
//         }
//     },
This is script which I have created, but doesn't works. Could you help me to solve problem it.
Thank you!

try this easy one
rowClick:function(args)
{
//do something or leave it without removing the rowClick section
},
rowDoubleClick:function(args)
{
$("#jsGrid .jsgrid-edit-button").trigger("click");
}

Note: its is using Jquery please import jquery plugin before jsGrid.js

Thanks for the response, @nandakumardtc
the script code that you sent, it's works, but it's just that when I double-click on the free field and what happens is that the bottom field of the table is available to edit, are you any solution to the problem it ?
The point is from the your script, double-click it's works, but doesn't match what inline to edit. So the conclusion, every time me double-click on a certain field, which is open for editing it is always the bottom field. Look at the SS of the image below.

yeah i got it @aqrohadi  try this one
var clients = [
        { "Name": "Otto Clay", "Birthday": "December, 17 2014" },
        { "Name": "Connor Johnston", "Birthday": "March, 5 2012" },
        { "Name": "Lacey Hess", "Birthday": "August, 2 2000" }
    ];

    $("#jsGrid").jsGrid({
        width: "600px",
        height: "400px",

        inserting: true,
        editing: true,
        sorting: true,
        paging: true,

        data: clients,

        fields: [
            { name: "Name", type: "text", width: 150, validate: "required" },
            { name: "Birthday",
              type: "text",
              align: "right",
              width: 150
            },
          {
            type: "control"
          },

          ],
      rowClick:function(args)
      {

      },

    });
$("#jsGrid").on("dblclick","tr:not(.jsgrid-edit-row)",function(){
  $(this).find(".jsgrid-edit-button").trigger("click");
});

Woww, rowDoubleClick it's works! Thank you so much @nandakumardtc !

Welcome, I am glad you got a solution @aqrohadi

There is another solution also i have attached this

better


Google Social Login Returining "Failed to exchange code for access token"

Hi. I'm currently trying to integrate social login with Google but I keep getting this error when I send the code via Postman:
{
    "non_field_errors": [
        "Failed to exchange code for access token"
    ]
}

I followed the documentation and I have my views and URLs files like this:
# views
class GoogleLogin(SocialLoginView):
    adapter_class = GoogleOAuth2Adapter
    callback_url = settings.CALLBACK_URL
    client_class = OAuth2Client

# URLs
path('login/google/', GoogleLogin.as_view())

After going through the consent screen, I get my callback URL with a code. Something like this: 4%2F0ATx3LY5LamvuKMn6LsP3dqfC1ABCfwkkrP8BwePB-jRReO27ujBvwV8MyBe3ADYERuY3PQ
My postman request body (to the URL above) looks like this:
{
    "code":"4%2F0ATx3LY5LamvuKMn6LsP3dqfC1ABCfwkkrP8BwePB-jRReO27ujBvwV8MyBe3ADYERuY3PQ"
}

I'm not sure why I get this particular error. Is there some setting configuration I'm missing? I'll appreciate any form of help at this point. Thank you!

Update
The problem was with the code. The code returned was URL-encoded. The fix was to switch "%2F" to "/" so 4%2F0ATx3LY5LamvuKMn6LsP3dqfC1ABCfwkkrP8BwePB-jRReO27ujBvwV8MyBe3ADYERuY3PQ becomes 4/0ATx3LY5LamvuKMn6LsP3dqfC1ABCfwkkrP8BwePB-jRReO27ujBvwV8MyBe3ADYERuY3PQ


Fix inconsistency in handling errors

Fixes https://github.com/fastify/help/issues/227

cc @paul590 @RafaelGSS

Other than comment, looks good to me.


OpenAPIDeserializer produces NPE when a path references an undeclared path parameter

The OpenAPIDeserializer runs into a NPE and, as a consequence, produces a diagnostic message with content "null", when a path references a path parameter that is not declared in the respective operation.
How to reproduce:

Store this file as input.json

input.json.gz
.

Store this file as ParseOpenAPI3File.java.

ParseOpenAPI3File.java.gz
Compile it with a classpath that contains
slf4j-api-1.5.8.jar
slf4j-jdk14-1.5.8.jar
jackson-core-2.11.0.jar
jackson-dataformat-yaml-2.11.0.jar
jackson-databind-2.11.0.jar
jackson-annotations-2.11.0.jar
jackson-datatype-jsr310-2.11.0.jar
commons-io-1.4.jar
commons-lang3-3.1.jar
swagger-models-2.1.3.jar
swagger-core-2.1.3.jar
swagger-parser-v3-2.0.20.jar
swagger-parser-core-2.0.20.jar
snakeyaml.jar

Run it with one argument, namely the absolute file name from step 1.

Expected output:
Messages from OpenAPIV3Parser:
attribute paths.'/restTest/arraytypes/complexArrayEcho/{value}'. Declared path parameter value needs to be defined as a path parameter in path or operation level
attribute paths.'/restTest/arraytypes/complexArrayEcho/{value}'. Declared path parameter value needs to be defined as a path parameter in path or operation level

Actual output:
Messages from OpenAPIV3Parser:
null

The following patch fixes it:
1402-fix.diff.gz

The following patch fixes it:
1402-fix.diff.gz

thanks @brhaible


Workshop at TU Delft

Abstract
This workshop training will teach researchers about reproducible data workflows, including how to make tabular data more FAIR and of higher quality. The lesson will be part-lecture, and mostly hands-on Python coding in a notebook, with technical helpers available to help. Participants will learn how to use the Python Frictionless Framework (https://framework.frictionlessdata.io/) to create and edit metadata and schemas, how to validate their data, and how to write a pipeline to prepare data for publication within the TU Delft Library repository. This hands-on workshop will occur over 2 half-day sessions.
Details
April 28 & 29
Registration TBA

To Do's

[ ] jupyter notebook
[ ] host helpers session
[ ] present at workshop
[ ] write blog post/comms about the event

Thats great, @lwinfree! How was the workshop?

Hi @augusto-herrmann ! It was good! The participants seemed engaged & like they learned! We'll be writing a blog summary in the coming weeks :-)

(tagging @sapetti9 - I can start a blog draft when we are back from the F2F, and maybe you can help write/edit? 😄 )

DONE!
blog: https://frictionlessdata.io/blog/2022/05/24/_2022-0524-tu-delft-training/

Awesome! Thanks for sharing, @lwinfree.


App/explorer very slow/not loading info

I've tried to veiw my 3 hotspot info on the helium app, cell phone firefox through explorer and Desktop through explorer. Hot spot info like how much mined, activity, and so on aren't loading or are very slow like 5 min to load.

Ever since the 2021.08.31 update the network has been acting funny.

Seems that the issue has resolved.


Test all languages in Travis CI

test all language implementations in Travis CI;
improve CPP code compatibility.

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


Custom - minmax pooling - Keras - Tensorflow

I coded a compact version of the same code but this time using lambda layer. The function of this layer is the same.
Here is the code:
import tensorflow as tf
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
plt.rcParams['figure.figsize'] = [25, 5]

def Min_Max_Pooling(inputs,filter_size=3):
  # calculate the remainder to append appropriate amount of number to original
  #  input so it is completely divisible by filter_size and wont cause any problem in tf.split function.
  remainder = int(inputs.shape[-1]%filter_size)

  # if the length of inputs sequence is completely divisible by remainder then no need to concat more items to inputs
  if remainder > 0:
        remainder_list = tf.ones([(abs(remainder-filter_size))], tf.float32)*inputs[-1]
        inputs = tf.concat([inputs,remainder_list],-1)

  # calculate the number of splits to be made
  num_splits = int(inputs.shape[-1]/filter_size)

  # split the inputs in chunks of 3(filter_size)
  split_sequence = tf.split(inputs, num_or_size_splits=num_splits, axis=-1)

  #  get the indices of max and min values from those chunks
  argmax = tf.expand_dims(tf.argmax(split_sequence, axis=-1), -1)
  argmin = tf.expand_dims(tf.argmin(split_sequence, axis=-1), -1)

  # concat the argmin and argmax indices into tuples which belong to same chunks
  arg_min_max = tf.concat([argmax,argmin], axis=-1) # Concatenate on innermost dimension

  # sort the indices in to acending order to not disturb the ordering of timeseries
  arg_min_max = tf.sort(arg_min_max, axis=-1, direction='ASCENDING', name=None)

  # gather the values according to indices corresponding to there respecitive shunks
  final_result = tf.gather(params = split_sequence, indices=arg_min_max, axis=1, batch_dims=1)

  # convert it into one dimensional tensor and we get our desired output
  final_result = tf.reshape(final_result,-1)

  return final_result

error :
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-18-58ba929307e5>](https://localhost:8080/#) in <module>
      1 input_layer = tf.keras.layers.Input(shape=(999), name="input_layer")
----> 2 output_layer = tf.keras.layers.Lambda(Min_Max_Pooling(input_layer,filter_size = 3))
      3 model = tf.keras.models.Model(input_layer, output_layer, name="model")
      4
      5 model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=0.0005), loss="categorical_crossentropy", run_eagerly=True)

3 frames
[/usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py](https://localhost:8080/#) in error_handler(*args, **kwargs)
     65     except Exception as e:  # pylint: disable=broad-except
     66       filtered_tb = _process_traceback_frames(e.__traceback__)
---> 67       raise e.with_traceback(filtered_tb) from None
     68     finally:
     69       del filtered_tb

ValueError: Exception encountered when calling layer "tf.reshape" (type TFOpLambda).

Shape must be rank 1 but is rank 0 for '{{node tf.reshape/Reshape}} = Reshape[T=DT_FLOAT, Tshape=DT_INT32](Placeholder, tf.reshape/Reshape/shape)' with input shapes: [333,?,2,3], [].

Call arguments received:
  • tensor=tf.Tensor(shape=(333, None, 2, 3), dtype=float32)
  • shape=-1
  • name=None

The problem is with the dimensions and i am new to tensorflow and i dont know how to handel the dimensions of data inside tensorflow layers. What am i doing wrong here?
If you use the same code as regular function i works fine.
here is the code:
def Min_Max_Pooling_func(data,filter_size=3):
    # calculate the remainder to append appropriate amount of number to original
    #  input so it is completely divisible by filter_size and wont cause any problem in tf.split function.
    remainder = int(data.shape[-1]%filter_size)
    # if the length of data sequence is completely divisible by filter_size then no need to concat more items to inputs
    if remainder > 0:
          remainder_list = tf.ones([(abs(remainder-filter_size))], tf.float32)*data[-1]
          data = tf.concat([data,remainder_list],-1)
    # calculate the number of splits to be made
    num_splits = int(data.shape[-1]/filter_size)
    # split the data in chunks of 3(filter_size)
    split_sequence = tf.split(data, num_or_size_splits=num_splits, axis=-1)
    #  get the indices of max and min values from those chunks
    argmax = tf.expand_dims(tf.argmax(split_sequence, axis=-1), -1)
    argmin = tf.expand_dims(tf.argmin(split_sequence, axis=-1), -1)
    # concat the argmin and argmax indices into tuples which belong to same chunks
    arg_min_max = tf.concat([argmax,argmin], axis=-1) # Concatenate on innermost dimension
    # sort the indices in to acending order to not disturb the ordering of timeseries
    arg_min_max = tf.sort(arg_min_max, axis=-1, direction='ASCENDING', name=None)
    # gather the values according to indices corresponding to there respecitive shunks
    final_result = tf.gather(params = split_sequence, indices=arg_min_max, axis=1, batch_dims=1)
    # convert it into one dimensional tensor and we get our desired output
    final_result = tf.reshape(final_result,-1)
    return final_result

tensor = tf.random.uniform(shape=[100],dtype=tf.dtypes.float32,maxval=100)

result = Min_Max_Pooling_func(tensor,filter_size=3)

print(result.shape)
print(tensor.shape)

plt.plot(tensor)
plt.show()
plt.plot(result)
plt.show()

desired output:
(68,)
(100,)

The result is downsampled as i wanted.
Here is the link for colab.
https://colab.research.google.com/drive/1W1K37rcacndRCargDQzZkedgiQ8WCZkB?usp=sharing

@ashishbhong82,
I was facing different issue while executing the given code. Kindly find the gist of it here and share all dependencies to replicate the issue or share a colab gist with the reported error

ok

@tilakrayal  Hi I have editied the code and also provided the link to colab. Thanks for noticing tilakrayal.

@ashishbhong82, I was facing different issue while executing the given code. Kindly find the gist of it here and share all dependencies to replicate the issue or share a colab gist with the reported error

@tilakrayal Hi I have editied the code and also provided the link to colab. Thanks for noticing tilakrayal.

@ashishbhong82,
Could you please provide the dataset(ADANIPORTS.csv) to replicate the issue in local environment. Thank you!


Flowscore Developer Grant

Developer tools / services
Description
Flowscore is a ranking and rewards platform, defining digital identity for NFT Collectors.  What started as a request from our SNKRHUD Community has grown into a full-scale data behemoth, representing some of the best projects on Flow. We have more than 1.2M assets ranked from 7 projects, including Gamisodes Inspector Gadget, Rogue Bunnies, Driverz et al. We have grown to nearly 900 Collectors on the platform in only 4 months, who have a suite of features to showcase and flex their Collection. Highlights include a Trophy Room to show off their top 3 assets, a Snapshot to easily share their profile on Social, and a data-rich Collector Score that pulls both on chain and off chain info representing their value as a community member. We're now also offering data and insights to our Projects to better understand their community and convert more potential Holders.
Problem statement

Target audience
Evidence for the need

Our platform is designed to increase value for both Projects and Collectors. Unfortunately, not everyone has or will survive this bear market. For Collectors, they've still invested time and money into these Communities. Our Collector Score grants scores to everyone, no matter whether your project is featured on our platform or not. We're validating their efforts. Once our rewards launch, we'll finish the engagement loop necessary to keep Collectors invested, no matter the status of the project. For those Projects that are able to survive, they're looking for tools to help them get connected to the core of their Community and continue to add Holders. We're able to provide data on the health of their project, including Top Holders, number of assets claimed on the platform, and realtime growth; however, we can also let them compare and contrast with other Projects on the platform and even see purchase intent and trends for those looking for more sophisticated insights. Our quick user growth and continued support from our Projects prove there is a need for what we continue to build.
Proposed solution
Our next steps are to further build out our data offering. For Projects, we're going to tier the offering based on Projects' needs. Our lowest tier is a Project specific relatime data dashboard. The next tier will include ecosystem wide data to compare and contrast to other Projects also on Flowscore. Our global dashboard allows Projects to see the additional data we're collecting from Unranked Projects in user's inventories, including from other blockchains. Our final tier is for brand partners and bigger projects, giving them insights on purchase intent and trends to inform their decisions on and off chain. Overall, we're looking to better connect Projects to their Communities.
We're looking at increasing value for Collectors through Rewards. The more projects we have onboard, the more we can offer to Collectors. We'll open up Membership Card our top Collectors will be able to mint for free, solidifying their dominance on chain. This will be their access to free mints, giveaways, and IRL events. We'll be able to leverage this group to new Projects and new mints to get deals on upcoming Collections unavailable anywhere else that will ultimately enable us to guarantee minting out 10-30% of an overall Collection.
We're always looking for a way to include Collectors who are heavily engaged on Social but maybe don't own as many assets for financial reasons. We want to expand our Chalenges, which is an extension of our Marketing efforts on on Twitter, asking users to share out their favorite Collections and tag their favorite projects. We want to continue to reward these users as well with giveaways and other rewards. Their involvement is equally as important as those who purchase.
Impact

In what ways does this benefit the broader Flow developer ecosystem?

We're literally giving Projects tools to succeed. We're bringing together the best Collectors on the front end and then providing exposure for every Project featured on our platform. Collectors are rewarded more points to their Collector Score for Ranked Projects vs Unranked. We reward for more diversity in your Collection. We encourage high floor prices to increase the value of your Collection. There is no other platform on Flow creating as much value as Flowscore, period. And that's before we launch the backend data opportunities! We are building the infrastructure needed when the mainstream audiences and markets return. It's incredible that we have Doodles and the NBA and Mattel, but what good is the chain if all Creators can't survive. We equalize the playing field, while incentivizing Collectors and benefiting Projects.
Milestones and funding

Note: Please consider adoption and/or maintenance milestones at the end of your project.

Milestone
Deliverables
Timeline
Risks
USD proposal

1 - Data Tier Launch
Backend Dashboard Launch
3 weeks
Getting Projects to Onboard
15000

2 - Project Onboarding
1 Anchor and 10 additional Projects
3 mos
Costs
25000

3 - User Onboarding
5K Registered Users
3 months
lack of Dapper support
10000

4 - Rewards
Launch Rewards platform
2 months
Crypto Markets
25000

Total funding proposed: <75000>
Team

Name
Role
Bio
Contact

Brandon Martinez
CEO
Founded & Sold INDMUSIC, music admin platform behind "Harlem Shake"
<EMAIL_ADDRESS>

Stefan Tauber
CXO
Creative Director, WPP Atticus Award Winner
<EMAIL_ADDRESS>

HirayaMNL
Dev Team
Built & sold largest live-gaming app in SE Asia, Paydro

thanks for the submission @proudlywashed. this developer grants program is designed to support developers building on Flow to become more productive. it seems this proposal isn't a good fit for the program. if you feel otherwise, please reopen and let us know how developers would be benefit directly from this. thanks!
wishing you all the best.


Prerequisites

[X] I have searched all issues/PRs to ensure it has not already been reported or fixed.

Criteria

[X] Reasonably well-known and widely used (e.g. if it's a GitHub project, it should have at least 100 stars and/or 50 forks)
[X] English interface (or at least English documentation)
[X] Latest stable version
[X] Full version (i.e. not a trial version)
[X] Fairly standard install (e.g. uses a version-specific download URL, no elaborate pre/post install scripts)

Name
Betterbird
Description
Betterbird is a fine-tuned version of Mozilla Thunderbird.
Homepage
https://www.betterbird.eu/
Download Link(s)
https://www.betterbird.eu/downloads/WindowsPortable/BetterbirdPortable-115.5.1-bb19-build2.en-US.win64.zip
Some Indication of Popularity/Repute
300 stars on GH

Hi there,
Would you try this bucket? I'm planning to open a pull request but I'm not sure if I did anything wrong.
scoop bucket add ifvlab https://github.com/ifvlaboratory/ScoopBucket-ifvlab
scoop install betterbird

Also a preview version available with betterbird-preview, should have no conflicts with betterbird

@Ra2-IFV tested, seems to work fine


Deal with timing-related SWTBot test failures

Sometimes, test failures happen, which seem to be timing-related, e.g., something like
Launching application org.eclipse.e4.ui.workbench.swt.E4Application...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Running org.corpus_tools.hexatomic.it.tests.TestCorpusStructure
log4j:WARN No appenders could be found for logger (org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher).
log4j:WARN Please initialize the log4j system properly.
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.634 s <<< FAILURE! - in org.corpus_tools.hexatomic.it.tests.TestCorpusStructure
testRenameDocument  Time elapsed: 0.366 s
testFilter  Time elapsed: 0.134 s  <<< ERROR!
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.testFilter(TestCorpusStructure.java:103)

This is expanding the tree in the the Project Manager, but it seems that it doesn't do so quickly enough (UI is lagging some ms), and therefore we get this error.
This depends on hardware and current workload of the test machine I guess, but may be off-putting for external users which may wonder why this test fails.
What do we want to do about this?

Guess this should be solved with waitUntil(condition)...

I think this specific issue you described was caused by the way we entered the the new names of the documents when renaming them. The text field content was changed with setText()and then an enter keystroke was inserted. In #156 I changed this to the typeText() method of SWTBot, which seems to be much more reliable in this case. Since typeText() has a certain delay, It might not be suited for all kinds of scenarios (typing long texts would take a long time).

I added a PR for this specific issue. In general, SWTBot already has some waiting when it tries to select elements. We should try to watch out for setText() in new PRs and check that there are no other flaky tests in the current test suite or introduced by new PRs.


redis-debuginfo-6.0.15-1.ph4.aarch64.rpm': No such file or directory

When walking through the steps mentioned Get Started (https://github.com/goharbor/harbor-arm#get-started) ,  I got the following error on my amd64 Ubuntu environment after running make compile_redis command:
$ make compile_redis
(snip)

1. Create sandbox
        Use local build template image OK
2. Prepare build environment
        Create source folder OK
        Copy sources from /tmp/redis.tlgUcm OK
        Install build requirements OK
3. Build
        Run rpmbuild OK
4. Get binaries
        Copy RPMS OK
        Copy SRPMS OK
5. Destroy sandbox
        Stop container OK
        Remove container OK
Build completed. RPMS are in '/tmp/redis.tlgUcm/stage' folder
cp: cannot stat './stage/RPMS/aarch64/redis-debuginfo-6.0.15-1.ph4.aarch64.rpm': No such file or directory
make: *** [Makefile:171: compile_redis] Error 1

When checking under the staging directory, I found a rpm file for x86_64 instead, not for aarch64 (arm64):
$ ls /tmp/redis.tlgUcm/stage/RPMS/x86_64/
redis-6.0.15-1.ph4.x86_64.rpm  redis-debuginfo-6.0.15-1.ph4.x86_64.rpm

Is there any misconfigurations on my environment or advices for this issue? The detail of my environment is as below:
Environment
$ git log -1
commit 4f49eedde868c8ab24c20aee92eef19780b62f77 (HEAD -> main, origin/main, origin/HEAD)
Merge: 33b8a34 542cbcf
Author: ZhuBo<EMAIL_ADDRESS>Date:   Fri Mar 4 09:24:29 2022 +0800

    Merge pull request #11 from goharbor/feat/e2e-support-arm

    feat: harbor-e2e-engine: 3.0.0-api adds support for arm architecture

$ arch
x86_64

$ docker buildx ls
NAME/NODE         DRIVER/ENDPOINT             STATUS  PLATFORMS
harbor-instance * docker-container
  harbor-node     unix:///var/run/docker.sock running linux/arm64*, linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
default           docker
  default         default                     running linux/amd64, linux/386, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/arm/v7, linux/arm/v6

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

Thanks

I will find an identical machine to determine the problem，thank you for your information

meet same problem
I found   redis-debuginfo-6.0.15-1.ph4.aarch64.rpm
in https://packages.vmware.com/photon/4.0/photon_debuginfo_4.0_aarch64/aarch64/
but can't find other rpm
@Jeremy-boo

same problem. any updates?


koord-scheduler: fix PodGroupController panic when init

Signed-off-by: Joseph<EMAIL_ADDRESS>Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

/lgtm


Set user location automatically on initial render

This is an ongoing PR to solve the issue: https://github.com/MLH-Fellowship/prep-project-4.1.5/issues/3
Test env: https://add-geolocation.netlify.app/
Team: @jgarcia45 @MaheraFurniturewala @justbustin @junhee20park

@khattakdev @junhee20park @jgarcia45 @MaheraFurniturewala @justbustin Ptal, thx!

@khattakdev ptal, thx!

@Damans227 You shouldn't delete example.env from the files

@Damans227 You shouldn't delete example.env from the files

hmm.. but it only works when it is renamed as '.env' from example.env.

hmm.. but it only works when it is renamed as .env from example.env.

True, keep the example.env as it is and make a copy of it and rename it to .env
example.env is a template for new users

hmm.. but it only works when it is renamed as .env from example.env.

True, keep the example.env as it is and make a copy of it and rename it to .env
example.env is a template for new users

Done!

@Damans227 It should be in the root not in src file :)

@Damans227 It should be in the root not in src file :)

Lol, sorry! Fixed it.


Error while installing

Hey! having an error while installing lint-staged. Pasted the debug log below
would be great if you can help me out
0 info it worked if it ends with ok
1 verbose cli [ '/Users/hassan/.nvm/versions/node/v8.4.0/bin/node',
1 verbose cli   '/Users/hassan/.nvm/versions/node/v8.4.0/bin/npm',
1 verbose cli   'install',
1 verbose cli   '--save-dev',
1 verbose cli   'lint-staged' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose npm-session f6d7fa9c26cf74c7
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/lint-staged 847ms (from cache)
8 silly fetchPackageMetaData error for lint-staged@latest Unexpected end of input at 1:25191
8 silly fetchPackageMetaData x.js"},"directories":{},"dist":{"shasum":"29eb789b852208201a41fa85c3a
8 silly fetchPackageMetaData                                                                      ^
9 verbose stack SyntaxError: Unexpected end of input at 1:25191
9 verbose stack x.js"},"directories":{},"dist":{"shasum":"29eb789b852208201a41fa85c3a
9 verbose stack                                                                      ^
9 verbose stack     at Object.parseJSON (/Users/hassan/.nvm/versions/node/v8.4.0/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/node_modules/json-parse-helpfulerror/node_modules/jju/lib/parse.js:745:13)
9 verbose stack     at parse (/Users/hassan/.nvm/versions/node/v8.4.0/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/node_modules/json-parse-helpfulerror/index.js:10:13)
9 verbose stack     at consumeBody.call.then.buffer (/Users/hassan/.nvm/versions/node/v8.4.0/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/body.js:96:50)
9 verbose stack     at <anonymous>
9 verbose stack     at process._tickCallback (internal/process/next_tick.js:188:7)
10 verbose cwd /Users/hassan/projects/Open Source/Excalibur
11 verbose Darwin 17.0.0
12 verbose argv "/Users/hassan/.nvm/versions/node/v8.4.0/bin/node" "/Users/hassan/.nvm/versions/node/v8.4.0/bin/npm" "install" "--save-dev" "lint-staged"
13 verbose node v8.4.0
14 verbose npm  v5.3.0
15 error Unexpected end of input at 1:25191
15 error x.js"},"directories":{},"dist":{"shasum":"29eb789b852208201a41fa85c3a
15 error                                                                      ^
16 verbose exit [ 1, true ]

From what I can make out, this is an npm issue. Could you try running npm cache verify and installing lint-staged again? If you have yarn installed, you could try that as well.

ran npm cache verify and tried installing. didn't work
has to be with npm

Did you try npm cache clear --force?

that did the trick, thanks alot!


Can't running with manual

VSCode Version: 1.25.1
OS Version: Windows 10 Pro 17134.112

Steps to Reproduce:

Create project with yo code
Press F5 follows the manual.
Display "Building..." message in status bar.
But, it doesn't create out folder. So, extension does not work.
Type yarn compile into integrated terminal.
out folder is created and work properly.

Few months ago, the manual is correct. But, now is incorrect.
The old version of projects are successfully building when I press F5 key.
Does this issue occur when all extensions are disabled?: Yes

I upgrade all package for test.
vscode @1.26.0
Electron @2.0.5
Chrome @ 61.0.3163.100
Node.js @8.9.3
V8 @6.1.534.41

<EMAIL_ADDRESS><EMAIL_ADDRESS>
And, create project helloworld with yo code
Press F5 and execute Hello World command. It produces error message like below

command 'extension.sayHello' not found
Activating extension 'llHoYall.helloworld' failed: Cannot find module 'C:\Users\blahblah\helloworld\out\extension'.1

And then, main vscode's debug console shows a message.
C:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\Code.exe --debugBrkPluginHost=48493 --debugId=c4eadda7-ffd0-4019-8adb-029af4373322 --extensionDevelopmentPath=C:\Users\hoya128\hWorkspace\helloworld
Activating extension 'llHoYall.helloworld' failed: Cannot find module 'C:\Users\hoya128\hWorkspace\helloworld\out\extension'.
Activating extension `llHoYall.helloworld` failed:  Cannot find module 'C:\Users\hoya128\hWorkspace\helloworld\out\extension'
Here is the error stack:  Error: Cannot find module 'C:\Users\hoya128\hWorkspace\helloworld\out\extension'
	at Function.Module._resolveFilename (module.js:543:15)
	at Function.Module._load (module.js:473:25)
	at Function.t._load (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:831:951)
	at Function.t.getExtensionPathIndex.then.o._load (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:781:881)
	at Module.require (module.js:586:17)
	at Module.patchedRequire [as require] (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\node_modules\diagnostic-channel\dist\src\patchRequire.js:14:46)
	at require (internal/module.js:11:18)
	at Function.i [as __$__nodeRequire] (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:30:770)
	at c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:807:367
	at t._doActivateExtension (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:807:479)
	at t._activateExtension (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:806:337)
	at Object.actualActivateExtension (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:804:204)
	at e._activateExtension (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:459:446)
	at c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:459:65
	at Array.map (<anonymous>)
	at e._activateExtensions (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:459:40)
	at e.activateByEvent (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:457:321)
	at t.activateByEvent (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:804:568)
	at t.$activateByEvent (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:809:54)
	at e._doInvokeHandler (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:671:983)
	at e._invokeHandler (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:671:701)
	at e._receiveRequest (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:670:767)
	at e._receiveOneMessage (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:670:536)
	at c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:669:452
	at c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:672:575
	at c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:96:903
	at e.fire (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:218)
	at a (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:162:713)
	at Socket.n._socketDataListener (c:\Users\hoya128\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:162:932)
	at emitOne (events.js:116:13)
	at Socket.emit (events.js:211:7)
	at addChunk (_stream_readable.js:263:12)
	at readableAddChunk (_stream_readable.js:250:11)
	at Socket.Readable.push (_stream_readable.js:208:10)
	at Pipe.onread (net.js:594:20)

When I did Task > Show Running Tasks', it was no task is running`.
I think it does not execute preLaunchTask.

This is a part of my electron project.
# .vscode/launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug Main Process",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceRoot}",
      "preLaunchTask": "compile",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
      "windows": {
        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
      },
      "args": [".", "--enable-logging"]
    }
  ]
}

# .vscode/tasks.json
{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "tasks": [
    {
      "label": "compile",
      "type": "shell",
      "command": "${workspaceRoot}/node_modules/.bin/webpack"
    }
  ]
}

This code works for me.
Thanks.

You extension doesn't register a command handler for the extension.sayHello. How does your main code look like.

'use strict';
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';

// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {

    // Use the console to output diagnostic information (console.log) and errors (console.error)
    // This line of code will only be executed once when your extension is activated
    console.log('Congratulations, your extension "helloworld" is now active!');

    // The command has been defined in the package.json file
    // Now provide the implementation of the command with  registerCommand
    // The commandId parameter must match the command field in package.json
    let disposable = vscode.commands.registerCommand('extension.sayHello', () => {
        // The code you place here will be executed every time your command is executed

        // Display a message box to the user
        vscode.window.showInformationMessage('Hello World!');
    });

    context.subscriptions.push(disposable);
}

// this method is called when your extension is deactivated
export function deactivate() {
}

This is extension.ts code. It was generated by yo code.
I didn't modify at all.

This is a generated ./vscode/launch.json file.
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
	"version": "0.2.0",
    "configurations": [
        {
            "name": "Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceFolder}"
            ],
            "outFiles": [
                "${workspaceFolder}/out/**/*.js"
            ],
            "preLaunchTask": "npm: watch"
        },
        {
            "name": "Extension Tests",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceFolder}",
                "--extensionTestsPath=${workspaceFolder}/out/test"
            ],
            "outFiles": [
                "${workspaceFolder}/out/test/**/*.js"
            ],
            "preLaunchTask": "npm: watch"
        }
    ]
}

And this is a generated ./vscode/tasks.json file.
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "npm",
            "script": "watch",
            "problemMatcher": "$tsc-watch",
            "isBackground": true,
            "presentation": {
                "reveal": "never"
            },
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

If I launch project, vscode should execute preLaunchTask. But, vscode doesn't execute this task.
Probably, this is the main issue.

Which OS locale are you on?
When you open the workspace folder and do Task > Run Task is the npm: watch task listed?

My windows10 is Korean, and vscode is english.
// locale.json
{
	"locale":"en"
}

When I select the menu Task > Run Task, it will show to me a list.

npm: watch
npm: compile
npm: install
npm: postinstall
npm: test
npm: vscode:prepublish

And I did npm: watch through the menu. There is nothing happened.
Finally, I typed 'npm run watch` into the integrated terminal, it works perfectly.

Can you open the developer console (Help > Toogle Developer Tools) and see if there are any exceptions.
After exexuting the task there should be a little hammer icon in the left lower corner showing that one task is running. You don't see this?

This is console logs of project vscode.
INFO no standard startup: panel is active    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1397

[Extension Host] activating extension    console.ts:136

This is console logs of debug vscode.
INFO no standard startup: not just one window    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1397

Loading development extension at c:\Users\blahblah\helloworld    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3225

[Extension Host] STOPPED on first line for debugging on port 25599    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3119

Extension Host    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3117

Debugger listening on ws://<IP_ADDRESS>:25599/f1c10926-5910-40d2-acac-f3f061f6f805    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3117

For help see https://nodejs.org/en/docs/inspector

Extension Host    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3117

Debugger attached.    /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3117

And, I see only git, error, warning and start debug in the left lower corner.

Nope. There is only `1: powershell' both of them.

I have no idea why this is failing since it works for me following your steps. Can you check your extension into GitHub so I can clone the repository. May be something else broke.

This is repository url "https://github.com/HoYaProject/helloworld"
And, I'm using these extensions together.

ms-vscode.cpptools
ms-python.python
ms-vscode.powershell
alefragnani.bookmarks
esbenp.prettier-vscode
keroc.hex-fmt
slevesque.vscode-hexdump
formulahendry.auto-rename-tag
formulahendry.auto-close-tag

@llHoYall I cloned the repository, ran npm install in the folder and then opened VS Code on it and everything works as expected for me.
Can you try to see if you can reproduce your problem with all extensions disabled. To disable them start VS Code from a terminal and pass --disable-extensions

I also do like you. But it was same as before.
So, I try to another windows 10 computer. I was failure also.
Finally, I try to my Macbook Air and it works good by the manual.
Then, why it doesn't work on windows?

That is very strange since I am testing this under Windows only. I am really puzzeled here. Anything that you can think of is different between Windows and Mac for you?

I found one thing.

Press F5 key,
Click Terminal and dropdown menu very very very fast.
Then, I can see a menu.

1: powershell
2: task: watch

But I can see it very short time. It is clearly disappear.
So, I don't see messages at all.
Is there any method to see these messages?

If you execute the npm: watch task from the task menu, does the entry stay in the terminal drop down?
If not all I could think about tracking this down is to compile VS Code from source and debug it on your machine. Would you be willing to do so?

FInally, I success to capture the screen. I will type here.
> Executing task: npm run watch <

npm ERR! path C:\Users\myid\package.json    // This is wrong!!!!
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\myid\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Right path should be "C:\Users\myid\project\package.json".
Can you solve this?

On my mac, the path is the same as windows.
~/project/package.json i.e. /Users/myid/project/package.json.

C:\Users\hoya128\hWorkspace\helloworld is my project path on Windows.

The trace in https://github.com/Microsoft/vscode/issues/55620#issuecomment-415720793 shows that VS Code starts the task correctly, however for some reason npm can't find the package.json. Are there any special characters in the path C:\Users\hoya128\hWorkspace\helloworld. It looks like the working directory is incorrect.

Can you provide me with the npm log file?

The string has only pure ascii character. There is nothing special.
Then, how can I create a npm log file?

If npm fails it is usually generating the log file and prints its location to the console.

Yes, you are right. But, it is a usual case when use a npm.
This case, there is no npm log file anywhere.

I run a $ yarn install at vscode project folder.
It gives to me this.
error An unexpected error occurred: "C:\\Users\\hoya128\\AppData\\Local\\Yarn\\Cache\\v2\\npm-vscode-nls-3.2.4-2166b4183c8aea884d20727f5449e62be69fd398\\.yarn-metadata.json: Unexpected token \u0000 in JSON at position 0".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\hoya128\\hWorkspace\\vscode\\extensions\\configuration-editing\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I'm getting dislike a Windows....

When I install it, I got blue screen. 😞
So, I removed node_modules/ folder.
Next, Installing again, I faced the error messages.
I will try to install with you gave method.

Something seems to be really wired with your machine.

hoya128 ~\hWorkspace\vscode\scripts
[master ≡] > ./code C:\Users\hoya128\hWorkspace\helloworld\
[09:30:14] Syncronizing built-in extensions...
[09:30:14] You can manage built-in extensions with the --builtin flag
[09:30:14] [marketplace]<EMAIL_ADDRESS>✔
[09:30:14] [marketplace]<EMAIL_ADDRESS>✔

[main ?ㅼ쟾 9:30:17] update#ctor - updates are disabled
[25280:0905/093024.894:INFO:CONSOLE(182)] "%c INFO", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/platform/log/common/log.js (182)
[25280:0905/093025.935:INFO:CONSOLE(237)] "%c[Extension Host] %cdebugger listening on port 5870", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (237)
[25280:0905/093026.639:INFO:CONSOLE(146)] "%c[Extension Host] %cdebugger inspector at chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=<IP_ADDRESS>:5870/939f4993-43de-4508-b51b-8b3f172c417c", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (146)
Debugger listening on ws://<IP_ADDRESS>:5876/fdc2e57c-1ea5-4fc2-b773-98bd13b6a046
For help see https://nodejs.org/en/docs/inspector
[25280:0905/093102.826:INFO:CONSOLE(182)] "%c INFO", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/platform/log/common/log.js (182)
[25280:0905/093103.008:INFO:CONSOLE(861)] "Loading development extension at c:\Users\hoya128\hWorkspace\helloworld", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionService.js (861)
[25280:0905/093103.759:INFO:CONSOLE(234)] "%c[Extension Host] %cSTOPPED on first line for debugging on port 10818", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (234)
[25280:0905/093104.347:INFO:CONSOLE(149)] "Extension Host", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (149)
[25280:0905/093104.355:INFO:CONSOLE(150)] "%cD%cebugger listening on ws:%c//<IP_ADDRESS>:10818/36377664-88e4-4d09-8fb4-e2be34034fe1
For help see https://nodejs.org/en/docs/inspector
", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (150)
[25280:0905/093104.356:INFO:CONSOLE(151)] "console.groupEnd", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (151)
[25280:0905/093105.367:INFO:CONSOLE(149)] "Extension Host", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (149)
[25280:0905/093105.367:INFO:CONSOLE(150)] "%cDebugger attached.
", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (150)
[25280:0905/093105.367:INFO:CONSOLE(151)] "console.groupEnd", source: file:///C:/Users/hoya128/hWorkspace/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (151)

This is all I have messages.

These messages are OK. Did the VS Code window open (e.g. the instance compiled from source)

That is same before. What am I do next?

So VS Code starts when executing code in the scripts folder. Right? Then do

Help > Toggle Developer tools
select source tab
Ctrl+O and type terminalTaskSystem.js.
select the file
set a breakoing on line 614 (e.g. var result = this.terminalService.createTerminal(shellLaunchConfig);
execute your task
when the breakpoint gets hit, got to the console in the dev tools
type shellLaunchConfig
expand the node.
post the content here.

You should see somethink like this:
{name: "Task - compile", executable: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe", args: "-Command npm run compile", waitOnExit: "Terminal will be reused by tasks, press any key to close it.", initialText: "> Executing task: npm run compile <↵", …}
args
:
"-Command npm run compile"
cwd
:
"c:\Users\dirkb\Projects\mseng\VSCode\vscode"
executable
:
"C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"
initialText
:
"> Executing task: npm run compile <↵"
name
:
"Task - compile"
waitOnExit
:
"Terminal will be reused by tasks, press any key to close it."
__proto__
:
Object

cd ~/hWorkspace/vscode
git pull
./scripts/code .
CTRL+p  and select terminalTaskSystem.ts file.
Set breakpoint on the line.

And next, I don't know how to execute my extension with this.

@llHoYall

open the workspace that contains out extension code
try to execute the task that fails executing.

Does it break if you set a breakpoint into the beginning of the function TerminalTaskSystem.prototype.run.

It is the same not only extension but also normal react project.
This is a tasks.json file.
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "yarn: start",
      "type": "shell",
      "command": "yarn start",
      "options": {
        "cwd": "${workspaceRoot}/"
      }
    }
  ]
}

And, error message like below.
> Executing task: yarn start <

yarn run v1.9.4
error Couldn't find a package.json file in "C:\\Users\\hoya128"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Terminal will be reused by tasks, press any key to close it.

There is a problem on path.

How can I open the integrated terminal with path of workspace?

Glad you were able to track it down. Any objection to close the issue.


Name of ‘Analyze equation' pane is not defined

A team member will update this issue with more details soon.

This is your friendly Microsoft Issue Bot. I created this issue automatically as requested by a team member.


Update request-purchase-with-offer.md

requestPurchaseWithOfferIOS accepts an object, not individual parameters

Thank you @jbernhardt23


documentation updates for decision_plot

Fixed docstring format in decision.py and provided some minor clarifications.

Thanks!


Tuning SOLR indexing for discovery

Most of #1164 and #1183 are addressed in #1152. One issue remains
Change the signal registration to invoke a pre-delete action rather than a post-delete action. This will make managing deletes easier by giving us a complete view of what is going to be deleted rather than a partially deleted view like we have now with the delete "in progress" before we get the signal...!
Right now, handle_delete is very much dependent on how delete_resource is implemented. This change decouples the two methods.

@xuezhaokun Should this be closed?

@alvacouch Should be closed?


Is your project based on handsontable?

Is your project based on handsontable?

No, it was build from scratch.


Improve the speed of torchaudio.compliance.kaldi.fbank

The old version computes fbank as follows:
# size: (m, padded_window_size // 2 + 1) --> (m, 1, padded_window_size // 2 + 1)
power_spectrum = power_spectrum.unsqueeze(1)
# size: (num_mel_bins, padded_window_size // 2 + 1) --> (1, num_mel_bins, padded_window_size // 2 + 1)
mel_energies = mel_energies.unsqueeze(0)
# broadcast, dot product and sum up
mel_energies = (power_spectrum * mel_energies).sum(dim=2)

It equals:
mel_energies = torch.mm(power_spectrum, mel_energies.T).

Speed of computing 30s audios: 0.24s --> 0.06s.

Hi @lawlict
Thank you for making this PR. I am trying to reproduce your claim. Could you tell me what sampling rate you used in your benchmark?

Using the following script, I get the following result;
$ OMP_NUM_THREADS=1 numactl --membind 0 --cpubind 0 python -m timeit -n 100 -r 5 -s """
import torch;
import torchaudio;
t = torch.randn(1, 32*44100);
""" 'torchaudio.compliance.kaldi.fbank(t)'

Commit
Output

This PR
100 loops, best of 5: 96.8 msec per loop

master (2d879132)
100 loops, best of 5: 218 msec per loop

Hi @mthrok
The code i use is:
import torch
import torchaudio
import time

kwargs = {
    "energy_floor": 1,
    "dither": 0,
    "frame_length": 25,
    "frame_shift": 10,
    "low_freq": 0,
    "high_freq": 8000,
    "num_mel_bins": 64,
    "preemphasis_coefficient": 0.97,
    "sample_frequency": 16000,
    "snip_edges": False,
    "subtract_mean": False,
    "use_log_fbank": True,
    "window_type": "hamming"
}

x = torch.rand(1, 16000 * 30)
tic = time.time()
for i in range(100):
    y = torchaudio.compliance.kaldi.fbank(x, **kwargs)
toc = time.time()
print((toc - tic) / 100)

Speed: 175ms (master) --> 31ms (this PR) on my local PC.

@lawlict Thanks for the contribution!


Tool not working in KiCAD 6.0.9 on MacOS

Describe the bug
After installing the plugin (plugin manager / GitHub clone) I try to start the plugin. If there is no jlcpcb folder in my project folder it starts, but has no parts listet on the popup window. If I close the window and try to start the plugin again I get the following error message:
Traceback (most recent call last):

File "/Users/vieteben/Documents/KiCad/6.0/scripting/plugins/kicad-jlcpcb-tools/plugin.py", line 21, in Run
dialog = JLCPCBTools(None)

File "/Users/vieteben/Documents/KiCad/6.0/scripting/plugins/kicad-jlcpcb-tools/mainwindow.py", line 571, in __init__
self.init_store()

File "/Users/vieteben/Documents/KiCad/6.0/scripting/plugins/kicad-jlcpcb-tools/mainwindow.py", line 587, in init_store
self.populate_footprint_list()

File "/Users/vieteben/Documents/KiCad/6.0/scripting/plugins/kicad-jlcpcb-tools/mainwindow.py", line 660, in populate_footprint_list
details = self.library.get_part_details(numbers)

File "/Users/vieteben/Documents/KiCad/6.0/scripting/plugins/kicad-jlcpcb-tools/library.py", line 318, in get_part_details
return cur.execute(

sqlite3.OperationalError: no such table: parts

To Reproduce
Steps to reproduce the behavior:

Install plugin in KiCAD 6.0.9 on MacOS
Click on JLCPCBTools button
See error message (exception)

Expected behavior
Tool should run as expected.
KiCad Version
Application: KiCad Leiterplatteneditor
Version: (6.0.9-0), release build
Libraries:
    wxWidgets 3.1.5
    libcurl/7.79.1 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.45.1
Platform: macOS Version 12.6.1 (Build 21G217), 64 bit, Little endian, wxMac
Build Info:
    Date: Oct 29 2022 19:31:49
    wxWidgets: 3.1.5 (wchar_t,wx containers)
    Boost: 1.80.0
    OCC: 7.6.3
    Curl: 7.64.1
    ngspice: 37
    Compiler: Clang 12.0.0 with C++ ABI 1002
Build settings:
    KICAD_USE_OCC=ON
    KICAD_SPICE=ON

Can you please check if there's a parts.db file in /Users/vieteben/Documents/KiCad/6.0/scripting/plugins/kicad-jlcpcb-tools/jlcpcb/?
If so, delete it it and see if the plugin starts.

I am hitting a similar (same?) issue after upgrading my plugin from the august version to today's version (nov 11th or something like that).

seeing this go by in the error console too.
Traceback (most recent call last):
  File "C:\Program Files\KiCad\6.0\bin\Lib\logging\__init__.py", line 1086, in emit
    stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
  File "C:\Users\Dominic Cerquetti\Documents\KiCad\6.0\3rdparty\plugins\com_github_bouni_kicad-jlcpcb-tools\plugin.py", line 21, in Run
    dialog = JLCPCBTools(None)
  File "C:\Users\Dominic Cerquetti\Documents\KiCad\6.0\3rdparty\plugins\com_github_bouni_kicad-jlcpcb-tools\mainwindow.py", line 571, in __init__
    self.init_store()
  File "C:\Users\Dominic Cerquetti\Documents\KiCad\6.0\3rdparty\plugins\com_github_bouni_kicad-jlcpcb-tools\mainwindow.py", line 585, in init_store
    self.store = Store(self.project_path)
  File "C:\Users\Dominic Cerquetti\Documents\KiCad\6.0\3rdparty\plugins\com_github_bouni_kicad-jlcpcb-tools\store.py", line 30, in __init__
    self.update_from_board()
  File "C:\Users\Dominic Cerquetti\Documents\KiCad\6.0\3rdparty\plugins\com_github_bouni_kicad-jlcpcb-tools\store.py", line 224, in update_from_board
    self.logger.debug(
Message: 'Part D1 is already in the database and has a lcsc value, the value supplied from the board will be ignored.'
Arguments: ()
2022.11.25 22:30:23 - DEBUG - update_from_board -  Part D1 is already in the database and has a lcsc value, the value supplied from the board will be ignored.```

I'm on Kicad 6.0.6 though on Win64.

```Application: KiCad PCB Editor (64-bit)
Version: (6.0.6), release build
Libraries:
    wxWidgets 3.1.6
    libcurl/7.82.0-DEV Schannel zlib/1.2.12
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    Date: Jun 26 2022 02:39:06
    wxWidgets: 3.1.6 (wchar_t,wx containers)
    Boost: 1.79.0
    OCC: 7.6.0
    Curl: 7.82.0-DEV
    ngspice: 37
    Compiler: Visual C++ 1929 without C++ ABI
Build settings:
    KICAD_USE_OCC=ON
    KICAD_SPICE=ON```

I was about to open this up on my PC and dig in a little.

One possible hint, but it might be unrelated: I saw an error message in the previous version of the plugin when trying to hit the "Update Database" button that the JLCPCB URL was returning a 404.  wonder if that has something to do with this.

I'll try remove that parts.db file if it exists as well.

I'm on plugin verison 2022.11.01 with this

ok, so I did have a parts.db file at
C:\Users\Dominic Cerquetti\Documents\KiCad\6.0\3rdparty\plugins\com_github_bouni_kicad-jlcpcb-tools\jlcpcb\parts.db
when I opened it in DB browser, I see there is only an table in it named 'mappings' (and no table named 'parts')
when I delete the file, I am able to get the plugin to open, but, now i get the 404 error.  I'll try chasing that down next.

If I change the line in library.py to print the URL, I get this:

https://jlcpcb.com/componentSearch/uploadComponentInfo

yep,

and then if I close the plugin I get the parts.db thing happening again and have to delete it.  I think there's 2 things going on here then:

The plugin doesn't handle itself well when it wasn't able to previously reach JLCPCB and (presumably populate the db).
(root cause) the JLCPCB url seems to have legit changed.

I'll see if I can track down the new URL, hopefully they didn't block automated API requests like this plugin or something.

wonder if the base URL changed. this now works:
https://jlcpcb.com/parts/componentSearch/
sadly https://jlcpcb.com/parts/componentSearch/uploadComponentInfo does not.
searching....

oh uh, just noticed https://twitter.com/bouni2016/status/1453258658545115141 , probably similar thing going on

Seems JLC removed the download link from their website. Hopefully they just moved it elsewhere, otherwise a good portion of this plugin is useless 😥

Maybe related to #241

They cannot provide the link to the database now 👎🏻

Translation from Google translate
At present, we do not provide this file for downloading, it is recommended that you search directly in the component library```

I think I don't need to do anything, because the problem is described above.
The parts.db file is available in my folder. If I delete it, then the plugin starts. But there is no part available.

Hey all, I suggest we take any future discussion into #241 , which is the root cause of this issue. (Just to keep it all in one place)

I'll close this. See #241 for details.


Is this a turborepo issue?

Is there an existing issue for this?

[X] I have searched the existing issues and found nothing that matches

Library version (optional)
6.1.0
Ask a question
I've been using next-safe-action since v3 and think this is a great tool. Please keep up the great work!
I recently migrated to a turborepo mono repo and am using pnpm as the package manager. In VSCode when looking at the safe-action file or the safe actions themselves code and when I try to build I get this error.
vbpay:build: Type error: The inferred type of 'action' cannot be named without a reference to '../../node_modules/next-safe-action/dist/index-7AaVMS6R.mjs'. This is likely not portable. A type annotation is necessary.
nextjs:build:
nextjs:build:   2 | import { createSafeActionClient } from "next-safe-action";
nextjs:build:   3 |
nextjs:build: > 4 | export const action = createSafeActionClient({
nextjs:build:     |              ^
nextjs:build:   5 |   async middleware() {
nextjs:build:   6 |     const { userId } = auth();
nextjs:build:   7 |     if (userId === null) {
nextjs:build:  ELIFECYCLE  Command failed with exit code 1.
When I open ../../node_modules/next-safe-action/dist/index-7AaVMS6R.mjs I saw it had an error bc it was importing @decs/typeschema which wasn't installed so i installed that but still getting the same error.
The funny thing is everything works perfectly fine when I run in dev mode. Of course, if I have a type mismatch between my action schema and type im passing in its brutal because of these errors the typing doesn't work for me to know if its a real error or not.
Additional context
I thought maybe it was pnpm issue but I get the same error when using npm as the package manager for the turbo repo mono repo.

Hi @dugan-dev, it could be. Can you please provide a link to a repo with a minimal reproducible example of this issue? Thanks!

@TheEdoRan As requested here a link to a repo with the issue.
https://github.com/dugan-dev/safe-action-issue-reproduction

Sorry for the delay and thank you for providing a reproduction link. This is a very tricky one, and I still have to find a way to properly solve it. This problem affects multiple projects, and I am unsure if in this case it's caused by tsup bundling, a TypeScript config, or simply using pnpm in a monorepo. It's related (at least) to these TypeScript issues, and a number of others in multiple repos:
https://github.com/microsoft/TypeScript/issues/47663
https://github.com/microsoft/TypeScript/issues/48212
https://github.com/microsoft/TypeScript/issues/42873
https://github.com/microsoft/TypeScript/issues/29808
As a workaround, suggested by some users, setting these two options in tsconfig.json seem to work, but it's certainly not that great of a solution, and if you need to emit declaration files when building the project you can't use them. Anyways, this seems to work:
{
  "compilerOptions": {
    "declaration": false,
    "declarationMap": false,
  }
}

Let me know if this works for you as well, thanks.

@TheEdoRan This solved my problem. Thank you so much!

Getting same error in Vercel:

Solution with
{
  "compilerOptions": {
    "declaration": false,
    "declarationMap": false,
  }
}

Does not work, tsconfig: https://github.com/kuskusapp/kuskus/blob/main/tsconfig.json

I'm also having this problem when trying to upgrade to v7. Using a monorepo it is essential to use type declarations. There must be another way to fix this.

@ilanyehez please try to install next-safe-action v7.7.1-beta.1 with:
npm i next-safe-action@beta

and let me know if it fixes your issue, thanks. Now the return type of createSafeActionClient is explicitly set and not inferred.

Thank you for the fast response :)
I've installed the beta but still get the same error:
The inferred type of 'publicAction' cannot be named without a reference to '../../../node_modules/next-safe-action/dist/index.types-C7qSUCH-.mjs'. This is likely not portable. A type annotation is necessary.ts(2742)
const publicAction: SafeActionClient<string, undefined, undefined, undefined, {}, undefined, undefined, readonly [], undefined, undefined>

And now my workaround doesn't work, type has more errors...

@ilanyehez yeah, you're right. Right now I'm testing with an actual monorepo set up with pnpm and I've just found out that setting compilerOptions.baseUrl to "." in the package's tsconfig.json solves the typing issue, without needing to deal with declaration settings. If this is the case for you as well, do you think it would be a viable solution?

@TheEdoRan I already have baseUrl set to ".", this is my main setup for packages:
 "composite": true, // Enables project references and informs the TypeScript program where to find referenced outputs.
    "declaration": true, // Project references rely on the compiled declarations (.d.ts) of external projects. If declarations do not exist, TypeScript will generate them on demand.
    "declarationMap": true, // Generate sourcemaps for declarations, so that language server integrations in editors like "Go to" resolve correctly.
    "incremental": true, // Enables incremental compilation, greatly improving performance.
    "noEmitOnError": true, // If the typechecker fails, avoid generating invalid or partial declarations.
    "skipLibCheck": true, // Avoids eager loading and analyzing all declarations, greatly improving performance.
    "verbatimModuleSyntax": false, // Avoids generating verbose module syntax in declarations.

    // proper ESM support:
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "isolatedModules": true,
    "moduleResolution": "bundler",
    "module": "esnext",
    "strict": true,
    "strictNullChecks": true,
    "target": "esnext",

    // react support
    "allowJs": true,
    "jsx": "preserve",
    "lib": ["dom", "dom.iterable", "esnext"],
    "resolveJsonModule": true

     "emitDeclarationOnly": true,
    "noImplicitAny": false,
    "outDir": "./lib",
    "baseUrl": ".",

    // and more specific settings for paths and references
    ...paths
    ...references

@ilanyehez is "baseUrl": "." set in the actual package/app tsconfig.json? Because if so it's pretty weird, the moment I added that setting to my package's tsconfig.json (not the root one or shared ones), the error went away instantly. If it doesn't work for you can you please provide a link to a repo with a minimal reproduction of the issue? For reference, I used this one for tests:

https://github.com/TheEdoRan/next-safe-action/issues/64#issuecomment-1944495789

@TheEdoRan Yes, the baseUrl is individually set for each package or app.
The most comprehensive guide about setting up typescript on a monorepo can be found here, maybe it'll give you an idea:
https://moonrepo.dev/docs/guides/javascript/typescript-project-refs#configuration


Invoke-TraverseDirectory invokes wrong error method on controller

When an error occurs, it attempts to record this on the controller by invoking IncrementError which should be ErrorItem. IncrementError is a method on the internal counter class.

There was also some missing error handling in Invoke-ForeachFsItem which has been fixed up.


Strange stretching issue

Hi, I have a strange stretching issue (have a look at image).
How I can fix/prevent this issue?

BR
Dima

How are you loading the image?

Same Issue


Heart rate sensor support?

I'm playing around with this repo (good stuff :smiley:!), and I was wondering whether adding heart rate sensor support would be a welcome change.
I wouldn't mind contributing. I've got a wahoo TICKR to test against.
Cheers

Support for heart rate sensor's seems like a worthwhile addition.
A PR would be really appreciated!
I found the XML files at https://github.com/sur5r/gatt-xml particularly helpful when implementing the Bluetooth profiles. For heart rate sensor you might want to look at https://github.com/sur5r/gatt-xml/blob/main/org.bluetooth.characteristic.heart_rate_measurement.xml and https://github.com/sur5r/gatt-xml/blob/main/org.bluetooth.service.heart_rate.xml.
Good luck and let me know if you have any questions.


Backgrounding app while getting person causes attestation failure

Getting a Person Credentials some times fails if an attestation credential is not present.

I think the problem is when the app is backgrounded message pickup is stopped. This may be impacting attestation because the workflow continues to the IAS authentication web view before the credential is fully delivered. When the web view is displayed the app technically enters the background.


Fix profile publishing

tmp. broken in the update to go-ipfs 0.4.17

done in https://github.com/textileio/textile-go/pull/300/commits/27d2b94a982babd54b07e60053b301fc467b7fe7


Should failures in the lazy loading process of beans after refresh also be recorded in errors?

Is your feature request related to a problem? Please describe.
When GenericScope#destroy is executed, it checks the execution result of the bean's destroy callback and records exceptions in the errors map. However, during lazy loading of the bean, the result of bean loading is not checked. Shouldn't we also record bean loading failures in the errors map?
Additionally, can we add an eager switch for refreshing, similar to ConfigurationProperties, to immediately create the bean after destruction? This way, we can determine the refresh result of the bean earlier.

The implementation for recording bean loading failures in errors already exists.


Cannot use partial for links_factory_imp

The commint https://github.com/inveniosoftware/invenio-records-rest/commit/1804923d94fe7d4982979d900fd4c42d8f600a96 is using the python function getargspec to check if the the links_factory_imp has kwargs.
Unfortunately, that python function is checking if the given function is a real function, and it raises a TypeError otherwise.
If we use partial instead, it breaks.
Example:
project_links_factory = partial(deposit_links_factory, deposit_type='project')
"""Project factory for links generation."""

Workaround:
def project_links_factory(pid):
    """Project factory for links generation."""
    deposit_links_factory(pid, deposit_type='project')

Would it possible to add support for partials?

Note: this should also be tested for python 3 with the signature call


[Bug] Stack autostarts when docker is started

Bug description
Stack starts automatically when docker is started. When you shut you restart your pc and start docker desktop, the stack is also started automatically
Expected behaviour
After stopping docker/shutting the pc down, the stack should not automaticallystart
Steps for reproduction

Shut pc down
start pc
start docker
stack gets started again

Affected version
latest
Affected template
No response
Last working version (optional)
No response
Operating system
Windows
Browser
No response
Relevant log output (optional)
No response
Screenshots (optional)
No response
Additional context (optional)
No response
No duplicate

[X] I confirm that this issue is not a duplicate

Code of Conduct

[X] I agree to follow this project's Code of Conduct

As far as i found out there is no way than completely remove the restart_policy


:boom: Channel.Update/ForceUpdate: updater no longer returns error

Related to #155
Instead of changing the API drastically, improve documentation.

@manoranjith Addressed all comments, please have another look.

@matthiasgeihs The fix looks good to me. But there's a failing test, could you have a look into it ? Also, you may want to add a Signed-off-by:... line in the last commit.