Cannot Define Interface Schema for Swagger UI

Here is my interface java class:
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        property = "type")
@JsonSubTypes(value = {
        @JsonSubTypes.Type(value = impl1.class, name = "IMPL_1"),
        @JsonSubTypes.Type(value = impl2.class, name = "IMPL_2"),
        @JsonSubTypes.Type(value = impl3.class, name = "IMPL_3"),
})
public interface InterfaceClass {
}

Here is my Request Java Class:
public class IncomingRequest {
   private String name;
   private InterfaceClass content;

  //getters and setters
}

When I look at my Controller (which takes IncomingRequest.java as a request body), I see this:
{
   "name" : "String",
   "content" : {}
}

I tried using @Schema from maven dependency below with anyOf() filled with all my implementation classes but I cannot get the Swagger API to pick up the Model Schemas.
<dependency>
            <groupId>io.swagger.core.v3</groupId>
            <artifactId>swagger-annotations</artifactId>
            <version>2.0.9</version>
        </dependency>

Please help!

Hi, @JasonSmiley.
As I understand, you are trying to use annotations from OAS 3.0. that is not currently supported.
For now release witch will support them is under work and will be releases in a few weeks.
I think that is related question https://github.com/springfox/springfox/issues/2457

@MaksimOrlov yes, it is trying to do the same thing as me, but, it seems like it's not working even using only Jackson Annotations - as you can see in my code I am also using Jackson Annotations but it doesn't seem to help


Bring revC2 firmware to the same level as revC1

These commits bring the firmware for revC2 to the same level as revC1.
This means you can read voltages, set alert levels, read alert levels, read alert status. Also alerts are properly handeled and the Vio switched off. After an alert was cleared, you can re-arm the alert.
This does not yet make use of the advanced features of the INA233, e.g. current measurement, current alerts or the enhanced voltage range of up to 36V. This will be developed at a later stage.
These changes do not alter the control request interface, so no API level change required.
This is the first part of #219

I've cherry-picked the first three commits that are unobjectionable and nicely improve our level of support for revC2.

The mentioned issues should be resolved now

Cherry-picked the ~ALERT commit. Regarding the cache, do you think we can poll and clear the alert in one operation while recording what happened, and then communicating that to the USB host separately? Essentially, making the "cache" logic common  for all revisions and moving it to main.c. This is just an idea and if it doesn't make much sense, please say so.

Regarding the cache, do you think we can poll and clear the alert in one operation while recording what happened,

Poll and clear in one operation won't work on revC2: when you clear the ~ALERT, you re-enable the Vio that was previously disabled by the hardwired logic. You have to disable the voltage regulator first. And for this you have to know which one, that means polling the status.
So poll and clear have to stay separate.

Essentially, making the "cache" logic common for all revisions and moving it to main.c.

I don't think that the cache for the alert status is that bad, so it could be made the default. IIRC, your main argument against the cache is that it could go out of sync with the hardware. But if we reset the adcs thoroughly during init in main (like I do now with the INA233), I don't see how that could happen.
If we move it to main, we'd have to translate it from the adc specific bits to a generic format though. Also main doesn't know about the ports yet, it just deals with port-masks. So we'd have to introduce a small array for the ports to main.

OK, I think this is probably fine. Can you rebase? Then I'll give it another look and probably merge.

I now think the cache and reset logic used in this PR should stay and be used for revC3 too, see https://github.com/GlasgowEmbedded/glasgow/issues/221#issuecomment-757494226 for details

I now think the cache and reset logic used in this PR should stay and be used for revC3 too, see https://github.com/GlasgowEmbedded/glasgow/issues/221#issuecomment-757494226 for details


Add Approximations

Feature Description

Create a new folder where we keep the approximations for our different functions (check syft_0.2.x)
Add tests for those approximations

Is your feature request related to a problem?

Have approximations for non-linear functions

Additional Context

We need to have a way to approximate non-linearities
Having more approximations methods to compute a non-linearity would allow flexibility depending on a user needs

@aanurraj you were working on this, right?

@aanurraj you were working on this, right?
Yes :)


Allow setting the thumbnail of storage items through StorageItemThumbnail.WriteAsync

Proposal: Allow setting the thumbnail of storage items through StorageItemThumbnail.WriteAsync

Summary

Currently, there is no way for UWP apps to provide thumbnails for storage items. There appears to already be an API for this, StorageItemThumbnail.WriteAsync, however StorageItemThumbnail.CanWrite always seems to be false, and attempting to write to the stream will result in an access denied error. This proposal is to enable setting the thumbnails for items through StorageItemThumbnail.WriteAsync.
Rationale

Thumbnails are often used as a preview of a file which makes it easier for end users to identify the contents of files, but unfortunately there currently isn't a way for apps to set item thumbnails (without using full trust) using universal APIs. UWP apps can only achieve this through the full trust process.
Developers targeting Windows 10x and HoloLens would be able to use thumbnails to enhance the user's experience when interacting with files. For example a PDF editor could set a thumbnail that consists of a preview of the first page of the document to make it easier for the user to identify the contents of the file.
Many apps (MS Journal, fluent screen recorder,  3D builder, to name a few) make a folder in a library to store documents, photos, videos, and other data related to the app. This proposal would allow developers to set a custom icon for that folder, making it easier for users to identify it.
Seemingly there is already an API that should be able to do this, it just doesn't seem to be implemented

Scope

Capability
Priority

This proposal will allow developers to set a StorageItem's thumbnail using StorageItemThumbnail.WriteAsync
Must

This proposal will allow applications to declare a thumbnail provider capability, similar to the one in win32
Could (would be pretty cool)

This proposal will allow applications to change the thumbnails of applications they don't have access to
Won't

Important Notes

Open Questions

How would this interact with user set icons on Windows 10?
Should end users be given a way to disable icon access, or reset the icons?
Should a new API be used instead of StorageItemThumbnail.WriteAsync?

Specifically, this API should integrate with the custom desktop.ini-specified icons for a folder (on Windows 10 desktop). It remains unclear how/if this could work for a standard StorageFile.

FWIW, the object has a WriteAsync method because it implements IRandomAccessStream which requires it. Good news is the CanWrite property is correct.
How do you envision the feature working? For example, you say:

For example a PDF editor could set a thumbnail that consists of a preview of the first page of the document to make it easier for the user to identify the contents of the file

But since the UWP app can only write to files the user has chosen, it can only write thumbnails if they user opens the file in the app (or grants it access to an entire folder, or has broadFilesystemAccess). Typically the process is driven by the Shell, which will create and cache thumbnails as-needed by using IThumbnailProvider.
Setting the desktop.ini content should already be possible I believe, as long as you have access to the folder and are using the CreateFileFromApp filesystem API.

FWIW, the object has a WriteAsync method because it implements IRandomAccessStream which requires it. Good news is the CanWrite property is correct.
How do you envision the feature working? For example, you say:

For example a PDF editor could set a thumbnail that consists of a preview of the first page of the document to make it easier for the user to identify the contents of the file

But since the UWP app can only write to files the user has chosen, it can only write thumbnails if they user opens the file in the app (or grants it access to an entire folder, or has broadFilesystemAccess). Typically the process is driven by the Shell, which will create and cache thumbnails as-needed by using IThumbnailProvider.

If the user creates a document and then saves it, or opens a document, then the application would have the access it needs to create a thumbnail.
I was also thinking was maybe making a thumbnail provider capability for universal apps, perhaps using an app service.
Something like this maybe?
App manifest:
<uap:Extension Category="windows.appService" EntryPoint="FileService.Preview">
  <uap:AppService Name="com.markdownpreview.controlservice" />
</uap:Extension>

Code:
namespace FilePreviewService
{
    public sealed class Preview : IBackgroundTask
    {
        private BackgroundTaskDeferral backgroundTaskDeferral;
        private AppServiceConnection appServiceconnection;
        private String[] inventoryItems = new string[] { "Robot vacuum", "Chair" };
        private double[] inventoryPrices = new double[] { 129.99, 88.99 };

        public void Run(IBackgroundTaskInstance taskInstance)
        {
            // Get a deferral so that the service isn't terminated.
            this.backgroundTaskDeferral = taskInstance.GetDeferral();

            // Associate a cancellation handler with the background task.
            taskInstance.Canceled += OnTaskCanceled;

            // Retrieve the app service connection and set up a listener for incoming app service requests.
            var details = taskInstance.TriggerDetails as AppServiceTriggerDetails;
            appServiceconnection = details.AppServiceConnection;
            appServiceconnection.RequestReceived += OnRequestReceived;
        }

        private async void OnRequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args)
        {
            // This function is called when the app service receives a request.
            // Get a deferral because we use an awaitable API below (SendResponseAsync()) to respond to the message
            // and we don't want this call to get cancelled while we are waiting.
            AppServiceDeferral messageDeferral = args.GetDeferral();
            var message = args.Request.Message;
            var returnMessage = new ValueSet();

            var props = new List<FileProperty>() {
                new FileProperty() {LocalizedName = "Hello", Value = "World!!!"}
            };

            // This code loads in a sample details for Files to display in the preview pane
            var json = JsonConvert.SerializeObject(props);
            returnMessage.Add("details", json);
            await args.Request.SendResponseAsync(returnMessage);

            messageDeferral.Complete();
        }

        private void OnTaskCanceled(IBackgroundTaskInstance sender, BackgroundTaskCancellationReason reason)
        {
            if (this.backgroundTaskDeferral != null)
            {
                // Complete the service deferral.
                this.backgroundTaskDeferral.Complete();
            }
        }
    }
}

I think adding a thumbnail provider capability is out of scope for this issue. Instead, I think the ask is: Make StorageItemThumbnail.WriteAsync work for files the app already has access to.

I think adding a thumbnail provider capability is out of scope for this issue. Instead, I think the ask should simply be: Make StorageItemThumbnail.WriteAsync work for files the app already has access to.

Ok, I updated the scope table

Sounds very do'able, 👍 from me. Nice job!

Setting expectations, this is unlikely to make the priority list (at least in the short-term) but we'll keep it on the backlog and I'll ping a few folks with some ideas. It would require brokering and thus additional complexity.

I was also thinking that maybe a thumbnail provider capability could be provided to universal apps, perhaps using an app service and passing a file access token as an argument.

This isn't feasible because the app would be provided access to arbitrary files on the system without user consent (just open the folder in Explorer, and all the files get sent to the UWP). We could special-case broadFilesystemAccess or only scope it to folders you have access to, etc. but it's a lot of work for a relatively niche feature. Just use runFullTrust instead.

I was also thinking that maybe a thumbnail provider capability could be provided to universal apps, perhaps using an app service and passing a file access token as an argument.

This isn't feasible because the app would be provided access to arbitrary files on the system without user consent (just open the folder in Explorer, and all the files get sent to the UWP). We could special-case broadFilesystemAccess or only scope it to folders you have access to, etc. but it's a lot of work for a relatively niche feature. Just use runFullTrust instead.

Makes sense, and I already removed it from the scope.

FYI, the property system API offers PKEY_Thumbnail and PKEY_ThumbnailStream as a way to read and write thumbnails to file formats that support it (.jpg via EXIF, .mp3 via ID3)


Proposed: path interceptors for http module

Feature Request
The HttpInterceptorService works fine with interceptors at the moment, the only downside is that all the interceptors are global and executed every time the an http request is done from the HttpInterceptorService
Proposed solution:
A way to provide interceptors and paths to intercept. So certain interceptors only apply to certain requests.
Proposed wildcards:
** to say anything after this is valid. (any number of url parts)
* to state anything after this is valid until the next /. (only a single url part)
Proposed Configuration:
CovalentHttpModule.forRoot({
      globalInterceptors: [AuthenticationInterceptor],
      pathInterceptors: [
          {interceptor: CustomInterceptor, paths: ['/apps**', '/jobs']},
          {interceptor: CustomInterceptor2, paths: ['/apps/**', '/logs/*/audit']},
        ],
    }),

This way AuthenticationInterceptor would still be applied globally, but there would be an extra configuration for interceptors and paths.
CustomInterceptor would only intercept requests done to an endpoint that contains '/jobsor/appswith anything after it since**would be a wildcard to setanything after this is ok`.
CustomInterceptor2 would only intercept /apps/ and anything after it, but notice the wildcard * to state that i only care that 1 path is between logs and audit.. hence it would intercept /logs/1/audit but it would intercept /logs/1/check/audit .

We can even remove the globalInterceptors part since ** means every url.
CovalentHttpModule.forRoot({
      interceptors: [
          {interceptor: AuthenticationInterceptor, paths: ['**']},
          {interceptor: CustomInterceptor, paths: ['/apps**', '/jobs']},
          {interceptor: CustomInterceptor2, paths: ['/apps/**', '/logs/*/audit']},
        ],
    }),


create() converts numbers to strings

Waterline version: 0.11.6
Node version: v4.4.6
NPM version: 2.15.5
Operating system: Calculate Linux

Hi!
It looks like waterline converts numbers to strings. Example:
Here's my model definition:
module.exports = {
  attributes: {
    purchasePrice: {
      type: "number",
      decimal: true,
      finite: true,
      min: 0,
      required: true,
      defaultsTo: 0
    }
  }
};

Here's controller:
module.exports = {
  find: function(req, res) {
    Purchase.create({
      purchasePrice: 1
    })
    .then(function(purchase) {
      res.json(purchase);
    })
    .catch(function(err) {
      console.log(err);
      res.send(err);
    });
  }
};

And when I call request http://localhost:1337/purchase, I get an error:
{
  "error": "E_VALIDATION",
  "status": 400,
  "summary": "1 attribute is invalid",
  "model": "Purchase",
  "invalidAttributes": {
    "purchasePrice": [
      {
        "rule": "number",
        "message": "Value should be a number (instead of \"1\", which is a string)"
      },
      {
        "rule": "finite",
        "message": "\"finite\" validation rule failed for input: '1'\nSpecifically, it threw an error.  Details:\n undefined"
      }
    ]
  }
}

Here is the example repo
How to reproduce:
$ sails new foo
$ cd foo
$ sails generate api purchase

Replace api/models/Purchase.js and api/controllers/PurchaseController.js with model/controller code above.
$sails lift

And open http://localhost:1337/purchase in your browser

Don't use type number, use type "int" or "integer"

need to change this in the docs, even the old ones


fix: make sure old secret keys are handled as before

This pull request includes a refactoring of the auth utils module to add a padding function for strings. Additionally, it fixes an issue in the auth utils module where the add_padding function was not being called if the secret key was valid. The ensure_valid_key function now properly handles both cases.

Working as expected.
LGTM


'Getting Started' page example counter app fails to run: Missing Field 'TextProperty'

Error description
The getting started simple counter example fails at runtime. I don't know if I've installed the wrong version of something, or if I'm missing some visual studio feature, but I'm getting Missing Field exceptions.
Steps to error:

created new F# "Console App" targetting .net7
added the nuget packages mentioned in 'package versions' below
replaced the Program.fs code with that from https://funcui.avaloniaui.net/
ran the program

The error
An uncaught exception is thrown from Textblock.text, see 'stack trace' below
Tech info and logs
Package versions:

Avalonia.FuncUI : 0.6.0-preview9
Avalonia.Desktop : 11.0.0-preview6
Avalonia.Themes.Fluent : 11.0.0-preview6

Stack trace
System.MissingFieldException
  HResult=0x80131511
  Message=Field not found: 'Avalonia.Controls.TextBlock.TextProperty'.
  Source=Avalonia.FuncUI
  StackTrace:
   at Avalonia.FuncUI.DSL.TextBlock.TextBlock.text.Static[t](String value)
   at Program.Main.view@14.Invoke(IComponentContext ctx) in H:\dev\apps\Filegraph.Elmish\Filegraph\Program.fs:line 17
   at <StartupCode$Avalonia-FuncUI>.$Component.Update@24.Invoke()
   at Avalonia.Threading.JobRunner.Job.Avalonia.Threading.JobRunner.IJob.Run() in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 205
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 38
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in /_/src/Windows/Avalonia.Win32/Win32Platform.cs:line 270
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken) in /_/src/Windows/Avalonia.Win32/Win32Platform.cs:line 215
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in /_/src/Avalonia.Base/Threading/Dispatcher.cs:line 62
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 123
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 214
   at Program.Program.main(String[] args) in H:\dev\apps\Filegraph.Elmish\Filegraph\Program.fs:line 67

The current preview release of FuncUI supports Avalonia 11.0.0-preview5. There are breaking changes between preview versions - preview 6 is not supported yet.


FOCUS_5: Forms submitted using buttons

In the Firefox Browser Console, the following error is reported:
ReferenceError: reference to undefined property de.role
Tool: AInspector Sidebar
Evaluation Library Version: <IP_ADDRESS>
Ruleset: HTML4 Legacy Techniques
URL: http://www.relegant.com/current-events/

The console links to this code on line 384 of rules_focus.js:
if (de.role === "button") {

FIxed bug by providing a default value of empty string for de.role and using the de.has_role property in focus rule 5


Cannot see a license when signing it

Go to https://lindat.mff.cuni.cz/repository/xmlui/handle/11858/00-097C-0000-0015-8DAF-4/ufal-licence-agreement?bitstreamId=476
get to the sign form, the space where license should be is empty

will be tested after deploy see #257


Unable to get Author & Assignee emailId from MergeRequest

Hi @gmessner
I am simply parsing MR's and try to get needed details.below is my code.
///
GitLabApi gitLabApi = new GitLabApi(GIT_URL, GIT_AUTHTOKEN);
List mergeRequests = gitLabApi.getMergeRequestApi().
getMergeRequests(GIT_PROJECT_ID, MergeRequestState.OPENED);
///
And I am trying to get the Author&Assignee email id from Single MR like below.
obj.put("author_name", mergeRequest.getAuthor().getName());
obj.put("author_email", mergeRequest.getAuthor().getEmail());
obj.put("assignee", mergeRequest.getAssignee().getName());
obj.put("assignee_email", mergeRequest.getAssignee().getEmail());
But for both email id, it's returning the NULL value.
Please correct me if am doing anything wrong.

I have tested the GitLab API using Postman and it appears that it no longer includes the email address in the response,  GitLab4J only populates the objects with the data from the response.
You can manually validate what your server is returning by using Postman and going at the following URL:
{GIT_URL}/api/v4/projects/{GIT_PROJECT_ID}/merge_requests

You'll need to add the following HTTP headers when doing it manually:
PRIVATE-TOKEN = {GIT_AUTHTOKEN]
Accept = application/json

@gmessner Thanks for the correction 👍 . I found that Gitlab doesn't provide both email values in the response. Hence, I will close the issue.


FEAT-FATAL_ERROR SUPPORT

Support for FATAL_ERROR debug log event.

Includes end-to-end implementation from writing regex to rendering in LWC
Changes to be made in both Apex and LWC

Changes Made

utilityVariables.cls -> Included the regex for FATAL_ERROR.
utilityMethods.cls -> added break statements in regex FOR loop to stop the loop once event is found and added IF for FATAL_ERROR
FatalErrorUtility.cls -> Created this class which includes the processing of the line
LogLineSchema.cls -> errorMessage variable added for FATAL_ERROR
MethodSchema.cls & CodeUnitContainerSchema.cls -> Added hasError which indicates that CU/MU has error or not
LogLineWrapper.js -> Added condtional styling class FAERR
LogLineWrapper.html -> Added template condition
LogLineWrapper.css -> added styling class faerr for color

Sample Debug Log used for testing
apex-07LdM000007QzTeUAK.log


git: Use merge-tree in patchsets

TOpic: mergetreepatch

Reviews in this chain:
└https://github.com/Skydio/revup/pull/187 git: Use merge-tree in patchsets

#
head
base
diff
date
summary

0
b427e643
740c5cdb
diff
Jul 3 12:15 PM
1 file changed, 21 insertions(+), 36 deletions(-)


class loader error on Install

PHP Version
8.2
Shopware Version
<IP_ADDRESS>
Plugin Version
3.1.2
Actual behaviour
The class "Frosh\BunnycdnMediaStorage\FroshPlatformBunnycdnMediaStorage" is not found. Probably an class loader error. Check your plugin composer.json
Expected behaviour
install working without any error.
Steps to Reproduce?
I just installed the plugin on a freshly installed Shopware for use in this project, alongside BunnyCDN. In our other projects, BunnyCDN is working fine, but there it was installed in the past on older versions of Shopware.

How did you install it?

First Composer than tryed over zip and now over store on all the same Error

Okay, I've found a workaround: When I install a different plugin, the same error occurs, but the plugin I had installed before then works. So:
Install plugin -> Error
Install a different plugin -> Error
Activate first plugin -> Works flawlessly
Uninstall second plugin -> First plugin continues to work without any issues.

sounds like a problem with opcache 🤔

We'll close here due to inactivity.


[WIP DEBUG] troubleshoot warnings

@MSeal @kafonek @nicholaswold Where I stopped last night with troubleshooting warnings in tests. I want to convince myself that the warnings around initialize are due to mock/test setup and not due to an event loop issue where we're not fully cleaning up.


fixed broken link

@mtarek2005 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


How to create an Atlas RegularLonLatGrid with Longitude within [-180, 180]?

@travissluka The longitude of our observational SST data (as well as the initial background SST) is within [-180, 180], do you have experience to create such RegularLonLatGrid, most likely with an YAML configuration file? The default longitude for Atlas RegularLonLatGrid is within [0, 360]. If you do not, don't bother, I'll test myself, or at least I can convert the longitude from [-180, 180] to [0, 360].

I have converted the netCDF files to [0, 360], so no worries.


Update MVC migrating config doc to RC1

This PR addresses issue https://github.com/aspnet/Docs/issues/847. In addition to the RC1 upgrade, the corresponding sample solution has been added.

Done

Looks good. A couple minor tweaks. :watch:

@Rick-Anderson All checked in. Please take another look.

:shipit: @shirhatti please merge

@Rick-Anderson Should this PR be left open until it's merged? Not sure if that was done for a reason or not.

Not sure how I closed that. :shipit: @shirhatti please merge

Thanks! Merged in e968e9c2c7e928c4b5b0df8f1c63622b3ccd4dba


The design is awful.

First of all, there are some typos and glaringly incorrect sizes:

My main complaint, however, is the egregious blending of Material Design with awful design

What IS this!???!!! You've nested a strange, foreign tiled interface within a single card. This has no hope of being material-compliant.  Where is this coming from?
Sorry, but this site is looking pretty awful.

Well thanks for the input seems phone usability is not there at all.


Response for preflight is invalid

Hi,
I'm trying to use your lib... with your first example get athlete... but I receive this message:

XMLHttpRequest cannot load https://www.strava.com/api/v3/athlete. Response for preflight is invalid (redirect)
I've set my access_token so I don't see what is wrong.
Could you help me please?

We have to do each call from the server only!
Be carefull in meteor project :)


add initiation protocol in train agent endpoint

corresponding PR of ondewo-nlu-api of the branch with the same name

This PR was already merged as part of a bigger release 2.0.0


write_image with large width does not save correcly

When saving a figure with a large width, the output of the figure just stops in the middle. When saving to HTML, it saved the full figure

here is a simple example:
import plotly.express as px
import numpy as np
from plotly.subplots import make_subplots
import plotly.graph_objects as go

max_t = 62000
fig = make_subplots(rows=4, cols=1, start_cell="top-left",shared_xaxes=True ,
                   vertical_spacing=0.00004,row_heights=[3, 10    ,20,20],
                   )

fig.add_trace(go.Scatter(x=list(range(max_t)), y=np.random.uniform(0,1,max_t)),
                       row=1, col=1)

fig.write_image(f"test_self.png",width=65400, height = 1500, engine='kaleido')
fig.update_layout(width=65400, height = 1500)
fig.write_html(f"test_self.html")

plotly.version: 4.10.0
Thanks

Thanks for the report @orena1.
Do you see the same behavior when you export the image by clicking on the camera icon in the toolbar of the HTML export?  This will help us narrow down where the issue may be.
Also, it doesn't look like max_t is defined in your code example. Could you update that to make sure the code snippet can be copied and run directly?  Thanks!

Hi @jonmmease
I've updated the code it is not self-contained.

Do you see the same behavior when you export the image by clicking on the camera icon in the toolbar of the HTML export? This will help us narrow down where the issue may be.

Very interesting, I've outputted the file to html (with the same dimensions) and when I try to save the html to png I get the same error.
I attached the files:
drive-download-20200928T161933Z-001.zip

Thanks for checking @orena1. This actually does make sense because kaleido asks Plotly.js to export the figure to an image the same way the toolbar button does, so it will probably need to be fixed there.  I'll try to reproduce in with Plotly.js directly and open an issue over there.

I have been having this issue as well, but the behavior is different between an image saved from the html tool and one directly saved with fig.write_image().
With write_image(), if the layout width is small (2000) all traces get successfully saved to a .png: narrow from write_image. If the layout width is larger (2000), they fail to save: wide from write_image
I can write_html and save the wide format version just fine though: wide from write_html, which is different than the issue described above:


Project needs a license

I noticed that Spotmop doesn't include a LICENSE file or text in the README indicating what license the software is licensed under. The setup.py file says Apache 2, but I'm afraid that was simply copy-pasted from another project and not a conscious choice?
As long as the project doesn't have an explicit license it is strictly speaking not open source and cannot be used by anyone without your explicit permission.

Hi @jodal good spotting. I'm still getting my head around how python hangs together, so it's good to know what still needs doing. Originally I was using Apache 2 + PHP code, but have since decided to move towards python backend providers.
That being said, I did use Mopidy-Mopify as a start point for my setup.py file.

It's awesome that you've moved to packaging Spotmop as a Mopidy extension. That makes it a lot easier to get up and running!
As for choosing a license, it is up to you as the author, but remember to think about licenses when copying code from other projects. For example, Spotmop includes some code from Mopidy-Mopify which is Apache 2-licensed. If you want to keep that code around, you're limited to using Apache 2 or any compatible license yourself.
We (as in the Mopidy project) tend to recommend permissive licenses (Apache/MIT/X11/BSD) and also require that for a project to be listed in our docs. I have the change ready to include Spotmop with a screenshot in the Mopidy docs, but would like it to have a permissive license first. No pressure ;-)
To learn more about licenses, https://tldrlegal.com/ can be a useful resource.

I've just plugged in the Apache 2.0 license now (5ecb8fc). Is there anything else i need to do to link the project to the license (ie on PyPi)?

You might want to state in the README that the project is licensed under the "Apache License, Version 2.0", but there's no requirement.

License stated and included as at 2170668. Please let me know if there's anything else I need to do to gain a listing on the Mopidy docs, thanks!


In TypeScript, Level is not assignable to AbstractLevel<Buffer, any, any> when constructing ManyLevelHost

Argument of type 'Level<string, string>' is not assignable to parameter of type 'AbstractLevel<Buffer, any, any>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
  Types of property 'batch' are incompatible.
    Type '{ (operations: (AbstractBatchPutOperation<Level<string, string>, string, string> | AbstractBatchDelOperation<Level<string, string>, string>)[]): Promise<...>; (operations: (AbstractBatchPutOperation<...> | AbstractBatchDelOperation<...>)[], callback: NodeCallback<...>): void; <K = string, V = string>(operations: (Ab...' is not assignable to type '{ (operations: AbstractBatchOperation<AbstractLevel<Buffer, any, any>, any, any>[]): Promise<void>; (operations: AbstractBatchOperation<AbstractLevel<Buffer, any, any>, any, any>[], callback: NodeCallback<...>): void; <K = any, V = any>(operations: AbstractBatchOperation<...>[], options: AbstractBatchOptions<...>): ...'.
      Types of parameters 'operations' and 'operations' are incompatible.
        Type 'AbstractBatchOperation<AbstractLevel<Buffer, any, any>, any, any>[]' is not assignable to type '(AbstractBatchPutOperation<Level<string, string>, string, string> | AbstractBatchDelOperation<Level<string, string>, string>)[]'.
          Type 'AbstractBatchOperation<AbstractLevel<Buffer, any, any>, any, any>' is not assignable to type 'AbstractBatchPutOperation<Level<string, string>, string, string> | AbstractBatchDelOperation<Level<string, string>, string>'.
            Type 'AbstractBatchPutOperation<AbstractLevel<Buffer, any, any>, any, any>' is not assignable to type 'AbstractBatchPutOperation<Level<string, string>, string, string> | AbstractBatchDelOperation<Level<string, string>, string>'.
              Type 'AbstractBatchPutOperation<AbstractLevel<Buffer, any, any>, any, any>' is not assignable to type 'AbstractBatchPutOperation<Level<string, string>, string, string>'.
                Types of property 'sublevel' are incompatible.
                  Type 'AbstractSublevel<AbstractLevel<Buffer, any, any>, any, any, any> | undefined' is not assignable to type 'AbstractSublevel<Level<string, string>, any, any, any> | undefined'.
                    Type 'AbstractSublevel<AbstractLevel<Buffer, any, any>, any, any, any>' is not assignable to type 'AbstractSublevel<Level<string, string>, any, any, any>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
                      Types of property 'db' are incompatible.
                        Type 'AbstractLevel<Buffer, any, any>' is not assignable to type 'Level<string, string>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.ts(2379)

What code results in this error?

    const db = new Level(name)
    const host = new ManyLevelHost(db)

We can change the AbstractLevel<Buffer, any, any> to AbstractLevel<any, any, any> here:
https://github.com/Level/many-level/blob/a56d72df52c3f9d301a0885705c5dc223576ef31/index.d.ts#L74
My intent was probably to enforce that the given database supports Buffer, but that's not really a job for TypeScript and it does not actually affect the ManyLevelHost API (which is just a constructor and one method).
Could you try this out and send a PR if it works?

that does seem to work, but if it's not desired to be typed that way otherwise, the documentation could mention to do new Level<Buffer> or new Level<Buffer, /* key, value types */>

That does seem to work

Great!

if it's not desired to be typed that way, the documentation could mention to do new Level<Buffer> or new Level<Buffer, /* key, value types */> as a blurb f for TypeScript usage.

Nah, the current type does not benefit users. Let's change it to any.


Improve documentation for replace and replace_command

Is there an existing issue or pull request for this?

[X] I have searched the existing issues and pull requests

Feature description
changelog.postprocessors and git.commit_preprocessors work on the entire changelog or git message respectively. The documentation does not clearly describe this. As a first time user, one might expect that either processor only affects the part of the input that actually matches the pattern.
For example, a postprocessor like the following would be expected to replace all occurrences of <REPO> with https://github.com/orhun/git-cliff. It replaces the entire changelog instead.
postprocessors = [
  { pattern = '<REPO>', replace_template = 'https://github.com/orhun/git-cliff' }
]

Desired solution
The documentation should be revised in all places to clearly state that pattern does not limit the scope of the replacement, but instead is only used to check if a given string is supposed to replaced entirely.
Alternatives considered
None
Additional context
No response

Agreed. We can also mention something like:
{ pattern = '.*', replace_command = 'typos --write-changes -' }

is the equivalent of:
echo "<matched_part_of_the_changelog>" | typos --write-changes -

Marked as good first issue, feel free to tackle this as well!

Hi @orhun, for some reason, I don't have clarity on the issue, but I would love to tackle this. Could you please provide more details? Thanks!

So basically I have to make changes here , as mentioned in the comment by you and @Cyclonit . In this command https://git-cliff.org/docs/configuration/git and under the commit_preprocessors, I have to mention abou the changelog.postprocessors

Yeah, at there and other relevant sections in the documentation. I would recommend trying out this feature for yourself to get a more clear idea about what to do here ;)

Hey, I have made some little changes in the documentation addressing the issue mentioned above.

The commit_preprocessors section.

In the commit_parsers section.

Let me know whether the changes are correct and if any other parts of the documentation need updates. Thanks!

We can use "commit message" instead of "commit log". Other than that it seems fine, please send a PR - it is easier to discuss on the changes :)

Sure @orhun

In my PR #928 this test got failed.  I tried to ran rustfmt,  but no processing took place.

In my PR #928 this test got failed. I tried to ran rustfmt, but no processing took place, but instead formatting test passed.

That's fine. Can also mention https://github.com/orhun/git-cliff/issues/609#issuecomment-2053730878 in your PR?

That's fine. Can also mention #609 (comment) in your PR?

#928


feat: FED Recommends

https://github.com/ice-lab/iceworks/issues/821
依据

流行：符合业界成熟的前端技术栈
稳定：最近依然保持更新、知名作者或有赞助商的支持
可靠：下载量较高、被 Pack 引用的次数多
体验：使用方式简单、文档质量高

入选

Chinese (Simplified) Language Pack：Language pack extension for Chinese (Simplified)
GitLens: Supercharge the Git capabilities built into Visual Studio Code
Code Spell Checker: Spelling checker for source code
ESLint: Integrates ESLint JavaScript into VS Code
stylelint: Lint CSS/SCSS/Less with stylelint
Prettier: An opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
Auto Complete Tag: Combine the functions of Auto Close Tag and Auto Rename Tag
JavaScript (ES6) code snippets: Code snippets for JavaScript in ES6 syntax
Simple React Snippets: The essential collection of React Snippets and commands.
Debugger for Chrome: Debug your JavaScript code in the Chrome browser, or any other target that supports the Chrome Debugger protocol.
Bookmarks: It helps you to navigate in your code, moving between important positions easily and quickly
Iceworks: Visual Intelligent Development Pack, provide visualization and intelligent technology to build Universal Application faster and better

Codecov Report

Merging #828 (9b6e4eb) into release/0.19.0 (d065f50) will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           release/0.19.0     #828   +/-   ##
===============================================
  Coverage           57.14%   57.14%
===============================================
  Files                   1        1
  Lines                  70       70
  Branches               15       15
===============================================
  Hits                   40       40
  Misses                 30       30

Continue to review full report at Codecov.

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

React 领域有必备的插件吗？
Iceworks 要加进去？套娃？
品牌上 FED 是否合适？F2E？

React 领域有必备的插件吗？
Iceworks 要加进去？套娃？
品牌上 FED 是否合适？F2E？

React 必备的插件从 VS Code 插件市场中比较流行的 React Pack 来看，我们这里面的列表已经覆盖了一部分
我理解这里的定位是。是否合理大家可以探讨哈

FED: 前端必备 VS Code 插件集合
Iceworks: 我们自研的多端研发套件

这个我的想法是代表 FED 的最佳实践，有点品牌背书的味道，当前我们是否能广泛地代表 FED 有待商榷


updated to swift 3

updated to swift 3 and tested with Xcode 8.2.1. Working fine without any issues.

Cool. Thanks


Update scala3-compiler, ... to 3.3.3

About this PR
📦 Updates

org.scala-lang:scala3-compiler
org.scala-lang:scala3-library_sjs1

from 3.2.2 to 3.3.3
📜 GitHub Release Notes - Version Diff - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-lang" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #706.


[FB Conversions API (Actions)] - Updates docs to describe 'App Events' usage

Proposed changes
This PR updates the FB CAPI docs with info on how to use the app events feature introduced in this PR: https://github.com/segmentio/action-destinations/pull/1292
Merge timing

Publish on Tuesday May 30.
Related issues (optional)

Hey @nick-Ag! We’ll include this with our regularly scheduled docs deploy on 5/30. Usually this takes place between 10-11am PT

Awesome, thank you!


[VS Code] Could not connect to the server. Check that you are connected to the internet.

Unfortunately, the error has come back and refreshing the certificates don't work. Logs:logs.zip
Originally posted by @mlunax in https://github.com/MicrosoftDocs/live-share/issues/1126#issuecomment-431571392

It seems there is some issue with the proxy configuration.
cc @Priya91
The logs contain the following error:
[2018-10-20 11:04:21.155 Agent.Proxy W] Connecting to <https://insiders.liveshare.vsengsaas.visualstudio.com/43b95594> via proxy failed with exception System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> System.TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Ssl' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
---> Interop+Crypto+OpenSslCryptographicException:
    error:0E076071:configuration file routines:MODULE_RUN:unknown module name

   at Interop.SslInitializer..cctor()
   --- End of inner exception stack trace ---
   at Interop.Ssl..cctor()
   --- End of inner exception stack trace ---
   at Interop.Ssl.SslV2_3Method()
   at Interop.Ssl.SslMethods..cctor()
   --- End of inner exception stack trace ---
   at Interop.OpenSsl.AllocateSslContext(SslProtocols protocols, SafeX509Handle certHandle, SafeEvpPKeyHandle certKeyHandle, EncryptionPolicy policy, SslAuthenticationOptions sslAuthenticationOptions)
   at System.Net.Security.SafeDeleteSslContext..ctor(SafeFreeSslCredentials credential, SslAuthenticationOptions sslAuthenticationOptions)
   at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteContext& context, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
   --- End of inner exception stack trace ---
   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.Security.SslStream.BeginAuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback asyncCallback, Object asyncState)
   at System.Net.Security.SslStream.<>c.<AuthenticateAsClientAsync>b__47_0(SslClientAuthenticationOptions arg1, CancellationToken arg2, AsyncCallback callback, Object state)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1,TArg2](Func`5 beginMethod, Func`2 endFunction, Action`1 endAction, TArg1 arg1, TArg2 arg2, Object state, TaskCreationOptions creationOptions)
   at System.Threading.Tasks.TaskFactory.FromAsync[TArg1,TArg2](Func`5 beginMethod, Action`1 endMethod, TArg1 arg1, TArg2 arg2, Object state, TaskCreationOptions creationOptions)
   at System.Threading.Tasks.TaskFactory.FromAsync[TArg1,TArg2](Func`5 beginMethod, Action`1 endMethod, TArg1 arg1, TArg2 arg2, Object state)
   at System.Net.Security.SslStream.AuthenticateAsClientAsync(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask`1 creationTask)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.Cascade.Agent.DefaultWebProxy.ConnectToUriAsync(Uri targetUri, CancellationToken cancellationToken) in E:\A\_work\64\s\src\Agent\DefaultWebProxy.cs:line 81

Looks liek you may be hitting the same issue as #1105 Your OS may have updated, and the native lib pointers could have changed. Tracking the issue there, and closing this as dupe.


Builtins - Remove 'base' field from config

Do not provide a default 'config' on the builtin objects and force client code to define it.

BaseName renamed to just Name on naming module.
Name, Pipe and File no longer have a base field from their config.

Coverage remained the same at 100.0% when pulling 966cfd5db1462e58388e8c09ad70502a07ce556d on feature/builtins_no_base_field into 6da30d87af32972fe485b786ecf255f341f20afd on develop.


Unable to deploy the stack

Unable to deploy the stack because of s3 CORS policy

That hopefully shouldn't be the case. Can you provide the exact error you are getting along with a link to the current deployed website that we can test going to?

Yes, I apologize for the limited details I provided. While deploying the SAM Resource within the CloudFormation stack creation process, specifically during the creation of the BucketForS3ExplorerSavedConfiguration resource, I encountered a 'validation failed' status with the following message: 'Properties validation failed for resource BucketForS3ExplorerSavedConfiguration with the message: [#/CorsConfiguration/CorsRules/0/AllowedOrigins: array items are not unique].

Great thank you. This has been fixed now. However, the problem should only happen when you haven't set a custom domain, which I assume you might actually want to do. Is there a reason that one wasn't added here? So that might be the pertinent question. But in any case this has been resolved, thank you for the report.


Update to comply with new 2-arg arity of IJavaScriptEnv in 0.0-2665.

Since this is a breaking change, update Weasel version to 0.5.0.
Additionally, since this is incompatible with ClojureScript versions
prior to 0.0-2665, eliminate the temporary compatibility hack for
previous API breakage introduced with 0.0-2371.
This addresses #37. If this is ultimately released, the CHANGES.md
can be updated to reflect the breaking change, along with README.md.

thanks for doing this.  tried out this PR, but having some trouble with piggieback, did you have to modify it?  Minimal weasel project here with steps to reproduce in the readme: https://github.com/shaunlebron/new-weasel-example

@shaunlebron Yes, there are two -setup calls in piggyback that will need to be updated. Locally, I simply passed in nil to get by:
diff --git a/src/cemerick/piggieback.clj b/src/cemerick/piggieback.clj
index 88ea202..052e25b 100644
--- a/src/cemerick/piggieback.clj
+++ b/src/cemerick/piggieback.clj
@@ -147,7 +147,7 @@
   [rhino-env]
   (with-rhino-context
     (doto rhino-env
-      cljsrepl/-setup
+      (cljsrepl/-setup nil)
       ; rhino/rhino-setup maps System/out to "out" and therefore the target of
       ; cljs' *print-fn*! :-(
       (map-stdout *out*)
@@ -185,7 +185,7 @@
       (or (::env/compiler repl-env) (env/default-compiler-env))
       (if (rhino-repl-env? repl-env)
         (setup-rhino-env repl-env)
-        (cljsrepl/-setup repl-env)))
+        (cljsrepl/-setup repl-env nil)))

     (print "Type `")
     (pr :cljs/quit)

Thanks, confirmed it is working.  Created a piggieback PR #37 with the necessary changes; we'll have to wait on that before merging here.
Updated working example for verification: https://github.com/shaunlebron/new-weasel-example

Wonderful! Thank you so much @mfikes and @shaunlebron. Eagerly watching that piggieback PR!

Released in 0.5.0.


Add OS.set_custom_features() method

Closes https://github.com/godotengine/godot-proposals/issues/373
The method needs to be called by a tool script in the editor and will take effect when running project. It will store the features in __EDITOR_CUSTOM_FEATURES__ environment variable, which is then loaded when ProjectSettings are constructed. This way any override you set in ProjectSettings will also have effect if you set correct features.
Example usage:
@tool
extends EditorScript

func _run():
    OS.set_custom_features(["test"])

(run it)
func _ready():
   print(OS.has_feature("test")) # true

Superseded by #63529
The implementation still uses environment variable, so it's possible to set it manually.


Feature/json stat2 show presentation format pbi 133016

It seems the Jsonstat2Serializer.cs starts at 1 and px-file_format_specification_2013.pdf start at 0 :-) Could we make an enum similar to PCAxis.Core/Enums/InformationLevelType.vb to avoid this? (I added a pxfile in the testfiles folder which uses prestext )

Yes, that seems lika a good idea. I was uncertain where to place a Enum like that.


Add @types to support the project with typescript

Any updates on this ? I'm still getting : could not find a declaration file for module react-native-radial-gradient.
Even though there's index.d.ts present.

hi, you can you mine :
create 1 file in your typings folder called react-native-radial-gradient.d.ts
declare module 'react-native-radial-gradient' {
  import {Component} from 'react';
  import {StyleProp, ViewStyle} from 'react-native';

  interface RadialGradientProps {
    center?: [number, number];
    colors?: [string, string];
    radius?: number;
    style?: StyleProp<ViewStyle>;
    stops?: number[];
  }

  export default class RadialGradient extends Component<RadialGradientProps> {}
}

@surajitsarkar19 I think this problem is still there.
@rbayuokt 's code is a good tip, but we shouldn't have to type it manually.

For using with Functional Components, changed the typing too:
`
declare module 'react-native-radial-gradient' {
import type { ReactElement } from 'react';
import type { StyleProp, ViewStyle } from 'react-native';
interface RadialGradientProps {
center?: [number, number];
colors?: [string, string];
radius?: number;
style?: StyleProp;
stops?: number[];
children?: ReactElement;
}
export default function RadialGradient(props: RadialGradientProps): JSX.Element {}
}
`


@alloy => Simplifying the ARShowFeedVC

This aims to clean-room re-implement the ARShowFeedVC, by switching out a lot of subclassed behavior into simpler more declarative classes via composition.
It's not finished yet, but is open to PRs :+1:

This is now feature complete, I forgot that I still have to unbreak CI :-/

OK this now greens locally.
This replaces some of the oldest code in the app, which doesn't have tests at all.

Amazecraze. Will review Monday morning!

I am in no rush :+1:

I see from the changed files that it’s missing a changelog btw.

lets just call this the orta release

This patch is really hard to review well, as the largest part of it is due to renaming symbols+files. In the future, renaming should be done in a separate commit.
Can you maybe point out the parts of the patch relevant to fixing the crashes?

It's not a rename, it's a from scratch re-write with the same features,

there isn't really anything not-relevant to the crashes

lol, ok

Rebased, merging.


Do I have to go through challenge everytime I login?

Everytime I try to log in I get errors so I have to go through the verficiation process, is it just me or the problem we can't solve?

I had the same problem today.
I found this answer: https://github.com/dilame/instagram-private-api/issues/394#issuecomment-350530330
I used VPN server located in same country.
With VPN I have logged in successfully.
Then I turned off VPN and everything works fine.
I don't need to verify my "suspicious activity" anymore.


Add a strict version of JSON encoding

In some cases when debugging it's nice to have twirp reject JSON
requests that have unknown fields.  This adds a new JSON_STRICT encoding
that will enable this behavior.  It can be opted into by specifying the
strict parameter when specifying the content type.  For curl this looks
like:
curl --request POST \
  --url 'http://localhost:8080/twirp/example.hello_world.HelloWorld/Hello' \
  --header 'Content-Type: application/json; strict=true' \
  --data '{"name": "World", "bob": "fail"}'

Based on discussions in #60, it seemed like this was appetite for this and it is kind of neat/convenient.  Happy to close this without committing but wanted to send it out in case we want to merge it.

I generally agree at first I was like meh but now it's really growing on me lol.

Another thing I worried at first, was that the content type application/json; strict=true is not a valid content type by the spec. And it would fail if sending requests with that content type to other implementations. For example, the Go implementation would return an error with "unexpected Content-Type".

You know what's sorta awesome is that the go implementation won't error since it properly parses content type and drops any parameters.  You can see that here
i := strings.Index(header, ";")
	if i == -1 {
		i = len(header)
	}
	switch strings.TrimSpace(strings.ToLower(header[:i]))

Friendly ping :)


Android App - permissions: RECORD_AUDIO

According to its manifest, the app requires android.permission.RECORD_AUDIO. Such permission allows the application to access the audio record path.
URI: android.permission.RECORD_AUDIO
Risk: MODERATE-HIGH
Protection level: DANGEROUS

Official Description
Allows an application to record audio

I'm not entirely familiar with the app's features, but unless we require it for legitimate uses such as note taking or voice search, I'd drop this requirement in the next releases.
@andemaria can you please clarify it?

the card data used for access the chip (date of birth, card number, card expiry) can be given also by voice.


Major refactor

building off of #108
it compiles now, everything is decoupled. Still doesn't boot all the way up, but I'm close. There's some logic i still need to change regarding default files either need to be created during init, or just loaded, but that shouldn't take too long.
After I get it running again, I'll start absorbing all of the recent commits (~23 of them if i'm counting correctly).

dk@pancake:~/src/devzat$ go run ./cmd/devzat-server/

2022/04/08 16:51:35 bans.go:71: open bans.json: no such file or directory
2022/04/08 16:51:35 server.go:73: Did not find twitter-creds.json. Enabling offline mode.
Starting chat server on port 22 and profiling on port 5555

Epic, I'd love to try it out if you've got it hosted somewhere

i may be done for the day, it'll probably be another hour or two of work to get it fully operational.

got it working

the server config struct writes itself as a .env now
here's what it currently looks like:
### [ Runtime ]
### settings for the devzat runtime
# DEVZAT_PORT=22
# DEVZAT_PROFILEPORT=5555
# DEVZAT_SCROLLBACKHISTORY=16
DEVZAT_CFGDIR=/home/dk/.config/devzat-server
DEVZAT_CFGFILENAME=config.env

### [ Anti-spam ]
### settings for controlling spam
# DEVZAT_SPAM_WINDOW=5s
# DEVZAT_SPAM_LIMITWARN=30
# DEVZAT_SPAM_LIMITBAN=50
# DEVZAT_SPAM_BANDURATION=5m0s

### [ Slack ]
### settings for slack integration
# DEVZAT_SLACK_OFFLINE=true

### [ Twitter ]
### settings for twitter integration
# DEVZAT_TWITTER_OFFLINE=true


add code fix convert to mapped object type

Fixes #24220

some formatting issue with #24312

@andy-ms can you please review this change.

Thanks!

No, this will be available in TypeScript 3.0 in two month, or in typescript@next coming out later tonight.


DTP: associating a study should automatically add all the DOs with this study as parent study

The RM shouldn't have to manually select all the DOs to check, as all of them should be added automatically when a study is associated to a DTP.
Related: #122, #129

@Gerd-ECRIN thoughts? We discussed with Maria and Sergio that all DOs linked to a DTP associated study should be added as associated DOs, even the public ones (they should all appear in the generated DTA appendix).

Upload Button makes no sense if public DO are only linked to another repository. This has to be clarified first. For all other DO I agree.

You're right, I updated the issue description.

Moved the button thing to a separate issue: #129


Implement some more extension functions

This PR started from a want to add Process.WaitForExitAsync.
The .NET library source for Process.WaitForExitAsync uses CancellationToken.UnsafeRegister so I also added those into this PR, as well as a missing CancellationToken.Register overload that I came across while copying tests over for CancellationToken.UnsafeRegister.
Also, while working on the tests for CancellationToken.UnsafeRegister, I noticed that CancellationTokenSource.CancelAsync had been added in a previous commit, but no tests were added for it at the same time. So I figured I should copy some tests for CancellationTokenSource.CancelAsync from the .NET repo while I was working in that area, which led me to hit a deadlock with the current implementation of CancellationTokenSource.CancelAsync. So I also added a workaround in that function while I was there.
I didn't expect to go down such a rabbit hole when all I wanted was Process.WaitForExitAsync, but I think everything I've added in this PR is worthwhile adding to the library.

I'll fix the build errors now

Build/test errors have been fixed

@sbeca  very nice work. will merge and deploy this now. should be on nuget in ~20min


feat(dependency:install): add release def filter

resolve #55
Checklist
All items have to be completed before a PR is merged

[x] Adhere to Contribution Guidelines
[x] Updates to Decision Records considered?
[x] Updates to documentation at flxbl-sfp Guide considered?
[x] Tested changes?
[x] Unit Tests new and existing passing locally?

@alanjaouen thank you again for your contribution. I had to make a few changes in order we can get it merged.
I will follow up your changes on a new PR (with your changes). #108


Time Series Classification

Time Series Classification is a very popular machine learning problem.
You can find a full survey and empirical study (link to paper) on 85 datasets that can be found here.
More recently in our paper we showed that deep learning can also reach state if the art performance for Time Series Classification.

Research paper name: The great time series classification bake off: a review and experimental evaluation of recent algorithmic advances (link) & Deep learning for time series classification: a review (link)
Dataset: UEA archive (link)
Metric: Accuracy + average rank comparison over the datasets (reference)
Source code: Time Series Classification (link) & Deep learning for time series classification (link)
Year: 2017 for Time Series Classification & 2018 for Deep learning for time series classification

Cool results. I will need some time to read the survey but definitely will deliver this. If possible, you are welcome to update it yourself and send pull request. I will merge the updates.


Cannot dotnet run F# project on Mac OS X (macOS)

I installed DotNet 1.0 released yesterday using this dmg.
dotnet-dev-osx-x<IP_ADDRESS>-preview2-003121.dmg
I then created an F# project:
$ dotnet new -l fsharp
$ dotnet restore

Then, when it came time to run it, I got this error:
$ dotnet run
Project fsharp_dotnet_core (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling fsharp_dotnet_core for .NETCoreApp,Version=v1.0
The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc3-004459-00' was not found.
  - Check application dependencies and target a framework version installed at:
      /usr/local/share/dotnet/shared/Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0
      1.0.0-rc2-3002702
  - Alternatively, install the framework version '1.0.0-rc3-004459-00'.
/usr/local/share/dotnet/dotnet compile-fsc @/Users/Pac/Code/fsharp_dotnet_core/obj/Debug/netcoreapp1.0/dotnet-compile.rsp returned Exit Code 131

Compilation failed.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:00.4526408

Sadly, I didn't get the "Hello World!" =(

This is the case for me on Ubuntu as well :(.

This is already addressed in:
https://github.com/dotnet/cli/issues/3705
and something was even merged from here:
https://github.com/Microsoft/visualfsharp/pull/1290
I guess the platform is not relevant, since the dependencies are wrong.
This bug also prevents me to work with F# on RTM...

@cartermp can you share what the fix is here? This seems to be a known issue with wrong dependencies for F# projects that crept into Preview 2 release of the tooling.

@blackdwarf try to create new project. The bug I think was fixed yesterday; I was able to compile and run F# project generated by dotnet new -l F# (because new packages were published).

@ForNeVeR thanks for updating us. It works now. Closing the ticket. =)

Does anyone know how to solve this. Downloaded dotnet core on my mac today, 6 months later and am having the same issue.

@ckuhn203 the exact same issue that is the root of this thread?
/cc @cartermp

See here: https://github.com/dotnet/cli/issues/3705#issuecomment-274275752
I was able to get the latest Preview2 tooling that's on the dot.net/core site running without issue.


Updating images to multi-arch for strimzi operator

Adding ocs-ci-01-strimzi.patch which involves all the image changes to multi-arch .


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-1.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2986

Questions ?
Please refer to the Backport tool documentation


rviz should provide tools to display covariance data  (ros-pkg ticket #4857)

See discussion here:
http://answers.ros.org/question/263/how-can-i-visualize-covariance-data-using-ros
trac data:

Owner: hersh
Reporter: joq
Reported at: Mon Mar  7 07:48:23 2011
URL: http://code.ros.org/trac/ros-pkg/ticket/4857

I never found the time to dedicate to merging this into rviz. You can find what I did in the hydro branch of rviz_plugin_covariance, though: https://github.com/laas/rviz_plugin_covariance/tree/hydro

I just had a look at this, and it seems to work ok on indigo. However, in my case I have 2D covariances (only x, y and yaw), and the display seems to flip between being a flat circle in the x-y plane (as expected) and a flat circle in the y-z plane instead, which is wrong.
This is the output I get from the plugin in the y-z plane case.
[ INFO] [1444726412.089431527]: Position:
Vector3(1.19936, 0.346209, 0)
Positional part 3x3 eigen values:
0
46.188
140.508
Positional part 3x3 eigen vectors:
         0 -0.0482425   0.998836
         0   0.998836  0.0482425
         1          0          0
Sphere orientation:
Quaternion(0.706901, -0.0170613, -0.000411789, 0.0170613)
Radian(0.0241447) Radian(-0.0241587) Radian(-0.00116504)
Sphere scaling:
Vector3(0, 6.79617, 11.8536)
Rotational part 3x3 eigen values:
0
0
2.32922e+06
Rotational part 3x3 eigen vectors:
1 0 0
0 1 0
0 0 1
Cone orientation:
Quaternion(1, 0, 0, 0)
Radian(0) Radian(0) Radian(0)
Cone scaling:
Vector3(0, 0, 1526.18)
[ WARN] [1444726412.089495965]: computeRotation found non-unitary quaternion!

The warning stems from this line in the code, which suggests that in those cases the rotation matrix is somehow invalid, resulting in a not-normalized quaternion after conversion.
Can anyone tell what is going wrong here?

Hello!
I recently found the code from rviz_plugin_covariance and developed a some more things on top of it. How is thie status of this issue? If it's not addressed I may be able to add as a pull request to rviz.
@NikolausDemmel I had similar warnings here, this is basically a debug debug which was coded as info, showing the result of the covariance visual computation. I'm going to do some more tests to verify if this part of the code is correct. I was only testing it with 3D covariances up to now, but I'll check with 2D ones as well.


resolution.tsv lookup table not exist in documents

Issue in help/export/analytics-data-feed/c-df-contents/datafeeds-reference.md
I couldn't locate the file for resolution id resolution.tsv lookup table in the resolution field

@gigazelle  - can you look into this, please?

Hi @ibozkurt79 - I'm looking at a data feed file downloaded on my end, and located resolution.tsv right inside the zipped file. Is this a documentation issue, or is it potentially an issue that you'll want to open with customer care?

this is a documentation issue. I am trying to translate the resloution_id since it might be either browser resloution (height, width) or screen resolution

The column resolution_id is not valid for feeds created in the Analytics UI. If you log in to Analytics then go to Admin > Data Feeds, when creating a data feed you can see all available columns.
Can you share more information on where the data feed or the resolution_id column originated from? We might be able to point you in the right direction from there.

I have resolution_id column in my site_catalyst table.
is connected device screen height or width included in the site catalyst feed or is it only browser height?  if it is only browser height, is it changeable by enlarging or minimizing the browser?
That is the question I am trying to understand

Resolution id appears like '1024X 533' and named as screen resolution_id. Is it relevant with adobe feed?

it's not part of the default columns adobe provides, but you can probably determine what it is by comparing those values with other available columns.
The browser_height and browser_width columns are the visible area of your site, and can be changed by resizing the window. The s_resolution column is monitor height and width, and cannot be changed by resizing the browser. You could compare your resolution_id column with these other columns to determine what type of resolution it is measuring.

Thank you. I think my issue is resolved


PMID:23066505

abnormal RNA 3'-end processing during ER stress
decreased protein level during cellular response to ER stress

abnormal RNA 3'-end processing during cellular response to endoplasmic reticulum stress FYPO:0005909
decreased protein level during cellular response to endoplasmic reticulum stress FYPO:0005910
edit file: 29800acf1332f9839638dcfaa126d7489405276e
release: 0a5422af7f15869be35bd066823568e3de0890bc


Implement secret sub-variables

Fixes issue #131
This PR is just for the feedback on the implementation. No tests are added yet either (temporarily commented out the assertion for compile hash equivalence).
Proposed Changes

notation: ?{<ref_type>:<file_path>@<yaml_path>} (only implemented for gpg Ref so far).
Users are expected to run kapitan secrets --write ... where the secret file is a yaml file.

Implementation idea

set yaml_path attribute to Ref (sub-class) instances. Use this to check if the secret is a sub-variable, and if so, after decryption in reveal function, index into the yaml_path and return the value
decryption is cached using lru_cache. But it is inefficient because the parameter is the data itself, rather than ref file path. We should ideally use ref file path as the parameter since it is a just short string.
hash of the secrets after kapitan compile is the hash of the entire file content. e.g. if we have ?{gpg:file1@var1} and ?{gpg:file1@var2} then the hash for the two secrets are identical. This should be secure still based on collision resistance.
during kapitan compile, it doesn't check if the sub-vars are actually present in the encrypted yaml file. Should we implement this as well?

during kapitan compile, it doesn't check if the sub-vars are actually present in the encrypted yaml file. Should we implement this as well?

I think yes, we need to make sure that's covered as well otherwise it will fail silently when deployed instead of during compiling and will make debugging more painful for users.

decryption is cached using lru_cache. But it is inefficient because the parameter is the data itself, rather than ref file path. We should ideally use ref file path as the parameter since it is a just short string.
:+1: Makes sense as an approach.

during kapitan compile, it doesn't check if the sub-vars are actually present in the encrypted yaml file. Should we implement this as well?

@yoshi-1224 how is this going to work? We can't decrypt on compile - I'm not sure implementing this will be possible.

What about storing the structure of the subvars in the secret itself(like we store the encoding)? Just the keys of the yaml, decrypted names same as they would be in individual files. You could store that as a base64'ed json. It is a bit divergent again from the simpler secret concept we had but it's an alternative if decrypting during compile proves too challenging.

@yoshi-1224 @uberspot I'm not totally sure this should be implemented for each ref type. Ideally this should be abstracted away from gpg/akms/gkms and offered as given feature, regardless of the type. It doesn't make sense to me for each of these to have to implement it again and again.
How about exploring your ideas instead in the Revealer (methods reveal_obj() and _reveal_replace_match()) and RevealedObj classes?

What about storing the structure of the subvars in the secret itself(like we store the encoding)? Just the keys of the yaml, decrypted names same as they would be in individual files. You could store that as a base64'ed json. It is a bit divergent again from the simpler secret concept we had but it's an alternative if decrypting during compile proves too challenging.

I don't know if it will be necessary to add extra complexity for this feature. I like to think that subvars are simply a reveal filter feature for yaml files encrypted into secrets. The workflow to "validate" these on compile would have to be by passing the --reveal flag on compile - it should fail if revealing subvars errors out. Compile per se should not validate subvars (unless we think of a less contrived way).

@ramaro @uberspot
Thanks for the feedback!

How about exploring your ideas instead in the Revealer (methods reveal_obj() and _reveal_replace_match()) and RevealedObj classes?

Thanks for pointing this out. I believe this is a much better idea. I just implemented it in the most recent commit (sorry the rebasing really messed things up. We should continue this discussion on a new PR). Please have a look at refs/base.py.
Regarding the validation, it necessitates decryption which may not be desirable. Also, as @ramaro pointed out, reveal will automatically fail if the sub-variables do not exist so I agree it is not strictly necessary to validate.

hi @ramaro @uberspot
The CLA issue resolved as I force-pushed, so let me continue the discussion here. I believe this new approach allows us to make caching & decryption generic, so please provide some reviews!
TODO:

write test for subvars
update examples

@yoshi-1224 I think this is good to go! Let's just add the comment in subvar.yml and we can merge.

Merged, nice work! :) I'll do a small rc release to keep this as a tested feature


test: tests tx inclusion in the first block

Overview
As part of #1899, we need to test the network/validator's behavior for transaction inclusion in the first block (more precisely, when the first block has not been committed yet). This PR introduces a new test that utilizes a local consensus config option, namely timeout_commit, to slow down block production. This delay allows transactions to arrive at the time of block height 1.
It is important to note that the current test demonstrates that transaction inclusion fails due to the absence of commit info for block height 0. There are two theories regarding this behavior:

Theory 1: This is expected behavior as the initial state or genesis state might not be available by the protocol definition. Consequently, the first block remains empty because there is no valid state available to validate transactions against. (Our fork of Cosmos SDK is not in parity with the mainline Cosmos SDK, however, with the initial inspection, it seems the initial state does not get committed in the mainline Cosmos SDK too, hence it is suspected that the same problem exists there as well. However, further tests should be developed to confirm this)

Theory 2: This is not an expected behavior. The genesis state should be committed when initializing the chain (in abci.InitChain). In this case, the root cause should be found and the fix should be implemented.

In either case, subsequent PRs will be addressing this issue.
Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

we don't have to handle it all in this PR, but after we add the hacky if statement protection in PrepareProposal, we could also add a different test that waits for block height 2 and then ensures that the first block is empty

Sure, I'll address this in https://github.com/celestiaorg/celestia-app/issues/2221.


World Gamemode Often Being Ignored

I have a creative world in my server. When users go through the portal to enter the world, they are (quite commonly) going through the portal and remaining in survival mode.  Default gamemode is survival, creative world gamemode is creative. They do not have bypass. 2nd time going through the portal does what it should do the first time. Asking them to go through again isn't too bad, however it will cause problems when there are no people who are aware online. Also, I fear the reverse could happen (which would be more problematic) in that someone could return to a survival world still in creative mode. Any solutions?

I've encountered something similar to this that may be the same issue, issue found here: #2171
Ensure you don't have something such as WorldGuard (for example a global flag) changing your gamemode.

Closing old ticket. If you still need assistance, it's best (way faster as we use GitHub to track bugs/suggestions) to receive support on the Multiverse Discord.


[DuckDB] Unable to upgrade to version 0.9.0

Issue description
See upstream issue https://github.com/duckdb/duckdb/issues/9383

https://github.com/duckdb/duckdb/issues/9383#issuecomment-1794367072

Possible workaround: rebuilding the DuckDB driver.
git clone https://github.com/duckdb/duckdb.git
git checkout v0.9.2
GEN=ninja BUILD_ICU=1 BUILD_JDBC=1 BUILD_JEMALLOC=1 BUILD_JSON=1 STATIC_LIBCPP=1  make
mvn install:install-file -Dfile=build/debug/tools/jdbc/duckdb_jdbc.jar -DgroupId=org.duckdb  -DartifactId=duckdb_jdbc -Dversion=0.9.2-custombuild -Dpackaging=jar

Are we able to give a try updating the org.duckdb::duckdb_jdbc drivers to  the 1.0.0 release? I need some feature sets from the 1.0.0 release of duckdb, but unable to use. I've reverted to using a python script in the meantime, but ideally would prefer to use this plugin.

@richard-lennox the upsteam issue at DuckDB side is not fixed in the new driver so we still cannot upgrade the driver

@loicmathieu @fhussonnois has a PR looking at PluginClassLoader 🤔 Does it resonate with all of this ?
https://github.com/kestra-io/kestra/issues/4621

@Ben8t see my comment before yours, the issue is upstream, there is nothing we can do at our side except the workaround the DuckDB team give us which is literally to build the driver by ourself and embedds our own version which is a very bad idea.

Current Workaround for Open Source Users

Note: this is the current workaround, we're looking for a solution for the upstream issue on DuckDB Java driver. Please upvote there.

Fork https://github.com/kestra-io/plugin-jdbc
Change plugin-jdbc-duckdb/build.gradle plugin-jdbc-duckdb/build.gradle

implementation("org.duckdb:duckdb_jdbc:0.8.1") to implementation("org.duckdb:duckdb_jdbc:<DUCKDB_VERSION>")
Then you can build plugin jar with ./gradlew shadowJar. It created  a plugin-jdbc-duckdb/build/libs/plugin-jdbc-duckdb-0.<VERSION>.0.jar.
Then you can build your own version of Kestra with this built plugin (see documentation).
Alternatively, using docker-compose, you can bind volumes like this:
...
services:
  kestra:
    volumes:
      - ./libs/plugin-jdbc-duckdb-0.17.0.jar:/app/plugins/plugin-jdbc-duckdb-0.<VERSION>.0.jar
     ...


#184 Referencing sub-resources + composite identifiers

#184 Adding some guidelines about how to reference sub-resources and how to design composite identifiers, as discussed in the API Guild JF.
Any feedback is welcome!

:+1:

Possibly add a changelog entry?
(Though this might get conflicts with other PRs.)

👍
@ePaul Can you re-thumb after @maxim-tschumak added changelog entry? ;)

👍

:+1:


Missing include in PR #3704

I was building master on Mac, and the build failed with:
rdkit/Code/GraphMol/Wrap/CompressedSDMolSupplier.cpp:110:28: error: use of undeclared identifier 'MolIOEnter'

Apparently, this include was missing in the PR. I wonder how the CI build passed.

Thanks @ricrogz
That functionality is optional and not tested in any of the CI builds...

Thanks @ricrogz
That functionality is optional and not tested in any of the CI builds...


Timer beyond 3600s

Is it possible to extend the time in automation switch beyond 3600s. I need 5500a

And I need 18000s, i.e., 5 hours

And I need 18000s, i.e., 5 hours. Correction: Actually it works fine to set the value higher in the configuration, e.g. 14400s. However, in the Eve app it shows up at 3600s, but if I don't touch it in Eve everything seem to work fine.

Oh thanks!


Inference failing with ?? operator – in inconsistent ways

void foo(Iterable source) {
  print((source ?? []).toSet());
  //                   ^ no problem
  new List.from((source ?? []).toSet());
  //                           ^ no problem
}

class Platform {
  factory Platform(Iterable<String> uses) =>
      new Platform._((uses ?? []).toSet());
  //                              ^ warning
  // The method 'toSet' isn't defined for the class 'Object' at foo.dart:x:y
  // undefined_method

  Platform._(Set<String> items);
}

Dart VM version: 1.25.0-dev.0.0

Fun twist if you change it to (uses ?? <String>[]) all is good.
Guessing this is a LUB/GUB thing?
CC @leafpetersen

Most weird is just that it's inconsistent

Pretty certainly a problem with unifying Iterable<String> and List<dynamic>. Neither is a subtype of the other, so LUB finds ... something. It doesn't find Itearble<dynamic> and it doesn't infer that the list should be <String>[] (because unification can work with anything, it doesn't impose any constraints).

So the bug is the other instances not showing a warning?
From mobile. Sorry for brevity and/or spelling.
On Jun 15, 2017 8:18 AM, "Lasse R.H. Nielsen"<EMAIL_ADDRESS>wrote:

Pretty certainly a problem with unifying Iterable and
List. Neither is a subtype of the other, so LUB finds ...
something. It doesn't find Itearble and it doesn't infer that
the list should be [] (because unification can work with
anything, it doesn't impose any constraints).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/29876#issuecomment-308639640,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCiiez4OBV6j774NC-0HBxevcNPobKks5sEMy1gaJpZM4N6grm
.

No actually downwards inference should work for this one.  We push the type from the LHS of ?? into the RHS, and should be using that to infer List<String>.
I can't reproduce this on 1.25.0.  Are you sure you have strong mode on?  If I don't turn on strong mode, I get the error you report.
The fact that you're seeing a warning and not an error is also suggestive.

@kevmoo Ping.

Gah. User error. I was mucking w/ implicit-casts: false and forgot to copy things over.
😞  sorry...


ao glitch on ios

reference: https://github.com/react-spring/drei/issues/8

the sandbox he is referring to: https://codesandbox.io/s/r3f-drei-standardeffects-frcmm
<StandardEffects/> is just a wrapper around the following pp config: https://github.com/react-spring/drei/blob/master/src/StandardEffects.ts (smaa + ao + bloom)
and it can be overwritten by doing:
<StandardEffects ao={{
  blendFunction: BlendFunction.MULTIPLY,
  samples: 30,
  rings: 4,
  distanceThreshold: 1.0,
  distanceFalloff: 0.0,
  rangeThreshold: 0.5,
  rangeFalloff: 0.1,
  luminanceInfluence: 0.9,
  radius: 20,
  scale: 0.5,
  bias: 0.5,
}} />

could it be caused by my default values or is it something deeper?

The precision of the depth texture attachment seems to be limited on that device. The SSAOEffect detects false discontinuities due to the large steps between depth values. What's the default near plane setting of the camera? Try changing it to 0.3 or 0.1.
The rangeThreshold and rangeFalloff parameters also directly affect the occlusion detection. Your default values are quite large (~25 units for proximity checks plus 5 units of falloff). This means that occlusion shadows will appear everywhere even where they don't make much sense. Try the following settings:
ao={{
	samples: 21, // May get away with less samples
	rings: 4, // Just make sure this isn't a multiple of samples
	distanceThreshold: 1.0, // These are perfectly fine **
	distanceFalloff: 0.0, // **
	rangeThreshold: 0.015, // Controls sensitivity based on camera view distance **
	rangeFalloff: 0.002, // **
	luminanceInfluence: 0.9,
	radius: 14, // Spread range
	scale: 1.0, // Controls intensity **
	bias: 0.05 // **
}}

It would also be interesting to see if enabling the stencilBuffer flag during the EffectComposer creation fixes the issue on the iOS device. (This would switch to UnsignedInt248Type for the depth texture instead of UnsignedIntType.)

I'll forward it, and thanks for always taking the time and effort! Always learning something when coming here.
The default near is 0.1, i have otherwise changed the values to yours.

I did some testing with my Android phone and found that it also struggles with the SSAOEffect. It renders the same weird stripes in the sandbox example and the postprocessing SSAO demo.

Try changing it to 0.3 or 0.1.

@drcmda Sorry, I messed up here: you should always aim to set the near plane value as high as possible. If you can set it to 1.0, you'll get much better depth precision. This doesn't fix the artifacts, however, because there is actually another issue that causes them.
Since the artifacts look like they are caused by insufficient depth precision, I tried using a WebGL 2 context with a FloatType depth texture. This didn't change anything, though, which was surprising because FloatType is guaranteed to work in WebGL 2 and the depth precision should have increased. Then I tried packed RGBA depth for super precise depth. This appeared to have a positive effect on the artifacts but it didn't fix the underlying issue.
After some research I came across a post that mentions how depth buffer precision alone doesn't help if the shader doesn't also declare the depth sampler as highp. Adding this qualifier when GL_FRAGMENT_PRECISION_HIGH is defined solves the issue.
Since SSAO works fine on desktop in its current state I guess texture samplers just default to highp in this environment.
I'll publish a fix shortly.

Fixed in<EMAIL_ADDRESS>


[10.x] Add dispatchMany to Bus facade

I often find myself having to dispatch jobs that I don't need to chain or batch.
// Before
foreach($jobs as $job){
    Bus::dispatch($job);
}

// After
Bus::dispatchMany($jobs);

Feel free to reattempt this when you have some more time.


[firebase_core] Package on pub.dev is v0.4.0+1 but repo is v0.4.0+8

pub.dev is behind the repo release of the package. See the package pubspec.yaml here:
https://github.com/flutter/plugins/blob/master/packages/firebase_core/pubspec.yaml

@workerbee22
The issue at https://github.com/flutter/flutter/issues/37538 has been closed and moved here. Future collaboration on this issue will be done here.

I created an issue in shields GitHub repository,
https://github.com/badges/shields/issues/4172
Look like they fixed it in
https://github.com/badges/shields/pull/4173
After this gets merged, then we might see correct version in badge.

It's merged, but still pub v0.4.0+1

No longer an issue


sample is confusing

i've implemented adapters as suggested in sample and its still not showing anything on screen

Did u create view for header ??

yeah i did.
`/**

Created by ghauri on 4/1/2016.
*/
public class DriveHeaderAdapter extends DriveItemInterfaceAdapter<RecyclerView.ViewHolder>
implements StickyRecyclerHeadersAdapter<RecyclerView.ViewHolder> {
public DriveHeaderAdapter(Context context, String accessToken) {
this.mContext = context;
this.mAccessToken = accessToken;
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext())
.inflate(R.layout.photos_item_thumb_view, parent, false);
return new RecyclerView.ViewHolder(view) {
};
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
DriveItem driveItem = getItem(position);
TextView ivItemTitle = (TextView) holder.itemView.findViewById(R.id.tv_item_title);
ImageView ivItemIcon = (ImageView) holder.itemView.findViewById(R.id.iv_item_icon);
ImageView ivItemThumb = (ImageView) holder.itemView.findViewById(R.id.iv_item_thumb);
if (driveItem != null) {
//Setting text view title
ivItemTitle.setText(driveItem.getTitle());
if (driveItem.getMimeType().equalsIgnoreCase("image/jpeg") || driveItem.getMimeType().equalsIgnoreCase("video/mp4"))
PicassoUtils.picassoLoadImageFromUrl(mContext, ivItemThumb,
driveItem.getThumbnailLink(), R.drawable.file_type_small_default, true, true, 0);
else
PicassoUtils.picassoLoadImageFromUrl(mContext, photoItemViewHolder.ivItemThumb,
driveItem.getIconLink(), R.drawable.file_type_small_default, true, true, 0);
     if (driveItem.getMimeType().equalsIgnoreCase("image/jpeg"))
         photoItemViewHolder.ivItemIcon.setImageResource(R.drawable.file_type_small_image);
     else
         PicassoUtils.picassoLoadImageFromUrl(mContext, photoItemViewHolder.ivItemIcon,
                 driveItem.getIconLink(), R.drawable.file_type_small_default, true, true, 0);

     //Handle click event on both title and image click
     photoItemViewHolder.tvItemTitle.setOnClickListener(clickListener);
     photoItemViewHolder.tvItemTitle.setTag(photoItemViewHolder);
     photoItemViewHolder.ivItemThumb.setOnClickListener(clickListener);
     photoItemViewHolder.ivItemThumb.setTag(photoItemViewHolder);
     //adjust imageview for different screen size
     android.view.ViewGroup.LayoutParams layoutParams = photoItemViewHolder.ivItemThumb.getLayoutParams();
     layoutParams.height = (int) (MainActivity.SCREEN_HEIGHT * 0.25);
     photoItemViewHolder.ivItemThumb.setLayoutParams(layoutParams);
 }
 //TextView textView = (TextView) holder.itemView;
 //textView.setText(getItem(position));

}
/**

Get the ID of the header associated with this item.  For example, if your headers group
items by their first letter, you could return the character representation of the first letter.
Return a value < 0 if the view should not have a header (like, a header view or footer view)

@param position
@return
*/
@Override
public long getHeaderId(int position) {
if (position == 0) {
return -1;
} else {
return getItem(position).getMimeType().charAt(0);
}
}

@Override
public RecyclerView.ViewHolder onCreateHeaderViewHolder(ViewGroup parent) {
View view = LayoutInflater.from(parent.getContext())
.inflate(R.layout.header_view_recycler, parent, false);
return new RecyclerView.ViewHolder(view) {
};
}
@Override
public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder, int position) {
DriveItem driveItem = getItem(position);
 TextView textView = (TextView) holder.itemView;
 textView.setText(String.valueOf(driveItem.getTitle()));
 //holder.itemView.setBackgroundColor(getRandomColor());

}
@Override
public int getItemCount() {
return 0;
}
private int getRandomColor() {
SecureRandom secureRandom = new SecureRandom();
return Color.HSVToColor(150, new float[]{
secureRandom.nextInt(359), 1, 1
});
}

}`

Yes i did
'
public class DriveHeaderAdapter extends DriveItemInterfaceAdapter<RecyclerView.ViewHolder>
implements StickyRecyclerHeadersAdapter<RecyclerView.ViewHolder> {
public DriveHeaderAdapter(Context context, String accessToken) {
    this.mContext = context;
    this.mAccessToken = accessToken;
}

@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View view = LayoutInflater.from(parent.getContext())
            .inflate(R.layout.photos_item_thumb_view, parent, false);
    return new RecyclerView.ViewHolder(view) {
    };
}

@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
    DriveItem driveItem = getItem(position);
    TextView ivItemTitle = (TextView) holder.itemView.findViewById(R.id.tv_item_title);
    ImageView ivItemIcon = (ImageView) holder.itemView.findViewById(R.id.iv_item_icon);
    ImageView ivItemThumb = (ImageView) holder.itemView.findViewById(R.id.iv_item_thumb);
    if (driveItem != null) {
        //Setting text view title
        ivItemTitle.setText(driveItem.getTitle());
        if (driveItem.getMimeType().equalsIgnoreCase("image/jpeg") || driveItem.getMimeType().equalsIgnoreCase("video/mp4"))
            PicassoUtils.picassoLoadImageFromUrl(mContext, ivItemThumb,
                    driveItem.getThumbnailLink(), R.drawable.file_type_small_default, true, true, 0);
        else
            PicassoUtils.picassoLoadImageFromUrl(mContext, photoItemViewHolder.ivItemThumb,
                    driveItem.getIconLink(), R.drawable.file_type_small_default, true, true, 0);

        if (driveItem.getMimeType().equalsIgnoreCase("image/jpeg"))
            photoItemViewHolder.ivItemIcon.setImageResource(R.drawable.file_type_small_image);
        else
            PicassoUtils.picassoLoadImageFromUrl(mContext, photoItemViewHolder.ivItemIcon,
                    driveItem.getIconLink(), R.drawable.file_type_small_default, true, true, 0);

        //Handle click event on both title and image click
        photoItemViewHolder.tvItemTitle.setOnClickListener(clickListener);
        photoItemViewHolder.tvItemTitle.setTag(photoItemViewHolder);
        photoItemViewHolder.ivItemThumb.setOnClickListener(clickListener);
        photoItemViewHolder.ivItemThumb.setTag(photoItemViewHolder);
        //adjust imageview for different screen size
        android.view.ViewGroup.LayoutParams layoutParams = photoItemViewHolder.ivItemThumb.getLayoutParams();
        layoutParams.height = (int) (MainActivity.SCREEN_HEIGHT * 0.25);
        photoItemViewHolder.ivItemThumb.setLayoutParams(layoutParams);
    }
    //TextView textView = (TextView) holder.itemView;
    //textView.setText(getItem(position));
}

/**
 * Get the ID of the header associated with this item.  For example, if your headers group
 * items by their first letter, you could return the character representation of the first letter.
 * Return a value < 0 if the view should not have a header (like, a header view or footer view)
 *
 * @param position
 * @return
 */
@Override
public long getHeaderId(int position) {
    if (position == 0) {
        return -1;
    } else {
        return getItem(position).getMimeType().charAt(0);
    }
}

@Override
public RecyclerView.ViewHolder onCreateHeaderViewHolder(ViewGroup parent) {
    View view = LayoutInflater.from(parent.getContext())
            .inflate(R.layout.header_view_recycler, parent, false);
    return new RecyclerView.ViewHolder(view) {
    };
}

@Override
public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder, int position) {
    DriveItem driveItem = getItem(position);

    TextView textView = (TextView) holder.itemView;
    textView.setText(String.valueOf(driveItem.getTitle()));
    //holder.itemView.setBackgroundColor(getRandomColor());
}

@Override
public int getItemCount() {
    return 0;
}

private int getRandomColor() {
    SecureRandom secureRandom = new SecureRandom();
    return Color.HSVToColor(150, new float[]{
            secureRandom.nextInt(359), 1, 1
    });
}

}`

Also was experiencing this issue, have the similar setup as @usman-ghauri. Turns out that for me. I was adding my values to the ArrayList that was associated with my adapter.
example:
list.addAll(items)
changed to:
adapter.addAll(items)
then:
adapter.notifyDataSetChanged()
Voila! You can see your UI now.
Don't know if this is a bug. b/c you should be able to list.addAll(items) and then notify your adapter

thanks @miguelespinoza im going to test that and confirm if it solves this issue.

Hello, I have the same issue as @usman-ghauri
The solution of @miguelespinoza didn't work for me. I am already adding items with a method "addData()" I created in my custom adapter.

Ok what i did is in header adapter where i bind view of header and items , i added called super addall function from the abstract class they defined
super.addAll(driveItemList);
and then it started displaying items but there is no header still.
now the question is, on what basis is it attaching header?
is it this function
@Override
public long getHeaderId(int position) {
    if (position == 0) {
        return -1;
    } else {
        return getItem(position).getMimeType().charAt(0);
    }
}

because in this function im trying to show header of file type in header.
also the view is in accurate too im using same layout file for both adapters
This screenshot is with this adapter and imports.

and this screenshot is from my adapter

Both these adapter uses same layout file but have different views. probably because of that header view?

I don't think that the the header is only attached thanks to the function getHeaderId because what I did was :
@Override
    public long getHeaderId(int position) {
        return 1;
    }
@Override
    public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder, int position) {
        TextView textView = (TextView) holder.itemView;
        textView.setText("Posts");
    }

And I don't have the header with the text "Posts" displayed on top.

Actually the function getHeaderId() isn't event called. And onCreateViewHolder() neither.

Okay I found the reason why I couldn't see my header !
First of all, it is compulsory to add the following decorations :
final StickyRecyclerHeadersDecoration headersDecor = new StickyRecyclerHeadersDecoration(placeUsersAdapter);
        peopleRv.addItemDecoration(headersDecor);

But even with that I couldn't see the text of the header (I could see its background though).
So I removed the line "singleLine=true" I had in the textview of the header, and then the text was finally visible!
I am so happy... This is the best day of my life.

@usman-ghauri you should complete the title of the issue with "can't see header" or something like that

@jeanvallon yeah i didn't decorated header either. i have to check that out and test it on my project. thanks for follow up


[DOCS] Blog on a QA workflow with transformers

Which page or section is this issue related to?

Feel free to install from dev directly and test if it works.

https://stackoverflow.com/questions/20101834/pip-install-from-git-repo-branch


Migrate nord.tmux file to ZSH shell

Knowing that most folks run bash as their primary shell, I wanted to create this PR in respect to Apples latest changes to their default shell for new installations. They made the new default shell ZSH and with that PR I've migrated the shell script part of this theme from Bash to ZSH.
Nothing much really, but I thought some might be interested in this.
Not sure where this would live in the theme - separate branch, different file, script that checks for which shell is the primary shell and then switch to that, …
HTH

There is still an issue with the commit 4e2dc2a5065f5e8e67366700f803c733682e8f8c.

There is still an issue with the commit 4e2dc2a5065f5e8e67366700f803c733682e8f8c.

I just found the issue. It was due to conditional expressions (http://zsh.sourceforge.net/Doc/Release/Conditional-Expressions.html).
Needed an additional pair of brackets.

I just found the issue. It was due to conditional expressions (http://zsh.sourceforge.net/Doc/Release/Conditional-Expressions.html).
Needed an additional pair of brackets.