MinimalOpenApiExample - add Swagger JSON endpoints doesn't work on production

I encountered an issue with Swagger when deploying my application from the local environment to production. Initially, everything was working fine locally. However, after deployment, I noticed the following error message being displayed in the Swagger interface:

Fetch error Not Found /swagger/v1/swagger.json

In the local environment, the Swagger route was accessed using the following URL:
https://localhost:7080/swagger/index.html
In the production environment, the application's host had an additional route:
http://my-awesome-page.com/route-to-my-application/swagger/index.html
Unfortunately, Swagger was trying to retrieve the JSON file from the wrong URL.
The additional rout was skipped:
http://my-awesome-page.com/swagger/v1/swagger.json
I found that the issue lies in the wrong adding Swagger JSON endpoint:
https://github.com/dotnet/aspnet-api-versioning/blob/f29831ea21d69d44dba1e1b2916da6a3d93514c6/examples/AspNetCore/WebApi/MinimalOpenApiExample/Program.cs#L275
To resolve this issue, I made the following change to the URL variable:
var url = $"{description.GroupName}/swagger.json";
After making this modification, Swagger started working correctly in both the local and production environments.

The examples are just that - examples. They are meant to show how to put all the pieces together and not necessarily deploy a production-ready application. While I do make an effort to have the samples be as close to a real application as possible, there are nearly infinite variations that someone might use. It looks like you might be using a proxy in production. Did you enable app.UsePathBase("/route-to-my-application") for the production environment?
The default Swashbuckle route template is /swagger/{documentName}/swagger.json. This is called out in the Swashbuckle documentation as well as the Microsoft documentation. I'm inclined to use the default configuration for simplicity. The examples are only meant to show the bare minimum of Swashbuckle configuration to connect the pieces. They are not meant to show how to use Swashbuckle or perform advanced configuration. There are many other examples and documentation pages to cover that.
The examples are in a runnable state. If you're able to demonstrate that is somehow not true, I'm happy to look into addressing that. The issue you have outlined seems very specific to your particular application and requirements.

Before adding the Versioning library I used the default builder app.UseSwaggerUI(); without any options.
Regarding the example we are using options to add Swagger JSON endpoints in the following way:
https://github.com/dotnet/aspnet-api-versioning/blob/main/examples/AspNetCore/WebApi/MinimalOpenApiExample/Program.cs#L267-L279
app.UseSwaggerUI(
    options =>
    {
        var descriptions = app.DescribeApiVersions();

        // build a swagger endpoint for each discovered API version
        foreach ( var description in descriptions )
        {
            var url = $"/swagger/{description.GroupName}/swagger.json";
            var name = description.GroupName.ToUpperInvariant();
            options.SwaggerEndpoint( url, name );
        }
    } );

But when you look under the hood what is happening in the default app.UseSwaggerUI(); you will see that there is no swagger in the URL:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/master/src/Swashbuckle.AspNetCore.SwaggerUI/SwaggerUIBuilderExtensions.cs#L41
options.ConfigObject.Urls = new[] { new UrlDescriptor { Name = $"{hostingEnv.ApplicationName} v1", Url = "v1/swagger.json" } };
I fully understand that this is an example, but why not make it more robust? I believe, these examples are great and are worth 100 more than any documentation.

I think we may have our wires cross ever so slightly. There are two different route templates. The default route template for the Swashbuckle middleware the serves OpenAPI documents most definitely has the /swagger prefix as seen here:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/8f363f7359cb1cb8fa5de5195ec6d97aefaa16b3/src/Swashbuckle.AspNetCore.Swagger/SwaggerOptions.cs#L19
The URL passed to SwaggerUIOptions.SwaggerEndpoint must match this template. The UI doesn't know about or discover the OpenAPI documents, so this is how the connection between the two is made and the dropdown is populated. Interestingly enough, things work with or without the prefix.

Route Template
Works

/swagger/{description.GroupName}/swagger.json
Yes

/{description.GroupName}/swagger.json
Yes

swagger/{description.GroupName}/swagger.json
No

{description.GroupName}/swagger.json
No

./swagger/{description.GroupName}/swagger.json
No

This appears to be because SwaggerUIOptions.RoutePrefix has a default value of "swagger":
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/8f363f7359cb1cb8fa5de5195ec6d97aefaa16b3/src/Swashbuckle.AspNetCore.SwaggerUI/SwaggerUIOptions.cs#L15
If you change the configuration like this:
var url = $"/{description.GroupName}/swagger.json";
var name = description.GroupName.ToUpperInvariant();
options.SwaggerEndpoint( url, name );
options.RoutePrefix = string.Empty;

Things break. Similarly, navigate to the document at <host>/v1/swagger.json and you'll get 404. The document is still at <host>/swagger/v1/swagger.json. There appears to be a loose, implicit connection between the SwaggerUI route prefix and the OpenAPI document files.
As noted above, the Microsoft documentation calls out the following paragraph:

If using directories with IIS or a reverse proxy, set the Swagger endpoint to a relative path using the ./ prefix. For example, ./swagger/v1/swagger.json. Using /swagger/v1/swagger.json instructs the app to look for the JSON file at the true root of the URL (plus the route prefix, if used). For example, use https://localhost:<port>/<route_prefix>/swagger/v1/swagger.json instead of https://localhost:<port>/<virtual_directory>/<route_prefix>/swagger/v1/swagger.json.

You didn't mention how you were hosting, but that seems to reflect the behavior you are seeing.
The variances in hosting have been problematic over the years. They are close, but not all the same. I used to use IIS Express quite a bit, but that too can be a pain. I've moved to a self hosting for all examples and platforms to make things as consistent as possible.
If you are using IIS or a reverse proxy, then the correct course of action here appears to be a big comment in the code about these particular gotchas. I have no problem with that. The examples will run without issue as is, but if you try to rehost it another way, it may not. On one hand, I think that should be potentially expected. If there is a way to make one of the default configurations work for all, I support it. I tried using ./ as the prefix, but that doesn't work for self hosting. It's a bit curious that removing the prefix works for you in another environment, even though the OpenAPI documents ultimately have the same URL.
Removing the prefix, as you've suggested, should still require a comment as to why it deviates from the default. My observation is that there is a difference in the handling of the / and ./ prefix by different hosts.

I appreciate the discussion and thought that went into this thread. While there is a loose connection, API Versioning is not about OpenAPI, Swagger, or Swashbuckle nor how it should be hosted from an application. I have carefully created examples based on the most vanilla of configurations to show the pieces working together. I do try to make a point of having the examples be similar to real scenarios, which many examples don't do. The current setup has been that way for years (the original I believe) and - right or wrong - it matches the Swashbuckle and Microsoft documentation (as linked above). In reviewing this one last time, I'm inclined to leave it as is.
That being said, this issue will always be here for people to find and decide for themselves. If you think it's worth adding to the wiki documentation for Swashbuckle integration, I'm 100% onboard with that and happy to add something.
Beyond that. This thread has reached its conclusion. Thanks again for the health debate and advocating to make things better. 😉


General Progress representation for UI Widgets

Objective

Both the SliderWidget #6236 and the ProgressBarWidget #6517 are going to need some representation of progress.
As we've discussed in those PRs, it would make sense to have both of them use the same underlying representation.

Solution

This attempts setting up that underlying and general representation of progress. It is indented to solve the needs of the widgets but ideally would be suitable for additional purposes such as gameplay or loading.
Additional identified use-case: Getting Progress from a Task in a AsyncComputeTaskPool

Please review and critique both the design but also where to place it. Maybe bevy_ui is not the best place for this in the long term?
My intention is that this will be moved over to the bevy_widgets-crate once that gets set up (see https://github.com/bevyengine/bevy/pull/6517#pullrequestreview-1171184009) but there might be other, better places for it.
Consensus is that it should live in bevy_utils.

@AxiomaticSemantics, @Pietrek14, review please :)

Interesting tooling, I wonder if having Num as a trait bound would be useful, as it probably will always be numeric

That is probably a very reasonable assumption. I can't think of any use-cases where this would not be a number of some kind.

Moved everything to bevy_utils and I think I have addressed all comments. feel free to add more :)

Additional use-case: Getting Progress from a Task in a AsyncComputeTaskPool

@mockersf Could you please have a look at this from a "general utility across the engine"-perspective?

Controversial label added because while this is well-made, it's not entirely clear it's worth the complexity.

I took a quick look at this, and honestly it doesn't really seem necessary. I really don't think "what percentage full is this thing" is not a complicated piece of functionality to abstract over. Over in traditional UI, we've been doing just fine without a special construct for progress, since percentFill: f32 works just fine in nearly all cases.
Additionally, I think this abstraction will quickly start to get applied to too many different use cases to still be meaningful. In my experience, this sort of functionality quickly has its meaning diluted as it's improperly applied to different contexts. Already, I would argue that input sliders and loading bars are two separate areas that don't need to be coupled.

Already, I would argue that input sliders and loading bars are two separate areas that don't need to be coupled.

Speaking of "progress" for a slider doesn't make much sense...

I think this would be useful, else we would have to repeat this logic in Slider (#6236) and ProgressBar (#6517), which is not the end of the world, but I would much rather have it as a seperate struct. This is a common enough use-case to probably appear in future UI widgets, so rewriting the same thing in all of them could be pretty cumbersome.
As to the name, I feel like calling the slider value "progress" isn't that uncommon, though I don't mind if the name is ultimately changed.

Thanks for all the feedback! Conclusion is to close this and use a normalized float value of "progress" 0.0..=1.0 for the UI elements.
This can always be reopened if there's a different need where this is the right tool for the job.


Global/Preinstalled language servers

Hi,
How do I get nvim lsp installer to use pre-installed language servers? For example, I have clangd installed both as a system wide package as well as user built package. Both of these are available in $PATH.
How do I get nvim-lsp-installer.get_installed_servers() to detect these as available language servers?

Hello! I'm not sure I'm following how you mean this plugin should use globally installed executables? If you're managing them externally, why not interact directly with lspconfig like
lspconfig.clangd.setup {
  ...
}

Well, that is what I am doing currently. However, I believe that nvim lsp installer should also autodetect preinstalled LS and mark them as installed in get_installed_servers.
Ofcourse, a user a choose to install the LS again, in which case get_installed_servers should prioritize language servers installed in lsp root_dir

Ah gotcha. That's not really a goal of this plugin currently. You can always customize the behavior of server instances by overloading some of its methods, like:
local server = require("nvim-lsp-installer.server")
local lsp_servers = require("nvim-lsp-installer.servers")
local shell = require("nvim-lsp-installer.installers.shell")

local clangd = server.Server:new {
    name = "clangd",
    root_dir = server.get_server_root_path("clangd"),
    installer = shell.bash [[ install-clangd-globally-non-interactively ]],
    default_options = {
       cmd = { "clangd", ... }
    }
}

lsp_servers.register(clangd) -- this should override the internal clangd server

More docs available in CUSTOM_SERVERS.md

I understand if this is a non-goal, but one the advantages of using lsp-installer is automatic LSP installation/detection. While the solution provided does, once a user has multiple LS installed (via distro or otherwise), this adds a ton of additional config. IMHO, checking for known binaries in current path doesn't add a significant overhead.
Thanks for the guidance though.

Yeah I think searching the path for executables is the easy part for sure. But the notion of a global installation and all the constraints that comes with it hinders pretty much every other feature this plugin offers (for example uninstalling, updating). I think this could be a case for a compat plugin which checks for each LSP servers executable in path and if it exists "ejects" from the LSP installer by overloading the functions of the server:
function theserver:install_attached(context, callback)
  context.stdio_sink.stderr("Globally installed servers cannot be installed via nvim.\n")
  callback(false)
end

function theserver:uninstall()
  error("Globally installed servers cannot be uninstalled via nvim.")
end


AvroParquetWriter cache old aws config even after close, clean and create new writer

Describe the bug, including details regarding any error messages, version, and platform.
Hi we created one AvroParquetWriter to write to aws s3.
This is how we create the writer:
`
    ParquetWriter<GenericRecord> writer = AvroParquetWriter.<GenericRecord>builder(path)
    .withConf(conf)
    .withWriteMode(ParquetFileWriter.Mode.OVERWRITE)
    .withSchema(avroSchema)
    .build()

`
And this is how we create the conf:
`
  AwsCredentialsProvider credentialsProvider = DefaultCredentialsProvider.builder().build();
  var credentials = credentialsProvider.resolveCredentials();
  AwsSessionCredentials sessionCredentials = (AwsSessionCredentials) credentials;

  Configuration conf = new Configuration();
  conf.set("fs.s3a.access.key", sessionCredentials.accessKeyId());
  conf.set("fs.s3a.secret.key", sessionCredentials.secretAccessKey());
  conf.set("fs.s3a.session.token", sessionCredentials.sessionToken());
  conf.set("fs.s3a.endpoint", "s3.my_region.amazonaws.com");

`
And we are running a streaming application in ECS, each time a task come in, we get a new conf and create a new writer.
We see the token and everything are correct and refreshed each time, but writer fail to write to s3 and throw 'software.amazon.awssdk.services.s3.model.S3Exception: The provided token has expired' after the application running for few hours.
So it looks like the writer, once initialized 1st time, it keep using the 1st time configuration - even if we closed the writer, cleared cache, create new writer with new conf... And after few hours of course you hit token expire issue when that 1st time token expires.
We even did a small test - create writer 1st time with correct conf, write to s3 works. Close 1st writer, create writer 2nd time with invalid conf, write to s3 still works!!!
Is there anything wrong in the way we initialize the writer or conf?
Thanks!
Component(s)
Avro

I don't think the Parquet writer caches it. Could you please try to see if fs.s3.impl.disable.cache=false fixes your issue?

thx @wgtmac
we find out the issue
it's not the avro parquet writer itself caching the token, its the conf object keep using same token after initialized the 1st time.
Configuration should set "fs.s3a.aws.credentials.provider", otherwise it uses default TemporaryAWSCredentialsProvider which extends AbstractSessionCredentialsProvider which keeps using the same credentials once initialized the 1st time:
  private final AtomicBoolean initialized = new AtomicBoolean(false);
set provider fixed the issue:
 conf.set("fs.s3a.aws.credentials.provider","software.amazon.awssdk.auth.credentials.ContainerCredentialsProvider");


Can not play Netflix videos in Android Webview

Go to Netflix and try to play any video. when you touch any video, it is not redirecting to the video player page.
Try this link for test - https://www.netflix.com/jp-en/originals
Does anyone know why is this happening?

I tried this out and it's true, the videos don't play. I don't really know why not, though.
One way to potentially debug is to follow @ryanlntn's new debugging guide.

Yes, I followed that, But could not understand what is the issue.
I got this error message when I open Netflix

@jamonholmgren
after investigation, I found that, when we click on Netflix video, it load url with intent:// scheme, and it is not loading that url scheme. So may be we can handle this in shouldOverrideUrlLoading method. I got one solution for this issue in my forked version.
Do you have any solution for this? Or should I make a PR for this solution?

We should have that functionality however be careful there is already someone working with that method https://github.com/react-native-community/react-native-webview/pull/59

@ankur-sardar would it be enough to cancel the loading and doint the intend stuff in react-native? That way you do not need to write a lot of native code.

Still don’t know how to solve the issue.
I have a link like https://www.netflix.com/jp-en/originals in my project.
It load url with intent:// scheme in Android.
Before upgrading to react-native-webview. It was able to open Browser. Now it can’t.
I tried to implement onShouldStartLoadWithRequest. I got an error when I touch any video. Here's my code looks like.
<WebView
          onShouldStartLoadWithRequest={() => true}
          source={{ uri: 'https://www.netflix.com/jp-en/originals' }}
/>

I also tried originWhitelist. If I set like this:
<WebView
          originWhitelist={null}
          source={{ uri: 'https://www.netflix.com/jp-en/originals' }}
/>

It opens every url in browser. Then the url redirects to the Netflix app.
But this isn’t what I want.
I don't want it open Browser until there’s a intent:// scheme.

I tried Linking.sendIntent() but didn’t make it work. I finally ended up with https://stackoverflow.com/questions/57514207/open-settings-using-linking-sendintent
Here’s my code like:
<WebView
  source={{ uri: 'https://www.netflix.com/jp-en/originals' }}
  onShouldStartLoadWithRequest={this._onShouldStartLoadWithRequest.bind(this)}
/>

_onShouldStartLoadWithRequest = (event) => {
  const { url } = event;
  if (url.startsWith('intent://') && url.includes('scheme=http') && Platform.OS === 'android') {
    SendIntentAndroid.openChromeIntent(url);
    return false;
  }
  return true;
}

I tried Linking.sendIntent() but didn’t make it work. I finally ended up with https://stackoverflow.com/questions/57514207/open-settings-using-linking-sendintent
Here’s my code like:
<WebView
  source={{ uri: 'https://www.netflix.com/jp-en/originals' }}
  onShouldStartLoadWithRequest={this._onShouldStartLoadWithRequest.bind(this)}
/>

_onShouldStartLoadWithRequest = (event) => {
  const { url } = event;
  if (url.startsWith('intent://') && url.includes('scheme=http') && Platform.OS === 'android') {
    SendIntentAndroid.openChromeIntent(url);
    return false;
  }
  return true;
}

Não deu certo aqui


Update _onMetrics callback documentation

For # NA

Background

this section is out of date with the current metrics

Change List

Coverage remained the same at 83.239% when pulling 5106bc0be83d25ce57af9bab0891c25b49fb7856 on wuweiweiwu:patch-1 into fa7da83f057b00d53ce700805b91f9775709658f on uber:master.


Snippet Variable Unix Timestamp

I would like a new Snippet Variable for time to be added to the variables listed here.
https://code.visualstudio.com/docs/editor/userdefinedsnippets
Something like CURRENT_UNIX_SECONDS or CURRENT_SECONDS_UNIX
Number of seconds since the unix epoch.

Nice. I would like to work on that

I've got a commit here that works on my local build. Does this look good to you? I just get the milliseconds since epoch using new Date().getTime() and divide by 1,000. However I use Math.round to round to the nearest integer so there aren't a bunch of decimals. If that's what you wanted, I'll go ahead and open the PR, but just wanted to share it for discussion before I go ahead and do that.
https://github.com/SneakyFish5/vscode/commit/acf6b3478ed6cd2726ccf7d320700987950ab6b5

@sneakyfish5 I thought Date.now() was the normal way of doing that?

Ah you are right, completely forgot about Date.now(). Definitely a cleaner look, and I've also changed round to floor.  The new commit is here and local build works perfect. Was there anything else that crossed your mind?

@SneakyFish5 @jrieken tested this is a Snippet in Insiders edition today. Works as expected. Thank you very much.


GATConv test failing

🐛 Bug

While trying to implement some GAT-like architectures, I noticed a strange error message. I actually obtain the same error when running test_gat_conv() in pytorch_geometric/torch_geometric/nn/conv/gat_conv.py .
To Reproduce
Just running test_gat_conv().
Error:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-5-8bd96adcdfa3> in <module>
     11     conv = GATConv(in_channels, out_channels, heads=2, concat=False)
     12     assert conv(x, edge_index).size() == (num_nodes, out_channels)
---> 13 test_gat_conv()

<ipython-input-5-8bd96adcdfa3> in test_gat_conv()
      7     conv = GATConv(in_channels, out_channels, heads=2, dropout=0.5)
      8     assert conv.__repr__() == 'GATConv(16, 32, heads=2)'
----> 9     assert conv(x, edge_index).size() == (num_nodes, 2 * out_channels)
     10
     11     conv = GATConv(in_channels, out_channels, heads=2, concat=False)

~/anaconda3/envs/pytorch-conda/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
    487             result = self._slow_forward(*input, **kwargs)
    488         else:
--> 489             result = self.forward(*input, **kwargs)
    490         for hook in self._forward_hooks.values():
    491             hook_result = hook(self, input, result)

<ipython-input-4-f59eb0f6aea1> in forward(self, x, edge_index)
     82
     83         x = torch.mm(x, self.weight).view(-1, self.heads, self.out_channels)
---> 84         return self.propagate(edge_index, x=x, num_nodes=x.size(0))
     85
     86     def message(self, edge_index_i, x_i, x_j, num_nodes):

~/anaconda3/envs/pytorch-conda/lib/python3.6/site-packages/torch_geometric/nn/conv/message_passing.py in propagate(self, edge_index, size, **kwargs)
     68                     if size[i] is None:
     69                         size[i] = tmp.size(0)
---> 70                     tmp = torch.index_select(tmp, 0, edge_index[i])
     71                 message_args.append(tmp)
     72             elif arg[-2:] == '_j':

RuntimeError: index out of range at /pytorch/aten/src/TH/generic/THTensorEvenMoreMath.cpp:191

It seems that it fails because of edge_index_i in the message arguments. With the small following test:
class Debug(MessagePassing):
    def __init__(self):
        super().__init__()

    def forward(self, x, edge_index):
        return self.propagate(edge_index, x=x)

    def message(self, x_j, edge_index):
        print(edge_index.size())
        return x_j

    def update(self, agg_out):
        return agg_out

# == TEST ==
edge_index = torch.tensor([[0, 0, 0, 1, 2, 3], [1, 2, 3, 0, 0, 0]])
x = torch.randn((4, 10))
model = Debug()
out = model(x, edge_index)

works, print torch.Size([2, 6])
If now I change message:
    def message(self, x_j, edge_index_i):
        print(edge_index_i.size())
        return x_j

It does not work and give me the same error.
I am not sure if I am missing something, or something goes wrong ?
Thanks in advance,
Thibault

Are you sure you are on PyG 1.2.0?

hi @rusty1s , thanks a lot for your quick answer ! Actually no, I was on PyG 1.1.2 ... My bad !
>>> import torch_geometric
>>> print(torch_geometric.__version__)
1.1.2

It works after upgrade !
Thibault


docs: add a link to community forum in README

Description
Add a link to community forum in the README

🚀 CI was able to deploy the build of this PR, so you can now try it directly here
Notes: The deployed app is linked to the management API of APIM master. (Same login and password as APIM master)

📚  View the storybook of this branch here

maybe it has a place in contributing too ?

This PR is a first step, we have plan for improving the whole README and CONTRIBUTING docs


first cargo-hakari generate panics in my workspace

I followed the instructions on to try to generate a workspace hack in https://github.com/MaterializeInc/materialize, but I get this when I try to generate for the first time:

  16: std::sys_common::backtrace::__rust_begin_short_backtrace::h456a06d26cbb3bdd
      at <unknown source file>:<unknown line>
  17: std::rt::lang_start::{{closure}}::h64f943f19e2a4ba3
      at <unknown source file>:<unknown line>
  18: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h485d4c2966ec30a8
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/ops/function.rs:259
  19: std::panicking::try::do_call::h375a887be0bea938
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492
  20: std::panicking::try::hecad40482ef3be15
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456
  21: std::panic::catch_unwind::haf1f664eb41a88eb
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137
  22: std::rt::lang_start_internal::{{closure}}::h976eba434e9ff4cf
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128
  23: std::panicking::try::do_call::h8f2501ab92e340b0
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492
  24: std::panicking::try::hbeb9f8df83454d42
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456
  25: std::panic::catch_unwind::h0a9390b2202af6e9
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137
  26: std::rt::lang_start_internal::hc453db0ee48af82e
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128
  27: _main<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.

i poked around the codebase but got pretty lost pretty quickly...

Thanks for the report! This looks like an internal invariant in hakari was violated, most likely due to some edge case in the repo. Will look over the next week, or you're welcome to build hakari and do some debugging yourself too.

The error is:
The application panicked (crashed).
Message:  full value should be present
Location: tools/hakari/src/hakari.rs:680

which corresponds to https://github.com/facebookincubator/cargo-guppy/blob/be758911ff3f05f3853560fd8b3dd783e708c8b2/tools/hakari/src/hakari.rs#L680.

I've been facing the same issue.
I added logs and compiled my own cargo-hakari. I found that this happened when trying to find the pkg-config in the computed_map_build.
It's a dependency of libsqlite3-sys 0.25.1 in our case.

Hi -- I've left Meta and can no longer contribute to this repository. Please file an issue at guppy-rs/guppy. Thanks.


remove_from_library

Hi,
I was just wondering if the option "remove_from_library:" removes the file or removes the symlink?
The info above the option isn't 100% clear, it says "Remove items that no longer exist in the source lists" but that doesn't explain if it means it'll remove the symlink or remove the underlying files themselves?

It will only remove the symbolic link.
On 6 Apr 2019, at 17:42, Migz93<EMAIL_ADDRESS>wrote:
Hi,
I was just wondering if the option "remove_from_library:" removes the file
or removes the symlink?
The info above the option isn't 100% clear, it says "Remove items that no
longer exist in the source lists" but that doesn't explain if it means
it'll remove the symlink or remove the underlying files themselves?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/adamgot/python-plexlibrary/issues/53, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AZiJlMXI3Oht5pc0h18jGuFsJpK9i12Vks5veMBygaJpZM4cgQ5y
.

Thanks for the confirmation.


"OAUTH2/USERINFO" POST request returns 415 - Unsupported Media Type Error

Describe the issue:
According to the OIDC specification [1], the client can send a user info request using either GET or POST, with a recommendation to use the GET request. However, previous versions of IS (specifically 5.10.0) allowed POST requests with the access token to be sent in the authorization header field. In IS-6.1.0, the user info endpoint does not return a successful response for POST requests; instead, it returns a 415 - Unsupported Media Type error along with the following error logs in the wso2carbon log file:
ERROR {org.apache.cxf.jaxrs.utils.JAXRSUtils} - No message body reader has been found for class javax.ws.rs.core.MultivaluedMap, ContentType: application/octet-stream
[098ef4b3-7270-4499-b7dd-1e3a79073aea] WARN {org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper} - javax.ws.rs.WebApplicationException: HTTP 415 Unsupported Media Type

Apparently, this issue arose after the introduction of a fix for this [2],  that added an additional MultivaluedMap parameter to the getUserClaimPost method [3] in IS-6.1.0 compared to the IS-5.10.0 implementation [4]. However, by explicitly setting the content type to application/x-www-form-urlencoded, the POST request works as expected in IS-6.1.0, whereas in IS-5.10.0, the user info POST request works fine regardless of the content type.
[1] https://openid.net/specs/openid-connect-core-1_0.html#UserInfoRequest
[2]  #10387
[3]  https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/cb0dabe9dc7234d25bfc480e3f669c2a51461bf8/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/user/OpenIDConnectUserEndpoint.java#L112
[4] https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/35d2b91f19d322dd2e923025d1c90c257cee024d/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/user/OpenIDConnectUserEndpoint.java#L102
How to reproduce:
Try the userinfo POST request in IS-6.1.0 version(Refer to the below sample curl)
curl --location --request POST 'https://localhost:9443/oauth2/userinfo' \
--header 'Authorization: Bearer 311be0f6-03b1-3bcb-96ec-0322b0e93313'

Expected behavior:
Return a successful response for POST request
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version:  IS 6.1.0
OS: [e.g., Windows, Linux, Mac]
Database: [e.g., MySQL, H2]
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/2544


Please release the latest update

hi thanx for your efforts, Please release the latest update as well
thanx.

Hi, released! 🚀 https://github.com/moonD4rk/HackBrowserData/releases/tag/v0.4.5


Audit use of project_of/identity_of in httpd

Currently we rely on these methods to fetch the identity document or payload. The problem is that seed nodes may not have their own namespace in a repo. They may just be acting as transparent hosts. In that case those functions would return an error. We should instead try to use functions that don't take a node-id, and rely on canonical refs for performance.

Closed by #362 and #367


Uncaught Reference Error: ImporterUI is not defined

after run flomo importer, nothing happened.
check the console and get following errors:
Uncaught ReferenceError: importerUI is not defined
at Object.callback (main.ts:44:5)
at RK (app.js:1:2040412)
at t.onChooseItem (app.js:1:2630332)
at t.onChooseSuggestion (app.js:1:1584862)
at t.selectSuggestion (app.js:1:1584412)
at e.useSelectedItem (app.js:1:1582271)
at e.onSuggestionClick (app.js:1:1582007)
at HTMLDivElement.s (enhance.js:1:10720)
DevTools failed to load source map: Could not load content for app://obsidian.md/main.js.map: System error: net::ERR_FILE_NOT_FOUND

May I confirm the Ob version and Plugin version?
ImporterUI is no longer in use in the current plugin version

my ob is v1.6.5 and flomo importer is v1.3.0

not sure if you tried reinstallation, could you have a try?

I mean reinstall the pluggin

In the latest codebase, it's already renamed to "AuthUI" (line #44 in main.ts). So most likely you were using an out-of-date version? Maybe re-install the plugin could help.

it is probably due to the incomplete update from obsidian.  i uninstall it and re-install it again and now seems working.
thanks for your help!

not sure if this is related. but i still got error when try to use autosync.
the error message is as below snapshots:

i already run the npx playwright install in cmd line and it shows installation has been done.

Yeah, that's something I am looking into right now.
The precompiled plugin code hardcoded the playwright version, while "npx install" always targets the latest one.

The workaround is renaming the folder to chromium-1112 under AppData.

your workaround works. thanks again.  you can close the issue.


No such tag 3.0-bionic-arm32v7

Needed ubuntu image, but specified here in README is not found.
Those images are prefixed as test and may be not stable.
whole list is here
https://mcr.microsoft.com/v2/azure-functions/dotnet/tags/list

3.0-arm32v7 and 3.0-bionic-arm32v7 should be there now. The builds on MCR come out of the releases, not master, and usually the period between the updates is short enough, but the last couple of months things got delayed.


Event subscriptions

Mechanism for subscribing to .NET events without COM registration.

This is an attempt to fill the gap in #11. We've tested the .NET code and plan to test the FoxPro side tomorrow. In the meantime, we may try to wrap the async call to WaitForEvent. In this usage, AsyncCallbackEvents is more heavy-weight than needed. OnError is never called.  OnCompleted would be better replaced by a function OnEvent(lcEventName,loParameters).

I added a wrapper to call OnEvent. It could be made more elegant if it used dynamic code to call a FoxPro event named according to single .NET event subscribed to, with just its event parameter, rather than the current approach of subscribing to all events.
Additionally, there appears to be a problem with object lifetimes, which is difficult to debug, perhaps due to #13.

We modified the callback API to provide dispatch customized to the event and removed the need for the end user to call WaitForEvent. It's pretty cool - and works too! We haven't tested subscription lifetime yet. We plan to do so tomorrow.
GetIndexedProperty didn't work to get the raised event parameters from lvResult.Params. It always accessed the first array element. So we used an hack workaround instead.

This all looks very nice - I'll take a look when I get a chance.

I Edward,
I pulled this down and merged in the latest changes from master.
I'm trying to get my head around how this is supposed to work, but I'm not having any luck. Say I want to capture events from FileSystemWatcher.  I can't see how would set up the events to handle with the EventSubscriber and channel that all the way back to Foxpro.
Something like this?
var fw = new FileSystemWatcher();
var ev = new EventSubscriber(fw);

var result = ev.WaitForEvent();   // Keep this alive in a loop after event?

Then how do I get this back to FoxPro? Pass in an object that implements methods and try to call the method in the event with a T/C handler around it to guard against missing or invalid signatures? How does this thing stay alive then?
I guess I'm not sure how this is supposed work. It would help if you can set up an example perhaps that calls this through all the way to the client that's listening.

Ok so I set this up with an example for the File System Watcher, but I don't see any events firing. I don't even see anything hitting the QueueInteropEvent handler in the .NET EventSubscriber. It looks like the subscriptions are working but the actual file update triggers are not happening.
I missed your sample above, so I ended up duplicating that code :-) Grrr...  Does your code above work for you? It doesn't for me - I see no events firing:
do wwDotNetBridge
LOCAL loBridge as wwDotNetBridge
loBridge = CreateObject("wwDotNetBridge","V4")

loFW = loBridge.CreateInstance("System.IO.FileSystemWatcher")
loFwHandler = CREATEOBJECT("FwEventHandler")
loSubscription = loBridge.SubscribeToEvents(loFw, loFwHandler)

lcFile = "c:\temp\test.txt"
DELETE FILE ( lcFile )
STRTOFILE(lcFile,"DDD")
STRTOFILE(lcFile,"FFF")

WAIT WINDOW

RETURN

DEFINE CLASS FwEventHandler as Custom
FUNCTION OnChanged(sender,ev)
? "FILE CREATED: "
?  ev.Fullname
ENDFUNC

FUNCTION OnChanged(sender,ev)
? "FILE CHANGE: "
?  ev.Fullname
ENDFUNC

ENDDEFINE

I also don't even see any events firing into the .NET QueueInteropEvent handler even. I previously set up a .NET test that just sits and waits and the events weren't getting triggered there either.
The code looks like it's doing all the right things - I see the handlers getting hooked up and I assume the expression is doing the right thing (always a concern :-)). But I see no events getting forwarded into the handler.
Any ideas what I'm missing?
As to #13 I added exception handlers around the InvokeMethodAsync callbacks so if the handlers aren't there the exceptions at least won't crash VFP, but there is no feedback beyond the LastException getting set (which is of course not all that useful in Async scenarios).

Between jumping from the GitHub email to the web page for this issue, I missed the strikethrough on your first line. So when I copied your code from this issue web page and it didn't work, I wasn't surprised. To help debug, I added EventTests.prg as a member of the Tests project. It first tests with a simple Loopback class that simply raises an event. Then it tests with FileSystemWatcher. I did get the FileSystemWatcher test to work, but only after I added SET SAFETY OFF. It seems that the warning dialog interfered with how InvokeMethodAsync's completion calls were getting injected into FoxPro.
We've tested events with a complex production application, and they're working perfectly, so I wasn't expecting any problems. The only remaining issue was lifetime support. There was a bug with the code in EventSubscription to unsubscribe when it went out of scope. The problem was that the async method held a reference to it, so even when the code that called SubscribeToEvents let the object it returned go out of scope, it still had a reference.
To fix the problem, I made subscription control explicit. EventSubscription now has an Unsubscribe method the user calls when done.
One other feature that might be nice would be for SubscribeToEvents to take an optional prefix parameter. When supplied, it would be used instead of On. That would allow subscribing to events from different classes without name conflicts.
Regarding the flow in GitHub, the recommended approach is to do all the editing in the PR issuer's repo. Once the update is stabilized, merge it into the upstream master branch. In our case, that would mean you deleting your breyed-events branch, us both making needed edits to my events branch, and when you think it's ready, you merging my events branch into your master branch, building and committing the release DLL, and then pushing your master to GitHub.

Not sure why this branch is not showing as merged, but I'm closing this.


Create a module for reproducing issues with the library

[Current coverage][cc-pull] is 81.01%

Merging [#6][cc-pull] into [master][cc-base-branch] will increase coverage by 5.07%

2 files (not in diff) in ...zalando/stups/tokens were modified. more

Misses -2
Partials -12
Hits +14

@@           master         #6   diff @@
========================================
  Files           9          9
  Lines         316        316
  Methods         0          0
  Branches       23         23
========================================
+ Hits          240        256    +16
+ Misses         62         60     -2
+ Partials       14          0    -14

Powered by Codecov. Last updated by [e507401...de2b193][cc-compare]
[cc-base-branch]: https://codecov.io/gh/zalando-stups/spring-boot-zalando-stups-tokens/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/zalando-stups/spring-boot-zalando-stups-tokens/compare/e5074018903df60d98540c25911bd49b9fc9019c...de2b193721ce874f93749e47ce5bf8e0fd3a69c9
[cc-pull]: https://codecov.io/gh/zalando-stups/spring-boot-zalando-stups-tokens/pull/6?src=pr


Precompile fails

I am trying to play around with the demo that was posted on discourse but unfortunately I get the following error when I am trying to load StippleMakie. I tried adding FilePaths manually, but this didn't change anything.
julia> using StippleMakie
Precompiling StippleMakie...
  3 dependencies successfully precompiled in 19 seconds. 320 already precompiled.
[ Info: Precompiling StippleMakie [ca87011c-5f75-4091-8e42-d20fc4be912c] (cache misses: wrong dep version loaded (2))
┌ Warning: Module Stipple with build ID fafbfcfd-6a60-2e36-0000-1e77bd8fb70b is missing from the cache.
│ This may mean Stipple [4acbeb90-81a0-11ea-1966-bdaff8155998] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:2541
┌ Info: Skipping precompilation due to precompilable error. Importing StippleMakie [ca87011c-5f75-4091-8e42-d20fc4be912c].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
[ Info: Precompiling WGLMakie [276b4fcb-3e11-5398-bf8b-a0c2d153d008] (cache misses: wrong dep version loaded (2), incompatible header (4))
┌ Warning: Port in use, using different port. New port: 9385
└ @ Bonito.HTTPServer ~/.julia/packages/Bonito/vh4Oz/src/HTTPServer/implementation.jl:280
ERROR: LoadError: InitError: KeyError: key Base.PkgId(Base.UUID("8fc22ac5-c921-52a6-82fd-178b2807b824"), "FilePaths") not found
Stacktrace:

This means that Stipple is not correctly working. Try to fix your Stipple version first. Maybe you need to update your packages.
BTW, Stipple is about receiving a major update, and in some minutess you'll find a new StippleMakie version that includes a Julia proxy that magically serves Genie and Julia via a single port. Stay tuned.


Reduce client's build time

Rebuilding the client build in development (grunt serve) takes painfully long. We need to reduce this as much as possible to improve the developer experience.

First part is done: https://github.com/haadcode/orbit/commit/abbdf67c3c52e7ddf96d516904b518f5d54c8483
js-ipfs is still bundled with the app code due to it being included in webpack exports. We should change the loading of ipfs module so that it happens in index.html (load it from cdn/static asset/url/window.Ipfs) and main.js doesn't require() it.

With every js-ipfs release, a dist is created and put on npmcdn. You can use that one already :)

I prefer to have all assets included with the build, less stuff to download the better :) But essentially that's what I ended up doing with js-ipfs for now, I couldn't get it chunked in webpack :/

This was improved greatly with Webpack 2. I think it's ok atm. If we still want to make it faster, let's re-open this issue then.


Added new example for namespace packages

Added time namespace for example of namespace packages.

Thanks for your interest to contribute, but this change does not seem useful given that it just switches out the example from a major namespace (math) of the project to one (time) that just contains a few utilities and is not what we want to highlight in the main package README.md.
We have many README.md files in the sub-namespaces that currently just have boilerplate example code such as
https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/regexp
https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string
https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/tools
(and many more...)
All these would benefit from example showcasing use of some of their packages in case you want to take another crack at improving the examples.

@Planeshifter can i add more than one namespaces
??

It's better to do them one at a time. Please take a look at the various namespace README.md files in the project and after you have settled on one that you would like to flesh out, add a comment with the namespace to https://github.com/stdlib-js/stdlib/issues/1329 and then feel free to create a PR for just that one namespace's example changes. The examples of further namespaces can be updated in subsequent PRs.


Please release a new version to fix GHC compiler crashes while building the test suite

Please release a new version that includes c258350e953c3de2f98c5625ac3857f1a6863afc. We are seeing compiler crashes trying to build SHA in Nixpkgs that could be avoided if that fix were available from Hackage.

It seems thee fix wasn’t applied to the executables for the package.

<IP_ADDRESS> should do the trick. Tell me if you have any problems!

Thank you very much for the quick response!


Ac landing page

Docs Build status updates of commit 284095f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/assets/icons/AppStudioIcon.png
:white_check_mark:Succeeded

msteams-platform/assets/icons/logo_NET.png
:white_check_mark:Succeeded

msteams-platform/assets/icons/logo_js.png
:white_check_mark:Succeeded

msteams-platform/assets/icons/logo_nodejs.png
:white_check_mark:Succeeded

msteams-platform/includes/landing-page.html
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit dbb5c8f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/assets/icons/AppStudioIcon.png
:white_check_mark:Succeeded

msteams-platform/assets/icons/logo_NET.png
:white_check_mark:Succeeded

msteams-platform/assets/icons/logo_js.png
:white_check_mark:Succeeded

msteams-platform/assets/icons/logo_nodejs.png
:white_check_mark:Succeeded

msteams-platform/includes/landing-page.html
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


libgl1-mesa-glx is also a dependency

libgl1-mesa-glx is also a dependency.
transparent-background -> albumentations -> cv2

Hi @hex110, thanks for reporting this. I'll update dependencies including libgl1-mesa-glx.


Download Isochrone as a shapefile or geojson?

The issue tracker is for reporting bugs and feature requests. Before you proceed, please read the contributing guidelines in this repo's CONTRIBUTING.md.
If you installed OSMnx via conda and are experiencing installation problems, please open an issue at https://github.com/conda-forge/osmnx-feedstock/issues
If you're having trouble with OSMnx, first search the previously opened issues to see if the problem has already been noted. If not, fill in the template below:
I would like to save an isochrone as a shapefile or geojson.

Is this a "how-to" question or a new feature request? If it is a how-to question, per the contributing guidelines please ask it at StackOverflow. If it's a feature request, please sketch it out in detail.


Sign plugin

Grafana 7 comes with a signing feature for plugins.
There is no process for community plugins yet:
https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#:~:text=Signing a plugin allows Grafana,including Enterprise plugins%2C are signed.

In 7.3.1 isn't possible configure the plugin

Published public key B7E1 0763 4FB7 DB72 3404  3E9F 96DF 230F DC0E C9C6
Also available via keybase://public/zeeman/public.asc

Successfully signed a release locally. Applied for public API key via email as per https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#sign-a-public-plugin

As a temporary workaround, use the setting allow_loading_unsigned_plugins
or the ENV variable
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=cloudspout-button-panel

to deactivate signature checking for this plugin.

Version 7.0.19 is the first one that is properly signed by cloudspout


Unit tests for Border class

Hello,
Please consider this pull request.
Thanks
Contains
Unit tests for org.terasology.math.Border
P.S.
Could not get the CheckStyle to work with IDEA. Ran gradlew check, that did not produce any warnings. So used the Google rules instead.

Can one of the admins please verify this patch?

@GooeyHub: ok to test

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!

Done!


Fix protofix

Protofix doesn't seem to work correctly during the make invocation.
Fixing it adds a bit of time to each make proto invocation which gets tedious during development.

Related #250

The solution in #268 works if your docker daemon runs locally, ant not otherwise.

Fixed in #316


Add a localization convention

Add convention properties for localization. Something like the following:
Example with conventions:
locales = ['nl_BE', 'fr_BE']

Example without conventions:
localeDir = 'path/to/my/locale'
locales = ['en_US']

implemented by Maxime Cowez.


Revert the change for alert controller name

Issue: Cannot remove project from upgraded cluster.
Reason: the cause is that the name of the controller was changed. Lifecycle controllers cannot have name changes bc then old finalizers will not get cleaned up.
Solution: Change the name back
https://github.com/rancher/rancher/issues/19130

LGTM

LGTM

lgtm


Feature Request: Same Width Buttons

Could you possibly provide the ability to let a stack of Buttons have all the same width?
For example the width of the biggest button in the group or maybe block style buttons that take the full width of their container...
Imagine a screen with 2 buttons in the center, Register & Login, vertically distributed and horizontaly centered... it would look nicer if they have the same width :)

Totally agree, looking for this as well.
I think it should automatically resize to the width of parent  just like input fields do

@boustanihani @osleg :
https://github.com/kampfkeks/materializeplusplus
Just clone this repo and import /dist/css/materialize-addon.css
Then you have class called button-group.
Just wrap your buttons in a div and apply the class to it.

@kampfkeks Nice work, are you planning to merge your repo with the official one?
I mean do you think the materialize-team could be interested in pulling your extensions?

sure but just wanted to provide a quick way of handling it

Wow :+1: this was really quick :)

I'll keep this open until we get some feedback from the materialize team regarding your pull request...

Is there no way to adjust the width of buttons, at all?

@keyscores
.some-class {
width: 70px;
}
Some Button

@acburst Will this feature get into the next release?


fix: Remove collection name generator in auto_retriever

Description
We have one method to generate collection name based on user's content path or url, but the generated name may not follow collection naming rule of the vector DB,  use the timestamp as default name would be more high efficiency and more robust
Motivation and Context
#859

[x] I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds core functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (update in the documentation)
[ ] Example (update in the folder of example)

Implemented Tasks

[ ] Subtask 1
[ ] Subtask 2
[ ] Subtask 3

Checklist
Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

[ ] I have read the CONTRIBUTION guide. (required)
[ ] My change requires a change to the documentation.
[ ] I have updated the tests accordingly. (required for a bug fix or a new feature)
[ ] I have updated the documentation accordingly.

close this PR since updated in https://github.com/camel-ai/camel/pull/872


Add missing commata to setup.py classifiers

Properly separate setup classifier strings by a comma, otherwise they
end up as a single string (can be observed in the output created by
setup.py bdist_wheel).

Sorry, we raced each other on this change - I added this when I noticed that it was broken as part of the 0.12.4 release.

no problem as long as it's fixed :+1:


Timezone column useless in craftai.pandas

The timezone is already stored in the dataframe index.
CraftAiBadRequestError: 'cdd465b4-7151-4fea-84d5-8c99f9d8c6a4 - [ContextError] A Time type ("day_of_week" or "time_of_day" or "day_of_month" or "month_of_year") is defined and marked as generated but "timezone" is not defined. Time types generated can\'t be defined without a timezone.

So if the index is tz-aware, no need to throw this error. And if the index isn't tz-aware, check for a timezone column.

#161 solved this issue.


DevTestLabs: changed java naming of devtestlab to devtestlabs, added java readme

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-go

Automation for azure-sdk-for-java

Can one of the admins verify this patch?


Save/Load shader code

To/From local storage?

Would be great. Also is to possible to make hot-reload? For example I would edit file from VS Code and see changes in browser instantly.


Fix passing args to py.test on POSIX systems

Use shell=True only for MS Windows when executing py.test.
Ref: https://github.com/aldanor/pytest-watch/commit/dc066e212#commitcomment-11887976

Thank you, @blueyed!

Just deployed v3.2.0 Let me know if something is still broken for you, @blueyed.


No module named 'bitcoin_tools.core'

Hello,
I am installing all the packages using pip command but still i am facing the below error.
Traceback (most recent call last):
File "C:\Users\GSK\AppData\Local\Programs\Python\Python37-32\mybit.py", line 1, in
from bitcoin_tools.core.keys import generate_keys, store_keys
ModuleNotFoundError: No module named 'bitcoin_tools.core'
How can i overcome this error. Please guide me.

Looks like you're trying to install the library using Python3, but the library is written in Python2.
You should use a Python2 interpreter.

====================== RESTART: C:/Python27/firstbtc.py ======================
Traceback (most recent call last):
File "C:/Python27/firstbtc.py", line 1, in
from bitcoin_tools.core.keys import generate_keys, store_keys
ImportError: No module named bitcoin_tools.core.keys
I am using, python 27 but still above error is getting. How to access this package.

====================== RESTART: C:/Python27/firstbtc.py ======================
Traceback (most recent call last):
File "C:/Python27/firstbtc.py", line 1, in
from bitcoin_tools.core.keys import generate_keys, store_keys
ImportError: No module named bitcoin_tools.core.keys
I am using, python 27 but still above error is getting. How to access this package.

Can you provide what file or script are you running so I can test this myself?

Can you provide what file or script are you running so I can test this myself?

Installing packages
pip install python_bitcoin_tools
pip install bit
See the below script which is provided in the website.
from bitcoin_tools.core.keys import generate_keys, store_keys
from bitcoin_tools.wallet import generate_wif, generate_btc_addr
First of all the ECDSA keys are generated.
sk, pk = generate_keys()
Then, the Bitcoin address is derived from the public key created above.
btc_addr = generate_btc_addr(pk)
Both the public and private key are stored in disk in pem format. The Bitcoin address is used as an identifier in the
name of the folder that contains both keys.
store_keys(sk.to_pem(), pk.to_pem(), btc_addr)
Finally, the private key is encoded as WIF and also stored in disk, ready to be imported in a wallet.
generate_wif(btc_addr, sk)
And error:
Traceback (most recent call last):
File "C:\Python27\FirstBtc.py", line 1, in
from bitcoin_tools.core.keys import generate_keys, store_keys
File "C:\Python27\lib\site-packages\bitcoin_tools_init_.py", line 1, in
from bitcoin_tools.S256Point import *
File "C:\Python27\lib\site-packages\bitcoin_tools\S256Point.py", line 168, in
0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8)
File "C:\Python27\lib\site-packages\bitcoin_tools\S256Point.py", line 32, in init
a, b = S256Field(A), S256Field(B)
File "C:\Python27\lib\site-packages\bitcoin_tools\S256Point.py", line 16, in init
super().init(num=num, prime=P)
TypeError: super() takes at least 1 argument (0 given)
i am using python2.

Installing packages
pip install python_bitcoin_tools
pip install bit
See the below script which is provided in the website.
from bitcoin_tools.core.keys import generate_keys, store_keys
from bitcoin_tools.wallet import generate_wif, generate_btc_addr
First of all the ECDSA keys are generated.
sk, pk = generate_keys()
Then, the Bitcoin address is derived from the public key created above.
btc_addr = generate_btc_addr(pk)
Both the public and private key are stored in disk in pem format. The Bitcoin address is used as an identifier in the
name of the folder that contains both keys.
store_keys(sk.to_pem(), pk.to_pem(), btc_addr)
Finally, the private key is encoded as WIF and also stored in disk, ready to be imported in a wallet.
generate_wif(btc_addr, sk)
And error:
Traceback (most recent call last):
File "C:\Python27\FirstBtc.py", line 1, in
from bitcoin_tools.core.keys import generate_keys, store_keys
File "C:\Python27\lib\site-packages\bitcoin_tools_init_.py", line 1, in
from bitcoin_tools.S256Point import *
File "C:\Python27\lib\site-packages\bitcoin_tools\S256Point.py", line 168, in
0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8)
File "C:\Python27\lib\site-packages\bitcoin_tools\S256Point.py", line 32, in init
a, b = S256Field(A), S256Field(B)
File "C:\Python27\lib\site-packages\bitcoin_tools\S256Point.py", line 16, in init
super().init(num=num, prime=P)
TypeError: super() takes at least 1 argument (0 given)
i am using python2.

Oh OK, I see.
Looks like you have not properly installed the library. You need to follow the installing instructions under INSTALL.md, otherwise python cannot find the library.

Oh OK, I see.
Looks like you have not properly installed the library. You need to follow the installing instructions under INSTALL.md, otherwise python cannot find the library.


Task/sand matic integration

Description
Adding SandPolygonDepositor, a wrapper contract to allow L1 funds locking in a single transaction.
Checklist:

[x] Pull Request references Jira issue
[x] Pull Request applies to a single purpose
[x] I've added comments to my code where needed
[x] I've updated any relevant docs
[x] I've added tests to show that my changes achieve the desired results
[x] I've reviewed my code
[x] I've followed established naming conventions and formatting
[x] I've generated a coverage report and included a screenshot
[x] All tests are passing locally

I think maybe there's a typo in the directory name... /sandPolyon... instead of /sandPolygon...

we should move to solc 8 as we will be using it for our new contracts

Moved it to 0.8 folder


E-book title responsive issue

On screens smaller than 1441px, the ebook title moves to the top of the page but staying vertical.
Eg. https://ebooks.lullabot.com/ebooks/rogue-university/table-of-contents/

@huntermacd this might get fixed as you're working on #20 but wanted to call it to your attention since it's a responsive prob

Fixed as part of #20.


Missing tag/release

https://rubygems.org/gems/clamby/versions/1.6.9 and https://github.com/kobaltz/clamby/commit/52b6ff47d12f30470ab0a8b05fa96308f130f3aa are out, but there's no tag/release/etc.
As a result, Dependabot can't show the changes

Impact: this looks slightly like a dodgy release by a malicious actor who has potentially compromised your rubygems account.
As clamby is used for AV scanning, it's a plausible target.
The reality is it's a non issue, but it seems alarming at first glance!

Thanks for letting me know. I noticed that the TravisCI wasn't running the specs and got distracted with getting GitHub Actions put in place so that the tests would still be running. I've created this tag, but wasn't able to select back to the actual commit to get it in sync through the UI so I went ahead and bumped the version again with the changes from the Github Actions effort. Thanks again!


[Event Change Request] Add parameter to OnBeforeFilterByQuantityPer event in Codeunit 5870 "Calculate BOM Tree"

Describe the request
Hi team, we need a new parameter into the event OnBeforeFilterByQuantityPer in the procedure GenerateProdCompSubTree of Codeunit 5870. The parameter to add is the variabile ParentBOMBuffer or, alternatively, BOMBuffer. So finally the event should change in this way
Existing Event:
[IntegrationEvent(false, false)]
local procedure OnBeforeFilterByQuantityPer(var ProductionBOMLine: Record "Production BOM Line"; var IsHandled: Boolean)
begin
end;
New Event:
[IntegrationEvent(false, false)]
local procedure OnBeforeFilterByQuantityPer(var ProductionBOMLine: Record "Production BOM Line"; var IsHandled: Boolean; ParentBOMBuffer: Record "BOM Buffer")
begin
end;
Additional context
With the new parameter it will be possibile to change the filters applied to the ProdBOMLine variable, or to add new filters by using the fields of the ParentBOMBuffer variable, before calling the FindSet instruction.
Internal work item: AB#527535

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: .


Can't install requirements

I get this when running pip install -r requirements.txt:
ERROR: Could not find a version that satisfies the requirement torch==1.10.0 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1)
ERROR: No matching distribution found for torch==1.10.0

Any reason I shouldn't require torch==1.13.1 (last v1 release) instead?

I finally got it working with a few small tweaks, so I'll send a PR.


Add Bash shell language support.

I will personally do this if no one else takes it up.

Closed due inactivity. I don't have plans to add it myself, but if someone want to pick it up, feel free to do so!


PORTALS-2858: in progress

Verified sending files to the download cart from a materialized view works when pointing to the staging stack.  And exporting files to CAVATICA works properly (import from CAVATICA works!)


用户名&密码

-U, --proxy-user user:password Proxy user and password

https://github.com/lsk569937453/rcurl/releases/tag/0.0.20 done!


[fix] Wrong samples operator managementState JSON path

The reference to  spec.architectures.managementState is wrong. It should read spec.managementState instead.

Learn Build status updates of commit 5d65d28:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/openshift/howto-add-update-pull-secret.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@konghot,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off

#sign-off


ParseInt: cannot use int64 value as type int in assignment when bitsize 0

What version of Go are you using (go version)?

$ go version
go version go1.17.1 darwin/arm64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/andig/Library/Caches/go-build"
GOENV="/Users/andig/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/andig/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/andig/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.17.1/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.17.1/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.17.1"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/andig/htdocs/evcc/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sv/rs_453y57xj86xsbz3kw1mbc0000gn/T/go-build2034894606=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version go1.17.1 darwin/arm64
GOROOT/bin/go tool compile -V: compile version go1.17.1
uname -v: Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101
ProductName:	macOS
ProductVersion:	11.5.2
BuildVersion:	20G95
lldb --version: lldb-1<IP_ADDRESS>
Apple Swift version 5.4.2 (swiftlang-1<IP_ADDRESS> clang-1<IP_ADDRESS>)

What did you do?
Convert to platform int: https://play.golang.org/p/DtO5lhXBx2U
var i int
i, _ = strconv.ParseInt("1", 10, 0)

What did you expect to see?
No compile error
What did you see instead?
./prog.go:7:7: cannot use int64 value as type int in assignment

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions

I didn‘t intend to ask a question. I was expecting bitsize 0 to convert to int, not int64 as the function documents.

The function document a return type of int64, there is no magic type conversion

To make this work you need dependent tpyes, so types that depend on some provided values. Go does not have dependent types.


Role colors are still broken

PR #62 supposedly fixes it but actually doesn't. The classes used are wrong, the actual class is wrapper-1ZcZW- and not roleMention-11Aaqi as seen here:

Reactions and mentions are still broken for me too

@Taupe What version of the theme do you have?

For me too, the "ON" text when replying is the wrong color, and when reacting, the outline is gone as expected but the color is still the wrong one.


REPL failure code decorator persists on successful code

Tested on WSL and Codespaces and experienced the same issue.  When using the Run Previous Command, the keyboard interrupt produces a failure decorator and then causes the similar behavior for subsequent code runs.
Repro:

Send code to the REPL and observe the code decorators that appear
Send a line that will result in a failure
Observe the failure decorator that appears as expected
Send code that should be successful
Observe the failure decorator that persists

Repro for run previous command bug:

Send a few lines of code to the REPL
Trigger the run previous command
Run a previous statement
Observe the failure decorator that persists

Codespaces:
https://github.com/microsoft/vscode-python/assets/60238438/7cb959ad-42d0-4bb8-a930-4e4bbe9b16c2
WSL:

There are two parts to this issue:

The wrongly set/cached success/failure decoration

KeyboardInterrupt that you are seeing

Should be fixed with PR this iteration

This is expected behavior (check pwsh run recent history you will see its equivalent 'control c'), but I will look into ways of possibly suppressing this keyboard interrupted error in the middle of a REPL session.


Default state of Caps Lock

Hi Guys.Is there an option to check what state the caps lock is in before it's triggered?I haven't found any method that tells that,except using Win API directly.The problem is,when I press CapsLock,it has already a state 'active/non active' ,and I need to know it to identify correctly the state after the button has been pressed.Thanks.

There isn't yet, but there will be soon. See #946.
Usually checking the lock key state isn't what one wants, though. What will you use the state for?

Please see #946 for updates on this feature.


pull request for e2e test at 01/02/2017 00:15:05

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Correctly handle on_reload, on_detach, refactor indexing functions

Ref: #12
Depends on: #18
Addresses point 6 of my original PR. Also refactored functions which perform indexing.
Fixes #14.

Apologies for not contributing to discussion and adding any value, just wanted to say big thanks to you @dmitmel for all your contributions. You guys rock!

Rebased

I have one question. Do you think the first asynchronous indexing is useful or not?
I have same opinion that the first async indexing can't be complete correctly (because the buffer can be changed by the user during it).

@dmitmel has higher skills than me. You are great!

@dmitmel I'm sorry. My English may not be understood.
I have a question.
Do you think the first asynchronous indexing makes sense? If synchronization is enough for the first indexing, I think it's better to remove the asynchronous logic.
First, it indexes everything synchronously, and from there it incrementally processes via events.
google translated

(Please wait, I'll respond later, I haven't forgotten about this ticket)

I have one question. Do you think the first asynchronous indexing is useful or not?

Yes. I think it is. I see two purposes in it:

I consider the buffer source "dumb completion" as opposed to Language Servers which provide "smart completion". If I start editing a new file, the buffer source will start indexing it, but with async indexing I will have much less lag due to blocking, I'll most likely receive completions from the Language Server right away (since they typically index the whole project beforehand) and won't be particularly sad that some random word at the end of the file couldn't be completed on the first keystroke (but since isIncomplete is set, I will see it after typing for a bit).
If I accidentally open a big file and start editing it, the editor won't freeze, but I will be able to see high CPU usage and close the editor. Here async indexeing is a fail-safe mechanism for big files.

Though I do think that the default interval can be reduced. On my machine each 1000 lines take about 10 ms to index, so I think it's fair to set the interval to 40 ms or something like that, not 200. 10ms per chunk leaves room for nearly 60 FPS rendering, which I think is good enough.

Do you think the first asynchronous indexing makes sense? If synchronization is enough for the first indexing, I think it's better to remove the asynchronous logic.

I have same opinion that the first async indexing can't be completed correctly (because the buffer can be changed by the user during it).

I have an idea how to fix this. I'll implement it tomorrow in #23 which I have marked as a draft. But let's discuss this in that PR and keep merging the other PRs. Could you please take a look at #25? I'd prefer to get your comments and merge that one first and rebase my other stuff on top of it.

OK. Thank you for response.
I'm trying to realize the real asynchronous operation in neovim's Lua with regex support.
https://github.com/hrsh7th/nvim-lua-rpc-example-with-headless
it might be promising to use in this plugin.


Fix path and upgrade version of @vuex-orm/core

Is possible to check and fix it?

Hi @tomas-kulhanek ,
can you use the next branch?

Omg, im so sorry 🤦

NP, thanks mate.
I hope you don't have any issue with the next branch.

It`s ok :) thanks. I must study vuex-orm :)

hehe, Good Luck :)


Release notes seem to be off

Looking at the release notes https://github.com/rafaqz/Rasters.jl/releases/tag/v0.5.0 I see that many of the carried over from previous releases, see https://github.com/rafaqz/Rasters.jl/releases?page=3; presumably something's off with the autogeneration.
Also, clicking on "Releases" on the main page gets one to https://github.com/rafaqz/Rasters.jl/releases, which first list the old GeoData.jl releases.  Not sure something can be done about this though.
Last, just a wish: I just had a look at https://github.com/rafaqz/Rasters.jl/releases/tag/v0.5.0 and I don't know what is breaking. Would be great if it was documented, just a "(breaking)" behind the closed issue/merged PR would be perfect.

Wow yes seems that has been happening since v0.4.0. Could this be a Tagbot problem? Or is it a github thing? I honestly have no idea how that actually works and calculates the changes. Maybe we should make sure the tagbot script is correct.
But, if the releases were accurate you could see what is breaking its:
https://github.com/rafaqz/Rasters.jl/pull/352
which changes getproperties on RasterStack so its like a NamedTuple and retrieves its Raster layers by name. Before it was just getfield. Nothing else breaks.

Ok fixed:
https://github.com/rafaqz/Rasters.jl/releases

Maybe we should always put BREAKING in the PR title so its easier to see which one is responsible

Excellent, thanks to much!

Thanks for pointing it out those were very confusing release notes


Correctly display of Unicode characters

Greetings,
Unicode characters were not being properly encoded on the reactor index.
Before

## After

Thanks!


Add test for clGetEventInfo info queries.

Test clGetEventInfo() info queries from event returned by command-buffer enqueue for the single command-queue to command-buffer case:

CL_EVENT_COMMAND_TYPE is CL_COMMAND_COMMAND_BUFFER_KHR
CL_EVENT_COMMAND_QUEUE
CL_EVENT_CONTEXT
CL_EVENT_COMMAND_EXECUTION_STATUS
CL_EVENT_REFERENCE_COUNT

Merging as superseded PR https://github.com/KhronosGroup/OpenCL-CTS/pull/1602 with the same content had approvals from 2 other vendors.


Cherrypick #12860 into release 1.4

Description
Because of Bullshark Quests, there can be a higher change of overloading. Tightening the transaction backlog limit a bit before adding more congestion control mechanisms.
Test Plan
CI

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[ ] protocol change
[ ] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes

@mwtian v1.4.2 is going out to mainnet tomorrow, so this will have to go out with v1.5.0

Talked to @ebmifa off thread, if this becomes necessary, we can include it in another release.


Policy hosted_domain signup

We should create a policy on the hosted_domain which defines if signup with a corresponding email is still possible -> see caos/citadel#1 , or if it is denied.

#117 in favor


Allow IdentityX app ids to be set via env

staging app ids set on staging containers already

 Set up PMMI/IdentityX


Totum apis for generating the metadata

Our contracts now store a link to totum that should return the metadata. The endpoint should return json that follows the opensea's metadata standard, along with some custom attributes.
Custom Attributes:

metaverse_url: String value that contains the link to metaversefile that the app will use to load the object

Our contracts also supports custom traits/attributes for NFTs. Since totum is going to return the metadata as json it must receive these traits from contract.
One way of doing it is to append these values as query params. Totum api should parse these traits and return them following the opensea standard. That is:
Link = https://[totumLink]/?attributes=[{"trait_type": "power", "display_type": "boost_number", "value": "100"}]
{
"attributes": [
{
"trait_type": "power",
"display_type": "boost_number",
"value": "100"
},
]
}


feat(chart): productionize helm chart

Add README
Generate a values JSON schema and set up helm lint
Add more description for the values
Tweak a Deployment template

@kkaneda Yes, I would make a similar change to other dependency charts. Could you please register at the ArtifactHub and share your username? This is necessary to add a member to the organization.

Sure @Ladicle ! My username is kkaneda (same as the github account).


Datagrid pageSize is not saved to localestore after page refresh

Describe the bug
I'm trying to get server driven pagesize to work, but everytime I change pagesize, after page refresh jumps back to the default value.
Here is the example:
https://stackblitz.com/edit/clarity-datagrid-pagination-resize-1ekwae?file=src/app/app.component.ts
Versions
Clarity project:

[ ] Clarity Core
[x] Clarity Angular/UI

Clarity version:

[ ] v3.x
[ ] v4.x
[x] v5.x

Framework:

[x] Angular
[ ] React
[ ] Vue
[ ] Other:

Framework version:
Angular 13
Is this a bug or am I using the pageSize incorrectly?

You need to pass the stored value to the [clrDgPageSize]="pageSize"


[timeseries] use chronos test fixture in smoke tests

Issue #, if available:
Description of changes:
Previously time series smoke tests and model tests did not reuse the hf_model_path test fixture, leading to about ~250 downloads on Hugging Face for each CI run. This PR brings the number to ~10.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


how to use tfLite c_api

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 22.04.4 LTS
TensorFlow installed from (source or binary):
TensorFlow version (or github SHA if from source):

Provide the text output from tflite_convert
cant find information of how to build the lite c_api

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Also, please include a link to a GraphDef or the model if possible.
Any other info / logs
I used the tensorflow documentation of how to build the library with c_make but the terminal crush and close automatically in the step 5 whitout any error msg

I didn't find the problem, but I used Bazel as an alternative.
Clone the TensorFlow Lite repository.
Build the library using this command: bazel build -c opt //tensorflow/lite/c:libtensorflowlite_c.so.
Copy libtensorflowlite_c.so to your folder from bazel-bin/tensorflow/lite/c/.
Compile: gcc -o hello_tf hello_tf.c -I. -Llib/tensorflow/lite -ltensorflowlite_c.
Copy and paste your dynamic library to /usr/lib: sudo cp lib/tensorflow/lite/libtensorflowlite_c.so /usr/lib.
Almost done: ./hello_tf.


RFE: Initial volume of Gluster in GCS

We should go with replica 3 (1x3) volume type, and below config in my opinion in GCS. We will start with bare-minimum volume options, and then add features along the way.
For mvp0:
Brick Graph:
posix
access-control
locks
upcall
io-threads
selinux # do we need it?
index
io-stats
server

Client graph: (Goal, all applications should run, performance next).
client
replica
dht
io-stats

I will start another issue with Options available in each of these translators, and we have to agree to the default options on each of these.
@gluster/gluster-all

Default template of the volfiles can be found at https://github.com/gluster/glusterd2/blob/master/glusterd2/volgen/defaults.go#L47 .

@nbalacha @raghavendrahg @xhernandez


remove unused cmd

Looks like my change worked, but now the results aren't getting commented into the PR

Ohh ya.

@esimkowitz its a bug at our end, we are on it.


[Bug] Any widget labels or string values are not escaped in Python code gen (backslash -> error!) [sf#182]

Reported by kxroberto on 2016-03-23 19:58 UTC
.. so for example I get this rendered by wxg0.7.2 (and 0.7.1) in init():
self.the_path = wx.TextCtrl(self, wx.ID_ANY, "C:\some\where\")

=>  compile SyntaxError. luck! :)  because many backslashes go through and produce false chars silently without clear error message.
Same with wx.StaticText  label strings (and probably other things).
wxg0.6.3 at least made it correct like
self.the_path = wx.TextCtrl(self, wx.ID_ANY, "c:\\some\\where\\")

Commented by kxroberto on 2016-03-23 22:13 UTC
This patch in codegen.init.BaseLangCodeWriter.quote_str solves:
--- _orig/__init__.py
+++ ./__init__.py
@@ -2180,14 +2180,14 @@

         # find and escape backslashes
         s = re.sub(
-            r'\\\\+',
+            r'\\+',
             self._do_replace_backslashes,
             s
             )
         # the string will be embedded within double quotes, thereby double
         # quotes inside have to escape
         s = re.sub(
-            r'\\?"',
+            r'"',
             self._do_replace_doublequotes,
             s,
             )

I wonder why the language independent quotestr  tries to (pre)escape things half way. And then the codegen.pycodegen.BaseLangCodeWriter._quote_str  tryies 'additional' things.  Doesn't the lang-specific quoter know best at all and do it all in one simple shift - e.g. python: repr(s.encode('ascii'))   ; and on encoding failure: repr(s)
Attached file wxg0.7.2_strquote2bugs.patch:
diff -ur --strip -x '*.pyc' _orig/__init__.py ./__init__.py
--- _orig/__init__.py
+++ ./__init__.py
@@ -2180,14 +2180,14 @@

         # find and escape backslashes
         s = re.sub(
-            r'\\\\+',
+            r'\\+',
             self._do_replace_backslashes,
             s
             )
         # the string will be embedded within double quotes, thereby double
         # quotes inside have to escape
         s = re.sub(
-            r'\\?"',
+            r'"',
             self._do_replace_doublequotes,
             s,
             )

Updated by cgrohmann on 2016-04-19 20:26 UTC

assigned_to: Carsten Grohmann

Commented by cgrohmann on 2016-07-19 16:21 UTC

Description has changed:

Diff:

--- old
+++ new
@@ -1,11 +1,11 @@
 .. so for example I get this rendered by wxg0.7.2 (and 0.7.1) in __init__():
-
+~~~
 self.the_path = wx.TextCtrl(self, wx.ID_ANY, "C:\some\where\")
-
+~~~
 =>  compile SyntaxError. luck! :)  because many backslashes go through and produce false chars silently without clear error message.
 Same with wx.StaticText  label strings (and probably other things).

 wxg0.6.3 at least made it correct like
-
+~~~
 self.the_path = wx.TextCtrl(self, wx.ID_ANY, "c:\\some\\where\\")
-
+~~~

Commented by cgrohmann on 2016-07-19 16:21 UTC
Hi,
The changed escaping algorithm is a trade-off between more and less escaping. The current decision is to do a minimal escaping.
You can format your texts with tabs ("\t") and newline ("\n") characters currently.
More escaping should be implemented in the application logic.
Some thoughts about escaping:
input
text with\ttabs

shown
text with        tabs

input
text with a\nline break

shown
text with a
line break

But
c:\newfile

generates
c:
ewfile

or
c:\temp

generates
c:        emp

What are your expectations? What do you suggest to handle this trade-off?
Regards,
Carsten

Commented by cgrohmann on 2016-09-20 18:01 UTC
I've transferred this topic into a new feature request [features:#39] to discuss and implement a solution that handles both approaches in a appropriate manner.

Updated by cgrohmann on 2016-09-20 18:03 UTC

status: open --> wont-fix

Updated by cgrohmann on 2016-09-20 18:15 UTC

status: open --> wont-fix


Fixies [Zero-trust network for web applications with Azure Firewall and Application Gateway]

A tiny change based a bug created by a contributor
fixies-https://github.com/MicrosoftDocs/architecture-center/issues/3262

Learn Build status updates of commit 034e78f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/example-scenario/gateway/application-gateway-before-azure-firewall-content.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


[Bug]: Using mix iceberg in spark has some docs problems

What happened?
I want to use mix iceberg catalog in Spark and I set it up according to the official website documentation :

Then I ran into the following error:

It seems the names of these classes have not changed from 'Arctic' to 'Amoro' yet. After I change the name to 'Arcitc', it works fine.
Affects Versions
master
What engines are you seeing the problem on?
Spark
How to reproduce
Using mix iceberg catalog according to the official website documentation.
Relevant log output
See "What happened".

Anything else
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

BTW, there are still many classes and variables using ‘Arctic’ in the current Amoro project code. Should we modify them uniformly?

The class still be ArcticSparkExtensions

We have not changed the package and class name for renaning Project name.
Therefore, the content in the document is wrong, can you help to correct it?

We have not changed the package and class name for renaning Project name. Therefore, the content in the document is wrong, can you help to correct it? @HuangFru

Sure


Opensearch Dashboards startup probe

Hi,
Making usage of operator using OpenSearch Dashboard 2.0.0 per default sets health route authentication. When trying to disable the authentication route for /api/status so kube-probe could check it, I get invalid field:
additionalConfig:
opensearch_security.auth.unauthenticated_routes: |
['/api/reporting/stats', '/api/status']
On user guide it says for opensearch_dashboard.yml setup we could use this field. Any changes on last version ?
error: error validating ".\\opensearch-cluster.yaml": error validating data: ValidationError(OpenSearchCluster.spec.dashboards): unknown field "additionalConfig" in io.opster.opensearch.v1.OpenSearchCluster.spec.dashboards; if you choose to ignore these errors, turn validation off with --validate=false

Hi @danielbichuetti. With the merging of #175 and helm chart version 1.0.3 this is now fixed. Can you please try again?

Hi @swoehrl-mw. Sorry for the delay, I'll take a look this weekend. Thank you very much !

Problem solved, closing issue. Thanks !


Spark Dynamic Automatic scaling issue

Hi ,
Spark Version is 2.4.4
I have enabled the following configuration on the spark yaml applicaiton. But it fails to start as executors keeps getting killed with exit code 1.
 "spark.dynamicAllocation.enabled": "true"
 "spark.dynamicAllocation.initialExecutors": "1"
 "spark.dynamicAllocation.minExecutors": "2"
 "spark.dynamicAllocation.maxExecutors": "3"
 "spark.dynamicAllocation.executorIdleTimeout": "7000s"
 "spark.shuffle.service.enabled": "true"
 "spark.dynamicAllocation.shuffleTracking.enabled": "true"
 "spark.network.timeout": "700s"
 "spark.shuffle.registration.timeout": "6000s"

Lost executor 1 on <IP_ADDRESS>: Unable to create executor due to Unable to register with external shuffle server due to : Failed to connect to /<IP_ADDRESS>:7337
spark-driver-k8s.log
Regards
Vishnu

Executor logs
2020-01-02 09:28:12 ERROR Logging$class:91 Failed to connect to external shuffle server, will retry 1 more times after waiting 5 seconds...
java.io.IOException: Failed to connect to /<IP_ADDRESS>:7337
at org.apache.spark.network.client.TransportClientFactory.createClient(TransportClientFactory.java:245)
at org.apache.spark.network.client.TransportClientFactory.createUnmanagedClient(TransportClientFactory.java:201)
at org.apache.spark.network.shuffle.ExternalShuffleClient.registerWithShuffleServer(ExternalShuffleClient.java:142)
at org.apache.spark.storage.BlockManager$$anonfun$registerWithExternalShuffleServer$1.apply$mcVI$sp(BlockManager.scala:294)
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160)
at org.apache.spark.storage.BlockManager.registerWithExternalShuffleServer(BlockManager.scala:291)
at org.apache.spark.storage.BlockManager.initialize(BlockManager.scala:265)
at org.apache.spark.executor.Executor.(Executor.scala:118)
at org.apache.spark.executor.CoarseGrainedExecutorBackend$$anonfun$receive$1.applyOrElse(CoarseGrainedExecutorBackend.scala:83)
at org.apache.spark.rpc.netty.Inbox$$anonfun$process$1.apply$mcV$sp(Inbox.scala:117)
at org.apache.spark.rpc.netty.Inbox.safelyCall(Inbox.scala:205)
at org.apache.spark.rpc.netty.Inbox.process(Inbox.scala:101)
at org.apache.spark.rpc.netty.Dispatcher$MessageLoop.run(Dispatcher.scala:221)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /<IP_ADDRESS>:7337
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:323)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:633)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
... 1 more
Caused by: java.net.ConnectException: Connection refused
... 11 more

Spark on Kubernetes doesn't support dynamic resource allocation yet.

When is the plan to support this ? Any plan in upcoming release ?

I am wondering if the comment made by liyinan926 is still true. My understanding is that it is supported if you use spark-3.0

@sushiljacksparrow what is supported in Spark 3.0 is a form of dynamic resource allocation that is different than what you get in other scheduler backends. See https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/issues/616.

Dynamic allocation via shuffle tracking will be supported in https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/pull/976.

@liyinan926 is the feature live now with dynamic scaling out, scaling in of executors ?


Seach for applink urls and add to link data

Look for ios and android applink urls:
<meta property="al:ios:url" content="applinks://docs" />
<meta property="al:android:url" content="applinks://docs" />
and includes them in link data if found:
{     $ios_deeplink_path: 'applinks://docs',     $ios_deeplink_path: 'applinks://docs' }
**Reviewers: ** @jsaleigh @TheMarshal99

Can you reference the JIRA in the commit please: JOUR-642

Typo in the commit message: { $ios_deeplink_path: 'applinks://docs', $ios_deeplink_path: 'applinks://docs' }
One of them should be $android_deeplink_path

@yntema a few of the tests failed, for instance: https://saucelabs.com/jobs/a8be8c08da65439d9b490920bde7b559
This does not seem to be the normal couldn't connect to SauceLabs issue

@jsaleigh I think I know why the tests are failing. I'll get it fixed

👍


Debug travis failure

Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

Debugging only, please don't merge.

The travis issue was incorrect error handling (err reuse).
The gccgo issue is related to pthread not being auto-detected when building as part of a sub-project, so hardcoding it into our own LDFLAGS.


PrestaShop 1.6 does not support the console: no module auto-install can be performed yet

The PrestaShop console has been introduced by branch 1.7, but it is really handy when it comes to installing modules in many use cases.
PrestaShop Flashlight does not intend to backport features, nor fix security issues to any PrestaShop version in the nature. However for compatibility testing, extending this capability is likely to match CI/CD users eager at extending support of their modules to the maximum audience possible.
I suggest to copy, repack, and commit a light version of the console within the 1.6 Docker images of PrestaShop Flashlight. This can be done through the editing of the assets/patch.sh file, and removing the check made in ./assets/run.sh:
echo "Auto-installing modules with PrestaShop v1.6 is not yet supported";

I guess it is a very good "first issue" to take for anyone wanting to give a hand on this project. Thank you for your support!

Hello @jokesterfr ,
In order to install module through CLI for prestashop 1.6 you can use the console tool i have done.
Just download the latest phar file and then you can call the command :
php prestashopConsole.phar module:install modulename
You can read more about this project here : https://github.com/nenes25/prestashop_console
Feel free to ask if you need more information or if you want me to do a PR for its implementation,
Regards,

This is awesome @nenes25, I will check this out!

Another hint by @kpodemski, would be creating a file with:
<?php
require_once dirname(__FILE__) . '/config/config.inc.php';
Module::getInstanceByName('ps_accounts')->install();


topic T4 error

I am trying to learn through tutotial T4.
I find that the function :
partial_direct_Obs
seems not to be defined in any of the da_methods.
Could you help me in solving this issue?

https://github.com/nansencenter/DA-tutorials/issues/1


[BUG] Notify isn't working

When setting the pokémon to which i want to get notified in the filter part. i see them popping up on the map but the notify doesn't work. using the program on a Win10 PC

This is working for me on a Windows 10 PC. It comes through the Windows Notification System. Do you maybe have that disabled/muted?

euhm how do i check to see if this is on?

found out how to put the alarms on thenx


[RBAC] Add content_type-specific RoleDefinition validation

There are many validation rules that should exist for the permissions a user defines on a role definition. We have some validation rules in place now, but we should add more rules that can only be enforced when the content_type is known. For example, only permissions for that content type or child content types should be valid.

Originally stated case here is covered. I did validation work when adding the API endpoints and ran out of ideas to validate eventually. Some notes:
TODO:

something to prevent creating custom roles for teams
perhaps something to prevent creating custom organization roles with the member_team permission?
provide a way to get valid permissions for a given type

done:

do not allow editing or deleting managed role definitions
do not allow permissions for a role not valid for model or child models
do not allow editing a user or team assignment
deny request if a permission doesn't exist

Closing for now as original goals are mostly satisfied.