Wrong error message is shown.

(I considered filing this issue on elm-lang/error-message-catalog, but since it is not a problem with a specific error message but rather that the wrong error message is shown I decided to file it here. Let me know if I need to move it somewhere else.)
import List.Extra as List

listOfFloats : List Float
listOfFloats =
     List.range 1 10
         |> List.map toFloat

x = List.scanl1 ((*) 0.1) listOfFloats

results in the following error message:
The 1st argument to `scanl1` is not what I expect:

8| x = List.scanl1 ((*) 0.1) listOfFloats
                    ^^^^^^^
This argument is:

    Float -> Float

But `scanl1` needs the 1st argument to be:

    Float -> Float

Here is an Ellie with the same code.
I expect the compiler to show me the following error message (the bottom line is different):
The 1st argument to `scanl1` is not what I expect:

8| x = List.scanl1 ((*) 0.1) listOfFloats
                    ^^^^^^^
This argument is:

    Float -> Float

But `scanl1` needs the 1st argument to be:

    Float -> Float -> Float

since the signature of List.scanl1 is (a -> a -> a) -> List a -> List a.

I ran into the same issue today. Here is my code
bar :
    (vars -> a)
    -> (a -> result)
    -> vars
    -> result
bar f1 f2 vars =
    f2 (f1 vars)

foo : String
foo =
    "Foo"

weirdError :
    (String -> msg)
    -> msg
weirdError =
    bar (\_ -> foo)

Output
-- TYPE MISMATCH -------------------------------------------------- src/Api2.elm

Something is off with the body of the `weirdError` definition:

22|     bar (\_ -> foo)
        ^^^^^^^^^^^^^^
This `bar` call produces:

    (String -> msg) -> msg

But the type annotation on `weirdError` says it should be:

    (String -> msg) -> msg

Ellie link

Thank you for the nice SSCCE @Carlsson87! Based on the changes from https://github.com/elm/compiler/commit/a5febad184588ae79b404d22a020020408580041 I am now getting the following message with your code:
-- TYPE MISMATCH ------------------------------------------------------ temp.elm

The 1st argument to `scanl1` is not what I expect:

8| x = List.scanl1 ((*) 0.1) listOfFloats
                    ^^^^^^^
This argument is:

    Float -> Float

But `scanl1` needs the 1st argument to be:

    Float -> Float -> Float

Hint: It looks like it takes too few arguments. I was expecting 1 more.

This will be part of a much larger set of changes in 0.19.1 at a later date. (Needs more work and testing still!)


[APIView Python] does not recognize :keyword: for named parameters.

ApiView rejects the following:
   def validate_token(self, options=None, signers=None):
        # type: (TokenValidationOptions, list[AttestationSigner]) -> bool
        """ Validate the attestation token based on the options specified in the
         :class:`TokenValidationOptions`.

        :param azure.security.attestation.TokenValidationOptions options: Options to be used when validating
            the token.
        :keyword list[azure.security.attestation.AttestationSigner] signers: Potential signers for the token.
            If the signers parameter is specified, validate_token will only
            consider the signers as potential signatories for the token, otherwise
            it will consider attributes in the header of the token.
        :return bool: Returns True if the token successfully validated, False
            otherwise.

        :raises: azure.security.attestation.AttestationTokenValidationException
        """

with:

def validate_token(
Keyword arg (**kwargs) is missing in method validate_tokenType is not available for signers

| self,

| options: TokenValidationOptions = None,

| signers = None,
Type is not available for signers

| *,

| signers: list[AttestationSigner] = ...
Type is not available for signers

| ) -> bool

According to @seankane-msft , the "keyword" markup is preferred for named parameters.

Verified that this is now fixed. APIView will generate type list[AttestationSigner] for signers in this case.


[SPARK-27489][WEBUI] UI updates to show executor resource information

What changes were proposed in this pull request?
We are adding other resource type support to the executors and Spark. We should show the resource information for each executor on the UI Executors page.
How was this patch tested?
Updated and added unit tests, tested in standalone, local-cluster, and yarn modes.  Tested with active application and via history server.
Attached screenshot of gpu and fpga with lots of them.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12305/
Test PASSed.

Test build #107131 has started for PR 25037 at commit 0554df5.

Test build #107131 has finished for PR 25037 at commit 0554df5.

This patch fails RAT tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/107131/
Test FAILed.

CC @gengliangwang

Hi, @tgravescs . The new column seems a little long. You may want the following.

[SPARK-25577][Web UI] Add an on-off switch to display the executor additional columns (https://github.com/apache/spark/pull/22595)

sure, I can look at that, the column only shows up when you actually use extra resources right now so if you don't use GPU it won't be there.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12498/
Test PASSed.

Test build #107358 has started for PR 25037 at commit a60cc48.

@jiangxb1987 @mengxr @Ngone51

Test build #107358 has finished for PR 25037 at commit a60cc48.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/107358/
Test PASSed.

just a note, I'm waiting for pr 25047 and will update this based on that

closing this and will upmerge and open a new one


single dependency won't parse

I get the following error:

PackageManager.installFromFile([pwd,'\dependencies'])
Undefined function or variable "subklassName".

Error in PackageManager.RemotePackage.Base.toSubclass (line 22)
subklass = PackageManager.RemotePackage.(subklassName);
Error in PackageManager.RemotePackage.List/fromFile (line 71)
package = PackageManager.RemotePackage.Base.toSubclass(base);
Error in PackageManager.RemotePackage.List (line 14)
L.fromFile(filePath);
Error in PackageManager.installFromFile (line 2)
packageList = PackageManager.RemotePackage.List(filePath);
When my dependencies contain only a single item with no empty line below it. Adding a line beneath the item in the list fixes the issue.

This could probably do with using the fgetl logic (used in readLogFile) instead of the way it is currently coded.


Document all the current Extensions

Write Docs for all the Extensions that are currently available. You can find them here

[ ] GravatarImageExtension
[ ] ImageResourceExtension
[ ] PageExtension
[ ] TranslateExtension
[ ] ValueConverterExtension

ValueConverterExtension probably needs no docs. It's internal/plumbing and an abstract class that all of our converters inherit from to do the magic that they do...

Sign me up for these.

Yeah whatever is internal etc. don't bother, I just looked at the files in there and put that on a list


Contacts Import

td_send({'@type': 'importContacts', 'contacts': [{'@type': 'contact', 'phone_number': '+7952077****'}, {'@type': 'contact', 'phone_number': '+7996121****'}]})
When I'm trying to import registered users, I get 0 IDs, why does it happen?
{'@type': 'importedContacts', 'user_ids': [0, 0], 'importer_count': [1, 1], '@extra': 12}

Because you are restricted by the server from importing random people. This is expected behavior.

Because you are restricted by the server from importing random people. This is expected behavior.

When can I get ID of my contacts? What should happen?

What are you trying to achieve?

What are you trying to achieve?

What are you trying to achieve?

I need to create a new chat with some registered users from my contacts list. Is it possible?

If you can't import the contact and can't find the user in another way, then this is impossible.

If you can't import the contact and can't find the user in another way, then this is impossible.

Can I use AddContact() without user_id? Will it work? Some trying result was 'User not found', when user is registeted.
And when importContacts can show users ID's?

addContact adds contacts by their user_id, but you must receive the user from TDLib first. Also, you don't actually need to add users to contacts to be able to message them.
importContacts will return users whenever appropriate and possible, i.e. the user allowed to find themselves by phone number.

addContact adds contacts by their user_id, but you must receive the user from TDLib first. Also, you don't actually need to add users to contacts to be able to message them.
importContacts will return users whenever appropriate and possible, i.e. the user allowed to find themselves by phone number.

Are there some ways to get user_id using phone number?

Yes, using importContacts. But if the user_id isn't returned, this is expected behavior.

Yes, using importContacts. But if the user_id isn't returned, this is expected behavior.

I solved it. The reason was in use_test_dc. Thank you for help!


Add v1 of typescript definition file

This is a WIP typescript definition file (index.d.ts). There are several issues to resolve before this is ready:

[x] Determine where in the repository the file should live. I've placed it in the root for now.
[x] Modify gulpfile.js to copy index.d.ts to the root of the distribution directory build/dist. If the file is named index.d.ts there is no need for further configuration, it is optional but suggested by the TypeScript docs to add a reference to package.json.
[x] Add some tests. Testing the types will require having TypeScript. I am hesitant to add TypeScript as a devDependency, but perhaps this is the best way to proceed... Alternatively we could omit tests or add tests in a separate repo. Some guidance here would be helpful.
[x] Cull down the type file to the desired public interface. I've erred on the side of completeness, a fair amount of culling should be done to remove types not intended for external consumption. Some guidance would be helpful here, as I'm not entirely sure what was intended to be in the public API.

I'd like to add a little motivation to this pull request to hopefully help get some attention towards reviewing and merging it.
Should pdf.js invest in type declaration files? Type declarations can get complex and are not free to maintain, so it's a reasonable question to ask. I'm not in a position to know the resources available to this project to judge cost/benefit, but I can comment on the benefit side of the equation:

It serves as useful documentation of known types and can help users understand the public API.
Editors like vscode are increasingly able to use type declaration files for autocomplete and in-editor documentation even if you use only plain JS
Users of TypeScript you can get type checking which reduces errors and increases productivity. This greatly reduces the friction when adopting pdf.js for TypeScript developers.

Why TypeScript, as opposed to some other type system like Flow?

It's not mutually exclusive. If someone wants to contribute type definitions for Flow then they can do so.
If we must choose, consider that by several metrics TypeScript is more popular. TS has 30k github stars vs. 15k for Flow.
TypeScript has a much broader library of type definitions. DefinitelyTyped has over 5.5k contributors. flow-typed has fewer than 500.

Pdf.js is a large code base, and the documentation for its API is very limited. A type declaration file can help by providing information that would otherwise require digging deep into the source code and/or examining incomplete examples at runtime.
My experience writing type definitions for pdf.js has demonstrated that the API is far from simple, and in many places it is very unclear what constitutes a public API vs. some accidentally leaked internal representation. This is not a criticism. Considering the size of the code base and the lack of static checking that is inherent in JavaScript, the fact that the code base is as coherent as it is, is nothing short of heroic.
Nevertheless, writing types forces more precision and overt choices. Putting in the effort makes the code base more accessible to good tooling, more accessible to developers who want to contribute to the code base, and more maintainable. And clients who use pdf.js with these types will find it much easier to keep up to date with changes to the API.

@acchou How can I create a PDFViewer using these definition files and pdfjs-dist?
It seems PDFViewer is still undefined when simply importing pdfjs-dist.

If I have the types right, it should be as easy as:
import { PDFViewer } from "pdfjs-dist";

const viewer = new PDFViewer({
    container: div
});

Of course, this will only work once this pull request is merged. Or you can build pdf.js from my fork.

Are there any tools to warn us when definitions are out of sync?
As somewhat of an aside, I would be open to the idea of someone converting/re-writing our "public" api to TypeScript. Having used plain JS and TypeScript in rather large projects now I would never start something in plain JS again.

I've added tests that dynamically check some subset of the most commonly used types (see examples/typescript). More work could be done there. There are also projects that attempt to add dynamic checks but I think they're too early stage and/or require intrusive changes at the moment.
This type declaration file should go a long way towards making the public API based on TypeScript. Let me know if you have a specific interface in mind... if the project can come to consensus on this then I might take it on depending on how big the project is.

@acchou I did build from your fork but I get following error:

pdfjs_dist_1.PDFViewer is not a constructor

This might be due to the PDFViewer residing in a different folder and file.
Should I create an Issue or something? I am not sure here is the right place to discuss this.

And by the way, these are missing in display.d.ts and in pdf.d.ts:
  let showPreviousViewOnLoad: boolean;
  let defaultZoomValue: string;
  let sidebarViewOnLoad: number;
  let enableHandToolOnLoad: boolean;
  let cursorToolOnLoad: number;
  let enableWebGL: boolean;
  let pdfBugEnabled: boolean;
  let disableTextLayer: boolean;
  let useOnlyCssZoom: boolean;
  let enhanceTextSelection: boolean;
  let renderer: string;
  let renderInteractiveForms: boolean;
  let enablePrintAutoRotate: boolean;
  let disablePageMode: boolean;
  let disablePageLabels: boolean;

@nicolas-schreiber Feel free to create an issue on my fork for this. I think the issue is that I added PDFViewer to the toplevel export to make the type accessible easily, but it cannot be constructed through that variable. Instead construct it through the PDFJS variable:
import { PDFJS } from "pdfjs-dist";

const viewer = new PDFJS.PDFViewer({
    container: div
});

Re: the missing variables, how exactly are these set? If you could provide a PR on my fork that would be helpful.

There is no option to create Issues on your fork. And I tried removing that PDFJS variable. Still the same behaviour.
I looked into it a bit more and the PDFJS Object was actually fine but all the stuff from web/pdf_viewer.js was missing. The only way I could fix it was to manually import it.
I created a fork and made two commits with separate additions (only to the typings, not the pdf_viewer):
https://github.com/nicolas-schreiber/pdf.js/commit/08321877b298d78afc6ddf33e7e3044f10134a22
https://github.com/nicolas-schreiber/pdf.js/commit/508a674a7174f7beb5495388b3cba662e38bf382

Modified my fork to allow issues.
I haven't used the viewer; can you provide an example of how you included it? I'm not sure how it's packaged and how to modify the type definitions to reflect that. If as I suspect it's intended to be included in a script tag, then I think the existing typing is the best we can do?

Looking at src/examples/components it looks like the viewer variables are added to PDFJS by a script tag like this:
  <script src="../../node_modules/pdfjs-dist/build/pdf.js"></script>
  <script src="../../node_modules/pdfjs-dist/web/pdf_viewer.js"></script>

So PDFViewer and the other viewer type declarations are not included by default when importing pdfjs-dist, by design. When a script tag is used to include pdf_viewer.js, the definitions it provides are added to the global PDFJS variable. I'm not exactly where this behavior falls in the TypeScript scheme of things (see https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html).
The type definition file currently (after the small change yesterday) exports a more complete PDFJS variable that includes types as if pdf_viewer.js is included. I'm not sure how to structure the type definitions to say "only include the type for PDFViewer if pdf_viewer.js is added via script tag". Perhaps the best we can do is improve the documentation by adding some comments about this situation to the type declaration file...
I added a skeleton PDFFindController declaration per your suggestion. PDFFindController is a good example of a class where a type declaration could make things much clearer for a client of pdf.js. I currently declare it as:
  interface FindCommandState {
    query: string,
    phraseSearch: boolean,
    caseSensitive: boolean,
    highlightAll: boolean,
    findPrevious: boolean,
  }

  class PDFFindController {
    constructor (options: PDFFindControllerOptions);
    reset(): void;
    nextMatch(): void;
    executeCommand(cmd: string, state: FindCommandState): void;
  }

This is just my attempt at clarifying the API, but there are many questions remaining:

there are many other non-underscore methods in PDFFindController, should they be part of the public API?
highlightAll is never accessed in the implementation of PDFFindController, though there are examples of it around the code base. Should it be there?
are any of the fields in FindCommandState optional? If left undefined, is that ok usage for the client?

Clarifying these questions and refining the type declaration would provide users with a much clearer idea of how to use this API and avoid mistakes.
As for https://github.com/nicolas-schreiber/pdf.js/commit/08321877b298d78afc6ddf33e7e3044f10134a22, I'd like to clarify that this is correct usage of pdf.js:
// Assuming pdf_viewer.js is loaded via script tag
import { showPreviousViewOnLoad } from "pdfjs-dist";
showPreviousViewOnLoad = true;

If that's correct (a test would be helpful though that would require some additional scaffolding effort) then I'll add a comment indicating these variables are accessible only with pdf_viewer.js.

Squashed again to make it easier to review.

After PR #9479 settles, I'll take a stab at modifying the TypeScript declaration files to reflect the new API shape. This will be a good test for how easy (or difficult) the declaration files will be to maintain.

What's the status on types currently? I see that #9479 has been merged, so this work could continue? Is there anything I can help with considering my limited knowledge?

Thanks for the question. The work will continue, I plan on incorporating changes reflecting #9479 shortly.

After looking at pdfjs-dist some more, I believe @nicolas-schreiber is right. I modified the module declaration for the viewer to pdfjs-dist/web/pdf_viewer and updated the constructor function type for PDFLinkService, and squashed again.

Note that the declaration for the pdfjs-dist/web/pdf_viewer requires use as a module, not as a global pdfjsViewer variable in a script. Given that TypeScript clients are more likely to use pdf.js as a module than a script, I think this is ok.
I did play around with the TypeScript methods of declaring UMD modules but couldn't figure it out. Maybe someone else who's more familiar with it can issue a future PR if that's an important use case for them.
In the meantime, the viewer is accessible as a module.

Does anyone know the status?

It's largely complete (as of 3/27 - I haven't checked more recent updates), but the lack of feedback from maintainers means it's basically in limbo... Maybe someone from the team could select one of these options:

[ ] we can't review this now, maybe by XYZ date
[ ] sorry we're just not interested in adding typescript type declarations to pdf.js
[ ] we have some issues with the type declaration file and/or its quality, style, or process
[ ] we'd like to try out flow or some other system
[ ] adding this is too low priority compared with other things on the roadmap
[ ] this belongs outside pdf.js proper, perhaps it should go in @types/pdfjs-dist
[ ] other?

I might submit this to @types/pdfjs-dist instead if there is no further response.

@yurydelendik Could you chime in for the above?

I looked at this again and I still have concerns regarding maintenance, mainly because PDF.js itself does not use any TypeScript and keeping this in sync with the code will be challenging. Therefore, to answer your question above, I personally think it's better to place it in @types/pdfjs-dist since that contains type definitions for a lot of other libraries too and it seems that people are used to having their type definitions for non-TypeScript projects there.

Sorry for the delay, Yury and I haven't had much time to work on pdf.js lately. We discussed this a bit recently though and we'd like to accept this and then work on removing duplicate comments and letting the typescript definitions be the documentation for the public API. I think we can accept as is, then do the cleanup.

Sounds good. Let me know if I can help with any cleanup here.

Sorry to be that guy.. but any update on the merge for this? The current @types are completely wrong and it makes working with this lib very hard :/

I'm also fine with merging this after the 2.0 stable release, which should happen soon, if it's updated as we have added a few more annotation types in the meantime. Since this doesn't touch any core files, I'm also fine with doing even more cleanup at a later stage.

If you can point me in the general direction of where these new annotation types are located, I could update the type annotations.

Hi, sorry to be that guy again but, any update on this? @timvandermeij @acchou ?

I'm still a bit on the fence here. Even though this PR looks good, there is an alternative in https://github.com/mozilla/pdf.js/pull/10575 that aims to generate the TypeScript files from type annotations in the docstrings. To me this seems much more maintainable since we don't have to keep multiple files in sync. What do you think? I think providing TypeScript definitions is good, but since it isn't our main focus it should really be easy to maintain.

I was recently made aware of typescripts --checkJs mode which works off of jsdoc comments. If we can get that working on travis, I think that's the path going forward.

May I recommend just moving forward with even a manually updated typescript definition?
This ticket was updated 1y10m ago... This is REALLY needed for external developers because without it the API is very very very opaque.
Even just copying @types/nodejs-dist over and running with that would be good because we can manually merge the types in the mean time as they evolve.
Sending a 1 line PR is a lot easier than trying to build an auto-generating system.  I can't imagine the core API changes that much in 1y10m where we couldn't have updated it manually.

I wasn't hoping to build an auto generating system. I was thinking we could have all our typescript definition files and then use things like @implements SomeInterface. However, I played around more with checkJs and it's not as powerful as I was hoping, as it does not support interfaces and doesn't look like it ever will.

If the approach of #10575 is preferred,  what prevents #10575 to be merged? To my testing, rebasing the branch of  #10575 to the current master is not difficult.
With npx gulp dts, it generates build/dts/types.d.ts.

If there are no TS experts in PDF.js team I'd suggest to move these typings to e.g. definitely-typed. Otherwise, we will have a hard time maintaining these typings, with not many people willing & able to review the changes when necessary. Also, this would require contributors to know TypeScript whenever any API change is done.

Agreed, that seems to be the right thing to do at this point.
One thing before I do that though... has anyone tried to use the new --declaration flag with --allowJs (https://www.typescriptlang.org/docs/handbook/release-notes/overview.html#--declaration-and---allowjs)? This seems to allow the typescript compiler to natively generate declaration files from jsdoc annotated javascript source. This seems to be the preferred approach for the team from PR #10575.

@acchou I don't think anyone tried that yet, but it would be good to look into. I think we've come to the conclusion that manually maintaining the TypeScript bindings here is just not feasible and I agree with @wojtekmaj's analysis here. Let's close this PR and focus our efforts either on getting #10575 landed. We have already merged most of the documentation improvements from that patch in separate PRs, so we can either choose to rebase that PR or make a new PR with the solution where TypeScript natively generates the declaration files from the JSDoc comments. In any case, if we are to provide the bindings, they must be generated in some form to avoid a maintenance burden. Thank you!


Update packages and translations

Let's get one more update in, especially of the l10n-strings, before the next release (which I'm guessing will be next weekend).

/botio test

Thanks!
/botio makeref


Import module 'seg_utils' Error

I followed the instructions, and downloaded vgg16.npy and data_road.zip successfully, but when I run the command:  python demo.py --input_image data/demo/demo.png --output_image data/demo/demo_seg.png
I got the error message as following:
Traceback (most recent call last):
File "demo.py", line 51, in
from seg_utils import seg_utils as seg
ImportError: No module named 'seg_utils'
I use Anaconda3 (64-bit)/Windows 7

Seg_utils is a linux symlink defined here. Make sure, that anaconda finds the folder incl and is able to import all its subfolders referenced by the symlinks there.
The code runs under linux out of the box. I have not tested the code using windows. So you might run into more errors.  Most deep learning code is our there is written and tested under linux. So if you are planning to do some deep learning, I would strongly recommend learning to use linux. It is nor that hard!
Btw. Even my colleagues at Microsoft are using Linux for there deep learning infrastructure. So I recommend following the choices of the market leader when it comes to operating systems ;).

Have you solved this problem under Win7?
I use python 3.5 and tensorflow 1.0 gpu version under win7.

For windows user, save the following code as install_windows.bat and put it in your KittiSeg folder, then run it as admin.
Also please make sure you initialized all your submodules with git submodule update --init --recursive
del %~dp0\incl\evaluation
del %~dp0\incl\seg_utils
del %~dp0\incl\tensorflow_fcn
del %~dp0\incl\tensorvision
mklink /D %~dp0\incl\evaluation %~dp0\submodules\evaluation
mklink /D %~dp0\incl\seg_utils %~dp0\submodules\evaluation\kitti_devkit
mklink /D %~dp0\incl\tensorflow_fcn %~dp0\submodules\tensorflow-fcn
mklink /D %~dp0\incl\tensorvision %~dp0\submodules\TensorVision\tensorvision
echo ok
pause

It will create the symbolic links for you, as follows

Let me know, whether the rest of the code works fine under Windows.

Demo works fine under Window 10 TensorFlow 1.0 cuda8.0 cudnn v5.1 python3.5
python demo.py --input_image data/demo/demo.png
I will report the issue when encountered.

to baidut，大牛！

two main issues(1:'seg_utils' Error ;2:'RUNS/KittiSeg_pretrained.zip'  ) I met are solved.
Thanks!
The demo works fine under
Window 10
TensorFlow 1.0
only CPU
python3.5(this version can install TensorFlow 1.0 very easy )
python demo.py --input_image data/demo/demo.png

I am using debian 8 and I have the same problem. I run using the terminal:
python demo.py --input_image data/demo/demo.png
is there anything more I should do ?

Seg_utils is a linux symlink defined here. Make sure, that your system finds the symlink and that python includes it as path of its path.

(Reporting Issue ) It is not even working on Ubuntu 16, python 2.7, and Tensorflow 1.0

For those who are stilling figuring out this, please append the kitti_devkit path to your python path
import sys
sys,path.append("/home/shivam/Desktop/work/project/KittiSeg/submodules/evaluation/kitti_devkit")

Or just symlink kitti_dev in your Python Directory
ln -s /home/shivam/Desktop/work/project/KittiSeg/submodules/evaluation/kitti_devkit /home/shivam/Desktop/work/venvs/TensorVision/lib/python2.7/

Doesnt work on my configuration - python 3.5 , tensorflow 1.0 cpu only, win7.
Already tried the install_windows.bat file by baidut.

Dear @baidut @MarvinTeichmann @jhtao1860
When I run demo.py, it doesn't work and display error information as blow:
2017-07-08 12:14:53,252 INFO No environment variable 'TV_PLUGIN_DIR' found. Set to 'C:\Users\dell/tv-plugins'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_SHOW' found. Set to '50'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_EVAL' found. Set to '250'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_WRITE' found. Set to '1000'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_MAX_KEEP' found. Set to '10'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_STR' found. Set to 'Step {step}/{total_steps}: loss = {loss_value:.2f}; lr = {lr_value:.2e}; {sec_per_batch:.3f} sec (per Batch); {examples_per_sec:.1f} imgs/sec'.
Traceback (most recent call last):
ArgumentError: argument --gpus: conflicting option string: --gpus
what Should do to work it out?
Thanks very much!

@jiao0805 Have you solved this problem（ImportError: No module named 'seg_utils'）, ask for help, thank you，The solution baidut provides, I have tried it，but no work。

Hi,@xiangweirs
i meet the same problem with you,did you fixed it?

For windows user, save the following code as install_windows.bat and put it in your KittiSeg folder, then run it as admin.
Also please make sure you initialized all your submodules with git submodule update --init --recursive
del %~dp0\incl\evaluation
del %~dp0\incl\seg_utils
del %~dp0\incl\tensorflow_fcn
del %~dp0\incl\tensorvision
mklink /D %~dp0\incl\evaluation %~dp0\submodules\evaluation
mklink /D %~dp0\incl\seg_utils %~dp0\submodules\evaluation\kitti_devkit
mklink /D %~dp0\incl\tensorflow_fcn %~dp0\submodules\tensorflow-fcn
mklink /D %~dp0\incl\tensorvision %~dp0\submodules\TensorVision\tensorvision
echo ok
pause

It will create the symbolic links for you, as follows

cannot do this

cannot do this

Please run it as admin @Timmmmmms


Rails enum leads to zero

I have model with column state type integer and in model there is enum for this column:
enum state: { active: 0, unavailable: 1, deleted: 2 }
state then returns string and after indexing everything has state 0 in index.
I fixed that changing the getter:
  def state
    self.attributes['state']
  end

Is there better solution for this situation?

Hmm, I've not used enums before, but I can investigate. Are you using SQL-backed indices, or real-time indices? And what's the index definition looking like?

I am using real-time with following definition:
ThinkingSphinx::Index.define :entity, :with => :real_time do
  ...
  has state, :type => :integer
end

As far as I understand the Rails enum feature, this makes sense to me - state should return a string, and hence when the real-time access goes to get an integer, it calls to_i on it, and "active".to #=> 0. I could make TS smarter about enums and try to figure out whether the string or integer value is preferred depending on the attribute data type (or if it's wanted for a field), but I feel like that's more hassle than its worth.
If you want the integer value stored by Sphinx while keeping the enum in place, I'd recommend creating a separate method which returns the underlying integer, and use that in your index:
# in model:
def state_to_i
  attributes["state"]
end

# in index:
has state_to_i, :type => :integer

Thank you.
This is nice solution.


preinstall.sh does not work on rpm based linux

there current version of preinstall.sh makes it impossibe to install node-zoom2 0.2.4 on Fedora, RedHat oder CentOS machines.
on Fedora Core 25 yaz is part of distribution ( dnf install -y libyaz-devel ).
but in general os package installation should be out of "npm install" scope,  maybe part of Dockerfile.

Thanks for letting me know, should be fixed with #4 which was published in 0.2.5 please confirm and I'll close the issue

Thanks, that fixed the npm install problem.
But i got a lot of g++ compilation warnings on Fedora 25, that was the case in previous versions to, should i open an issue or try to create a patch?

If you can create another issue with a log of the warnings that'd be great!


need to capture service_mode value

The value passed to the update has a value for service_mode. This value needs to be captured from the rec_load_all API call.
Add this variable after $cfIP:
$serviceMode  = '';                                             // The service_mode for the subdomain
Set it after setting $cfIP:
$serviceMode = $rec->service_mode;
Use it in the rec_edit API call:
                    'service_mode' => urlencode($serviceMode),

The service_mode is now set to 0 so that traffic is not directed through CloudFlare. The value can be changed based on your needs.


[Bug]: Old simple icons .json

What happened?
Hello,
I tried to compile the project locally, it all worked successfully.
Found a problem: the icons list file under Guard.WPF/Assets/Icons/si.json is older than what I can see downloading the official product! For example, I tried to add a Microsoft Token and I can't find the right icon, but in the downloaded program I can find it!
Let me know if you can update this!
Thank you very much!
Fantastic product by the way, really appreciated!
Provide the error message / stack trace
No response
What version of Windows are you using?
11
What version of the app are you using?
1.3.1

Hello,
Thanks for opening this issue. The repo contains the latest version of Simple Icons (v13.1.0).
I didn't even realise that the icons were missing and I have to admit that I didn't read the Simple Icons changelog during the last update. Now I found this pr https://github.com/simple-icons/simple-icons/pull/10019 that is removing all Microsoft Icons for legal reasons. I hope that Simple Icons will include them again in the future. Maybe I am going to downgrade it before the next release.


Add environment variable support for config file

Resolves #29 by parsing ENV variables in a behavior users would expect

Please see issue for discussion of existing env support.  https://github.com/alienfast/elastic-beanstalk/issues/29#issuecomment-171975131


[SDPA-4716] Add configuration for card navigation

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-4716
Changed

Added configuration to map to navigation component props

Screenshots

Merging to parent branch.


Always ensure $_SERVER['REMOTE_ATTR'] is set.

When deploying backpack to Laravel Vapor... The application never ends up booting successfully because of the license check.
Please see problem 2: https://github.com/Laravel-Backpack/CRUD/issues/2118

If there are any suggestions or different ways to solve this issue please let me know. I'm happy to implement a different solution.

Hi @mwisner ,
Sorry for taking so long to get to this. I totally agree with your solution, merging now, thank you! It'll be available with a composer update as 4.0.17 later today, after I bundle it with a few more non-breaking changes.
Cheers!


3.8 - more javascript, answers to hacks, reg fixes

Members - Shawn Ray, Arya Savlani, Aarav Sonara

Not sure about removing ## see announcements.


Trying to convert .h5 file to .pb

I just fininshed training my custom model and would like to convert it to .pb for use in tensorflow.
I found help online on how to make the conversion, but it is giving me an error(below) on this particular .h5 model file. works for other .h5 models not trained using imageai.
Using TensorFlow backend.
E0414 18:47:01.275491 23212 h5_to_pb.py:84] Input file specified only holds the weights, and not the model definition. Save the model using model.save(filename.h5) which will contain the network architecture as well as its weights. If the model is saved using the model.save_weights(filename) function, either input_model_json or input_model_yaml flags should be set to to import the network architecture prior to loading the weights.
Check the keras documentation for more details (https://keras.io/getting-started/faq/)
Traceback (most recent call last):
File "h5_to_pb.py", line 171, in
app.run(main)
File "D:\Programs\Anaconda3\envs\dl-env\lib\site-packages\absl\app.py", line 300, in run
_run_main(main, args)
File "D:\Programs\Anaconda3\envs\dl-env\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "h5_to_pb.py", line 117, in main
model = load_model(FLAGS.input_model, FLAGS.input_model_json, FLAGS.input_model_yaml)
File "h5_to_pb.py", line 95, in load_model
raise wrong_file_err
File "h5_to_pb.py", line 52, in load_model
model = keras.models.load_model(input_model_path)
File "D:\Programs\Anaconda3\envs\dl-env\lib\site-packages\keras\engine\saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "D:\Programs\Anaconda3\envs\dl-env\lib\site-packages\keras\engine\saving.py", line 221, in _deserialize_model
model_config = f['model_config']
File "D:\Programs\Anaconda3\envs\dl-env\lib\site-packages\keras\utils\io_utils.py", line 302, in getitem
raise ValueError('Cannot create group in read only mode.')
ValueError: Cannot create group in read only mode.

We will release a new version soon that will allow you to easily convert your custom model to Tensorflow's .pb in a single function call.

Hello @Nathnael-Belay , thanks for your patience. We have released a new version (v2.0.3) that allows you to convert your Keras models to Tensorflow's .pb format. See the link below.
https://github.com/OlafenwaMoses/ImageAI/blob/master/imageai/Prediction/CUSTOMPREDICTION.md#converttensorflow
Also, visit https://github.com/OlafenwaMoses/ImageAI for all the new features in this release.


Get rid of encoding dependency

Hi there,
Thanks for the serde compatible wrapper!
encoding crate is unmaintained: https://rustsec.org/advisories/RUSTSEC-2021-0153
Could we switch to encoding_rs instead?
E.g java-properties uses it https://crates.io/crates/java-properties/2.0.0/dependencies

Thanks for the heads up!
I updated the dependencies and released a new version. I prefer using encoding_rs anyway, have used it elsewhere in the past, so I welcome the change.

Thanks for the really fast update! 🙏
It's now used by Testcontainers for Rust and I caught this with cargo audit


Fixes provisioning for Quickstart Azure Function

Description
Resolves the bug with provisioning the Quickstart Azure Function described in issue #122.
Reviewer Checklist

[ ] Update the title of the PR to be succinct and less than 50 characters
[ ] Tag the PR with the type of update: Bug, New-Sample, Enhancement, or New-Feature
[ ] CI is green before merge

/azp run

/azp run

/azp run

/azp run


'Compact empty middle packages' makes non-empty packages (and sources) disappear

In this example, you can see the java package when this option is unchecked:

After checking 'Compact empty middle packages', java and its subfolders completely disappear:

This happens in various scala/java projects, I was yet unable to pinpoint exact repro scenario.

This looks like the same issue I'm seeing from #328. However, afaict I don't have any "Compact empty middle packages" checkbox in Bazel Settings in Preferences, or any of the menus. (IntelliJ Ultimate 2018.1.2; ijwb 2<IP_ADDRESS>.2).

Can you try plugin version 2<IP_ADDRESS>.0 (just uploaded to the Jetbrains repo today)? I think that has a change that will help for 2018.1.

@jvoung I just tried it with the latest plugin - looks like you're right, I don't see the issue anymore, the feature now behaves correctly!
Closing this for now, thanks!


Parameterize LoginInfo

Hi,
It's not a strong requirement but just for discussion.
Currently LoginInfo accepts String for either provider id and the unique key, but I usually prefer defining each provider as a dedicated case object with extends AuthProvider marker trait. So I'd like to ask if it makes sense to parameterize LoginInfo. The key also can be parameterized, but I'm not sure because narrowing key type can harm forward compatibility.
props:

More type safety, hence less error-prone

cons:

Specifying type parameters in outer classes might be bothering

What do you think?

Please could you be a bit more specific. Maybe with a code snippet?

Ok, I'm evaluating silhouette for a webapp prototype which supports social login. I'll enrich this issue when I have more detailed use case.

Playing with some seed projects, I realized that there aren't that much time to deal with provider id by myself, hence I'll close this one. Sorry for the noise!


Update storage-monitoring-diagnosing-troubleshooting.md

Hi @jasonnewyork, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (jahogg). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

Trusted source


Update cache-troubleshoot-connectivity.md

Adding 2 pointers for troubleshooting of private endpoint connectivity what will be helpful for the customers to verify.

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

@flang-msft, if you approve these changes, the <cachename> variables probably need to be tagged with ` marks or the escape character so GitHub doesn't read them as html commands. Thanks.

@jborsecnik  - thanks for the tip.
@Amrinder-Singh29 - I will review this on Monday.

Your suggestions are being reviewed by our subject matter experts. Thanks for your contributions and commitment to Azure cache for Redis and to the documentation.
#please-close


I missed adding FLAG_FIN when the data provider read callback is NULL.

Thank you. I just merged your pull request.
I found data_prd.read_callback != NULL check is missing in spdylay_submit_response(). I'll add it.


Mixtral 8x22b

Model description
Mixtral's most capable model yet
https://huggingface.co/mistralai/Mixtral-8x22B-Instruct-v0.1
I see that it's not explicitly mentioned here: https://github.com/huggingface/text-generation-inference/blob/2d0a7173d4891e7cd5f9b77f8e0987b82a339e51/docs/source/supported_models.md?plain=1#L23
And I wonder if it's already works
Open source status

[X] The model implementation is available
[X] The model weights are available

Provide useful links for the implementation
No response

Also have the same question.
By checking their release log, I assume TGI hasn't supported Mixtral 8x22b yet.

Any updates on this? Thanks

I am currently unable to run the model as well.  I could be having another issue unrelated issues though.


Change array type syntax to Array<u8, 100>

Array type definiton syntax
The syntax that we currently use for array definitions was copied from Vyper and looks like this:
some_ints: u8[10] # A fixed size array for 10 values of type u8
cars: Car[10] # A fixed size array for 10 values of type Car

The Rust syntax for these would be:
some_ints: [u8; 10] // A fixed size array for 10 values of type u8
cars: [Car; 10] // A fixed size array for 10 values of type Car

I want to point out that we usually look to Python and Rust for inspiration regarding syntax and that Python doesn't have fixed size array type and the closest would be a list which one would type out using generics (e.g. List[int] which would translate to List<u8> in Fe). In other words, since we can't really lookup to Python for inspiration in this case, it makes sense to me to take inspiration from Rust instead.
Apart from just having personal preference for the Rust syntax I also think it is clearer and probably easier to parse when we get to more complex cases. E.g consider an array of tuples.
Current syntax
some_array: (u8, u8)[10] # A fixed size array for 10 values of type (u8, u8)

Rust syntax
some_array: [(u8, u8); 10] # A fixed size array for 10 values of type (u8, u8)

The Rust syntax feels more self contained (being enclosed in square brackets) and I expect it to be easier to parse as well.

Actually, with the introduction of const generics which we first try to sneak in for builtin types such as string<N> I wonder if it would make sense to change our array type to array<T, N>, e.g. array<u8, 10>

Just wanted to comment and say that I love seeing all this interesting use of the generics syntax.  When I was working on the original Vyper project, it always felt like we were running up against the limitations of having no control over the parser.  I love seeing the benefits of removing that obstacle.
I figured at one point, I also had the maybe sort of wacky idea of supporting generic keyword parameters.  So you could do things like this:
Array<u8, maxlen=100>  # internally, a dynamic length array but with extra machinery to restrict length
# or
Array<u8, len=100>  # a constant length array

Then, you could support more advanced type behavior (e.g. max vs. const length as in the previous example).  Anyway, just a funny idea I had at one point and I thought I'd throw it out there.  I don't think I've actually seen any language that supports keyword generic parameters which actually kind of surprises me.

Implemented in #571


renamed StringDateTimeValueConverter to DateTimeValueConverter in doc

In the docu there is still StringDateTimeValueConverter instead of DateTimeValueConverter used.

This is also a fix for:
https://github.com/ddeboer/data-import/issues/268

Thanks :rocket:


Update to version <IP_ADDRESS>

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Pretty sure the current build failures are due to https://github.com/conda/conda-build/issues/3308. conda-build fails in creating the gnuradio-grc output because it solves the host environment with everything but gnuradio-core, then when it tries to add the pinned newly-built gnuradio-core to the environment solution, it fails because the earlier solve didn't take into account the fact that the libthrift=0.15 dependency from gnuradio-core requires an earlier version of openssl than is already set in the environment solution.


Update database-commons, jdbc, mssqlserver, ... to 1.19.2

About this PR
📦 Updates

org.testcontainers:database-commons
org.testcontainers:jdbc
org.testcontainers:mssqlserver
org.testcontainers:mysql
org.testcontainers:oracle-xe
org.testcontainers:postgresql
org.testcontainers:testcontainers

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

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

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

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

Superseded by #936.


Add: Valid Boomerang

Codecov Report

Merging #511 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #511   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files         167    168    +1
  Lines        1659   1664    +5
=====================================
+ Hits         1659   1664    +5

Impacted Files
Coverage Δ

problems/valid-boomerang/valid_boomerang.go
100% <100%> (ø)

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 61ac2af...e8ea23a. Read the comment docs.


chore(storybook): remove stoybook docs build from .gitignore

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

Comparison is base (2229c1a) 66.92% compared to head (0016734) 66.92%.

:exclamation: Current head 0016734 differs from pull request most recent head e32e14c. Consider uploading reports for the commit e32e14c to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #864   +/-   ##
=======================================
  Coverage   66.92%   66.92%
=======================================
  Files          43       43
  Lines         520      520
  Branches       76       76
=======================================
  Hits          348      348
  Misses        167      167
  Partials        5        5

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


[react-native-payments] Android response doen't return info about card

Since Google Pay API version 2.0 can show the card details in response.
How do I get the info card (network and 4 digits) with react-native-payments?
https://developers.google.com/pay/api/android/reference/response-objects#PaymentData
https://developers.google.com/pay/api/android/reference/response-objects#CardInfo

@vitalyiegorov Hello.
It looks like the AndroidPaymentMethodData with info: AndroidCardInfo or just AndroidCardInfo is not parsed in the AndroidPaymentResponse, am I right? Please, could you check?
https://github.com/rnw-community/rnw-community/blob/master/packages/react-native-payments/src/%40standard/android/response/android-payment-method-data.ts
https://github.com/rnw-community/rnw-community/blob/master/packages/react-native-payments/src/class/payment-response/android-payment-response.ts

@denysoleksiienko Can you please provide a Pull request with a potential fix?

@vitalyiegorov I'm not sure how it should be correctly. I created a path with an example of potential code. Please check
Return_cardInfo_for_Android_response.patch

@denysoleksiienko I have created a pull request #246 from your patch for you, now we can analyze the changes and improve, can you please show me where do you get the card info data on IOS response?

@vitalyiegorov card info on ios response comes from applePayToken: IosPaymentResponse.parsePkToken(data.token)
Here is my response:
{"paymentMethod": {"network":"Visa","type":"PKPaymentMethodTypeCredit","displayName":"Visa 0101"}, "transactionIdentifier": ".......", "paymentData": {"data": "......"}
https://github.com/rnw-community/rnw-community/blob/master/packages/react-native-payments/src/%40standard/ios/response/ios-pk-token.ts

fixed in https://github.com/rnw-community/rnw-community/releases/tag/v0.77.0 please check

@vitalyiegorov Yes, it works in 0.77.0, and see card details in the response. Thank you


Cant launch

In the path App\VbsToExe, there is nothing, only license

Oh now i fixes it by downloading release not the source code


Ratify to support out-of-box experience for typical scenarios

What would you like to be added?
This issue is for Ratify to provide out-of-box experience in the context of Notary Project signature validation on K8s clusters.
There are three typical scenarios:

Scenario 1: The k8s workload uses images signed and stored in a public registry.
Scenario 2: The k8s workload uses images signed and stored in a private registry with certificates stored in AKV
Scenario 3: The k8s workload uses images signed and stored in a both public and private registry.

After helm installatioin, Ratify should be ready to work. Users should not be required to configure any custom resources by default. For advanced users or any runtime updates, users can update custom resources accordingly based on their needs. Thus, Ratify helm chart should support necessary parameters to set up resources: ORAS Stores, KMP and Notation Verifier.
Scenario 1: As images are stored in a public registry, users can skip the configuration for ORAS store, but able to create the following resources by specifying helm chart values:

Inline KMPs for storing the PEM formatted public root certificates
Notation Verifier for setting up Notary Project trust policies

Scenario 2: Users should be able to create the following resource by specifying helm chart values:

ORAS stores for accessing private registries
AKV KMPs for accessing certificates stored in AKV
Notation Verifier for setting up Notary Project trust policies

Scenario 3: Users should be able to create the following resource by specifying helm chart values:

ORAS stores for accessing private registries
AKV KMPs for accessing certificates stored in AKV
inline KMPs for storing the PEM formatted public root certificates
Notation Verifier for setting up Notary Project trust policies separately for images in public registries and in private registries

Currently, helm chart parameters exist for ORAS stores and KMP resources, but not for Notation Verifier. We need to add parameters for setting up Notation Verifier. The issue https://github.com/ratify-project/ratify/issues/1943 asked for trustedIdentities configuration, but it is not enough, we should allow users to

set up multiple trust policies
For each trust policy, users can set up

RepositoryScopes: a list of repository URLs
KMPs for trustStores
trustedIdentities

An example of Notation Verifier parameters will be provided in the issue comment later.
NOTE: This issue does not include the configuration required for setting up admission policies, which could be tracked in another issue for UX improvements.
Anything else you would like to add?
No response
Are you willing to submit PRs to contribute to this feature?

[ ] Yes, I am willing to implement it.

We discussed this during the community meeting today. We can explore adding steps in helmfile or directly update the helmCharts. @yizha1 , please provide samples of the desired --set values command and result CR for reference.

To configure a Notary Project trust policy like below:
{
    "version": "1.0",
    "trustPolicies": [
        {
            "name": "acme-rockets-images",
            "registryScopes": [ "registry.acme-rockets.io/software/net-monitor", "registry.acme-rockets.io/software/net-logger" ],
            "signatureVerification": {
              "level" : "strict",
            },
            "trustStores": ["ca:acme-rockets", "tsa:trusted-tsa"],
            "trustedIdentities": [
              "x509.subject: C=US, ST=WA, L=Seattle, O=acme-rockets.io, OU=Finance, CN=SecureBuilder",
              "x509.subject: C=US, ST=WA, L=Seattle, O=acme-rockets.io, OU=Design, CN=SecureBuilder",
            ]
        },
       {
            "name": "public-images",
            "registryScopes": [ "registry.wabbit-networks.io/software/net-utils" ],
            "signatureVerification": {
              "level" : "strict",
            },
            "trustStores": ["ca:wabbit-networks", "tsa:trusted-tsa"],
            "trustedIdentities": [
              "x509.subject: C=US, ST=WA, L=Seattle, O=wabbit-networks.io, OU=Security Tools"
            ]
        }
    ]
}

An example of Notation configurations in values.yaml:

notation:
  enabled: true
  trustPolicies:
    - name: acme-rockets-images
      registryScopes:
        - "registry.acme-rockets.io/software/net-monitor"
        - "registry.acme-rockets.io/software/net-logger"
       trustStores:
          ca:
            fileURLs:
            urls:
              - ""
          tsa:
        trustIdentities:
           - "C=US, ST=WA, L=Seattle, O=acme-rockets.io, OU=Finance, CN=SecureBuilder",
           - "C=US, ST=WA, L=Seattle, O=acme-rockets.io, OU=Design, CN=SecureBuilder"
    - name: public-images
       registryScopes:
         - "registry.wabbit-networks.io/software/net-utils"
       trustStores:
          ca:
            - name: <name-of-the-kmp>
          tsa:
            - name: <name-of-the-kmp>
        trustIdentities:
           - "C=US, ST=WA, L=Seattle, O=wabbit-networks.io, OU=Security Tools"

Hi @yizha1, In this sample verifier, trustStore contains a reference to kmp.

verificationCertStores:
      ca:
        ca-certs:
          - gatekeeper-system/kmp-akv-ca
      tsa:
        tsa-certs:
          - gatekeeper-system/kmp-akv-tsa
 trustStores: # trustStore must be trust-store-type:trust-store-name specified in verificationCertStores
            - ca:ca-certs
            - tsa:tsa-certs

Hi @yizha1, in response to " how to connect the KMP to the notation verifier". In this sample verifier, trustStore contains a reference to kmp.

verificationCertStores:
      ca:
        ca-certs:
          - gatekeeper-system/kmp-akv-ca
      tsa:
        tsa-certs:
          - gatekeeper-system/kmp-akv-tsa
 trustStores: # trustStore must be trust-store-type:trust-store-name specified in verificationCertStores
            - ca:ca-certs
            - tsa:tsa-certs

During installation, users do not know the name of a KMP. Ratify needs to render KMP resources based on user input and then reference it in the verifier resource.

@shahramk64 @susanshi @akashsinghal @binbin-li  @duffney I made an update on the comment https://github.com/ratify-project/ratify/issues/1965#issuecomment-2521649581. Any suggestions on simplying the configuration are welcome.
For helm installation command, as there are several parameters and layers for Notation configuration, I would suggest that users can use -f values.yaml combined with --set xxx parameters. Or can we split the notation configuration into a separate file, named notation-verifier-values.yaml, then users can only update this file and use -f notation-verifier-values.yaml.
Example:
helm install ratify \
    ratify/ratify --atomic \
    --namespace ${RATIFY_NAMESPACE} --create-namespace \
    --set featureFlags.RATIFY_CERT_ROTATION=true \
    --set azureWorkloadIdentity.clientId=${IDENTITY_CLIENT_ID} \
    -f notation-verifier-values.yaml

@yizha1: It seems like it's not feasible to change the schema of the trustPolicies. The schema is determined by Notation and it's defined here, and Ratify should provide the same set of properties.

@shahramk64 can you clarify your questions? I think Ratify just fetch the necessary inputs and build the trust policies as required by Notary Project trust policies.

@yizha1: It seems like it's not feasible to change the schema of the trustPolicies. The schema is determined by Notation and it's defined here, and Ratify should provide the same set of properties.

@shahramk64 can you clarify your questions? The proposal is not change the trust policies schema, Ratify just fetch the necessary values from the input and build the trust policies as required by Notary Project trust policies.

Hi @yizha1, sorry for the confusion.
In your example of values.yaml:
trustStores:
          - type: ca
             certificates:
                - azurekeyvault:
                      vaultURI:
                      tenantId:
                      certificates: []
                      keys: []
                      refreshInterval:

trustStores is defined in a way that contains AKV information. I thought that's updating the trustStore schema, but that's just in the values.yaml. However, That info is currently being provided in the values.yaml file in azureKeyVault attribute.
I moved the trustPolicies attributes to the values.yaml file so that the user can provide their own set of values, and I set the default values to the existing values in verifier.yaml (so that the tests pass). This way the user can define multiple trustPolicies in values.yaml and provide their own trustStores and trustedIdentities in each trustPolicy. The thing that doesn't seem to be feasible is matching the certStores with trustedIdentities automatically during the installation for each trustPolicy. I am not sure if that was your intension though. Please have a look at my PR and let me know if it's not providing the capability that you are after.


POST Calls fail if Origin header isn't supplied

I don't see any mention of the Origin header being a requirement in POST requests so I'm assuming this is a bug.
I'm using PowerShell's Invoke-RestMethod to make Kudu API calls in Azure.
$url = "https://mysite.scm.azurewebsites.net/api/triggeredwebjobs/$jobName/"
Invoke-RestMethod $url -Headers @{"Authorization"="Basic $base64AuthInfo"}

This fails with a strange 403 error saying the site is Stopped (when it clearly isn't since GET requests go through fine).

          Error 403 - This web app is stopped.
          The web app you have attempted to reach is currently stopped and does not accept any requests. Please try to reload the page or visit it again soon.
          If you are the Administrator of this web app, please visit the Azure Portal to check why the app is stopped.

Specifying a fake Origin makes it work,
$url = "https://mysite.scm.azurewebsites.net/api/triggeredwebjobs/$jobName/"
Invoke-RestMethod $url -Headers @{"Authorization"="Basic $base64AuthInfo"; "Origin"="fake://"}

Let us the log.   Will get back to you.

The issue is, unlike CURL, Powershell's Invoke-RestMethod POST tries to mimics browser form-post (Content-Type: application/x-www-form-urlencoded, User-Agent: Mozilla/...).   To protect against CSRF attack, we require additional headers the browser generally passes with form-post.  Unfortunately, powershell Invoke-RestMethod POST does not pass those and the call is rejected.
The workaround is ...

Provide UserAgent when Invoke-RestMethod from powershell.  This will tell us the request is not from browser.  The also helps us investigate issues faster.   Simply tell us your User-Agent, we can find your requests quickly.

Provide explicit Content-Type: application/json (for example) since your intention are not doing any form post body.

For instance, ...
$username = "username"
$securePwd = ConvertTo-SecureString "password" -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential ($username, $securePwd)
$body = "{ ... }"
$url = "https://mysite.scm.azurewebsites.net/deploy"

Invoke-RestMethod $url -Credential $credential  -Method Post -Body $body -ContentType "application/json" -UserAgent "myuseragent"

btw, same as #1801

Closing since it's really a client issue.

That error message could stand to be a bit more correct - the web app isnt stopped. For the record this also affects Invoke-WebRequest


Hadoop 3.2.11 support: Fixing compilation errors.

Same review as https://github.com/88manpreet/spark-redshift/pull/1 (Reviewed by Jason)
Changes in integration tests to support to fix compilation errors due to hadoop 3.2 api changes.
Note: The integration tests are still failing at runtime.
Ticket: COREML-1946
Commit 3: Fixed 4 unit tests
Tests:

All integration tests are passing

Note to reviewers:

These changes would (should) not be merged to master.
Any other changes in future related to hadoop-3 support will be merged in this branch (hadoop3_2_1_support)

Codecov Report

Merging #79 (4349270) into master (cd1aea7) will decrease coverage by 13.86%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master      #79       +/-   ##
===========================================
- Coverage   74.09%   60.23%   -13.87%
===========================================
  Files          16       16
  Lines         772      772
  Branches       94       94
===========================================
- Hits          572      465      -107
- Misses        200      307      +107

Codecov Report

Merging #79 (4349270) into master (cd1aea7) will decrease coverage by 13.86%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master      #79       +/-   ##
===========================================
- Coverage   74.09%   60.23%   -13.87%
===========================================
  Files          16       16
  Lines         772      772
  Branches       94       94
===========================================
- Hits          572      465      -107
- Misses        200      307      +107


Checksum does not match

If I zip a string a string 'hello world' in the browser, upload to a node.js server and call unzip, it throws Checksum does not match.
Am I missing something obvious?

I also encountered the same issue.

Having the same issue here. Any update?

I encountered the same issue. Update?

Could you provide a code snippet that reproduces it?


kim-property module v2.3.0

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@beckermr I am getting this error, do you know the reason for this?
Failed to upload due to Command '['anaconda', '--quiet', '-t', '/tmp/tmpa_6mhwvf/binstar.token', 'upload', '/home/conda/feedstock_root/build_artifacts/noarch/kim-property-2.3.0-py_0.tar.bz2', '--user=conda-forge', '--channel=main']' returned non-zero exit status 1.. Trying again in 10 seconds
Using BINSTAR_TOKEN for anaconda.org uploads to conda-forge.

Do not make PRs from branches within feedstocks. This will upload builds while you are making PRs. Please fork from master and try again.

Used a personal fork of the feedstock to propose changes

You did not do this properly.


added 256 color support

In response to #1.
WDYT @sindresorhus @jbnicolai

@sindresorhus done.

@sindresorhus sorry this took me so long; work has sucked the last week.

No worries, I've been mostly afk the past week anyways.

Super! :)


Create New One

I want to create several of these status pages, but if I create another one, the old status page will be replaced with the new one.
Can you tell me how to prevent workers from being replaced?

Deploying multiple UptimeFlare instance in the same account will cause it to exceed the free quota limit for a single account, so it is not supported for now.
Maybe in the future I'll upgrade UptimeFlare to use D1 storage with much more free quota so I can support deploying multiple instances in one account.
Currently, as a temporary workaround, you can only create multiple Cloudflare accounts and then deploy UptimeFlare individually to each one. (This should not violate the current TOS for Cloudflare, which allow one person to hold multiple free accounts.)

currently i have a paid plan for workers on cloudflare,
so i have idea for make more status pages, for specific use. like personal use and my community used.
but when i trying used make another one page, they got replace on workers, so idk how to make diff worker. any idea ?

Due to some naming conflicts in the code that haven't been changed, you can't have two instances of UptimeFlare in the same account, even if you have a paid plan.
If you don't want to create multiple Cloudflare accounts, you can manually deploy UptimeFalre in wrangler with a different name so that the new deployment doesn't overwrite the old instance.
As for how to deploy manually, please refer to https://github.com/lyc8503/UptimeFlare/blob/main/.github/workflows/deploy.yml and https://github.com/lyc8503/UptimeFlare/blob/main/deploy.tf

im still didnt get it the correct line need change.
Deploy.tf
`terraform {
required_providers {
cloudflare = {
source  = "cloudflare/cloudflare"
version = "~> 4"
}
}
}
provider "cloudflare" {
read token from $CLOUDFLARE_API_TOKEN
}
variable "CLOUDFLARE_ACCOUNT_ID" {
read account id from $TF_VAR_CLOUDFLARE_ACCOUNT_ID
type = string
}
resource "cloudflare_workers_kv_namespace" "uptimeflare_kv" {
account_id = var.CLOUDFLARE_ACCOUNT_ID
title      = "uptimeflare_kv"
}
resource "cloudflare_worker_script" "new_project_name" {
account_id         = var.CLOUDFLARE_ACCOUNT_ID
name               = "new_worker_name"
content            = file("worker/dist/index.js")
module             = true
compatibility_date = "2023-11-08"
kv_namespace_binding {
name         = "UPTIMEFLARE_STATE"
namespace_id = cloudflare_workers_kv_namespace.uptimeflare_kv.id
}
}
resource "cloudflare_worker_cron_trigger" "uptimeflare_worker_cron" {
account_id  = var.CLOUDFLARE_ACCOUNT_ID
script_name = cloudflare_worker_script.new_project_name.name
schedules = [
"* * * * *", # every 1 minute, you can reduce the KV write by increase the worker settings of kvWriteCooldownMinutes
]
}
resource "cloudflare_pages_project" "new_project_name" {
account_id        = var.CLOUDFLARE_ACCOUNT_ID
name              = "new_project_name"
production_branch = "main"
deployment_configs {
production {
kv_namespaces = {
UPTIMEFLARE_STATE = cloudflare_workers_kv_namespace.uptimeflare_kv.id
}
compatibility_date  = "2023-11-08"
compatibility_flags = ["nodejs_compat"]
}
}
}`
deploy.yml
`name: Deploy to Cloudflare
on:
push:
branches: ['main']
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
  - name: Setup Terraform
    uses<EMAIL_ADDRESS>    with:
      terraform_version: 1.6.4

  - name: Use Node.js 18.x
    uses: actions/setup-node@v3
    with:
      node-version: 18.x
      cache: 'npm'

  # Automatically get an account id via the API Token
  # if secrets.CLOUDFLARE_ACCOUNT_ID is not set.
  - name: Fetch Account ID
    id: fetch_account_id
    run: |
      if [[ -n "${{ secrets.CLOUDFLARE_ACCOUNT_ID }}" ]]; then
        ACCOUNT_ID="${{ secrets.CLOUDFLARE_ACCOUNT_ID }}"
        echo "Using provided CLOUDFLARE_ACCOUNT_ID from secrets."
      else
        ACCOUNT_ID=$(curl -X GET "https://api.cloudflare.com/client/v4/accounts" -H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" -H "Content-Type:application/json" | jq ".result[0].id" -r)
        if [[ "$ACCOUNT_ID" == "null" ]]; then
          echo "Failed to get an account id, please make sure you have set up CLOUDFLARE_API_TOKEN correctly!"
          exit 1
        fi
      fi
      echo 'account_id='$ACCOUNT_ID >> $GITHUB_OUTPUT

    env:
      CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

  # This is a temporary workaround to fix issue #13
  # On a new Cloudflare account, the terraform apply will fail with `workers.api.error.subdomain_required`
  # This may be due to the account not having a worker subdomain yet, so we create a dummy worker and then delete it.
  # Cloudflare should allocate a worker subdomain after this.
  # https://github.com/cloudflare/terraform-provider-cloudflare/issues/3304
  - name: Create worker subdomain
    id: create_dummy_worker
    run: |
      curl --request PUT --fail-with-body \
           --url https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/workers/scripts/dummy-ib4db6ntj5csdef3 \
           --header 'Authorization: Bearer '$CLOUDFLARE_API_TOKEN \
           --header 'Content-Type: application/javascript' \
           --data 'addEventListener('\''fetch'\'', (event) => event.respondWith(new Response('\''OK'\'')))'\

      curl --request DELETE --fail-with-body \
           --url https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/workers/scripts/dummy-ib4db6ntj5csdef3 \
           --header 'Authorization: Bearer '$CLOUDFLARE_API_TOKEN \
           --header 'Content-Type: application/json'
    env:
      CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
      CLOUDFLARE_ACCOUNT_ID: ${{ steps.fetch_account_id.outputs.account_id }}

  - name: Install packages
    run: |
      npm install
      cd worker
      npm install

  - name: Build worker
    run: |
      cd worker
      npx wrangler deploy src/index.ts --outdir dist --dry-run

  - name: Build page
    run: |
      npx @cloudflare/next-on-pages

  - name: Deploy using Terraform
    # We're using terraform for first-time setup here,
    # since we didn't setup a remote backend to store state,
    # following runs will fail with name conflict, which is normal.
    continue-on-error: true

    run: |
      terraform init
      terraform apply -auto-approve -input=false
    env:
      CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
      TF_VAR_CLOUDFLARE_ACCOUNT_ID: ${{ steps.fetch_account_id.outputs.account_id }}

  # Still need to upload worker to keep it up-to-date (Terraform will fail after first-time setup)
  - name: Upload worker
    run: |
      curl --fail-with-body -X PUT https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/workers/scripts/new_worker_name/content --header 'Authorization: Bearer '$CLOUDFLARE_API_TOKEN -F 'index.js=@worker/dist/index.js;type=application/javascript+module' -F 'metadata={"main_module": "index.js"}'
    env:
      CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
      CLOUDFLARE_ACCOUNT_ID: ${{ steps.fetch_account_id.outputs.account_id }}

  # Currently Terraform Cloudflare provider doesn't support direct upload, use wrangler to upload instead.
  - name: Upload pages
    run: |
      npx wrangler pages deploy .vercel/output/static --project-name new_project_name
    env:
      CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
      CLOUDFLARE_ACCOUNT_ID: ${{ steps.fetch_account_id.outputs.account_id }}`

Seems you forgot to change deploy.tf Line 47, it should also be new_project_name in your case.

This my deploy.tf
`terraform {
required_providers {
cloudflare = {
source  = "cloudflare/cloudflare"
version = "~> 4"
}
}
}
provider "cloudflare" {
read token from $CLOUDFLARE_API_TOKEN
}
variable "CLOUDFLARE_ACCOUNT_ID" {
read account id from $TF_VAR_CLOUDFLARE_ACCOUNT_ID
type = string
}
resource "cloudflare_workers_kv_namespace" "uptimeflare_kv" {
account_id = var.CLOUDFLARE_ACCOUNT_ID
title      = "uptimeflare_kv"
}
resource "cloudflare_worker_script" "new_project_name" {
account_id         = var.CLOUDFLARE_ACCOUNT_ID
name               = "new_worker_name"
content            = file("worker/dist/index.js")
module             = true
compatibility_date = "2023-11-08"
kv_namespace_binding {
name         = "UPTIMEFLARE_STATE"
namespace_id = cloudflare_workers_kv_namespace.uptimeflare_kv.id
}
}
resource "cloudflare_worker_cron_trigger" "uptimeflare_worker_cron" {
account_id  = var.CLOUDFLARE_ACCOUNT_ID
script_name = cloudflare_worker_script.new_project_name.name
schedules = [
"* * * * *", # every 1 minute, you can reduce the KV write by increase the worker settings of kvWriteCooldownMinutes
]
}
resource "cloudflare_pages_project" "new_project_name" {
account_id        = var.CLOUDFLARE_ACCOUNT_ID
name              = "new_project_name"
production_branch = "main"
deployment_configs {
production {
kv_namespaces = {
UPTIMEFLARE_STATE = cloudflare_workers_kv_namespace.uptimeflare_kv.id
}
compatibility_date  = "2023-11-08"
compatibility_flags = ["nodejs_compat"]
}
}
}`

This my deploy.tf
  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = "~> 4"
    }
  }
}

provider "cloudflare" {
  # read token from $CLOUDFLARE_API_TOKEN
}

variable "CLOUDFLARE_ACCOUNT_ID" {
  # read account id from $TF_VAR_CLOUDFLARE_ACCOUNT_ID
  type = string
}

resource "cloudflare_workers_kv_namespace" "uptimeflare_kv" {
  account_id = var.CLOUDFLARE_ACCOUNT_ID
  title      = "uptimeflare_kv"
}

resource "cloudflare_worker_script" "new_project_name" {
  account_id         = var.CLOUDFLARE_ACCOUNT_ID
  name               = "new_worker_name"
  content            = file("worker/dist/index.js")
  module             = true
  compatibility_date = "2023-11-08"

  kv_namespace_binding {
    name         = "UPTIMEFLARE_STATE"
    namespace_id = cloudflare_workers_kv_namespace.uptimeflare_kv.id
  }
}

resource "cloudflare_worker_cron_trigger" "uptimeflare_worker_cron" {
  account_id  = var.CLOUDFLARE_ACCOUNT_ID
  script_name = cloudflare_worker_script.new_project_name.name
  schedules = [
    "* * * * *", # every 1 minute, you can reduce the KV write by increase the worker settings of `kvWriteCooldownMinutes`
  ]
}

resource "cloudflare_pages_project" "new_project_name" {
  account_id        = var.CLOUDFLARE_ACCOUNT_ID
  name              = "new_project_name"
  production_branch = "main"

  deployment_configs {
    production {
      kv_namespaces = {
        UPTIMEFLARE_STATE = cloudflare_workers_kv_namespace.uptimeflare_kv.id
      }
      compatibility_date  = "2023-11-08"
      compatibility_flags = ["nodejs_compat"]
    }
  }
}```

Try this change too
resource "cloudflare_workers_kv_namespace" "uptimeflare_kv" {
  account_id = var.CLOUDFLARE_ACCOUNT_ID
-  title      = "uptimeflare_kv"
+  title      = "new_uptimeflare_kv"
}

still same.

See if there's anything wrong with Deploy using Terraform step.

Every time I want to deploy I have to use a unique namespace, and it can't be the same every time I want to deploy. because it will conflict even though I deleted it in Cloudflare. this case is done


Remove the event.stopPropagation

Because it interferes with event delegation, while still maintaining functionality to not close the tooltip on click when interactive.

Thank you, I implemented this feature on the v4 branch of the project. The way to detect if the change came from within the tooltip had to be changed but it was close to your solution.

Could you put in this in the current version thou? I need this now in production. When is version 4 coming out?

I don't work on v3 anymore and v4 is not coming out right away, I still need to support image paths, write documentation and some stuff. But just amend your own branch with :
if (!self.options.interactive || !$.contains(self.$tooltip[0], event.target)) {
and that should work fine.


Locate function not raising exception when image not found

This snippet running where it by all means should have raised an exception:
    try:
        gui.locate('ConnectWiseWrongPass.png','temp.png')
    except pyscreeze.ImageNotFoundException:
        pass
    else:
        wrongPass()

I am running version 0.9.42
Here is the needle image:

Here is the haystack image:

I was able to bypass this issue by changing my code to the following, using the old style of checking to manually raise the exception:

This is apparently by design, just wasn't documented yet.


Channel backups should be encrypted (especially if sent to Dropbox)

I saw that the guide "Static Channel Backups" suggests sending unencrypted backups to Dropbox. I don't think that's the greatest idea.
If one decides to use Dropbox, then the lnd data directory should be stored in something like a Cryptomator container (https://github.com/cryptomator/cli).
The only required change is that you would then point the Dropbox script at the Cryptomator data folder (the one with the encrypted files). This is what Cryptomator was made for. It's simple yet effective.
Alternatively, you could update the script to bundle the files in a .tar.gz. archive and then pipe it through GPG, using your public key for encryption.

SCBs are encrypted by default:

Because the backup file is encrypted with a key from the seed the node was created with, it can safely be stored on a cloud storage or any other storage medium.

https://github.com/lightningnetwork/lnd/blob/master/docs/safety.md#keeping-static-channel-backups-scb-safe

Alright, wasn't aware when I opened this.


CLI: -OutputFormat XML situationally produces broken XML (CLIXML)

The CLI's -OutputFormat Xml (-o Xml / -of Xml) parameter produces CLIXML output that can later be read with Import-CliXml, for instance.
If a -Command / -c command string / a *.ps1 script file passed to -File writes to multiple streams, the output XML text is broken in two (possibly related) ways:

The single magic #< CLIXML comment that is usually on the first line only is doubled (that is, the 2nd line contains the same comment, with only the 3rd line containing the XML).

A 2nd top-level <Objs> root element appears, seemingly covering the non-success streams separately, which results in broken XML as well as a loss of the ordering of output objects.

As an aside: it seems that host output is captured as success-stream output (S="Output") rather than information-stream output (S="information").
Is this by (historical) design, retained for backward compatibility?
Steps to reproduce
{
 $ErrorActionPreference = 'Stop'
 pwsh -o xml -noprofile -command 'Write-Output output!; Write-Verbose -vb verbose!' |
   Write-Output
} | Should -not -Throw

Expected behavior
The test should succeed - no errors should occur.
Note that the test relies on the fact that PowerShell automatically deserializes CLIXML text when you send it through the pipeline, so that Write-Output outputs the deserialized ("rehydrated") output objects.
Actual behavior
The following error occurs:
Expected no exception to be thrown, but an exception
"Cannot process the XML from the 'Output' stream of '/.../pwsh':
Data at the root level is invalid. Line 1, position 1." was
thrown from line:1 char:36 ...

If you want to examine the actual XML, run the following on Unix:
sh -c 'pwsh -o xml -noprofile -command ''Write-Output output!; Write-Verbose -vb verbose!'' > out.xml'

You'll see the following content in out.xml - note the doubled comment line and the presence of two root elements (broken XML):
#< CLIXML
#< CLIXML
<Objs Version="<IP_ADDRESS>" xmlns="http://schemas.microsoft.com/powershell/2004/04">
	<S S="Output">
		output!
	</S>
</Objs>
<Objs Version="<IP_ADDRESS>" xmlns="http://schemas.microsoft.com/powershell/2004/04">
	<S S="verbose">
		verbose!
	</S>
</Objs>

Environment data

PowerShell Core 7.1.0-preview.2

I've seen this turn up in a few places, but wasn't sure what exactly was causing it. Thanks for the detailed investigation as always! :blush: 💖

Another very baffling side-effect of this, is when you get only error output. So for instance:
$Result = pwsh -OutputFormat Xml -Command Get-Typo | Where Text -eq "X"

You expect a #< CLIXML header to mean the output gets converted to objects and you'll capture it in $Result, but in this case you get a spew of XML because the command is not found... It might take you a while to realize that pwsh (or PowerShell, because this has always been like this) has produced all this output on stderr, and the hosting instance doesn't deserialize stderr output, even if it does have the CLIXML header.
NOTE: You can work around this by redirecting the other stream to stdout ... but then it's all co-mingled...


[Android 14] App has to be manually started after reboot

On Android 14, after boot up, the app has to be manually opened in order for it to start working. Only has to be done once per boot.

I've noticed the same, even on Android 13. Also the app sometimes hang on "Connecting to service..." when opening, so I have to force close it and next time it'll launch fine.

I have found on A14 that it takes a while, but always eventually loads. Pixel 5. Results may vary.


Backtest on randomly generated data

🌟 Feature Description

Motivation
There should be a backtest based on pure randomly generated data. The idea is that if the model can make profit over random data, it is overfitting.
See the discussion here

Hi,
You can randomly generate a dataset and train a model on it.
I think it will be possible to make profit on training data while backtest after overfitting.


Develop GET /policies Automation Test Case

Problem description
As a QA engineer, I need to develop an automation test case for the GET request for policies.
Requirements

Develop a test case for the GET request for /policies
Develop a test case for the GET request for /policies/{policyId}

Definition of done
Test Case created, and a correct response returned with HTTP code 200 and w. response body.

This ticket is closed on April 26th.


Segmentation fault (core dumped)  when starting calendar

The last update to clock seems to have affected the calendar.
It doesn't start when the calendar is enabled in the configuration.
But if comment out "today": "{} "  it can work again.
    "clock": {
      "format": "{:%H\n%M}",
      "format-alt": "{:%m/%d\n %a}",
      "tooltip-format": "<big>{:%Y-%m-%d, %A}</big>\n<tt>{calendar}</tt>",
      "calendar": {
                  "mode"          : "month",
                  "mode-mon-col"  : 3,
                  "weeks-pos"     : "right",
                  "on-scroll"     : 1,
                  "on-click-right": "mode",
                  "format": {
                            "months":     "{}",
                            "days":       "{}",
                            "weeks":      "W{}",
                            "weekdays":   "{}",
                            "today":      "{}"
                            }
                  },
      "actions":  {
                  "on-click-right": "mode",
                  "on-click-forward": "tz_up",
                  "on-click-backward": "tz_down",
                  "on-scroll-up": "shift_up",
                  "on-scroll-down": "shift_down"
                  }
  },

I confirm this as well. For now I had to disable the calendar widget to have the bar. Thank you @YingchangLiu for pointing out the problem.

@m-bdf Can you take a look?


Error: Fitness api can't request data for big time intervals [E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!]

Hello! My google fit app doesn't work for 2 months.
I started to debug the application and I was able to find these errors from adb logcat:
2020-11-22 17:04:48.804 16111-16143/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 1330200)
E/FitAndroidFutures: While reading data with request: DataReadRequest{bucket by intervals: active_minutes heart_minutes calories.expended distance.delta d:step_count.delta:gms:estimated_steps (2020-11-22 00:00:00 - 2020-11-22 17:04:41) +server}
    him: java.lang.IllegalStateException: hrb: 8:
        at hii.a(Unknown Source:4)
        at qei.a(PG:2)
        at rhf.e(Unknown Source:2)
        at rhh.run(PG:11)
        at rjp.execute(PG:1)
        at rhv.r(PG:1)
        at rhv.n(PG:11)
        at rhv.l(PG:5)
        at rlm.run(PG:10)
...

Please pay attention to the line "FAILED BINDER TRANSACTION !!!  (parcel size = 1330200" - google fit can't get the data from the android service because the response is too large to be returned through IPC.
Also, I'm developing an application that uses the fitness api and also I noticed that gms Task api doesn't return anything and even doesn't call "onComplete" listener in similar cases when google fit service can't deliver the result to a requester.
I think a reading task should be completed anyways if Binder fails for some reason.

Hi, i'm facing the same issue. The api cannot handle large runs. Did you find any solutions?

Hi, I'm also facing the same issue, My google fit app have lots of data over the last 3 months. I tried to get these all data used 'setTimeRange' in DataReadRequest, which returns nothing, I mean the data between the range is nearly 1800(approx), and there is no exception printed in logs, also any callbacks not triggered. So we struggle to get total data from GoogleFit. I think the large data responses don't parsable. I request a pagination functionality from the server and the problem may be solved.
Please file the issue and find any solution! Thankyou);-

@lawsuit

same issue. I have 86400 record in 2 months. But return error when request: 5022: Cannot bucket into more than 86400 intervals.


New version: Tencent.wechat <IP_ADDRESS>

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

https://webcdn.m.qq.com/spcmgr/download/WeChatSetup_<IP_ADDRESS>.exe


Change school email of Ong Zheng Lin to more user friendly format

Codecov Report

Merging #41 (cc61048) into master (d26b440) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #41   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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 d26b440...cc61048. Read the comment docs.


Fix shell profile loading in env.sh

Description
This fixes warnings/errors trying to load nonexistent shell configs.
Contributions

Updated env.sh skeleton to fix /env.sh: line 7: /home/steam/.bash_profile: No such file or directory
Updated entrypoint.sh to fix quoting issues (i.e. setting NAME to A's B produces an error specified below)

/env.sh: line 20: unexpected EOF while looking for matching `''

Checklist

[ ] I added one or multiple labels which best describes this PR.
[x] I have tested the changes locally.
[ ] This PR has a reviewer on it.
[ ] I have validated my changes in a docker container and on Ubuntu. (Only needed for Odin or Docker Changes)

Just a head's up: this covers only one case - single quotes in values, it's still possible to break things quoting and I haven't figured out a good solution.
Perhaps making env.sh a static template and populating variables through envsubst would be a better idea?

export all the ENV variables.
Cat envsubst < env.sh.tpl > /env.sh && chmod +x /env.sh

Just a head's up: this covers only one case - single quotes in values, it's still possible to break things quoting and I haven't figured out a good solution. Perhaps making env.sh a static template and populating variables through envsubst would be a better idea?
1. `export` all the ENV variables.

2. Cat `envsubst < env.sh.tpl > /env.sh && chmod +x /env.sh`

@Genda1ph we encountered the same issue when parsing values, we opted for just letting people know their values already have to be POSIX compliant

Alright, should I revert the last change then?


Remove the need to wrap up the whole app in the StripeTerminalProvider component

Is your feature request related to a problem? Please describe.
Can we remove the need to wrap the top level App component with the StripeTerminalProvider?
Our app supports a number of payment providers. It is only at a certain screen, later in the flow, that an administrator chooses which payment provider they have a reader/terminal for (Stripe or other). Furthermore, it is then a few screens later that the functionality of collecting a payment would be needed. For that reason, wrapping the app at the top level in the StripeTerminalProvider wrapper is not really feasible for us.
Describe the solution you'd like
The possibility to initiate the stripe-terminal-react-native SDK at any point in the app without the need of wrapping the app in the StripeTerminalProvider.
Alternatively, could you suggest a solution where the StripeTerminalProvider component only wraps up a portion of the app (eg. one screen or one navigator) not at the top App.tsx level.
Describe alternatives you've considered
Alternatively, is there a way to provide a flag to the StripeTerminalProvider that wraps up the App component that would be in a completely disabled state, having no possible interference on the app (in case a customer is not using the Stripe readers at all)? The token would have to be provided at a later stage in the app when an administrator chooses Stripe as the payment provider they use.
Additional context
Our usual app flow would be as follows:
The App starts:

A few screens related to an admin authentication (we don't know at this point if a particular business has Stripe or any other reader).
...
PaymentProviderSelectorScreen (here an admin would choose Stripe, so the Stripe SDK can be initialised and it'd go to the next screen, which the customers would be facing.
CustomersProductsScreen (customer chooses a product and goes to the CheckoutScreen)
CheckoutScreen - here a customer would tap the Pay button to initialise the payment collection with Stripe.

Please advise. Thank you in advance.

I've solved it wrapping a nested navigator in the StripeTerminalProvider component (+ some conditional statements). Still, could you consider changing this functionality.
On an related note, where would be the best place to ask questions / seek advice on the react native app implementation (whenever it's not a bug of a feature request)?
@csanghvi-stripe @nazli-stripe

@marcinnexudus we don't currently have the bandwidth to implement this, but will keep in mind for the future.
You can still create issues here for general advice questions and community discussions.


fixes #176

Thank you for this! Any chance you're planning to cut a new npm release with this fix in there?

oops, sorry! v2.6.0

Woo!! Thanks!


Animal Image Classification

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Animal Image classification
:red_circle: Aim :To classify the animals based on the input images
:red_circle: Dataset : https://www.kaggle.com/datasets/alessiocorrado99/animals10
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Full name :Harsh raj
GitHub Profile Link :https://github.com/RAJharsh02
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project :: I will be using  VGG16 , ResNet and inception  for classifying the image .
What is your participant role? SSOC23