More then one content type of response

Q
A

Bug or feature request?
Bug

Which Swagger-Core version?
2.0.0-rc1

Which Java version?
Java-8

Which JAX-RS framework & version?
Jackson 2.9.1,  Jersey 2.25.1

Hi,
I have an endpoint like above and I want to have more than one content type of response. As I see in the openAPI specification it is possible but using annotation I can'n generate it.
@POST
    @Operation(summary = "Create multilevel query execution", responses = {
            @ApiResponse(responseCode = "200",
                    content = @Content(mediaType = "application/multiLevel+json",
                            schema = @Schema(implementation = MultiLevelResult.class))),
            @ApiResponse(responseCode = "200",
                    content = @Content(mediaType = "application/flat+json",
                            schema = @Schema(implementation = FlatResult.class))),
            @ApiResponse(responseCode = "500", description = "An unexpected error has occurred. Error code is unexpected.error")})
    @Consumes({"application/execution.multiLevelQuery+json"})
    @Produces({"application/flat+json", "application/multiLevel+json"})

As result of the generation, I get only one content type.
"paths" : {
    "/queryExecutions" : {
      "post" : {
        "summary" : "Create multilevel query execution",
        "operationId" : "executeQuery",
        "parameters" : [ {
          "schema" : {
            "$ref" : "#/components/schemas/ClientMultiLevelQueryExecution"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/flatData+json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ClientFlatQueryResultData"
                }
              }
            }
          },
          "500" : {
            "description" : "An unexpected error has occurred. Error code is unexpected.error"
          }
        }
      }
    }
  }

Does it not implemented yet?

This would work defining multiple contents within 200 response:
@POST
    @Operation(summary = "Create multilevel query execution", responses = {
            @ApiResponse(responseCode = "200",
                    content = {
                       @Content(mediaType = "application/multiLevel+json",
                            schema = @Schema(implementation = MultiLevelResult.class)),
                       @Content(mediaType = "application/flat+json",
                            schema = @Schema(implementation = FlatResult.class))
                    }
             ),
            @ApiResponse(responseCode = "500", description = "An unexpected error has occurred. Error code is unexpected.error")})
    @Consumes({"application/execution.multiLevelQuery+json"})
    @Produces({"application/flat+json", "application/multiLevel+json"})

Also please switch to 2.0.0-rc3.

^ The previous ghost post was me from a github user that no longer exists.
Are there any news relating to this issue? Is it possible/will it be possible to have two separate resource methods use the same path but with different media types?

Atm this is not possible; support for such a scenario is planned, but probably it won't make it for next release.

Thank you @frantuma! :)

see also #2694 which reports the same behaviour

Any update on this?
It seems that API accept header versioning is not possible with Swagger at the moment?

Is there at least a suggested path forward while this is not supported?  For cases where there are multiple resources (e.g. getAsJSON and getAsCSV), I had thought it would work to decorate one with multiple @Content annotations for each mime type, and leave the other unannotated.  However, it looks like the order in which each resource is parsed is non-deterministic, so if the annotated resource is evaluated second, the correct docs are produced, but if the unannotated resource is evaluated second, it overwrites the annotated resource and the docs are lost.
I'm fishing around for the least hacky way to solve this, given that there doesn't seem much interest in supporting the use case.  Is there a way to ignore a resource method?  The only way I can think of doing this is to put annotated resources in a different package from unannotated ones.

Bump; I'm also looking for a fix or workaround for this issue; currently on Swagger-Core 2.7.0.

Any chance to have this fixed? Can you suggest any workaround?


Fix: templates render invalid yaml

In case 'global.imagePullSecret.name' is set, those templates were missing a newline in the yaml output.

Thanks for the pull request @holgpar - Your input is highly appreciated! Can be merged!


chore!: replace blackbox_supported with opcode_supported

This PR allows the backend to indicate which opcode they support.
For instance we could have a TP backend which supports ROM opcode and not the RAM opcode.

For context on this, we'll also need to modify the isOpcodeSupported type so that this will be usable in acvm::compile due to one of the issues in https://github.com/noir-lang/acvm/issues/183
These changes need to be made in ACVM so does't affect this PR directly.

This needs to have it's base changed to the ACVM 0.12.0 branch.


How to change the background image for the header

I have already tried placing background.jpg under static/images/header/

Did you set param at config/_default/params.toml ?
...
homeHeaderType = "img"
...

Yes. PFA the screenshots.

Then, did you make a _index.md file at content folder?

Yes, sire :smiley_cat:

Then, it must work if you have a file at root/static/images/header/background.jpg file

Exactly. That is what I shared above. It just doesn't work. :man_shrugging:

An update:
Moving background.jpg outside of header folder into its parent images and updating the link in _index.en.md file:
 imageSrc: images/background.jpg
Fixed the issue. I can now load the custom background image.
Note: I tested with the image being in header folder vs its parent images and it only works when it is inside images and not when it is placed inside header child folder.

This is very strange.
When I tested it on Window10, it works well, But
When I tested it on Ubuntu, the Hugo is not following the lookup order.
Hugo must find a file at root/static image first. If the file does not exist, then Hugo searches the file at the theme folder, which is not the case on Ubuntu.
I think I have to open a new issue on the Hugo repo regarding this.
I'm closing this issue now.
The quick solution: just change the filename or path, and you are good to go


Mechanism to Find Referrer App (PID, etc.)

Currently we navigate users between different apps. But these navigations restart the state of chaise and we don't have any way of knowing how users end up in a chaise app.
We should modify the URLs that we are generating in chaise to include the necessary attributes (most probably as query parameter) to track the referrer app. This can be achieved by just passing the PID, considering if PID is actually universally unique. If it's not we should pass cid, and wid too (considering this combination is always unique).
We mainly need this for log purposes, but this might be useful for other features.

We can simply change the applink function that is defined in chaise to include the ref_pid as a query parameter. So when user navigates to other parts of the app via links and buttons that we provide, the url will include this query parameter and the second page has knowledge of ref_pid.
Now the question is that in the second page, to which request should we attach this ref_pid? Should it be attached to all the requests (same as cid, wid, and pid)? Or just the first request on that page? What is the definition of first request on the page? the request for getting the schema? Or the main read? In case of recordedit in create mode, there's no main read.

new name: ppid, pcid
example.com/asdasdasdas?pcid=whatever&
example.com/asdasdasdas?pcid=whatever&
attach to the main request of each app

recordedit: submit
recordset and record page: main read

The changes have been done. Please refer to the change log for more information.


fixes test/functional/rpc_signmessage.py

Description
test/functional/rpc_signmessage.py was failing because it was using invalid keys and signature - they were legacy from bitcoin core.
Notes
functional test: test/functional/rpc_signmessage.py was failing with the following error:
$ test/functional/rpc_signmessage.py
2021-07-02T15:18:29.761000Z TestFramework (INFO): Initializing test directory /var/folders/zw/q3rt8wmn6wn_bgj0fy5g_vnr0000gn/T/BGL_func_test_6svz8z48
2021-07-02T15:18:30.889000Z TestFramework (INFO): test signing with priv_key
2021-07-02T15:18:30.890000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/bitgesell/test/functional/test_framework/test_framework.py", line 129, in main
    self.run_test()
  File "test/functional/rpc_signmessage.py", line 27, in run_test
    assert_equal(expected_signature, signature)
  File "/bitgesell/test/functional/test_framework/util.py", line 50, in assert_equal
    raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
AssertionError: not(INbVnW4e6PeRmsv2Qgu8NuopvrVjkcxob+sX8OcZG0SALhWybUjzMLPdAsXI46YZGb0KQTRii+wWIQzRpG/U+S0= == H+9fodtWIWFIVzvP93SmEhGRkWYUCauBko1X0HLpkIpcIC103x9cnCx8/qCx6f+hwgW5peTVGUQCYtnmITgsdQ0=)
2021-07-02T15:18:30.944000Z TestFramework (INFO): Stopping nodes
2021-07-02T15:18:31.264000Z TestFramework (WARNING): Not cleaning up dir /var/folders/zw/q3rt8wmn6wn_bgj0fy5g_vnr0000gn/T/BGL_func_test_6svz8z48
2021-07-02T15:18:31.264000Z TestFramework (ERROR): Test failed. Test logging available at /var/folders/zw/q3rt8wmn6wn_bgj0fy5g_vnr0000gn/T/BGL_func_test_6svz8z48/test_framework.log
2021-07-02T15:18:31.264000Z TestFramework (ERROR):
2021-07-02T15:18:31.265000Z TestFramework (ERROR): Hint: Call /bitgesell/test/functional/combine_logs.py '/var/folders/zw/q3rt8wmn6wn_bgj0fy5g_vnr0000gn/T/BGL_func_test_6svz8z48' to consolidate all logs
2021-07-02T15:18:31.265000Z TestFramework (ERROR):
2021-07-02T15:18:31.265000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2021-07-02T15:18:31.265000Z TestFramework (ERROR): https://github.com/BGL/BGL/issues
2021-07-02T15:18:31.265000Z TestFramework (ERROR):

This PR fixes that so that the test starts to succeed:
$ test/functional/rpc_signmessage.py
2021-07-02T15:20:22.812000Z TestFramework (INFO): Initializing test directory /var/folders/zw/q3rt8wmn6wn_bgj0fy5g_vnr0000gn/T/BGL_func_test_l_nuvgew
2021-07-02T15:20:23.917000Z TestFramework (INFO): test signing with priv_key
2021-07-02T15:20:23.919000Z TestFramework (INFO): test signing with an address with wallet
2021-07-02T15:20:23.996000Z TestFramework (INFO): test verifying with another address should not work
2021-07-02T15:20:24.165000Z TestFramework (INFO): Stopping nodes
2021-07-02T15:20:24.485000Z TestFramework (INFO): Cleaning up /var/folders/zw/q3rt8wmn6wn_bgj0fy5g_vnr0000gn/T/BGL_func_test_l_nuvgew on exit
2021-07-02T15:20:24.485000Z TestFramework (INFO): Tests successful

BTC/BGL PR reward address

If there's testnet BGL, please send to this address: Ejt5fCe8NyLDC3nRk5ptc85PWSubNDUY4D
bgl1qj78h3c8evhw8zn06ltvpvtx8encewlxcd9263l

This is nice addition to the #27 in progress. Thanks for the contribution, this PR would be rewarded. I would merge it in few days.

Thats good to hear. @van-orton does BGL have a testnet?


cocomac: Watch canamedsplug.com

cocomac requests the watch of the watch_keyword canamedsplug\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

canamedsplug\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

This was actually seen in spam - https://metasmoke.erwaysoftware.com/post/364877

Approved by tripleee in Charcoal HQ


More than 500 divisions in halftone mode

Hello. I tried more than that on 4000*2000 image and this didn't work for some reason.

The slider only goes up to 100 so I'm not too bothered about what happens when you go beyond that.
However I just tried it and it worked fine for me. It did make the browser slow right down, but that's to be expected when you've got an SVG with 250,000 paths in it.

I tried it on 8000*4160 pixels image. The highest is 504, even 505 does not work. Interesting.
Well, if you wouldn't try to fix that, I should look through source code by myself. Maybe I would be able to correct this restriction.


The experiments of CE+TailCalib

Thanks for your excellent work!
But I have a question about experiments of CE+TailCalib. I want to find this experiment, but it seems that not including in below.
So how can I find the information about this experiment? Thank you!

@madoka109 Replacing the settings of 1.2 pretrained part model loading part with the setting of 0.1 and corresponding ce pretrained weight directory in the experiments_maker.py will get the experiment you are looking for.


Fix dead link

I noticed that the usage tldr link just takes you to the main readme which doesn't have any usage info (at this time).
I was thinking it could also go here https://github.com/lynndylanhurley/devise_token_auth/tree/master/docs/usage but thought the gitbook docs looked nicer and the content is the same from what I could tell.

thanks @NRauh !


Deficient Function added

I tried adding the function that returns deficient numbers and rebasing it locally. Then my git / github skills fell apart. This should be a pull request that adds printDeficientNumbers() function to the abundantNums.c file. Please let me know if there are any problems.

I had to change the progress.md file to show C code in the Abundant numbers section, this should have happened during my first abundantNums.c pull but someone got some Java code in there ahead of me I think I got it okay though, then saw that you actually have a Deficient numbers folder. If you need to disapprove this pull it no problem. I think I'll try rebasing attempt two on the Deficient folder. Sorry if this is a burden to you all. Thanks again.


[stable/mongodb] Add affinities to Statefulsets

Signed-off-by: tompizmor<EMAIL_ADDRESS>
What this PR does / why we need it:
This PRs adds missing affinities to the primary, secondary and arbiter statefulsets.
Which issue this PR fixes

fixes #8821

Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] DCO signed
[X] Chart Version bumped

/ok-to-test
/lgtm


Match narrowing does not work for non-inlined readonly types

Following code doesn't compile on beta4, but used to work on beta3.
import ballerina/io;

type T readonly & S;
type S [INT, int]|[STRING, string];

// It works if the type is inlined as below
// type T readonly & [INT, int]|[STRING, string];

const INT = 1;
const STRING = 2;

public function main() {
    T t = [STRING, "hello"];
    match t {
        [STRING, var val] => {
            string s = val;
            io:println("str:" + s);
        }
        [INT, var val] => {
            int i = val;
            io:println("int:" + i.toString());
        }
    }
}

Given error: incompatible types: expected 'string', found '(any|error)'

Fixed in https://github.com/ballerina-platform/ballerina-lang/pull/33708.


[two_dimension_scrollable] allow to scroll in other dimension without having to wait for the scroll to stop

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
Currently, when user scrolls in Axis.horizontal, he has to wait for the scroll to stop completely, before start scroll in Axis.vertical and vice versa.
This cause a delay, which is not a good UX
Proposal
Please help to allow user to change scroll direction without waiting for the scroll to stop.
This is an example
https://gearheart.io/_next/image/?url=https%3A%2F%2Fapi.gearheart.io%2Fuploads%2Ffast_frozen_scroll_20230303_155855_6824d8f31b.gif&w=3840&q=75

Hi @ThanhDat-Vo this was fixed by https://github.com/flutter/flutter/pull/138442 which should be available in the next stable release.


FLEX-4610 ~ Uses slice instead of page for device log items.

SonarQube analysis reported 1 issue
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 DeviceManagementEndpoint.java#L153: Define a constant instead of duplicating this literal "Exception: {}, StackTrace: {}" 3 times.


use requirements.txt to formalize python deps

Which issue does this PR close?

Closes #.
Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

Codecov Report

Merging #484 (b142ed8) into master (33ff660) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #484   +/-   ##
=======================================
  Coverage   75.80%   75.80%
=======================================
  Files         153      153
  Lines       25924    25924
=======================================
  Hits        19652    19652
  Misses       6272     6272

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 33ff660...b142ed8. Read the comment docs.

Looks great. Great to see pip-tools being used :)
What do you think about adding to the README how to update test dependencies? Something like

To change test dependencies, change the requirements.in and run

change requirements.in

pip install pip-tools

pip-compile --generate-hashes

To update dependencies, run

pip-compile update

More details here

Personally I lean towards using poetry but that demands changes to publishing procedures as well - what do you think of that?

I do not quite follow: AFAIK both pip-tools and poetry are tools for Python applications, not Python libraries. For libraries, we only need to provide a setup.py / project.toml, which madurin does for us. I.e. the install_requires is here.
AFAI understand this PR is only concerned with the dependencies used for testing.

I do not quite follow: AFAIK both pip-tools and poetry are tools for Python applications, not Python libraries. For libraries, we only need to provide a setup.py / project.toml, which madurin does for us. I.e. the install_requires is here.
AFAI understand this PR is only concerned with the dependencies used for testing.

i meant the format for defining the project (the poetry way), but you are right this is probably non-related to this PR.

I do not quite follow: AFAIK both pip-tools and poetry are tools for Python applications, not Python libraries. For libraries, we only need to provide a setup.py / project.toml, which madurin does for us. I.e. the install_requires is here.
AFAI understand this PR is only concerned with the dependencies used for testing.

README.md updated, PTAL


feature/move_search

Context

Does this issue have a Trello card?
https://trello.com/c/bWDNgSgo/772-move-the-search-bar-into-the-header

If this is an issue, do we have steps to reproduce?
n/a

Intent

What changes are introduced by this PR that correspond to the above card?
search bar relocated to top bar
page navigation recoloured and resized
section break restyled

Would this PR benefit from screenshots?

Considerations

Is there any additional information that would help when reviewing this PR?

n/a

Are there any steps required when merging/deploying this PR?
n/a

Checklist

[ ] This PR contains only changes related to the above card
[ ] Tests have been added/updated to cover the change
[ ] Documentation has been updated where appropriate
[ ] Tested in Development

Just checked a few pages
404 page is not looking too healthy - bit squashed up title and missing categories

Search results is bit squashed up too

are we in a position we can get rid of pop tops from establishment.json etc..?


Breakpoints not hit in activate() method of extension when debugging

I raised this in the past (https://github.com/microsoft/vscode/issues/74525) and it turned out to be outFiles being set incorrectly, but I'm seeing it again today and I'm sure they're correct, and I can also repro using a yo code created extension.

Create an extension with yo code
Change activation events to *
Add the following code in the activate method:  console.log("Test!");
  setImmediate(() => {
  	console.log("Test!");
  });
  setTimeout(() => {
  	console.log("Test!");
  }, 50);

Add breakpoints to all console.log lines
Press F5 to run

The first/only breakpoint to be hit is the one in the timeout:

This should be fixed already in VS Code Insiders and on the nightly release. If it repros there, can you grab logs?
/jsDebugLogs

Yep, you're right - sorry for the noise!

no worries, duplicate reports are better than unreported issues :)


Enable token service - [closed]

In GitLab by @wknet123 on Jul 27, 2017, 02:51
Merges dev-token-service -> dev

In GitLab by @wknet123 on Nov 13, 2019, 09:50
closed


Does not receive event for oauth url redirect

Hi there,
if you install url_launcher and uni_links and open up a stream to uni.getUriLinksStream().listen(print); and then url.launch("https://myserver/myredirect") which redirects to a scheme, such as myscheme:/?payload="foo", you will see the browser disappear (as expected) but no event is recoreded by uni_links. However, if you open your browser manually, and type  myscheme:/?payload="foo" in the address bar, it will open the app and uni_links will fire the event to console.
Short version: if you're using uni_links to listen for oauth2 redirects, the events do not fire. But if you use it any other way, it seems to work.
Do you have any suggestions for listening for these events?

Hi,
I am having the exact same issue while trying to implement oauth. Were you able to solve this issue?


Running/debugging

Hi! Thanks for the great work :-)
The install went perfectly, but when I tried to run the sample program it seemed that running and debugging is not part of Millet, I guess? What is the suggested interaction - compile and run from the command line?

Yes. Currently actually running SML code is outside the scope of Millet. Millet is only a language server - it analyzes code without running it, using the "statics" from the definition of Standard ML.
To run SML code, you'll need a full implementation of Standard ML. Some popular ones are SML/NJ and MLton.
Implementing the ability to run SML (the "dynamics") would be a massive undertaking and isn't currently planned for Millet for the foreseeable future.
Thank you very much for your interest in the project!

There is a (WIP?) debugger for SML, as well, called mulligan.


Svelte-toc interferes with other anchor links in the document

Hi,
I think it's possible that svelte-toc interferes with other anchor links and smooth scrolling to them in the document.
I add it inside a <body class='flex main-bg'>  like so:
<div class='w-50'>
    <div
  on:click="{() => showToc = !showToc}"
  class='main-bg w-9 h-9 m-2 hover:cursor-pointer sticky top-0'>
      <svg fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
        <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"></path>
      </svg>
  </div>
  {#if showToc}
  <Toc
    title = {"Table of Contents"},
    desktop = {true},
    headingSelector = {":is(h1, h2, h3):not(.toc-exclude)"}
    --toc-desktop-max-width = "20em"/>
    {/if}
</div>

The former is just an icon-burger button.
If I comment out the above the other anchor links work as expected (smooth scroll to them).
I am using Svelte and Tailwind.
For me this isn't such a big deal due to the nature of my anchor links (just references and I have them on hover anyway) but I thought you might want to be aware of it.
I can provide a link to the document to see it live if you like.
Cheers, and thanks again for this component, it made my project so much nicer.

Thanks for the bug report. I think I remember seeing this as well at some point. Haven't had time to dig into it yet so can't offer a quick fix. A link to your site to see the problem in the wild would be great! 👍

Thanks for the bug report. I think I remember seeing this as well at some point. Haven't had time to dig into it yet so can't offer a quick fix. A link to your site to see the problem in the wild would be great! 👍

I think it's browser specific, works almost fine with firefox (sometimes it goes to the wrong anchor, when I turn it off it works again in FF). In Chrome/Edge this always doesn't work for me.
Mondaystats.com/thesis
the references i.e. [18] are the anchor links that I have.
Cheers,
Oli

Yes, this is the behavior I remember seeing! I think making the scroll handler passive might solve this problem. Is the code public? If not, could you edit the Toc.svelte in your node_modules in-place as follows?
<svelte:window
  bind:innerWidth={window_width}
-  on:scroll={set_active_heading}
+  on:scroll|passive={set_active_heading}
  on:click={close}
/>

Be sure to restart the dev server. If you try that, let me know if it helps.

Also, great work on that thesis! Very impressive. 👍

Actually, this won't work. No need to try the passive modifier. I remember looking into this before. This appears to be a bug in Chromium that's been reported many times on SO and in the Chromium issue tracker as well:

https://bugs.chromium.org/p/chromium/issues/detail?id=1121151
https://bugs.chromium.org/p/chromium/issues/detail?id=1043933
https://bugs.chromium.org/p/chromium/issues/detail?id=833617

which might explain why it's working in FF. Sadly no response from the Chromium devs yet.

2 workarounds:

removehtml {
  scroll-behavior: smooth;
}

Pass keepActiveTocItemInView={false} to <Toc />.

@janosh thanks a lot for this (and the compliment :-)) I'll try with removing smooth scrolling, I have it through tailwind, and the second option too, I'll update if this works.

No need to remove smooth scrolling anymore. If you look at https://github.com/janosh/svelte-toc/pull/37, I changed svelte-toc to wait for any page scrolling to finish before scrolling the active ToC item into view. To fix your problem, try just updating svelte-toc to latest.

No need to remove smooth scrolling anymore. If you look at #37, I changed svelte-toc to wait for any page scrolling to finish before scrolling the active ToC item into view. To fix your problem, try just updating svelte-toc to latest.

That's awesome, thank you so much!


Question; Listing Unique Sensor Values (not numeric)

Scenario; I have a sensor that returns a string value for example red, blue, green - lets call the sensor "color"
If I dont know all the possible values but want to retrieve them from the database via query is there any query I can run?
In a normal RDBMS I could run either of these queries;
"select distinct color from table" and I would get the unique values.
Or
"select color,count(color) from table group by color" and I would get the unique values and their count.
In iotDB "group by" only works for time so its not possible to run a query using group by.
Question; Is there any query that would achieve this?

Hi ope-nz,
At least, IoTDB does not support that currently...
"Group by" in IoTDB:

Group by time interval.

Group by partial path of series, e.g., group by level=1,
e.g., you have two prefix path: root.china.a, root.china.b, root.newzealand.a,
select count(*) from root group by level=1 will returns the the total count of data points that belongs to China, and the total counts of data points taht belongs to New Zealand.

Group by data value is not supported now..
Quickly thinking, I have no a very efficient algorithm to implement it...

How do you think?
BYW, send mails to<EMAIL_ADDRESS>(subscribe<EMAIL_ADDRESS>before your first sending email) if you can not get responses from github issues (Some guys in the community like Github issue, but for me, I rarely read these issues... and mainly focus the mailing list..)

Thanks @jixuan1989 I will join the mailing list.
I couldnt see a way to achive this either. I have resorted to storing the list in a RDBMS with a unique key and am storing the key in iotDB. It cuts down on iotDB storage too.


Is there a little mistake on confusing SRDF and SDF in Appendix 7 of the paper?

Hi, thanks for your great work!
When I read the paper, I find it seems that there is a mistake in Appendix 7.

By the way, I wonder if there exists an algorithm to construct SRDF from depth images.
Thanks a lot~

Hello, sorry for the late reply.
This is a toy example that the world only consists of two surfaces. In this setup, the SRDF value of any point x on the ray is the same as SDF value when the surface is perpendicular to the ray. In both cases, the absolute values of SDF or SRDF are the distance along the ray.
Hope my explaination answers your question and feel free to re-open this issue.


Make restic diff use last 2 snapshots by default

Output of restic version
restic 0.12.0 compiled with go1.15.8 on linux/386
What should restic do differently? Which functionality do you think we should add?
IMHO a lot of people use restic diff to compare the 2 latest snapshots. Not having to specify those explcitly makes life for those people easier. I don't know the code but I think it is most likely not difficult to implement. restic diff withoput any further parameters would then diff the two latest snapshots.

IMO a duplicate of #1965

Oh, that's correct, thank you for pointing this out - closing this duplicate.


Update visual style of CupertinoSwitch to match iOS 13

Description
Updates the CupertinoSwitch widget to reflect the revised design of switches in iOS 13. In particular, the border no longer animates in response to user interaction. Instead, the background fades between colors.
After:
https://i.imgur.com/dMV7T5G.gif (slow 5x)
https://i.imgur.com/arKDoNk.gif (normal)
Before:
https://i.imgur.com/SxDYis4.gif (slow 5x)
https://i.imgur.com/k7HCNJU.gif (normal)
Related Issues
Issue #33797
Tests
Added a test to verify golden images of the slider in on and off states.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I signed the [CLA].
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (Please read [Handling breaking changes]). Replace this with a link to the e-mail where you asked for input on this proposed change.
[x] No, this is not a breaking change.

Hi @brandondiamond thank you for contributing, the PR looks awesome! However tests are mandatory for PRs like this. Could you add tests to ensure it works as expected?
In case you want to add golden tests: https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter

Thanks so much for the quick review! I'll get started on those golden tests right away. Given that this is a visual change, are there any additional tests (beyond the golden tests) that you would suggest?

Added GIFs of before/after:
After:
https://i.imgur.com/dMV7T5G.gif (slow 5x)
https://i.imgur.com/arKDoNk.gif (normal)
Before:
https://i.imgur.com/SxDYis4.gif (slow 5x)
https://i.imgur.com/k7HCNJU.gif (normal)

@brandondiamond thanks for the GIFs!
Now that the track color change is animated, another thing we could add a test for is to verify the track color doesn't just jump between lightBackgroundGray and widget.activeColor. But in my opinion adding golden images for both active/inactive switches should be good enough.

Thanks Justin! I added a clip to ensure the thumb shadow doesn't exceed the track. I know clipping can be expensive so wanted to verify that it'd be okay in this case.
I also wanted to be mindful of antialiasing (since the clip is curved), so I used saveLayer to group the thumb drawing commands together. There's an additional save() and restore() around the clip because I wasn't certain whether there's an automatic save/restore around each paint() -- particularly for render objects that don't enforce repaint boundaries; I don't want subsequent drawing operations to be affected by the clip.
I'm very grateful for the opportunity to contribute -- thanks again for reviewing :)

Added golden tests and generated goldens. I followed the instructions here but ran into permission issues when attempting to push my golden assets commit to the repo.
What's the correct way to push a change to the goldens repo without special permissions?

Thanks!  I tried running this again and now that it's clipped it looks perfect to my eye.
Regarding performance and antialiasing, I'm going to track down someone that can confirm.
Regarding permissions on the goldens repo, I believe you'll have to fork that repo and open a PR like you did with this PR.  I know we tightened up this process recently so I could be wrong, but that's how I did it a few months ago.  If you post back with a link to the goldens PR, I can review it really quickly though.

Awesome, thanks Justin :)
Here's the goldens PR:
https://github.com/flutter/goldens/pull/40
Once that goes through, I'll update this PR to reference the commit that includes the new goldens.

Updated the tests, generated new goldens (ready to go in https://github.com/flutter/goldens/pull/40 -- I'll update the golden hash here once that is merged), and switched to using the PaintingContext to push a clip.

Thanks for the review! I'm going to read the style guide today to make sure I don't repeat these formatting mistakes [too often :)]

Goldens merged and bumped the golden version! Should be good to go.

No worries! I've made that mistake many times

Currently blocked by #36690, which will resolve the golden sync issues that are causing the tests to fail here.

Thanks for looking into this. Please let me know if there is anything I can do to help.

@Piinks Thanks! What's the best way to do this without messing up commit history?

 :)

Thanks so much! Just pushed -- hopefully all looks okay :)


Can't create Snowflake External Table of table_format: delta

Describe the bug
Getting:
Encountered an error while running operation: Database Error
  001425 (22023): SQL compilation error:
  invalid property combination 'REFRESH_ON_CREATE'='true' and 'TABLE_FORMAT'='DELTA'

I've notice the macro doesn't account for the REFRESH_ON_CREATE field - docs.
The fix looks simple. I will come up with an PR.
Steps to reproduce

Expected results

Actual results

Screenshots and log output

System information
The contents of your packages.yml file:
Which database are you using dbt with?

[ ] redshift
[x] snowflake
[ ] other (specify: ____________)

The output of dbt --version:
1.3

The operating system you're using:
The output of python --version:
Additional context
Using DBT Cloud

bump

bump

More recent pr:  https://github.com/dbt-labs/dbt-external-tables/pull/240


Incompatible with librarian trade finder

latest log - https://mclo.gs/y1QItmN
crash report - https://mclo.gs/MFmdnZO
Minecraft 1.20.1
Quilt 1.19.1
Mod version in logs

it appears that ltf tries to access tooltips before the client is initialized, which tt+ is not expecting. it will probably be easier for me to fix this than the librariantradefinder devs.

fixed in version 1.2.5

thank


Release kafka 2.8.1-2.3.1 (automated commit)

Release kafka 2.8.1-2.3.1 (automated commit)
Description:
Source URL: https://infinity-artifacts.s3.amazonaws.com/permanent/kafka/assets/2.8.1-2.3.1/stub-universe-kafka.json
Changes between revisions 900 => 1000:
0 files added: []
0 files removed: []
3 files changed:
--- 900/marathon.json.mustache
+++ 1000/marathon.json.mustache
@@ -32,9 +32,9 @@
   {{/service.service_account_secret}}
   "env": {
     "PACKAGE_NAME": "kafka",
-    "PACKAGE_VERSION": "2.8.0-2.3.0",
-    "PACKAGE_BUILD_TIME_EPOCH_MS": "1569481461758",
-    "PACKAGE_BUILD_TIME_STR": "Thu Sep 26 2019 07:04:21 +0000",
+    "PACKAGE_VERSION": "2.8.1-2.3.1",
+    "PACKAGE_BUILD_TIME_EPOCH_MS": "1574012807385",
+    "PACKAGE_BUILD_TIME_STR": "Sun Nov 17 2019 17:46:47 +0000",
     "FRAMEWORK_NAME": "{{service.name}}",
     "FRAMEWORK_PRINCIPAL": "{{service.service_account}}",
     "FRAMEWORK_USER": "{{service.user}}",
@@ -52,7 +52,7 @@
     "SETUP_HELPER_URI": "{{resource.assets.uris.setup-helper-zip}}",
     "ZOOKEEPER_CLIENT_URI": "{{resource.assets.uris.zookeeper-client-jar}}",
     "CUSTOM_KAFKA_PRINCIPAL_URI": "{{resource.assets.uris.custom-kafka-principal-jar}}",
-    "KAFKA_VERSION": "2.12-2.3.0",
+    "KAFKA_VERSION": "2.12-2.3.1",

     "PLACEMENT_CONSTRAINTS": "{{{service.placement_constraint}}}",
     {{#service.region}}
@@ -148,8 +148,8 @@
     {{/service.jmx.enabled}}

-    "KAFKA_VERSION_PATH": "kafka_2.12-2.3.0",
-    "TASKCFG_ALL_KAFKA_VERSION_PATH": "kafka_2.12-2.3.0",
+    "KAFKA_VERSION_PATH": "kafka_2.12-2.3.1",
+    "TASKCFG_ALL_KAFKA_VERSION_PATH": "kafka_2.12-2.3.1",

     "KAFKA_ZOOKEEPER_URI": "{{kafka.kafka_zookeeper_uri}}",

--- 900/package.json
+++ 1000/package.json
@@ -2,19 +2,15 @@
   "packagingVersion": "4.0",
   "minDcosReleaseVersion": "1.11",
   "upgradesFrom": [
-    "2.4.0-1.1.1",
-    "2.5.0-2.1.0",
-    "2.6.0-2.2.1",
-    "2.7.0-2.3.0"
+    "2.7.0-2.3.0",
+    "2.8.0-2.3.0"
   ],
   "downgradesTo": [
-    "2.4.0-1.1.1",
-    "2.5.0-2.1.0",
-    "2.6.0-2.2.1",
-    "2.7.0-2.3.0"
+    "2.7.0-2.3.0",
+    "2.8.0-2.3.0"
   ],
   "name": "kafka",
-  "version": "2.8.0-2.3.0",
+  "version": "2.8.1-2.3.1",
   "maintainer"<EMAIL_ADDRESS>   "description": "Apache Kafka is used for building real-time data pipelines and streaming apps. It is horizontally scalable, fault-tolerant, wicked fast, and runs in production in thousands of companies.",
   "selected": true,
@@ -25,16 +21,15 @@
     "pubsub",
     "kafka"
   ],
-  "preInstallNotes": "Default configuration requires 3 agent nodes each with: 1.0 CPU, 2048 MB MEM and 1,5000 MB Disk.\n\nNote that Kafka requires a Zookeeper instance to be available before starting. It is a good practice to deploy a dedicated Zookeeper service, but you can always fall-back into using the DC/OS core Zookeeper instance instead.",
-  "postInstallNotes": "The DC/OS Apache Kafka service is being installed.\n\n\tDocumentation: https://docs.mesosphere.com/service-docs/kafka/2.8.0-5.3.0/\n\tIssues: https://docs.mesosphere.com/support/",
-  "postUninstallNotes": "The DC/OS Apache Kafka service is being uninstalled.\n\nFor DC/OS versions from 1.11 no further action is required. For older DC/OS versions follow the instructions at https://docs.mesosphere.com/service-docs/kafka/2.8.0-5.3.0/uninstall to remove any persistent state if required.",
+  "preInstallNotes": "Default configuration requires 3 agent nodes each with: 1.0 CPU, 2048 MB MEM and a 5000 MB Disk.\n\nNote that Kafka requires a Zookeeper instance to be available before starting. It is a good practice to deploy a dedicated Zookeeper service, but you can always fall-back into using the DC/OS core Zookeeper instance instead.",
+  "postInstallNotes": "The DC/OS Apache Kafka service is being installed.\n\n\tDocumentation: https://docs.mesosphere.com/service-docs/kafka/2.8.1-2.3.1/\n\tIssues: https://docs.mesosphere.com/support/",
+  "postUninstallNotes": "The DC/OS Apache Kafka service is being uninstalled.\n\nFor DC/OS versions from 1.11 no further action is required. For older DC/OS versions follow the instructions at https://docs.mesosphere.com/service-docs/kafka/2.8.1-2.3.1/uninstall to remove any persistent state if required.",
   "scm": "https://github.com/mesosphere/dcos-kafka-service",
-  "website": "https://docs.mesosphere.com/services/kafka/2.8.0-5.3.0",
+  "website": "https://docs.mesosphere.com/services/kafka/2.8.1-2.3.1",
   "licenses": [
     {
       "name": "Apache License Version 2.0",
       "url": "https://raw.githubusercontent.com/apache/kafka/trunk/LICENSE"
     }
-  ],
-  "lastUpdated":<PHONE_NUMBER>
-}
+  ]
+}--- 900/resource.json
+++ 1000/resource.json
@@ -4,12 +4,12 @@
       "jre-tar-gz": "https://downloads.mesosphere.com/java/openjdk-jre-8u212b03-hotspot-linux-x64.tar.gz",
       "libmesos-bundle-tar-gz": "https://downloads.mesosphere.com/libmesos-bundle/libmesos-bundle-1.14-beta.tar.gz",
       "bootstrap-zip": "https://downloads.mesosphere.com/dcos-commons/artifacts/0.57.0/bootstrap.zip",
-      "kafka-tgz": "https://downloads.mesosphere.com/kafka/assets/kafka_2.12-2.3.0.tgz",
+      "kafka-tgz": "https://downloads.mesosphere.com/kafka/assets/kafka_2.12-2.3.1.tgz",
       "kafka-jre-tar-gz": "https://downloads.mesosphere.com/java/openjdk-jre-8u212b03-hotspot-linux-x64.tar.gz",
-      "kafka-scheduler-zip": "https://downloads.mesosphere.com/kafka/assets/2.8.0-2.3.0/kafka-scheduler.zip",
+      "kafka-scheduler-zip": "https://downloads.mesosphere.com/kafka/assets/2.8.1-2.3.1/kafka-scheduler.zip",
       "kafka-statsd-jar": "https://downloads.mesosphere.com/kafka/assets/kafka-statsd-metrics2-0.5.3.jar",
       "statsd-client-jar": "https://downloads.mesosphere.com/kafka/assets/java-dogstatsd-client-2.3.jar",
-      "setup-helper-zip": "https://downloads.mesosphere.com/kafka/assets/2.8.0-2.3.0/setup-helper.zip",
+      "setup-helper-zip": "https://downloads.mesosphere.com/kafka/assets/2.8.1-2.3.1/setup-helper.zip",
       "zookeeper-client-jar": "https://downloads.mesosphere.com/kafka/assets/zookeeper-3.4.13.jar",
       "custom-kafka-principal-jar": "https://downloads.mesosphere.com/kafka/assets/kafka-custom-principal-builder-1.0.0.jar",
       "netcat": "https://downloads.mesosphere.com/kafka/assets/nc64"
@@ -31,7 +31,7 @@
             }
           ],
           "kind": "executable",
-          "url": "https://downloads.mesosphere.com/kafka/assets/2.8.0-2.3.0/dcos-service-cli-darwin"
+          "url": "https://downloads.mesosphere.com/kafka/assets/2.8.1-2.3.1/dcos-service-cli-darwin"
         }
       },
       "linux": {
@@ -43,7 +43,7 @@
             }
           ],
           "kind": "executable",
-          "url": "https://downloads.mesosphere.com/kafka/assets/2.8.0-2.3.0/dcos-service-cli-linux"
+          "url": "https://downloads.mesosphere.com/kafka/assets/2.8.1-2.3.1/dcos-service-cli-linux"
         }
       },
       "windows": {
@@ -55,7 +55,7 @@
             }
           ],
           "kind": "executable",
-          "url": "https://downloads.mesosphere.com/kafka/assets/2.8.0-2.3.0/dcos-service-cli.exe"
+          "url": "https://downloads.mesosphere.com/kafka/assets/2.8.1-2.3.1/dcos-service-cli.exe"
         }
       }
     }

kafka 2.8.1-2.3.1 should be able to upgrade/downgrade for all the versions kafka 2.8.0-2.3.0 allows
@rishabh96b can you check that?

You're deleting lastUpdated again. Please add a value that matches the timestamp or:

bump the SDK to the version that added the fix for auto-population of lastUpdated
or just update the files directly that do the above

You're deleting lastUpdated again. Please add a value that matches the timestamp or:

bump the SDK to the version that added the fix for auto-population of lastUpdated
or just update the files directly that do the above

Oh, I missed it. Updating the timestamp :+1:

kafka 2.8.1-2.3.1 should be able to upgrade/downgrade for all the versions kafka 2.8.0-2.3.0 allows
@rishabh96b can you check that?

Hey @zmalik , the upgrade is successful from the versions > 2.4.0-1.1.1.


feat: As a user i want to be able to call any method on the module registry via the sdk

What does this PR do?
Related ticket
Fixes #206
Type of change

[ ] Chore
[ ] Bug fix
[x] New feature
[ ] Documentation update

Check list

[x] Unit tests for any smart contract change
[ ] Contracts and functions are documented

Codecov Report

Merging #329 (bbd35e3) into dev (b5d689c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #329   +/-   ##
=======================================
  Coverage   91.56%   91.56%
=======================================
  Files          14       14
  Lines         237      237
  Branches       58       58
=======================================
  Hits          217      217
  Misses         10       10
  Partials       10       10

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Reduce heap usage during segment builds

While measuring heap allocations during segment builds, jmap showed
sun.nio.cs.UTF_8$Decoder and sun.nio.cs.UTF_8$Encoder among the top
40 objects in both size and number of instances. In 4 use internal use cases
the jmap output had these numbers, allocated during segment creation
(in most cases, there were in the top 5 in terms of memory)
Use case 1:
num     #instances         #bytes  class name
3:      26459379<PHONE_NUMBER>  sun.nio.cs.UTF_8$Decoder
7:       5592818      313197808  sun.nio.cs.UTF_8$Encoder
Use case 2:
2:        950923       38036920  sun.nio.cs.UTF_8$Decoder
30:          2349         131544  sun.nio.cs.UTF_8$Encoder
Use case 3:
3:       5385769      215430760  sun.nio.cs.UTF_8$Decoder
Use case 4:
5:       5407753      216310120  sun.nio.cs.UTF_8$Decoder
7:       2016142      112903952  sun.nio.cs.UTF_8$Encoder
Upon closer look, it appears that the call String.getBytes("UTF-8") caches the
decoder in a ThreaLocal variable in StringCoding class, whereas the call to String.getBytes(Charset)
ends up creating a new decoder everytime.
Same with encoder calls.
It should help to cache the encoder/decoder in query path as well.
This change replaces calls to encode/decode Strings to utf8 with a method in
StringUtil class.
After the change, the decoder/encoder do not appear in the top objects.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@3f15e28). Click here to learn what that means.
The diff coverage is 88.37%.

@@            Coverage Diff            @@
##             master    #3073   +/-   ##
=========================================
  Coverage          ?   70.26%
  Complexity        ?        4
=========================================
  Files             ?      935
  Lines             ?    43467
  Branches          ?     5896
=========================================
  Hits              ?    30541
  Misses            ?    10872
  Partials          ?     2054

Impacted Files
Coverage Δ
Complexity Δ

...java/com/linkedin/pinot/common/data/FieldSpec.java
75.33% <ø> (ø)
0 <0> (?)

...re/realtime/impl/dictionary/MutableDictionary.java
100% <ø> (ø)
0 <0> (?)

.../com/linkedin/pinot/core/startree/hll/HllUtil.java
57.44% <ø> (ø)
0 <0> (?)

...n/pinot/core/common/datatable/DataTableImplV2.java
88.71% <100%> (ø)
0 <0> (?)

...mpl/dictionary/StringOffHeapMutableDictionary.java
97.77% <100%> (ø)
0 <0> (?)

...pinot/core/io/util/FixedByteValueReaderWriter.java
95.23% <100%> (ø)
0 <0> (?)

.../linkedin/pinot/core/startree/OffHeapStarTree.java
45.83% <100%> (ø)
0 <0> (?)

.../writer/impl/v1/VarByteChunkSingleValueWriter.java
100% <100%> (ø)
0 <0> (?)

...va/com/linkedin/pinot/common/utils/DataSchema.java
84.78% <100%> (ø)
0 <0> (?)

.../reader/impl/v1/VarByteChunkSingleValueReader.java
96.87% <100%> (ø)
0 <0> (?)

... and 11 more

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 3f15e28...b028e2d. Read the comment docs.

Nice find! 1G per segment for one of the use cases is a nice saving.


feat: version format

version format suggest to use branch-commitID
re baidu#427

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

Codecov Report

Merging #428 into develop will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #428      +/-   ##
===========================================
+ Coverage    53.01%   53.03%   +0.01%
===========================================
  Files          257      257
  Lines        23671    23671
===========================================
+ Hits         12549    12553       +4
+ Misses        9638     9635       -3
+ Partials      1484     1483       -1

Impacted Files
Coverage Δ

bfe_http2/server.go
71.83% <0.00%> (+0.32%)
:arrow_up:

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 101d131...6a78447. Read the comment docs.

REJECT


ERROR:    failed to list *v1beta1.CSIStorageCapacity

csi-provisioner log:
kubectl logs -f openebs-lvm-controller-0 -n kube-system csi-provisioner --since=10s

failed to list *v1beta1.CSIStorageCapacity: the server could not find the requested resource

kubectl get csistoragecapacities -A

k8s version: v1.19

lvm-localpv version: 1.3.1

Look forward to your help !

Look forward to your help ~~~

found openebs container external-provisioner version is incompatible,
replace external-provisioner v3.5.0 with  v2.1.2 solved !


bugfix: Clear button always clears all crashes

close #44

@kkoshin What happened?

I found an alternative: https://github.com/F0x1d/LogFox
No reason to fix this inactive app.

Oh. Does it monitor apps for crashes too? I thought it was a standard logcat app like Matlog.

Of course, it can monitor crash logs and manage blocked apps through a blacklist.
Also, I should add that it supports Shizuku authorization.
For more details, just install it from F-Droid and give it a try yourself


VM provisioning: introduce the playbooks for cloud computing labs

Description
This PR creates four ansible files intended to configure the VMs for the four Cloud Computing labs.
Roughly, the correspondence between file and lab is as follows:
Lab 1 - xubuntu-kvm-crownlabs-playbook.yml
Lab 2 - xubuntu-docker-crownlabs-playbook.yml
Lab 3 - xubuntu-k8s-crownlabs-playbook.yml
Lab 4 - xubuntu-ansible-crownlabs-playbook.yml
How Has This Been Tested?
Applying the changes to a local CrownLabs deployment and verifying the correct operation

Great work, Alessio!

I would rename files as xubuntu-cloudlab-lab1-playbook.yml etc....
Is the word "crownlab" in the playbook name needed?

Great work, Alessio!
1. I would rename files as xubuntu-cloudlab-lab1-playbook.yml etc....

Sorry, my fault. I suggested @alessiosac these names believing it was better to keep them unrelated from the actual lab numbers (since the repo is public).

2. Is the word "crownlab" in the playbook name needed?

Right now, in the repo there are two versions of each playbook, one for CrownLabs and a second one to create a normal VBox VM, hence the naming. If we decide to keep only the CrownLabs version, then all playbooks coould be renamed removing the crownlabs part.

Great work, Alessio!
1. I would rename files as xubuntu-cloudlab-lab1-playbook.yml etc....

Sorry, my fault. I suggested @alessiosac these names believing it was better to keep them unrelated from the actual lab numbers (since the repo is public).

Got the point. I would keep the name "cloudlab", which reminds us the course we're referring to.
So, xubuntu-cloudlab-kvm-playbook.yml etc.... looks the way to go.

2. Is the word "crownlab" in the playbook name needed?

Right now, in the repo there are two versions of each playbook, one for CrownLabs and a second one to create a normal VBox VM, hence the naming. If we decide to keep only the CrownLabs version, then all playbooks coould be renamed removing the crownlabs part.

Got it, I didn't know about this.
Just wondering if we can unify both playbooks with an option that tells whether to create Crownlabs or vanilla VM, then we can play with that option when running the playbook.

Great work, Alessio!
1. I would rename files as xubuntu-cloudlab-lab1-playbook.yml etc....

Sorry, my fault. I suggested @alessiosac these names believing it was better to keep them unrelated from the actual lab numbers (since the repo is public).

Got the point. I would keep the name "cloudlab", which reminds us the course we're referring to.
So, xubuntu-cloudlab-kvm-playbook.yml etc.... looks the way to go.

:+1:

2. Is the word "crownlab" in the playbook name needed?

Right now, in the repo there are two versions of each playbook, one for CrownLabs and a second one to create a normal VBox VM, hence the naming. If we decide to keep only the CrownLabs version, then all playbooks coould be renamed removing the crownlabs part.

@giorio94 Got it, I didn't know about this.
Just wondering if we can unify both playbooks with an option that tells whether to create Crownlabs or vanilla VM, then we can play with that option when running the playbook.

I agree @frisso that this is the best solution. I updated the script adding a flag to opt out from the installation of the CrownLabs tools and configure vanilla VMs (#294)

/rebase

@alessiosac If I'm not mistaken, it looks your PR includes also files that were already merged by Marco (e.g., readme files). Would it be possible to clean up your PR avoiding these commits? I guess a "rebase" should be enough (not sure, though).

My bad. I had some issues with the rebase, but it should be good to go now.

My bad. I had some issues with the rebase, but it should be good to go now.

👍 Ok now!

Before accepting, I would wait for @palexster's confirmation about whether we need to install resolvconf along with kubernetes (it seems to me that Google DNS is blocked by our firewall).
Additionally, when #294 gets merged, it will be necessary to slightly modify these playbooks, but lets see which PR is merged first...

@palexster Waiting for your feedback :-)
@giorio94 #294 has been merged. What should @alessiosac modify in his PR?
Thanks!

Before accepting, I would wait for @palexster's confirmation about whether we need to install resolvconf along with kubernetes (it seems to me that Google DNS is blocked by our firewall).
Additionally, when #294 gets merged, it will be necessary to slightly modify these playbooks, but lets see which PR is merged first...

@palexster Waiting for your feedback :-)
@giorio94 #294 has been merged. What should @alessiosac modify in his PR?

In a nutshell, it is necessary to modify the four new playbooks, to remove the vars section and add a conditional to execute the crownlabs role only if the corresponding varialbe is set (automatically performed by the setup-crownlabs-vm script depending on a flag). For instance, this is the updated xubuntu-base playbook.
@alessiosac Thanks!
/rebase

Thanks!

/rebase

/rebase

/rebase


Add WebView to Screen Saver settings so you can authenticate.

One way to allow the screensaver to use authenticated sites as a dashboard is to add mini-browser in the settings so that people can sign in to a site and have the cookies persist in the cookie jar.
It shouldn't be too hard to implement.

@liquidx I would love this feature! I'm trying to display a Jenkins dashboard using the Jenkins Build Monitor Plugin , but the display formatting for the dashboard is saved in cookies.

+1

+1

+1.

+1

@joshboyden any updates on this?

+1

+1

+1, is there any update on this?

+1

Any workarounds to this yet?

Check out my fork, which implements this feature https://github.com/leavez/webviewscreensaver/releases/tag/v2.3

Check out my fork, which implements this feature https://github.com/leavez/webviewscreensaver/releases/tag/v2.3

how do we install this one though? thanks ❤

Official v2.3 now available which should provide a similar experience to the fork created by @leavez .
Thanks buddy for taking a stab at it way before we had any time to.


Better error messages when IP address autodetection fails

This fix tries to improve error messages when IP address autodetection fails, as is specified in #25141.
Previously, error messages only indicate that multiple IPs exist when autodetection fails. In this fix, if one interface consists of multiple addresses or multiple interfaces consist of addresses, the error messages output the address names and interface names so that end user could take notice.
This fix is verified manually.
When multiple addresses exist on multiple interfaces:
$ sudo docker swarm init
Error response from daemon: could not choose an IP address
to advertise since this system has multiple addresses
(<IP_ADDRESS> on ens33 and <IP_ADDRESS> on eth10) on
different interfaces - specify one with --advertise-addr

When multiple addresses exist on single interface:
$ sudo docker swarm init
Error response from daemon: could not choose an IP address
to advertise since this system has multiple addresses
(<IP_ADDRESS> and <IP_ADDRESS>) on interface ens33
- specify one with --advertise-addr

This fix fixes #25141.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

Thanks for doing this!
My only feedback is that the interface:address formatting in the output (eth10:<IP_ADDRESS>) might be confusing, especially when IPv6 addresses are involved. Maybe it's better to write it out with words (for example <IP_ADDRESS> on eth10).
Other than that, it looks good.

Thanks @aaronlehmann the pull request has been updated.

LGTM

LGTM 👼

@aaronlehmann this is for 1.13? or should this be included in 1.12.1 if we do a patch release?

@thaJeztah: I don't know if it should be in 1.12.1 according to the general policy, since it is not a fix for a serious bug. That said, it's a low-risk change that will help people understand errors - so it seems like it would be nice to have in a patch release.

Given that auto-detection isn't perfect yet, I think this may help us debugging issues, so I'm adding this to the 1.12.1 milestone
/cc @tiborvass


Hot+Cool Link (heat mode) characteristic (Dyson hmod) + Night Mode characteristic (Dyson nmod) + Current/Target Heat Mode Temperature get/set characteristic??

Hello,
Thanks for writing this plugin.
I have two requests regarding integration with Dyson Hot+Cool Link:

Please add control for Dyson hmod = value ? "HEAT" : "COOL"
perhaps you could use this Hap-NodeJS characteristic for this:
/**

Characteristic "Current Heating Cooling State" ** + Characteristic "Target Heating Cooling State"
*/

Characteristic.CurrentHeatingCoolingState = function() {
Characteristic.call(this, 'Current Heating Cooling State', '0000000F-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentHeatingCoolingState, Characteristic);
Characteristic.CurrentHeatingCoolingState.UUID = '0000000F-0000-1000-8000-0026BB765291';
// The value property of CurrentHeatingCoolingState must be one of the following:
Characteristic.CurrentHeatingCoolingState.OFF = 0;
Characteristic.CurrentHeatingCoolingState.HEAT = 1;
Characteristic.CurrentHeatingCoolingState.COOL = 2;

Add Temperature control characteristic get/set for Dyson HotCoolLink Heat Temperature setting.

Also it would be great if you can add control for Dyson "nmod" (NightMode) On/OFF. Dyson nmod is BOOL
as simple switch characteristic.on would suffice, but you could also use Characteristic.NightVision
which is reserved for the Camera service, but I believe HomeKit to be agnostic regarding adding any Characteristic available in HomeKitTypes.js to any HomeKit Service, the new characteristic will work and show up in Eve.app and perhaps even controlled via Siri Voice Commands.

Thanks again for the plugin. I hope you find the time to make the additions I have suggested :)
I'd be happy to do it myself if I was more familiar with the Dyson Link api...

Sorry, forgot to add:

Add Temperature characteristic get/set for Dyson HotCoolLink Heat setting.

Hi @leoneleone,
Thank you very much for the kind words.  If I'm honest, I only found this project in an NPM repository, forked it & figured out how to get your correct password.
I personally would find it hard to do points 1-2 because I don't own or have access to a Dyson HotCoolLink appliance.  I know some forks of this repo have attempted to do this, & I know this Python repo gives some very useful API pointers.
Night mode however would be a cool thing to have.  I'll see what I can come up with.

Hey
I've already forked this and added night mode as a switch. Still need to add Heat Mode and Target Temperature.
Let's see what we can come up with 👍🏼

@leoneleone https://github.com/uschen/homebridge-dyson-nu

@leoneleone can´t install your fork. Got this error
`Jun 27 21:01:25 raspberrypi homebridge[5497]: /usr/local/lib/node_modules/homebridge-dyson/index.js:86
Jun 27 21:01:25 raspberrypi homebridge[5497]: .on('get', this.getCurrentTemperature.bind(this));
Jun 27 21:01:25 raspberrypi homebridge[5497]: ^
Jun 27 21:01:25 raspberrypi homebridge[5497]: TypeError: Cannot read property 'bind' of undefined
Jun 27 21:01:25 raspberrypi homebridge[5497]: at CoolLink.initCommonSensors (/usr/local/lib/node_modules/homebridge-dyson/index.js:86:46)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at new CoolLink (/usr/local/lib/node_modules/homebridge-dyson/index.js:17:10)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:265:29)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Module._compile (module.js:571:32)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Object.Module._extensions..js (module.js:580:10)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Module.load (module.js:488:32)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at tryModuleLoad (module.js:447:12)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Function.Module._load (module.js:439:3)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at Module.runMain (module.js:605:10)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at run (bootstrap_node.js:427:7)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at startup (bootstrap_node.js:151:9)
Jun 27 21:01:25 raspberrypi homebridge[5497]: at bootstrap_node.js:542:3

@leoneleone @simonrice  @Krocko @uschen
Integration into npm or a description of how to install the plugin would be appreciated

@JotWee: sudo npm install-g "github link to the fork"
Example: sudo npm install -g https://github.com/uschen/homebridge-dyson-nu

@Krocko thank you very much. Didn’t know it was that easy.

I installed it and it runs perfectly, but there is no Night Mode switch in https://github.com/uschen/homebridge-dyson-nu

hey guys, in case you are still interested: i updated the pure cool link with the new fanv2 service and added night switch.
https://github.com/JotWee/homebridge-dyson-nu


fixing hanging app if you pick an empty playlist

If you happen to pick a playlist that has nothing in it, the app will wait forever because it doesn't check for len() == 0. Tested on Linux with Chrome 74. Unit tests report passing as well.

ping?

@wyattearp sorry not checking this much!  Thanks for the PR


How to communicate two viewModels?

There are different options:

Services (view models contain view-specific state, service contain app-state and are long-loving objects)
Messaging (we don't use this ourselves, but it's supported by Catel)

Can I use InterestedInAttribute to communicate two viewModels?

I think we removed that one from Catel 5 (or at least we don't recommend you using it). Services are better.

I see!
But I can not find any sample about using viewmodel service, can you explain how I use or do you have example?

See https://github.com/WildGums/CsvTextEditor/blob/develop/src/CsvTextEditor/ViewModels/SettingsViewModel.cs

Thanks a lot!

I see SettingsViewModel.cs, but I can not understand fully.
I have two viewmodels/view as QueryViewModel/QueryView and FilterViewModel/FilterView.
public class QueryViewModel : ViewModelBase     {           public FiltersViewModel Filters { get; set; }           ...     }
public class FiltersViewModel : ViewModelBase     {          ...     }
How can I get filter values from FilterViewModel and set it to Filters property of QueryViewModel?

A view model should not contain another view model. You should only have models + services in a view model. Please check out the whole example.

Should it be so?
public class FilterModel { ... }
public class QueryViewModel : ViewModelBase { public FilterModel Filter { get; set; } ... }
public class FiltersViewModel : ViewModelBase { ... }


Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial

I am using the Ubuntu WSL distribution from the Windows Store.

What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)

From within WSL's bash environment, I invoke a native windows program. As part of that windows program's execution, it executes wsl.exe to do work inside the linux environment.

This can also be triggered with the one-liner from WSL bash, which works if run directly from powershell/cmd.exe:
$ cmd.exe /C wsl.exe ls

What's wrong / what should be happening instead:

One of the following:

A more clear error message which explains that nested calls into WSL are not supported, ideally with a reference to a document where I can read an explanation, or
The nested call into WSL should succeed as I would expect.

Strace of the failing command, if applicable:  (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here)

I cannot strace the call into WSL (as it is from windows), however I can strace the call into the cmd.exe process.
https://gist.github.com/mystor/096aced5700e28ae53916c73889e703a

This works in newer Insider builds.

Marking as duplicate of #2370.

Oh awesome! Thanks @benhillis :-)


[Story] Sort organizations in alphanumeric order

What projects is this story for?
OpenChallenges
As a user, I want
As a user, I want organizations to be listed in alphanumeric order so that I can identify more easily organization of interested to filter challenges.
Description
Add a sorting strategy to the organization service to sort organization in alphanumeric order.
Acceptance criteria

Organizations can be sorted in alphanumeric order (backend only)

Tasks
No response
Anything else?
No response
Have you linked this story to a GitHub Project?

[X] I have linked this story to a GitHub Project and set its metadata.

I will attempt to add this sorting strategy before the sprint review meeting on Friday. This would help making a feature presented by @rrchai more intuitive.


Flutter Web Support!

Does this package supports flutter web? i was not able to execute is sample example in flutter web. I have a use case where i want to download files from ftp in flutter web

@MalikSamiAwan For now this package doesn't support features on web

Web support would be great!! small hint: currently the package is marked as web compatible on pub.dev

Hello and thanks for this great package,
Could you please tell us is there an expected date to get the web support working, even as basic directory listing?
Thanks

Hello and thanks for this great package, Could you please tell us if there is an expected date to get the web support working, even as basic directory listing? Thanks

Hello. I will mind how implements web part soon

Hello and thanks for this great package, Could you please tell us if there is an expected date to get the web support working, even as basic directory listing? Thanks

I don't found any really work solution to make it works on web

one way use ws2s service, but will lock possibility to connect no public ftp, or use chrome api, but it will not work on another browsers

Javascript libraries could not help either?

What is strange is that according to the documentation, ftp operations are possible, but no else where is documented or mentioned.

HttpRequest can be used to obtain data from HTTP and FTP protocols

https://api.flutter.dev/flutter/dart-html/HttpRequest-class.html


fix: iavl live migration of orphan nodes

This is cherry picks of work from both John Reynolds and Dev to ensure main stays up to date with the iavl v1.0.0 branch we will be using in v21 of Osmosis.
Previously, we would block chain progress on pruning orphan nodes. For a chain like Osmosis, this took upwards of 2 hours. This change allows chain progress to continue, while pruning orphan nodes synchronously.
As a drive by change, this also fixes the golang linter in this repo.

Does it include all of #863, #864, #865 changes?

This needs to be reopened with the proper changes just haven't had a moment to do so

Closing in favor of #877 and #876


Go to Definition will go to decompiled code instead of the actual code in different project

Environment data
dotnet --info output:
.NET SDK:
 Version:   7.0.202
 Commit:    6c74320bc3

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  13.4
 OS Platform: Darwin
 RID:         osx.13-arm64
 Base Path:   /usr/local/share/dotnet/sdk/7.0.202/

Host:
  Version:      7.0.4
  Architecture: arm64
  Commit:       0a396acafe

.NET SDKs installed:
  6.0.300 [/usr/local/share/dotnet/sdk]
  7.0.202 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

VS Code version: 1.78.2
C# Extension version: 2.0.206 Pre-Release
Steps to reproduce
Press F12 (Go to definition) on code defined in a different project within the same solution.
Expected  behavior
Go to the code in the solution.
Actual behavior
Pressing F12 will go to decompiled code from the assembly in the obj directory. Go to definition within the same project works as it should.

I suppose I should have reported this in the vscode-dotnettools repo:
https://github.com/microsoft/vscode-dotnettools/issues/40

Thanks - looks like a dupe of https://github.com/dotnet/roslyn/issues/68472


Where is the ZCA matrix?

Hi,
I read your paper and some of your model uses ZCA.
I am not familiar with caffe at all and did not see how you apply the ZCA in your model.
basically i think you need to use ZCA matrix...but I cannot find the file.
can you provide the ZCA matrix for CIFAR10 and 100?
really thanks

@BarCodeReader , Do you mean the ZCA matrix used for pre-processing the CIFAR-10 datasets? I do not save this matrix, and I only use the ZCA-whitened datasets from this torch-based (not caffe) project: https://github.com/szagoruyko/cifar.torch

@huangleiBuaa Thank you, i have figured out how to apply ZCA.


Update 0080-SPOT-product_builtin_spot.md

ACs added
link to issue #8611

close as superseded by first spot PR (link TBC)


boards: arc: Update EM StarterKit board support from 2.2 to 2.3

EM Starterkit(namely EMSK) board has released out a new firmware version called 2.03a(namely the 2.3),
The main changes of this new firmware list as follows:

Support for ARC EM 4.00a, including the following enhanced options compared to EMSK 2.2:

Enhanced Security Package (ESP) SecureShield™ extension for secure mode.
µDMA.

DMA support for DesignWare SPI master.
ARC EM7D MPU update to support secure mode and multiple context IDs.

We update software support in Zephyr to support this new version of EMSK.
The main updates of the software for EMSK 2.3 list as follows:

board: Update EMSK onboard resources such as Button, Switch and LEDs

update soc.h for em7d, em9d, em11d
update board.h for em_starterkit board

arc: Add floating point support and code density support

add kconfig configuration
add compiler options
add register definitions, marcos, assembly codes
fixes in existing codes and configurations.

arc: Update detailed board configurations for cores of emsk 2.3
arc: Only support em9d and em11d.

em7d is a core with secure feature, which is not supported in Zephyr, if you want to access to try secureshield feature, you can go to embARC OSP repo, fork and try.

script: Provide arc_debugger.sh for debugging em_starterkit board

make BOARD=em_starterkit debug
This will start openocd server for emsk, and arc gdb will connect
to this debug server, user can run continue command if user just
want to run the application, or other commands if debugging needed.
make BOARD=em_starterkit debugserver
This will start an openocd debugger server for emsk, and user can
connect to this debugserver using arc gdb and do what they want to.
make BOARD=em_starterkit flash
This will download the zephyr application elf file to emsk,
and run it.

I think the EMSK 2.3 platform/bitfile is not fully backwards compatible with EMSK 2.2. Did you consider having 2.2 and 2.3 versions side by side (e.g. as different SoCs or boards) instead of updating 2.2?

For Ruud's concern,  in the future, we will support em staterkit 2.2 and em startkit 2.3 together.  User s can make a choice between 2 versions.


SocketProtocolError: socket hung up ; TimeoutError: Error response for login timed out

Hi,
"SocketProtocolError: socket hung up ; TimeoutError: Error response for login timed out "
These two warning pop out when app started, can I disable this somewhere?
Platform : android
thanks a lot for your work and sharing!

Hi :)
Make sure you've completed steps of Android 5.0+ note, otherwise it works fine for me.

I'm still getting this warning running on the app on a Marshmallow device.
P.S. This project is nice 👍 . Thanks for sharing.

Same message for me. But on iOS


How can I get *.modal file?

I am unable to generate a modal file, how can I generate this modal file, here are the logs sudoku_solver.py
C:\Users\bewit\miniconda3\python.exe C:/Users/bewit/Downloads/sudoku-solver-master/sudoku_solver.py
Traceback (most recent call last):
  File "C:/Users/bewit/Downloads/sudoku-solver-master/sudoku_solver.py", line 14, in <module>
    model = load_model('model/best_model_lenet_aug_loss_3.model')
  File "C:\Users\bewit\miniconda3\lib\site-packages\tensorflow_core\python\keras\saving\save.py", line 149, in load_model
    loader_impl.parse_saved_model(filepath)
  File "C:\Users\bewit\miniconda3\lib\site-packages\tensorflow_core\python\saved_model\loader_impl.py", line 83, in parse_saved_model
    constants.SAVED_MODEL_FILENAME_PB))
OSError: SavedModel file does not exist at: model/best_model_lenet_aug_loss_3.model/{saved_model.pbtxt|saved_model.pb}

Process finished with exit code 1

I ran this program by commenting model = load_model('model/best_model_lenet_aug_loss_3.model')
it showing wrong solutions

I have taken some sample sudoku puzzles in model/data folder as in below Image

Then I ran the program model\train_char74K.py, but it is throwing below log
C:\Users\bewit\miniconda3\python.exe C:/Users/bewit/Downloads/sudoku-solver-master/model/train_char74K.py
2020-07-19 16:13:50.304915: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX
WARNING:tensorflow:From C:/Users/bewit/Downloads/sudoku-solver-master/model/train_char74K.py:64: Model.fit_generator (from tensorflow.python.keras.engine.training) is deprecated and will be removed in a future version.
Instructions for updating:
Please use Model.fit, which supports generators.
WARNING:tensorflow:sample_weight modes were coerced from
  ...
    to
  ['...']
WARNING:tensorflow:sample_weight modes were coerced from
  ...
    to
  ['...']
Train for 0.0625 steps, validate for 1 steps
Epoch 1/80
2020-07-19 16:13:51.588092: F .\tensorflow/core/framework/tensor.h:781] Check failed: NDIMS == new_sizes.size() (2 vs. 1)

Process finished with exit code -1073740791 (0xC0000409)

@bewithdhanu you need Chars74k dataset for digit recognition.
Try here, http://www.ee.surrey.ac.uk/CVSSP/demos/chars74k/#download

@avasid I have downloaded EnglishImg from the mentioned link used it like below
model = load_model('model/EnglishImg')
even though I am having some issue, I am not much familiar with python, can you explain what to do with that char74k dataset to run this program
C:\Users\bewit\miniconda3\python.exe C:/Users/bewit/Downloads/sudoku-solver-master/sudoku_solver.py
Traceback (most recent call last):
  File "C:/Users/bewit/Downloads/sudoku-solver-master/sudoku_solver.py", line 14, in <module>
    model = load_model('model/EnglishImg')
  File "C:\Users\bewit\miniconda3\lib\site-packages\tensorflow_core\python\keras\saving\save.py", line 149, in load_model
    loader_impl.parse_saved_model(filepath)
  File "C:\Users\bewit\miniconda3\lib\site-packages\tensorflow_core\python\saved_model\loader_impl.py", line 83, in parse_saved_model
    constants.SAVED_MODEL_FILENAME_PB))
OSError: SavedModel file does not exist at: model/EnglishImg/{saved_model.pbtxt|saved_model.pb}

Process finished with exit code 1

@bewithdhanu EnglishImg is a dataset, not a model. Extract the tgz archive in /model directory, which should result in a /model/English directory. After that, run the following script/code from the /model directory,
import os
from shutil import copy
dirs = sorted(os.listdir("./English/Img/GoodImg/Bmp/"))[1:10]
os.makedirs("./data", exist_ok=True)
for i,dir in enumerate(dirs,1):
    i = str(i)
    os.makedirs(os.path.join("./data",i),exist_ok=True)
    dir_path = os.path.join("./English/Img/GoodImg/Bmp/",dir)
    files = os.listdir(dir_path)
    for fil in files:
        copy(os.path.join(dir_path,fil),os.path.join("./data",i))

This should result in a data folder in /model. Now first run train_char74k.py which will train and save a model. And then run sudoku_solver.py.

FYI, I was able to use train_char74k.py for training, but needed to change the reference to "val_acc" to "val_accuracy" with my version of TensorFlow.

@bewithdhanu EnglishImg is a dataset, not a model. Extract the tgz archive in /model directory, which should result in a /model/English directory. After that, run the following script/code from the /model directory,
import os
from shutil import copy
dirs = sorted(os.listdir("./English/Img/GoodImg/Bmp/"))[1:10]
os.makedirs("./data", exist_ok=True)
for i,dir in enumerate(dirs,1):
    i = str(i)
    os.makedirs(os.path.join("./data",i),exist_ok=True)
    dir_path = os.path.join("./English/Img/GoodImg/Bmp/",dir)
    files = os.listdir(dir_path)
    for fil in files:
        copy(os.path.join(dir_path,fil),os.path.join("./data",i))

This should result in a data folder in /model. Now first run train_char74k.py which will train and save a model. And then run sudoku_solver.py.

Hi, what validation loss are you getting? The lenet model doesn't get better than 0.8 validation accuracy despite trying multiple augmentation and dropout methods. The end result is the model performs poorly when identifying the digits.

Btw I changed the validation data to un-augmented images, as it should be.
# Start training
H = model.fit_generator(X_datagen.flow(X_train, y_train, batch_size=32),
                        validation_data = (X_val, y_val),
                        callbacks = [cp_1, cp_2], steps_per_epoch = len(X_train) / 32,
                        epochs = 500)

The trained model did not work as expected,
The digit recognizer works quite messy,


Translated page could not found (shows 404) in mui toolpad

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example:
Steps:

Visit https://mui.com/toolpad/getting-started/overview/ and click the settings menu icon in topnav.
Change the language to Portuguese.
The page redirects to a new link(https://mui.com/pt/toolpad/getting-started/overview/).
Now, 404 page not be found issue occurs.

Current behavior 😯
Shows page not be found ( 404 ).
Expected behavior 🤔
Should show the translated page.
Context 🔦
No response
Your environment 🌎
The issue occurs in documentation.

moving this issue to mui/mui-toolpad repo.


update delete command to delete deployment

As discussed in discord:
It looks like kubectl run by default also creates a Deployment, and so by deleting the Pod itself it does not delete the Deployment, and so it spins up another pod.
Updating the instructions to match the results of the kubectl run command

this behaviour is specific to older versions of kubectl from before https://github.com/kubernetes/kubernetes/pull/87077
can we change this so it's included as a note after the original instructions?


Support pktmon sniffing

Adding support for capturing packets with pktmon (Packet Monitor) and dissecting packets

Thanks for contribution, I will work on it as soon as possible

Thanks :)Inbar.
-------- Original message --------From: Sylvain Peyrefitte @.> Date: 12/1/21  11:42  (GMT+02:00) To: airbus-cert/Winshark @.> Cc: Blondy314 @.>, Author @.> Subject: Re: [airbus-cert/Winshark] Support pktmon sniffing (PR #3)
Thanks for contribution, I will work on it as soon as possible
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

Any update on this?
On Wed, Dec 1, 2021 at 1:27 PM inbar.rotem @.***> wrote:

Thanks :)
Inbar.
-------- Original message --------
From: Sylvain Peyrefitte @.>
Date: 12/1/21 11:42 (GMT+02:00)
To: airbus-cert/Winshark @.>
Cc: Blondy314 @.>, Author @.>
Subject: Re: [airbus-cert/Winshark] Support pktmon sniffing (PR #3)
Thanks for contribution, I will work on it as soon as possible
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/airbus-cert/Winshark/pull/3#issuecomment-983463390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFHD6FSF2MT7SECF6TG774TUOXUY3ANCNFSM5IO5PGZQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

+1 waiting for this as well

Hi,
Pinging on this again.
I Would be happy to see it in the main branch so people can use it (I have
been asked about this a few times and referred people to my side branch).
Thanks,
Inbar.
On Tue, Dec 7, 2021 at 4:44 PM Inbar Rotem @.***> wrote:

Any update on this?
On Wed, Dec 1, 2021 at 1:27 PM inbar.rotem @.***> wrote:

Thanks :)
Inbar.
-------- Original message --------
From: Sylvain Peyrefitte @.>
Date: 12/1/21 11:42 (GMT+02:00)
To: airbus-cert/Winshark @.>
Cc: Blondy314 @.>, Author @.>
Subject: Re: [airbus-cert/Winshark] Support pktmon sniffing (PR #3)
Thanks for contribution, I will work on it as soon as possible
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/airbus-cert/Winshark/pull/3#issuecomment-983463390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFHD6FSF2MT7SECF6TG774TUOXUY3ANCNFSM5IO5PGZQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks.
Perhaps it will also be good to create a new release.
On Thu, Jan 27, 2022 at 11:45 AM Sylvain Peyrefitte <
@.***> wrote:

Merged #3 https://github.com/airbus-cert/Winshark/pull/3 into master.
—
Reply to this email directly, view it on GitHub
https://github.com/airbus-cert/Winshark/pull/3#event-5962367412, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AFHD6FXQMUN45SS75TVEVU3UYEH2JANCNFSM5IO5PGZQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>


Missing "./dist/style.css" specifier in "vue-zoomable" package

hello.
I can't import style.css.
Missing "./dist/style.css" specifier in "vue-zoomable" package
4:18:26 PM [vite] Internal server error: Missing "./dist/style.css" specifier in "vue-zoomable" package
Plugin: vite:import-analysis
What should I do?
thank you

Hi, can you share your imports? You have to import both css and the component,
import VueZoomable from "vue-zoomable";
import "vue-zoomable/dist/style.css";

Fixed in new version.
#v1.1.6


[Question][GNU/Linux] CPU over 200%

When media-kit not playing，CPU occupies 20%， but over 200% if playing. The platform is linux.
Please How can I solve this problem?

Not specified:

Media
Code
Logs
Hardware

Video playback is not easy at it's core & definitely not as granted as exposed in a simple API. It can depend upon your code (how you have written it) or hardware (whether hardware rendering is possible) etc.
Nothing can be done for GNU/Linux, when there are issues like this:

https://github.com/flutter/flutter/issues/88996
https://github.com/flutter/flutter/issues/101591

As you can see, even a CircularProgressIndicator makes GNU/Linux embedder for Flutter take 50% of CPU. There isn't much that can be done by me to improve things. It's within GTK or Flutter. Let's see what future has.
Also: This is when GNU/Linux implementation is theoretically most efficient as compared to Windows or macOS.
For me, CPU usage is 10-20% on GNU/Linux. And 5-10% on Windows (still has large scope of improvement from my end!).

Not specified:

Media
Code
Logs
Hardware

Video playback is not easy at it's core & definitely not as granted as exposed in a simple API. It can depend upon your code (how you have written it) or hardware (whether hardware rendering is possible) etc.
Nothing can be done for GNU/Linux, when there are issues like this:

High latency on frames on linux desktop flutter/flutter#88996
Linux Desktop: high CPU usage when running an animation flutter/flutter#101591

As you can see, even a CircularProgressIndicator makes GNU/Linux embedder for Flutter take 50% of CPU. There isn't much that can be done by me to improve things. It's within GTK or Flutter. Let's see what future has.
Also: This is when GNU/Linux implementation is theoretically most efficient (as compared to Windows or macOS).
For me, CPU usage is 5-10% on Windows (still has large scope of improvement from my end) & 10-20% on GNU/Linux.

When using media-kit to render video in flutter release mode, if the video is not played, the application will hardly occupy the cpu, but it will even exceed 100% when playing.

https://user-images.githubusercontent.com/78834739/232437427-88129a5a-0d2f-44d7-a321-435d4d22f3ad.mp4
https://user-images.githubusercontent.com/78834739/232437385-387fd195-0f8a-4dff-a964-076835c31224.mp4

The video is in MP4 format, download it here: https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4.
Hardware acceleration enabled.
This video plays fine when using the mpv command.
Problem reproduction.

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter

  media_kit: ^0.0.4+1
  media_kit_video: ^0.0.4
  media_kit_native_event_loop: ^1.0.2
  media_kit_libs_linux: ^1.0.1

dependency_overrides:
  media_kit:
    git:
      url: https://github.com/alexmercerind/media_kit.git
      path: media_kit
      ref: main
  media_kit_video:
    git:
      url: https://github.com/alexmercerind/media_kit.git
      path: media_kit_video
      ref: main
  media_kit_native_event_loop:
    git:
      url: https://github.com/alexmercerind/media_kit.git
      path: media_kit_native_event_loop
      ref: main
  media_kit_libs_linux:
    git:
      url: https://github.com/alexmercerind/media_kit.git
      path: media_kit_libs_linux
      ref: main

flutter:
  uses-material-design: true
  assets:
    - videos/

main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:media_kit/media_kit.dart';
import 'package:media_kit_video/media_kit_video.dart';

void main() {
  MediaKit.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  final player = Player(
      configuration: const PlayerConfiguration(logLevel: MPVLogLevel.debug));
  VideoController? controller;

  @override
  void initState() {
    super.initState();
    Future.microtask(() async {
      controller = await VideoController.create(
        player,
        enableHardwareAcceleration: kReleaseMode,
      );
      await player.setPlaylistMode(PlaylistMode.loop);
      await player.open(Media('asset://videos/bee.mp4'), play: true);
      setState(() {});
    });
  }

  @override
  void dispose() {
    Future.microtask(() async {
      await controller?.dispose();
      await player.dispose();
    });
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Video(
        controller: controller,
        fit: BoxFit.cover,
      ),
    );
  }
}

What do you see in the logs. Do you see following?
media_kit: VideoOutput: Using H/W rendering.

package:media_kit_libs_linux registered.
media_kit: VideoOutput: video_output_new:<PHONE_NUMBER>45312
Cannot load libcuda.so.1
media_kit: VideoOutput: Using H/W rendering.
flutter: VideoOutput.Resize
flutter: {handle:<PHONE_NUMBER>45312, id:<PHONE_NUMBER>71088, rect: {left: 0, top: 0, width: 1, height: 1}}
flutter: VideoController: Texture ID:<PHONE_NUMBER>71088
media_kit: TextureGL: Resize: (1280, 720)
flutter: VideoOutput.Resize
flutter: {handle:<PHONE_NUMBER>45312, id:<PHONE_NUMBER>71088, rect: {left: 0, top: 0, width: 1280, height: 720}}

When the log is turned on, the console will not print.

perf shows that vaGetImage is taking up most of the CPU time. Is it because decoding is accerelated but rendering is not?

vaGetImage didn't show up when playing with mpv command.


Demo Support Issue for security Team

Please specify the type of request. Exemplary requests are:
Tooling:

Veracode (initial setup, GitHub integration)
Trivvy
KICS
Gitguardian
Pen-testing
Security risk assessment (RRA, Threat modeling, Code reviews)

Info: @the-tatanka  just testing out the options for GitHub projects boards, whats your opinon about it?

may you want to add more explainations to the default template 😉
current markdown looks like this:
**Please specify the type of request. Exemplary requests are:**

**Tooling:**

* Veracode (initial setup, GitHub integration)
* Trivvy
* KICS
* Gitguardian
* Pen-testing
* Security risk assessment (RRA, Threat modeling, Code reviews)

will be implemented with #8


Fabric docs display using mkdocs and ReadTheDocs #1674

Description

Proposal using mkdocs and ReadTheDocs open source tools to display markdown documentations of Hyperledger Fabric git repository. An account has been created in ReadTheDocs and setup has been made in github.
Motivation and Context

Fixes #
#1674: Read the Docs hosts documentation for the open source community. After this PR merge into the fabric master branch, ReadThedocs builds the documentation for every .md file change in git repository.  This only works for Merge requests not for PR's.
The documentation type we have selected for this proposal is mkdocs as it supports .md files.
How Has This Been Tested?

We have created web-hooks and sync has been tested between ReadTheDocs and Fabric git repository.
Checklist:

[X] I have added a Signed-off-by.
[X] I have either added documentation to cover my changes or this change requires no new documentation.
[X] I have either added unit tests to cover my changes or this change requires no new tests.
[] I have run golint and have fixed valid warnings in code I have added or modified. This tool generates false positives so you may choose to ignore some warnings. The goal is clean, consistent, and readable code.

The continuous integration build process will run make checks to confirm that tests pass and that code quality meets minimum standards. You may optionally run this locally as PRs will not be accepted until they pass.
Signed-off-by<EMAIL_ADDRESS>

Looks good. I would ask @joshhus @bramwelt @rjones-lf to review as it looks like there were involved in the issue discussion.

This has been well-vetted and tested over recent weeks. I blessed the version at http://chaincode-docs.readthedocs.io/en/latest/ and am confident this result will be equivalent. Note the "final" external URL will be: hyperledger-fabric.readthedocs. (.io)  ... (Note this is a display-only Issue / PR. No issues with content (words) are addressed by this PR.)

Thanks for the details @joshhus. Only thing I noticed is at http://hyperledger-fabric.readthedocs.io/en/latest/?badge=latest is currently giving a "page not found" message, but @rameshthoomu says the page will be there after I merge this PR. About to give it a try :) LGTM

Still an issue with the link :( @rameshthoomu is investigating now.


Add missing parameters to PCA

PCA parameters 'covariance'  and 'normalization' are currently ignored.
PCA is one of the algorithms in DAAL which has multiple different Parameter classes. This was not properly handled win earlier version of daalpy. With 1c7e73789062aa8b8747dc98d53500b408d6fcb8 the trickiest part has been fixed.
The following need to be done in generator/wrappers.py

remove 'covariance',  and 'normalization' from the 'ignore' list for PCA
add interface classes/definitions where the new parameters need an interface type
add a test

'correlation' input argument requires handling of optional input. Let's address this later.

Normaliziation available with #64
covariance is difficult. Various parameter classes in PCA define 'covariance' with different type. This requires special handling, some kind of overloading/specialization. No good idea yet how to do this (not even through chaning DAAL).


Crash Bash USA triggers the anti piracy screen

tonyhax version: Which version are you running? Please ensure you are running the latest stable, or a newer beta.

v1.1.2

Game name: Self-describing

Crash Bash (NTSC-U)

Game code: Game's serial number, eg "SCES-12345"

SCUS-94570

Executable hash: SHA-1, SHA-256 or MD-5 of the game's main executable or the disc. This is important since there could be multiple revisions of the same game.

SHA-1 of the bin file: fce2d66a12d49ec50aa1b93e138da6c6f646eb16
SHA-1 of the cue file: b0a092b40ec337a1098fe99fa1357c7bdd164498

Triggered at: Please explain when is the screen shown, eg "after the Sony logo", or "after the first video"

Shortly after the game boots up

Is the console chipped?: Yes or no.

No

Is it an original disc or a burned copy?: Self-explaining.

Burned

It doesn't seem to have a problem with me running under the latest "Tonyhax International" build - used both the boot CD and cartridge versions, and everything turned out perfectly fine with not a single anti-piracy message in sight. "Tonyhax International" only seems to have a problem with APv2 titles in question, as this form of anti-piracy has an additional measure in place that not only does it constantly check for the modchip spamming the 'SCEX' string, but also to see if a swap trick was performed.

Try using different CD-R media and/or another console - I was using a Verbatim 700MB CD-R and a SCPH-7502 model for this test. If the problems still persist, then you could ask "Alex" to add AP patches for that game.

Hmm, I think @M4x1mumReZ was using the PAL version of Crash Bash which may not contain the anti-piracy checks. Some games don't have the anti-piracy check code enabled in all regional versions of the game. The USA version I believe does contain the checks, and I haven't added support yet for this game specifically to bypass those. I'll look into adding support for Crash Bash. Thanks for the report.

I'm using the USA version as the person specified.

The PAL version on the other hand uses LibCrypt which is a completely different thing.

@M4x1mumReZ It usually shows up immediately at the SCEA screen. I played the game thoroughly and I didn't see it appear.

Alright @pcortesduoc I can confirm that the AP prohibited screen apears right after SCEA presents screen on my stock SCPH-1001 using the latest Tonyhax International v1.1.2 Boot CD. Not sure why @M4x1mumReZ can not reproduce...
I'm going to see if the latest pull request from @M4x1mumReZ however fixes it.

@pcortesduoc I just tested this beta build of Tonyhax International and it bypasses the screen on my stock SCPH-1001 console! Let me know if this solves your issue so I can close this.
tonyhax-v1.1.3-BETA-TEST-international.zip

If it works for you, then it will 100% work for the other person that's for sure.

Yep I can confirm it does work. Thank you very much, both of you :)

No problem @pcortesduoc

If you have any other issues, just let us know for sure. ;)


The font used for container log should be configurable

Expected behavior
I would like to have a legible font used on my monitor.
Or a way to easily zoom in (Ctrl-Mousescroll to the rescue !)
Actual behavior

Information about the Issue
I've a Dell XPS 15 with Full HD display.
Steps to reproduce the behavior

use a monitor with a high DPI value
show container log

Notice I'm really not crazy about that, it's just that I've got to look closer, and I'm quite sure I'm not the only one ageing developper.
Beside, Kitematic is such a good thing for reluctant Docker users like me that I can't help trying to improve it.

Feel free to pick this PR back up :)
https://github.com/docker/kitematic/pull/1479

The container font size is ridiculously small. This should be a top priority to fix unless your target audience is only fighter pilots and others with vision significantly better than  20/20.