Regarding applying the provisioning package to hololens

Hi,
After successfully creating the provisional package, When I tried connecting my HoloLens to a PC via USB, It has not shown up the device in my PC's File Explorer.
Can you please provide more documentation on this step and also I would like to know whether the HoloLens need to be undergo reset before connecting to PC?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e24f7361-e06f-b282-0fef-ef541e648251
Version Independent ID: 85d2c650-645d-7a6c-c366-7a70ba176184
Content: Unlock Windows Holographic for Business features (HoloLens)
Content Source: devices/hololens/hololens-upgrade-enterprise.md
Product: hololens
GitHub Login: @jdeckerMS
Microsoft Alias: jdecker

Can I use the same provisioning package for two different HoloLens devices or for every HoloLens I need to create independent provisioning package?

@JayaSaiSontineni  The same provisioning package can be applied to multiple devices.
If you've already set up your HoloLens, you have to reset it so that it's on the first setup screen. (Notice in the first step for applying the provisioning package, it says "Connect the device via USB to a PC and start the device, but do not continue past the fit page of the initial setup experience (the first page with the blue box). ")

Hi Jeanie,
When I tried applying the same package to multiple devices, It has popping up an Provisioning error ( Installation of provisional package failed. Please work with the package author to diagnose the problem ) after I click on trust, Add it button on the Hololens device.
Can you provide some solution to it.
Thanks,
Jaya Sai Sontineni
Holo Pundits | Systems Analyst
+1<PHONE_NUMBER>  | www.holopundits.comhttp://www.holopundits.com/
*** HoloPundits is a Global Technology Company Specializing in developing AR, MR, and VR Applications***
[Logo]
ISO 9001:2015 & ISO 27001:2013 Certified Company
[mixed-reality_badge_side-by-side_blk-blu]
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
From: Jeanie Decker<EMAIL_ADDRESS>Sent: Monday, July 9, 2018 10:05 AM
To: MicrosoftDocs/windows-itpro-docs<EMAIL_ADDRESS>Cc: Jayasai Sontineni<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/windows-itpro-docs] Regarding applying the provisioning package to hololens (#1247)
@JayaSaiSontinenihttps://github.com/JayaSaiSontineni The same provisioning package can be applied to multiple devices.
If you've already set up your HoloLens, you have to reset it so that it's on the first setup screen. (Notice in the first step for applying the provisioning package, it says "Connect the device via USB to a PC and start the device, but do not continue past the fit page of the initial setup experience (the first page with the blue box). ")
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/windows-itpro-docs/issues/1247#issuecomment-403490905, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmUKGT-EjYry2iLb6gZl_zNSFbVjQXmiks5uE2MZgaJpZM4VEkFE.

@JayaSaiSontineni Does your provisioning package include a license file to upgrade to Business? I believe the license is for a single device. You would do a separate provisioning package for each upgrade so that each package has a different license file for the device.
If you want all other settings to be the same, when you start a new provisioning project, you can import the existing provisioning package and then just change the license file in the new one.

Yes it does have a license file to upgrade it to Business version.
Do you want me to use the same provisioning package, But different license file at runtime-settings and attach the package to Hololens Device? Is this what you are trying to say me?
And, I have received different xml files as well from the Microsoft support team. Using which I have created a new provisioning package and tried attaching it to the Hololens Device, Still it was popping up the same error.
Can you please help me out by providing an alternative or best solution to fix this.
Thanks,
Jaya Sai Sontineni
Holo Pundits | Systems Analyst
+1<PHONE_NUMBER>  | www.holopundits.comhttp://www.holopundits.com/
*** HoloPundits is a Global Technology Company Specializing in developing AR, MR, and VR Applications***
[Logo]
ISO 9001:2015 & ISO 27001:2013 Certified Company
[mixed-reality_badge_side-by-side_blk-blu]
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
From: Jeanie Decker<EMAIL_ADDRESS>Sent: Monday, July 9, 2018 10:17 AM
To: MicrosoftDocs/windows-itpro-docs<EMAIL_ADDRESS>Cc: Jayasai Sontineni<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/windows-itpro-docs] Regarding applying the provisioning package to hololens (#1247)
@JayaSaiSontinenihttps://github.com/JayaSaiSontineni Does your provisioning package include a license file to upgrade to Business? I believe the license is for a single device. You would do a separate provisioning package for each upgrade so that each package has a different license file for the device.
If you want all other settings to be the same, when you start a new provisioning project, you can import the existing provisioning package and then just change the license file in the new one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/windows-itpro-docs/issues/1247#issuecomment-403494689, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmUKGfLQ_2HAuDTbsel8eNtGMWa4fbMLks5uE2XTgaJpZM4VEkFE.

@JayaSaiSontineni Sorry that I wasn't clear. Let's say you have two devices and two licenses for upgrade.

Create provisioning package #1, selecting one of the license files, and configuring all other settings that you want.
Start creating provisioning package #2 by choosing "Advanced provisioning". Enter a name for the project, click Next. Select "Windows 10 Holographic", click Next. On the "Import a provisioning package", select provisioning package #1. That will bring in all of the settings that you configured already. All you have to do then is replace the license file and then build the package.

-or-
You can create both packages using the wizard and selecting separate license files in each one.

Hi Jennie,
I have followed the same steps you have suggested.
But, I got stucked up at attaching the package. Once I connect the Hololens device to PC using USB, I have copied .ppkg to Hololens internal storage and selected the button “Yes, Add it” on trust confirmation window  in Hololens device. After that, It is popping up an Provisioning error mentioning “Installation of provisional package failed. Please work with the package author to diagnose the problem”.
Can you please provide some solution on how to eradicate this error.
Thanks,
Jaya Sai Sontineni
Holo Pundits | Systems Analyst
+1<PHONE_NUMBER>  | www.holopundits.comhttp://www.holopundits.com/
*** HoloPundits is a Global Technology Company Specializing in developing AR, MR, and VR Applications***
[Logo]
ISO 9001:2015 & ISO 27001:2013 Certified Company
[mixed-reality_badge_side-by-side_blk-blu]
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
From: Jeanie Decker<EMAIL_ADDRESS>Sent: Monday, July 9, 2018 10:31 AM
To: MicrosoftDocs/windows-itpro-docs<EMAIL_ADDRESS>Cc: Jayasai Sontineni<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/windows-itpro-docs] Regarding applying the provisioning package to hololens (#1247)
@JayaSaiSontinenihttps://github.com/JayaSaiSontineni Sorry that I wasn't clear. Let's say you have two devices and two licenses for upgrade.

Create provisioning package #1https://github.com/MicrosoftDocs/windows-itpro-docs/pull/1, selecting one of the license files, and configuring all other settings that you want.
Start creating provisioning package #2https://github.com/MicrosoftDocs/windows-itpro-docs/issues/2 by choosing "Advanced provisioning". Enter a name for the project, click Next. Select "Windows 10 Holographic", click Next. On the "Import a provisioning package", select provisioning package #1https://github.com/MicrosoftDocs/windows-itpro-docs/pull/1. That will bring in all of the settings that you configured already. All you have to do then is replace the license file and then build the package.

-or-
You can create both packages using the wizard and selecting separate license files in each one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/windows-itpro-docs/issues/1247#issuecomment-403499260, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmUKGfCWOjA3LO4rGUI8wOtzQMFx0xqUks5uE2kRgaJpZM4VEkFE.

@JayaSaiSontineni I'm sorry, you'll need to work with Microsoft Support for troubleshooting your specific problem (https://support.microsoft.com/en-us/contactus/).


Docstring every public item of the new {Validation,Execution}Context API

To be done before we remove the feature flag

We need to make sure also that a chain that doesn't need to distinguish between "validation" and "execution" (e.g. "Cosmos SDK-like" chains) should not have to read documentation about it. Perhaps we should even introduce a different trait name (which is equivalent to ExecutionContext) for those who only need to use dispatch().


Arduino MKR WAN 1310 - BNE "Branch out of Range"

Trying to port the code to an Arduino MKR WAN 1310, I believe it uses the ASM-ARMV6M instruction set, but tinyjambu-256-asm-armv6m.S throws "Assembler message... Error: branch out of range", line tinyjambu-256-asm-armv6m.S:192.
bne	.L2561
b .L2561 compiles, but hangs. Do you have a resolution for this? or is the architecture incompatable?

I didn't have a real armv6m at the time, so I tested it on an armv6 platform pretending to be an armv6m.  There may be some differences in how branch instructions work between the two.  I have pushed a possible fix - let me know if it works.

It works with the 256-asm-armv6m, however the same issue exists in 192-asm-armv6m: I fixed it with the same

Thanks.  I have fixed the 192-bit version in the repository also.


📝 Add note about how subcommands with function names using underscores are converted to dashes

Docs updated for #341

Makes sense, thanks @targhs! :cake:


I got error

please help I got this error while input  google drive folder id
Error: unknown shorthand flag: '5' in -5P8rWL7
Thanks

@txdvil
Sorry for my delay, please show full log from your command. Thks.


tests/tls: add testcases for tls.certs keyword

This PR contains testcases that @victorjulien wants for OISF/suricata#3859.
Updates:

fixed changes requested in #58

Thanks Mats!


Upgrade to Nextjs 11

Is your feature request related to a problem? Please describe.
Currently this repo is using Next.js 9.5.5 which is quite outdated considering the new features that
have come out over the past few years such as the custom Link component that make client-side navigation
way faster.
Describe the solution you'd like
Upgrade current Next.js package to the latest version

@inezabonte When you save "that makes client-side navigation way faster", what do you mean by faster? Is it from a performance standpoint that users will notice or from a developer standpoint of making it easier to work with navigation?
I ask because upgrading multiple major versions in one go comes with risks since there are certain features that are not backwards compatible.

From a perfomance standpoint it will be faster. The Link component from Next.js enables client-side navigation instead of sending requests to the server every time you visit a page. So it is notably faster. Link
I do understand having a project as big as this it may not be an easy task.

@inezabonte Are there other features that you're expecting to introduce to this project from updating the Nextjs version to 11?

Apart from the ones I mentioned I think those are some of the issues I noticed while looking at the project.
Otherwise I don't think there should be any breaking changes.

You can also do it progressively by upgrading first to nextjs 10 as the features are slowly added
To make sure you don't break the project. Because it might require some refactoring

@inezabonte I'm planning on closing this issue unless there's a PR coming soon. Let me know!

It can be closed for now @ijemmao


The certs page is displayed incorrectly

The contents of the public key field are actually the contents of the certificate, not the public key.
Consider changing the name of the field to "certificate" or the contents of the field to the public key.
The Python SDK recently use the certificate to generate public key automaticly, but the PHP SDK still need to convert manually.

I agree with this suggestion, people who don't know this aspect may confuse certificates and public keys.

The Python SDK recently use the certificate to generate public key automaticly, but the PHP SDK still need to convert manually.

@epis2048 can you create an issue at: https://github.com/casdoor/casdoor-php-sdk/issues ?

The Python SDK recently use the certificate to generate public key automaticly, but the PHP SDK still need to convert manually.

@epis2048 can you create an issue at: https://github.com/casdoor/casdoor-php-sdk/issues ?

I think the problem comes from the casdoor. Just like @Steve0x2a 's saying that people who don't know this aspect may confuse certificates and public keys. The casdoor should tell its users that that's certificates not public keys.

Maybe the SDK can convert it automaticly, but I think the casdoor's field name should be more accurate.

@epis2048 yes, I got your question for cert name. We will change it. I mean you can create an issue for PHP SDK.

Like this pic, nearly all SDKs field name is public key. So I think the best efforts is change the content showing in casdoor, not nearly every SDK's code and variable name. Although, it's just my opinion. So, I don't think I should create an issue for PHP SDK. If so, Every SDK(except python) need an issue.

@epis2048 if the content is changed, how to change the code logic?

@epis2048 if the content is changed, how to change the code logic?

Every time visit the cert detail page, convert the certificate to public key. (The result is: DB still store the certificate and the front end show the public key)
I don't know the cost of each conversion, but I don't think the page needs to be visited very often, and a bit slower at a time won't slow the system down overall. Conversion operations can also be done by JS if possible.

@epis2048 I agreed to change the "Public key" wording into "Certificate", can you make PRs to change the Casdoor server code and also the possible SDKs you use?

Is anyone working on this issue？ maybe I can try to resolve this problem.

@FoeverA0 plz work on it

#894


Wait at most 5 minutes for the emulator to start

Wait at most 5 minutes for the emulator to start.  A more correct solution would be to find a better way to determine if the emulator is actually booted, but hopefully this fails faster, at least.
Bug: #24841
Risk Level: Low - CI only
Testing: CI
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

/assign @jpsim

@Augustyniak Thanks for the suggestion!

Sorry I didn't get to reviewing this in time. Here's an alternative which only considers the boot time in the timeout (not the SDK installation and emulator creation time) and "fails open": https://github.com/envoyproxy/envoy/pull/24850


MatDialog: How do I set boolean to false when a user clicks outside the dialog?

I have multiple dialogs on a single page.
I open one MatDialog window, and click outside the MatDialog to close the window.
It will now open the same window again, since the boolean value of IsOpen="" does not change to false, when a user clicks outside the window, if I open another MatDialog.
My issue is: The Dialog closes, but the value does not change to false.
What can I do, to ensure that the boolean tied to IsOpen changed to false, if a user clicks outside the MatDialog?
I know I can set up a "Close" button in the dialog, where I can set the IsOpen boolean to false, but that's not a solution that works.

I forgot @bind-IsOpen. Sorry.


Direct radiation

Description of the issue
We want to define the direct component of solar radiation
Ideas of solution
Suggested definition: "Direct radiation is radiation that has followed a direct path from the sun."
Alternative term: "Beam radiation"
This definition has been taken vom the cfconventions (cfconvetions.org): direct_downwelling_shortwave_flux_in_air, with a slight adaption (moved "beam radiation" to alternative term).
http://cfconventions.org/Data/cf-standard-names/current/build/cf-standard-name-table.html
Workflow checklist

[x] I discussed the issue with someone else than me before working on a solution
[x] I already read the latest version of the workflow for this repository
[x] The goal of this ontology is clear to me

I am aware that

[x] every entry in the ontology should have a definition
[x] classes should arise from concepts rather than from words

I like the definition.

This will be a subcasss of solar radiation (....ocurrent -> process -> radaition -> solar radaition)

I agree with slight modifications: Direct radiation is solar radiation that follows a direct path from the sun.

This issue hast been moved to a joined issue on solar radiation components #1076


fix: enable verbose to component wit opts

Fixes #1032

Ah this just recently changed in https://github.com/bytecodealliance/wasm-tools/pull/1028, so I think this may no longer be necessary? Does the latest wasm-tools version work for you?


fit "zoom to basicblock" to reading symbols

now "zoom to basicblock" fit to block inside the diff window
its not comfortable, there are need to many press "zoom in" to allow reading symbols
more usefull will be fit blocks to reading symbols by "zoom to basicblock"
look at the pics
this is zoom fit for now

this is zoom fit which i need

block can be too long width or too long height
i want default zoom basic block to allow read chars inside the basic block


Admin chat is too easy to lose track of when there are a lot of mesages

Description
Sticking the last x admin messages to the top or bottom of the chat box is illegal technology so either someone figures that out or a new UI needs to be made. Admin chat should not be removed from the chat if it is moved to a separate UI though.
Reproduction

Hop on a server
Try to talk with your fellow admins
Chat is scrolling so fast twitch chat won't see my admemes
If you are not using the new UI forget about seeing any messages at all

Additional context
See also https://github.com/space-wizards/space-station-14/issues/20144

I read everything. If I miss an admin message I can find it easier than I can a local chat message for sure


How does one type a function that may return different types?

I can create the following refinement types;
type odd = x:int{x%2 = 1}
type even = x:int{x%2 = 0}

How would I write a function that takes an integer and returns it's refinement?
something like
let parity x =
    | Odd x when x%2 = 1
    | Even x when x%2 = 0

How would I write the function? And what would the Val declaration look like?

I don't know if this is what you had in mind:
type odd = x:int{x%2 = 1}
type even = x:int{x%2 = 0}

type parity_t =
  | Odd of odd
  | Even of even

let value = function
  | Odd x
  | Even x -> x

// parity returns a parity_t element with value x
val parity: x:int -> y:parity_t{ value y == x }
let parity x =
  if x%2 = 1 then Odd x else Even x

Dependent types. Make type T_{i+1} depend upon a previous T_i type. See @s-zanella answer above.

@ s_zanella in
let value = function
  | Odd x
  | Even x -> x

Why is Even a function but Odd is not?

It's ML short hand syntax for:
let value = function
| Odd x -> x
| Even x -> x
parity_t is one word, read it as "type of parity".

and let value = function is syntactic sugar for let value x = match x with... feel free to reopen if other questions pop up.

To really return different types in each branch, you can go really dependent:
module Test
type odd = x:int{x%2 = 1}
type even = x:int{x%2 = 0}

type odd_or_even_or_bool =
  | Odd of odd
  | Even of even
  | Bool of bool

let project_t (x:odd_or_even_or_bool) : Type =
  match x with
  | Odd _ -> odd
  | Even _ -> even
  | Bool _ -> bool

val project : x:odd_or_even_or_bool -> Tot (project_t x)
let project = function
  | Odd x
  | Even x -> x
  | Bool b -> b

The general style here is to describe the type of a function f that may return different types based on its argument x by another function f_t which computes the type of f x as f_t x.


Campfire: a tool for project-specific tasks

There are a few tasks that come up often enough in Ambient development that it's worth automating them. Campfire is an in-repo tool for these tasks.
Closes #146.

[x] campfire doc: generates documentation from rustdoc output. Replaces the generate-docs example.
[x] campfire example clean: removes all build artifacts for all examples
[x] campfire example run [name]: runs the example name; both basics/skinmesh and skinmesh work
[x] campfire example run-all: replaces scripts/run_all_examples; runs all examples in sequence
[ ] campfire example check-all: checks all examples for compilation/Clippy warnings
[ ] campfire release update-version x.y.z: updates versions in all relevant files to point to x.y.z
[ ] campfire release update-msrv x.y.z: updates all MSRVs for all packages, including the Dockerfile
[ ] campfire release check: checks the following:

the Dockerfile can run an Ambient server
the MSRV is correct for both the host and the API
both the runtime and the guest can build with no errors
the CHANGELOG's unreleased section is empty
README.md and docs/src/introduction.md match their introductory text

Maybe:

[ ] campfire wasi update applies patches to a freshly-cloned version of wasmtime_wasi from preview2-prototyping (#302)

Nice! We should probably throw the golden image tests in there at some point too


Revert "Switch to release-monitoring.org API v2"

This reverts commit 1d50a4a8fd650d90b7aeecd842dc4957b22305db.

Apparently, there is currently no plan to sunset v1 support, it's just in maintenance mode and there will be no new features. So I think we are safe in keeping to use it.


backtest fails trying to download SPY data for benchmark with quandl

Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment

Operating System: MacOS Sierra 10.12.6
Python Version: 3.5.4
How did you install Zipline: pip
Python packages:

alembic==1.0.11
appnope==0.1.0
attrs==19.1.0
backcall==0.1.0
bcolz==0.12.1
bleach==3.1.0
Bottleneck==1.2.1
certifi==2019.6.16
chardet==3.0.4
Click==7.0
contextlib2==0.5.5
cyordereddict==1.0.0
Cython==0.29.10
decorator==4.4.0
defusedxml==0.6.0
empyrical==0.5.0
entrypoints==0.3
idna==2.8
intervaltree==3.0.2
ipykernel==5.1.1
ipython==7.5.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.14.0
Jinja2==2.10.1
jsonschema==3.0.1
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.5.0
Logbook==1.4.3
lru-dict==1.1.6
lxml==4.3.4
Mako==1.0.12
MarkupSafe==1.1.1
mistune==0.8.4
mock==3.0.5
multipledispatch==0.6.0
nbconvert==5.5.0
nbformat==4.4.0
networkx==1.11
notebook==5.7.8
numexpr==2.6.9
numpy==1.16.4
pandas==0.22.0
pandas-datareader==0.7.0
pandocfilters==1.4.2
parso==0.5.0
patsy==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
prometheus-client==0.7.1
prompt-toolkit==2.0.9
ptyprocess==0.6.0
Pygments==2.4.2
pyrsistent==0.15.2
python-dateutil==2.8.0
python-editor==1.0.4
pytz==2019.1
pyzmq==18.0.1
qtconsole==4.5.1
requests==2.22.0
requests-file==1.4.3
scipy==1.3.0
Send2Trash==1.5.0
six==1.12.0
sortedcontainers==2.1.0
SQLAlchemy==1.3.5
statsmodels==0.10.0
tables==3.5.2
terminado==0.8.2
testpath==0.4.2
toolz==0.9.0
tornado==6.0.3
trading-calendars==1.8.0
traitlets==4.3.2
urllib3==1.25.3
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.4.2
wrapt==1.11.2
zipline==1.3.0

Now that you know a little about me, let me tell you about the issue I am
having:
Description of Issue

I signed up and got an api key for quandl
I ran: QUANDL_API_KEY=<my_key> zipline ingest -b quandl
I created a file called buyapple.py with the following contents:

from zipline.api import symbol, order, record

def initialize(context):
        pass

def handle_data(context, data):
    order(symbol('AAPL'), 10)
    record(AAPL=data.current(symbol('AAPL'), 'price'))

I ran the command zipline run --bundle quandl -f buyapple.py --start 2018-1-1 --end 2018-1-1 --output outapple.pickle

What did you expect to happen?
I expected the backtest to run

What happened instead?
I got the following error:

$ zipline run --bundle quandl -f buyapple.py --start 2018-01-01 --end 2019-01-01 --output output_apple.pickle
[2019-06-27 01:53:19.343551] INFO: Loader: Cache at /Users/richardwuebker/.zipline/data/SPY_benchmark.csv does not have data from 2018-01-02 00:00:00+00:00 to 2018-12-31 00:00:00+00:00.

[2019-06-27 01:53:19.344034] INFO: Loader: Downloading benchmark data for 'SPY' from 2017-12-29 00:00:00+00:00 to 2018-12-31 00:00:00+00:00
Traceback (most recent call last):
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/bin/zipline", line 11, in <module>
    load_entry_point('zipline==1.3.0', 'console_scripts', 'zipline')()
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/zipline/__main__.py", line 107, in _
    return f(*args, **kwargs)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/zipline/__main__.py", line 276, in run
    blotter=blotter,
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/zipline/utils/run_algo.py", line 159, in _run
    trading_days=trading_calendar.schedule[start:end].index,
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/zipline/finance/trading.py", line 103, in __init__
    self.bm_symbol,
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/zipline/data/loader.py", line 149, in load_market_data
    environ,
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/zipline/data/loader.py", line 216, in ensure_benchmark_data
    data = get_benchmark_returns(symbol)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/zipline/data/benchmarks.py", line 35, in get_benchmark_returns
    data = r.json()
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/richardwuebker/.pyenv/versions/3.5.4/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Here is how you can reproduce this issue on your machine:
Reproduction Steps

create a new virtual environment with python 3.5.4 with pyenv
pip install zipline
create the buyapple.py file above
get a quandl api key, and ingest the data
Run the command above
...

What steps have you taken to resolve this already?
I've upgraded my operating system, removed my python, brew installed python, brew installed pyenv, created a new envrionment in a directory with 3.5.4, replaced my quandl api key, ingested the quandl data again and retried. I also tried with a jupyter notebook with no luck
...
Anything else?
...
Sincerely,
Rick

It is because IEX deprecated the old API for downloading benchmark data.
You can try the several workarounds here #2480

I am having the same issue. @rwuebker have you found a working solution. Thanks

@arslanakhtar61 no I haven't. Please let me know if you think of something. Thanks!

So here is what I did, go to [(https://iexcloud.io/)], create a free account, get an API token, and modify the following file:
~/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/benchmarks.py
do:
import os
on top of the file
IEX_TOKEN=os.environ["IEX_PUBLIC_TOKEN"]     r = requests.get(         #'https://api.iextrading.com/1.0/stock/{}/chart/5y'.format(symbol),         'https://cloud.iexapis.com/stable/stock/{}/chart/5y?token={}'.format(symbol, IEX_TOKEN)     )
Also define IEX_PUBLIC_TOKEN as and environment variable in your bashrc and copy your token key there.
This can get you going for the time being.

getting same error too.

also meet it , have any answers ?

This stackoverflow answer works for me.

$ zipline run -f buyapple.py –-start 2000-1-1 –-end 2014-1-1 --output buyapple_out.pickle

The error was due to the follows while running:
[2019-11-28 01:01:25.502826] INFO: Loader: Downloading benchmark data for 'SPY' from 1999-12-31 00:00:00+00:00 to 2013-12-31 00:00:00+00:00
s:  <class 'str'> Forbidden

Added print('s: ', type(s), s) to trace it.
$ cat /PATH-TO/lib/python3.6/json/decoder.py

    def decode(self, s, _w=WHITESPACE.match):
        """Return the Python representation of ``s`` (a ``str`` instance
        containing a JSON document).

        """
        print('s: ', type(s), s)
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
        end = _w(s, end).end()
        if end != len(s):
            raise JSONDecodeError("Extra data", s, end)
        return obj

https://github.com/quantopian/zipline/issues/2480 is related.

I'm having this problem as well. @jasonsears solution worked for me: https://github.com/jasonsears/zipline/commit/88ebb3426e547b80a40954068dcbbf1afd80cd24

Get same error anyone has a working solution?

On my repo (get benchmark returns) I have a method to do it manually, I also. provide the data from 1993 to 2020 of SPY daily data. It works, but its a bit limited in the sense that you cant use the api.

Hi all, I'm going to close this in favor of the consolidated issue for the benchmark downloading problems: https://github.com/quantopian/zipline/issues/2627.
https://github.com/quantopian/zipline/pull/2642 should help now, if you're using master, but it isn't released on PyPI yet.
Feel free to ping there or to reopen this if you think there's information in this issue that's not captured in the other one.


Subscription API - EDIT

User story
User wants to click each subscription and edit proper to detailed information. For this, an API is needed to fetch the data.
Description
API is needed to edit the data for subscription details
Acceptance Criteria
The API edits and returns the proper data for a testing subscription.
Testing
The API edits and returns the proper data on request of getting a subscription detailed information from the database.

Tested and completed.


ReactReduxSpa boot-server.tsx sending "wrong" initialReduxState to client

While working on redux stores for my ReactReduxSpa based framework I noticed a problem where the initialReduxState computed in boot-server.tsx didn't include the result of async domainTasks.
The issue is that boot-server.tsx calls renderToString(app), waits for the domainTasks to complete – at this stage store.getState() includes the results from my fetch operation – and then calls renderToString(app) again BEFORE store.getState(). The side-effect of the second call to renderToString(app) is that some data in my redux stores is reset because the actions are firing again and this time the system doesn't wait for the domainTasks to complete (my request action resets the request result and also isLoaded …).
My solution for now is pretty straight-forward. Before the second call to renderToString I save the redux store state:
const initialReduxState = JSON.parse(JSON.stringify(store.getState()));
and use this const instead of store.getState() when setting
globals: { initialReduxState: initialReduxState }
https://github.com/aspnet/JavaScriptServices/blob/dev/templates/ReactReduxSpa/ClientApp/boot-server.tsx

Thanks for the suggestion!
I'm looking at the out-of-the-box ReactReduxSpa, and can't see any case where it would make a difference. As we have it there, the second call to renderToString doesn't cause the store to change, so it seems like we don't need to do this? Am I right in understanding that your change is needed only if you modify your app logic so that further calls to renderToString trigger a change to your store?
If I'm right about this, I think it's something we should leave up to developers to choose how to handle in their own apps. If they are modifying the state of their store, we don't know for sure whether they want the "before" or "after" version of it to be serialized - developers should implement logic to choose for themselves.
So, on the assumption that this doesn't affect the out-of-the-box ReactReduxSpa, I'm going to mark this closed. But if I'm wrong and you know of some case where out-of-the-box ReactReduxSpa needs this to behave consistently, could you please let me know? Do you have repro steps? If I'm misjudging how Redux is going to behave (e.g., if there's a race condition I've just never personally observed), I'd really like to know about that so we can be sure to implement your fix or something similar!

Thanks for your thoughful answer! From looking at the out-of-the-box code at least requestWeatherForecasts is called by the second renderToString and the reducer changes the state to:
case 'REQUEST_WEATHER_FORECASTS':
            return {
                startDateIndex: action.startDateIndex,
                forecasts: state.forecasts,
                isLoading: true
            };

So even though the forecasts where loaded by waiting for the domainTasks to finish the returned state has isLoading set to true (In my case I reset the equivalent to forecasts so the difference is even more striking).
Since the result of the second renderToString was created using the state waited for my feeling is that this is the correct state to return in any case.

requestWeatherForecasts doesn't dispatch REQUEST_WEATHER_FORECASTS if the existing state already contains the required data, so the second call is a no-op. So, I don't think there is a problem here, at least not out-of-the-box.
I appreciate your broader point that for general side-effecting renderToString calls, you're more likely to reproduce the same result if starting with the same input store state rather than the post-renderToString store state. I'm curious about what other Redux developers do (e.g., what the most authoritative Redux app templates do).


update ingress name script for 0.23.0

Adding comparison of 0.22.0 & 0.23.0 ingress objects

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

Can you add the comparison script output in description

Can you add the comparison script output in description

Added comparison in description

PFA - comparison of ingress objects on 0.22.0 chart & updated ingress objects (run via script)


V4LEncoder: use std::vector to bind the VisionIpcBufExtra to index

I think it's more safe and readable than pop from a SafeQueue.
std::vector extras is thread safe  if there is no access from different threads to the same element.

It's not clear why an std::vector is preferable here.

the std::vector may be more robust than the safeQueue, it can guarantees that the  VisionIpcBufExtra &extra is exactly the same as the dequeued  frame.
the safeQueue requires the order of enqueue and dequeue matches strictly without any errors during processing.

this pr is buggy and has too many conflicts with master(encoderd has been removed from selfdrive/ to system/). close for now.


feat: Activate the apparent functionality of the mobile application.

Prerequisites

[X] I have searched for existing issues that already include this feature request, without success.

Describe the Feature Request
The mobile app apparently works as a notifier of the price of the players.
That is, from what I see, in theory you could make a list of players and configure the application to send you an alert when the player reaches the configured price.
I think that would be a nice feature of the app aside from how great it already is on its own.
Describe the Use Case
Sometimes you buy players in a price higher than actual and you prefer that the price increment to sell it.
Describe Preferred Solution
In fact the feature is not for the script, is for the app installed from Play Store
Describe Alternatives
Maybe could be included too in the script and send alerts by discord or by the browser.
Additional Information
No response

No plan to implement this, as it cost money and for a free to use app, i wont be able to afford it atleast for a while.


test: Refactor test fixtures

The test fixtures are prefixed in their name, initially to ease readability and sorting them in the file tree by their loading order.

However the prefixes are hard to maintain and to keep up to date with reality. For example, we have 5_blockhashes which contain fixtures loaded before the starknet fixtures.
We are also loading all fixtures in the top conftest.py, consequently even for running a smol unit test we deploy all the contracts of the repo, we’d need to fix this by carefully placing the fixture right where they are required in subfolder’s conftest.py.
We want to :

remove the prefix in the test names
place the fixtures in the right conftest to optimize test execution time

Hello ! I'd like to take this issue please

Hi @mradolux , are you still working on this issue?

Hi @ptisserand, I didn't get assigned to it


Express instrumentation depends on our SDK

The express instrumentation has a type ExpressInstrumentationSpan which extends Span with name: string, which is not exposed by the API type. This means it can only be used with SDKs that provide a public accessor for name.
At the very least it should be documented. I would prefer to remove the type.

Almost all http framework have the same logic to be able to retrieve the name of the parent (e.g: restify)

then they all have the same bug. Forgive me for not knowing but what do they need the parent span name for? This might be something worth adding to the spec.

They generally want to have a better span name for the http request (e.g: HTTP GET /user/:id instead of HTTP GET), i think this would deserve more thinking because the use case is quite tricky. We could remove it though but i think this is worth to keep to end users

at least we should make the name property optional like name?: string or even name: unknown so if it is used with a different sdk that doesn't provide name then we aren't going to break.

why does the instrumentation have to read the span name to update it though? Is the "bad" name generated by the http instrumentation used in some way to generate the "good" name?

Because we can't be sure the parent span is the http one (depend on the instrumentations used), so we generally check that it contains HTTP which the default prefix for http spans.

Such functionality is better done in backend by combining information of spans in a trace.

The spec actually talk about "good" span name (here), this might come down to the DX we want to provide. I do agree with you that from a technical standpoint that this is a bad system though

Somehow it looks like the name detection part of express/hapi/... instrumenation is sort of an plugin/extension of the http instrumenation.
I have no good idea how to link them together in an easy understandable way.
What could work is that http instrumenation adds it's span via a well documented context key on context. express could access this http span even some other span is inbetween. There would be no need anymore to check the current name for http detection.

HTTP spans are currently treated specially and if we'd like to make HTTP span names "good", there's no way around it - among the web framework instrumentations, most(express, hapi, koa) currently require a parent span to work at all, expecting(but unable to check as @Flarna pointed out) it to be one spanning the whole request.

What could work is that http instrumenation adds it's span via a well documented context key on context. express could access this http span even some other span is inbetween

i agree that is the most sane way to do it

Because we can't be sure the parent span is the http one (depend on the instrumentations used), so we generally check that it contains HTTP which the default prefix for http spans.

This seems quite error prone. Name is something that could easily change in the future and I wasn't aware of this contract between the http instrumentation and other instrumentations.

Discussed at the SIG, here are the next steps:

Create a new context key to set HTTP span inside instrumentation pkg so it can be re-used by all http framework instrumentation
Open a spec issue to discuss if this need to be specified since other SDKs might have the need for this too

there is also this mechanism in http instrumentation which is an undocumented contract between HTTP and express instrumentation.
Might be worth addressing it as well.
export const getIncomingRequestAttributesOnResponse = (
  request: IncomingMessage & { __ot_middlewares?: string[] },
  response: ServerResponse & { socket: Socket }
): SpanAttributes => {
  // take socket from the request,
  // since it may be detached from the response object in keep-alive mode
  const { socket } = request;
  const { statusCode, statusMessage } = response;
  const { localAddress, localPort, remoteAddress, remotePort } = socket;
  const { __ot_middlewares } = (request as unknown) as {
    [key: string]: unknown;
  };
  const route = Array.isArray(__ot_middlewares)
    ? __ot_middlewares
        .filter(path => path !== '/')
        .map(path => {
          return path[0] === '/' ? path : '/' + path;
        })
        .join('')
    : undefined;

  const attributes: SpanAttributes = {
    [SemanticAttributes.NET_HOST_IP]: localAddress,
    [SemanticAttributes.NET_HOST_PORT]: localPort,
    [SemanticAttributes.NET_PEER_IP]: remoteAddress,
    [SemanticAttributes.NET_PEER_PORT]: remotePort,
    [SemanticAttributes.HTTP_STATUS_CODE]: statusCode,
    [AttributeNames.HTTP_STATUS_TEXT]: (statusMessage || '').toUpperCase(),
  };

  if (route !== undefined) {
    attributes[SemanticAttributes.HTTP_ROUTE] = route;
  }
  return attributes;
};


How to mute/exclude notes from playback?

Hi, following issue:
I have implemented basic playback functionalities in my project, including visual tracking, midi output etc. and this works as expected.
I am also modifying the score by simply hiding/showing certain notes by using lomse::ImoNote::set_visible().
However, these hidden notes are still "played" by the midi-system.
Is there a way to mute these notes, or exclude them from being played at all? Note, that the visibility status changes dynamically, so as soon as the note is visible again, it should also be played again.
Or if there is no built in way, would it be sufficient to modify SoundEventsTable::add_noterest_events() in lomse_midi_table.cpp?
I guess that's where the sound events are created, so adding the condition to only create these events, if the note is visible should do the trick right?
Or maybe add a flag to the lomse::ImoNote class, something like exclude_from_playback, and check that before creating events?

Thanks for raising this.
Visibility status only affects to display (GM). And as display and playback should be independently controllable I would not mute non-visible notes. Instead, as you suggest, I would add a flag to ImoNote class to mute the note, and would modify SoundEventsTable::add_noterest_events() to create the event only when the note is not muted.
This should be a simple change so please feel free to sent a PR.But if you don't feel confident I could try to do it this weekend. Just let me know.

Well, I'm not very familiar with PR, and I would like to avoid digging into it right now, because I have a lot going.
I will still change it myself in the code locally and rebuilt, because it's a university project and I have deadlines coming up.

PR#362 implements methods ImoNote::mute() and ImoNote::is_muted() to control notes playback. and takes that information into account to suppress MIDI events.


Documentation a bit misleading...

The documentation suggests doing the following in the controller:
public $presetVars = [
        'query' => [
            'type' => 'query',
            'method' => 'orConditions'
        ]
  ];
 $this->Paginator->settings['conditions'] = $this->Post->parseCriteria($this->Prg->parsedParams());

However, $this->Prg->parsedParams() returns null in this situation because when it gets initialised in Prg->presetForm() the code only handles "lookup", "checkbox" and "value" field types. The rest are skipped.
$params = am($this->request->query, $this->Prg->parsedParams());
$this->Paginator->settings['conditions'] = $this->Post->parseCriteria($params);

The above code seems to work in a wider range of situations. I don't know if this is intended behavior, but if so perhaps the docs could be updated?

I guess its about time to close this.

I think so too. Hi @jazzmind, I hope that @antoniovassell suggestion has helped you solve your doubt. If you need to clarify any other thing about this issue, We can open it again.


[SMALLFIX] Remove addressed TODO

We decided they should be longs in https://github.com/amplab/tachyon/pull/1954

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7139/
Test PASSed.

LGTM


Use darker yellow for "skipped" ProgressBar foreground

Fixes #15
Switch the yellow color used in the ProgressBar for skipped tests from
Brushes.Yellow (#FFFF00) to #EBCA00.

Before:

After:

Potential reviewers: @Pilchie

Unsurprisingly, @rchande has an opinion about this. :wink:

The above proposal increases the contrast ratio from to 1.07:1 to 1.62:1.

Wait, you merged the mustard color? :stuck_out_tongue_winking_eye:


Plugin functionality (vue-next-rx) not working

Hi,
I originally opened issue #592, which I got some very friendly and helpful feedback on. Unfortunately, I was not able to get the test to succeed.
I'm trying to test an rxjs observable which is derived from a variable in data() and which should fire every time the variable is updated. I can observe the correct behaviour in the browser, but not in the test unfortunately.
Example.vue
<template>

        <input v-model="input" />
        {{ result$ }}

</template>

Example.spec.ts
import { mount } from '@vue/test-utils';
import Example from './Example.vue';
// @ts-expect-error
import VueRx from '@nopr3d/vue-next-rx/dist/vue-next-rx';

describe('Example', () => {
    it('should work', async () => {
        const wrapper = mount(Example, {
            global: {
                plugins: [VueRx],
            },
        });
        await wrapper.find('input').setValue('Bar');

        expect(wrapper.vm.$data).toMatchObject({ input: 'Bar' }); // succeeds
        expect(wrapper.find('span').text()).toContain('FooBar'); // fails
    });
});

Once again any help or pointers would be greatly appreciated! :)

There is probably some asynchronous code going on in the observable.
Try to add await nextTick() or await flushPromises() after setting the value, that might do the trick.
See https://next.vue-test-utils.vuejs.org/guide/advanced/async-suspense.html#resolving-other-asynchronous-behavior

Hmm, no luck for:
import { flushPromises, mount } from '@vue/test-utils';
import Example from './Example.vue';
import VueRx from '@nopr3d/vue-next-rx';
import { nextTick } from 'vue';

describe('Example', () => {
    it('should work', async () => {
        const wrapper = mount(Example, {
            global: {
                plugins: [VueRx],
            },
        });
        await wrapper.find('input').setValue('Bar');
        await nextTick();
        await flushPromises();
        await nextTick();

        expect(wrapper.vm.$data).toMatchObject({ input: 'Bar' }); // succeeds
        expect(wrapper.find('span').text()).toContain('FooBar'); // fails
    });
});

I've checked out the implementation of $watchAsObservable and it uses a component instance's $watch function under the hood.
Does this get me any further, or should I maybe try something less unorthodox? 😛

OK this was a tricky one, took me some time to figure it out 😅
watchAsObservable is using setTimeout (see https://github.com/NOPR9D/vue-next-rx/blob/main/src/methods/watchAsObservable.js#L20). That means this code is never executed in a unit test.
With jest, you can use fake timers.
So the following should work:
it('should work', async () => {
  jest.useFakeTimers();
  const wrapper = mount(HelloWorld, {
      global: {
          plugins: [VueRx]
      },
  });
  jest.runAllTimers();
  await wrapper.find('input').setValue('Bar');
  expect(wrapper.vm.$data).toMatchObject({ input: 'Bar' }); // succeeds
  expect(wrapper.find('span').text()).toContain('FooBar'); // succeeds
});

Closing, as this is not an issue in VTU.

Awesome, thanks so much!!


Handle automatic spawn of bacon

The lsp server should allow to be configured to spawn and handle the lifecycle and logs of bacon

This is quite complex to do as bacon requires a full tty to control the terminal and I haven't - figured out how to do it yet.


Not support empty enum

weaponFollowType:WeaponFollowType
_
_
_
ABSOLUTE
_
_
DELAY
The tool should skip the empty values for enum type

Resolved in 90a766b


pull request for e2e test at 12/13/2016 20:45:05

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


Removed withContext function

All test a green without this function. Maybe I'm missing something?

It's there so that safe and escape are made available on the context object, and so that a user can supply his or her own version of those functions. I've just added tests for those.

Can't imagine any good use case of custom escape and safe functions per context.
Can you provide any good example?

Using an escape that caches like you suggested in your previous PR.
Using an identity function, to disable escaping entirely.

I wanted cached escaping in global (not per object) and this can be done with:
Skim.escape = MY_CUSTOM_FUNC;

Much less code to override.
I don't see use case to override escape and safe per template arguments.


Make job with latest tag pass

Questions
Answers

Description?
Fix the lastest job in CI

Type?
bug fix

BC breaks?
Nope

Deprecations?
Nope

Fixed ticket?
/

How to test?
CI is green

Thank you @Quetzacoalt91


[Console] About button doesn't work as I would expect

In console, the About link provided in the ? icon dropdown in the top right doesnt seem to do anything reasonable or provide any reasonable information about enmasse.
it seems to just redirect the user back to the Dashboard information screen. I would expect rather that it would provide some information about the enmasse build itself. (version, author, latest updates etc)
Also, when it send the user to the dashboard information, it doesnt update the highlighted tab on the left menu, to reproduce,

open console
click on Addresses tab on the left  = addresses tab highlighted and addresses page shown
select About from the ? icon on the top right = addresses tab still highlighted but dashboard info showing

The console referred to by this issue has been replaced and the about feature reimplemented.


UI enhancement for cluster scoped workflowtemplate

Summary
What change you think needs making.
Motivation
Please give examples of your use case, e.g. when would you use this.
Proposal
How do you think this should be implemented?

Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

@sarabala1979 please close if done.

#2525


Rendering of TeX is different with markdown preview and inside Jupyter notebook cell

Environment data

VS Code version: 1.58
Jupyter Extension version: 2021.8.0 (8 July 2021)
Python Extension version (available under the Extensions sidebar): N/A
OS: Arch Linux
Python and/or Anaconda version: N/A
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Jupyter server running: N/A

Expected behaviour
Rendering of TeX should be the same with markdown renderer and inside a jupyter notebook
Actual behaviour
Rendering of TeX appears different with markdown renderer and inside a jupyter notebook
Steps to reproduce:
Consider the following markdown text:
### 1.1. Starters

- Sequence of binomial models, indexed by the frequency of time periods.
- Time unit is a year.

---

Pick *large* $N \in \mathbb{N}$, and split time into subintervals of length
$$
\Delta t = \frac{1}{N}.
$$

Our time set will be
$$
\boxed{
\mathbb{T} := \left\{ \frac{k}{N}; \, k = 0, 1, \ldots  \right\} = \{k \Delta t; \, k = 0, 1, \ldots  \}.
}
$$
- Increase in $N$ implies higher frequency of sampling times in $\mathbb{T}$.

If I preview it with markdown preview, I get this beatiful render:

However, inside a Jupyter notebook markdown cell it renders like this:

As you can see, things like \left and \right directves to TeX are not being honoured in the latter case. This has also been tested with parenthesis, etc.

I encountered the same problem after updating to 1.58.

VS Code Version: 1.58.0
OS Version: Ubuntu 20.04
Python extension version: v2021.6.944021595
Jupyter extension version: v2021.8.1013163132
All other extensions disable in workspace

Using the new native Jupyter editor (preview mode), the MathJax renders as @coxackie experienced:

Switching back to the custom editor by doing
"jupyter.experiments.optOutFrom": [
         "NativeNotebookEditor"
    ],

gives the correct render of \left( \right):

Interestingly enough, on a "slow" computer, using the old custom Jupyter viewer, the notebook will first be rendered like the one in the new native editor, then become the better looking KaTeX-rendered formula as above.

Please give this a try in the first 1.60 insiders builds and let me know if there's still any issues
The root cause was that the math fonts were not loading properly

I am currently on vacation and will not be able to check this for some weeks. @scaomath could you possible check if the issue is resolved using insiders?

I am currently on vacation and will not be able to check this for some weeks. @scaomath could you possible check if the issue is resolved using insiders?

Somehow https://code.visualstudio.com/insiders/ keeps giving me 1.59...@mjbvz

@coxackie
I can confirm that this bug has been fixed in 1.60 with all extension disabled (except Python/Jupyter).
Only the author can use /verified to add the label, would you mind add the label @mjbvz ?
Can't wait to use it in the regular version (I am using Jupyter in VSCode teaching classes).


Ensure Rails 3.1.1 compatibility

surveyor/new.html.haml line 13 is this:

form_tag(take_survey_path(:survey_code => survey.access_code)) do

it needs to be changed to the following for Rails3.1 +
= form_tag(take_survey_path(:survey_code => survey.access_code)) do
Note the equals operator instead of the dash.
The dash format is deprecated in 3.1.0 and removed in 3.1.1 (which has just been released)

https://github.com/johnson-secondbureau/surveyor/commits/rails3.1

https://github.com/johnson-secondbureau/surveyor/commits/rails3.1

This fork makes some pretty radical changes (e.g., it changes the routes) and some changes that are not compatible with Rails 3.0, so I'm not going to merge it as is. Instead, I'm going to go through the specs and features and fix the ones that fail with Rails 3.1.1, hopefully in a way that they will continue to work on Rails 3.0.


🐞 Static pages not working

Static pages of nuxt-content is not working in production.

should work with new commit


fix: added error message for missing CVEs

Signed-off-by: Ana-Roberta Lisca<EMAIL_ADDRESS>
What type of PR is this?

Which issue does this PR fix:
#803
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

rebase and update linting

Please add a comment with an example of the command, and command output.

Here is an example output:
$ bin/zli-linux-amd64 cve config-multiple-cve5000 --image busybox:latest
No CVEs found for image


Update DevX ownership in our team homepage

First batch of changes to update our ownership.

LGTM
One point, are we also responsible for admin of cloud/dogfood? User management, etc?

This PR predates the migration from engineering_ownership.yml to the ownership markdown page. Is the rest of the PR out of date too or do we want to merge the changes to the team page?

This PR predates the migration from engineering_ownership.yml to the ownership markdown page. Is the rest of the PR out of date too or do we want to merge the changes to the team page?

That's a good question, thanks for bringing this forward.


[Pulsar-Flink] Add Scala Examples

Motivation
This PR aims to help Scala community by adding Scala Examples on Flink Connector.
Modifications
1- FlinkPulsarBatchSinkScalaExample is added for PulsarOutputFormat
2- FlinkPulsarBatchCsvSinkScalaExample is added for PulsarCsvOutputFormat
3- FlinkPulsarBatchJsonSinkScalaExample is added for PulsarJsonOutputFormat
4- Extra comments are added to FlinkPulsarBatchSinkExample

@erenavsarogullari It looks like the license headers do not match exactly the pattern and the checker is rejecting them:
2018-11-27\T\23:38:25.874 [INFO] Checking licenses...
2018-11-27\T\23:38:25.899 [WARNING] Missing header in: /home/jenkins/jenkins-slave/workspace/pulsar_precommit_java8/pulsar-flink/src/test/scala/org/apache/flink/batch/connectors/pulsar/example/FlinkPulsarBatchJsonSinkScalaExample.scala
2018-11-27\T\23:38:25.899 [WARNING] Missing header in: /home/jenkins/jenkins-slave/workspace/pulsar_precommit_java8/pulsar-flink/src/test/scala/org/apache/flink/batch/connectors/pulsar/example/FlinkPulsarBatchCsvSinkScalaExample.scala
2018-11-27\T\23:38:25.899 [WARNING] Missing header in: /home/jenkins/jenkins-slave/workspace/pulsar_precommit_java8/pulsar-flink/src/test/scala/org/apache/flink/batch/connectors/pulsar/example/FlinkPulsarBatchSinkScalaExample.scala
2018-11-27\T\23:38:25.903 [INFO] ------------------------------------------------------------------------

It should get fixed with mvn license:format

@merlimat Thanks. Yes, extra whitespace problem has occurred on license. Patch submitted


Switch to Swift 5.5 SortDescriptor

The SortDescriptor in Foundation is not compatible with your SortCriterion, because Apples implementation simple access the keyPath.name, whether SortCriterion requires a keyPath in the constructor.
At the end, the new SortDescriptor in Foundation is finally a typed SortDescriptor, but unfortunately, your SortCriterion is more typed :D
If you want to switch to the new SortDescriptor, this change would break your API, and it will require Swift 5.5.
Fixes #8.

For some strange reasons I was not able to test it on my M1 Mac!

If you want to switch to the new SortDescriptor, this change would break your API, and it will require Swift 5.5.

If that's the case, let's hold off on this for now.

@ftchirou Sure!


Script for running ZmBART

Hey,
First of all, great paper - congrats!
It would be great if you could share a script, or the exact way of running ZmBART so that I could try to replicate the results mentioned in your Paper.
Thanks

Hi @ShreyPandit, Thank you for the message.
All the informations are available in the README.md file now.
Thank you!


any plan to support 11.14.x?

We like the feature to retry failed tests. we will switch build stack to 11.14.x soon on Bitrise. Do you have a plan to support 11.14.1?

@tinder-kaijing I assume you want to start using Bluepill at Bitrise and checking when it is going to support Xcode 11.4.x. If yes, welcome to Bluepill.
Regarding Xcode 11.4.x support, we will get to officially supporting it soon. But there is a chance that the latest version might work out of the box. You just need to try using v5.2.2 or above with the new unsafe-skip-xcode-version-check flag.

@rap-morgan/@tinder-kaijing, I am working on testing and officially supporting Xcode 11.4.x and 11.5.x versions, so I am curious to know if you tested Bluepill with any of these versions at scale. Please let me know.

Bluepill version v5.3.0 supports Xcode 11.4.x and Bluepill version v5.4.x supports Xcode 11.5.x.


[Designer Accessibility] Insert peers in the DOM tree in the correct order

Related Issue
Progress towards #7436
Description
Instead of inserting designer peers to the bottom of the HTML tree, we must insert designer peers to mimic the order of the card.
To do so, I added a new method to find the correct placement before adding the new element to the designer surface.
How Verified
Verified manually on the adaptive cards website.
Outstanding Issues

Media element does not always update the heigh of the entire card correctly, so some of the peers overlap. I was able to repro on older version of the site as well.
Input elements should not be able to get focus outside of preview mode (ex: checkbox within Input.Toggle is still focusable)

Microsoft Reviewers: Open in CodeFlow

There are two choices to make navigation between DOM elements via the keyboard (or narration) happen in the intended order:

Either you rely on the order in which the elements are inserted into the DOM, and you don't use tabindex at all (except if something should explicitly not be focusable)
Or you entirely rely on tabindex, and the order in which the elements are inserted into the DOM doesn't matter

It definitely seems to me that the second option would yield a much simpler implementation.

I'm not sure. This seems quite complicated. Wouldn't setting tabindex on each peer (in the right order) be enough?

It's very interesting. Before dive into it, make sure it will not break any rule of tabindex

I've pinging @carlos-zamora to see if he has any context about this :)

There are two choices (that I know of) to make navigation between DOM elements via the keyboard (or narration) happen in the intended order:

Either you rely on the order in which the elements are inserted into the DOM, and you don't use tabindex at all (except if something should explicitly not be focusable)
Or you entirely rely on tabindex, and the order in which the elements are inserted into the DOM doesn't matter

It definitely seems to me that the second option would yield a much simpler implementation. That said, I could be totally wrong.

I spoke to @carlos-zamora (relaying the info here), and I think having the DOM tree in the correct order makes sense.
If we used a non-zero tabIndex, each element on the page would need to be assigned an index. We would also need to update tabIndex for each element every time we insert or remove elements; so the implementation wouldn't be simplified by much.
Additionally, it is best practice to use tabIndex=0 and have the elements follow the natural order.

@anna-dingler thanks Anna for making the right choice. Having the correct DOM tree order makes much more sense as Adaptive Cards is an UI component and live in other apps.
If Adaptive Cards is its own app, yes, you can control tabindex and put whatever number in.
But Adaptive Cards is a UI component and hosted in apps that AC has no control/influence over. We should not use tabindex >= 1 because it will certainly conflict with the hosting app.


Fix issue 14880 - findSkip summary is wrong

Good to have a link to bugzilla somewhere in the PR, so here it is. Also updated title.
https://issues.dlang.org/show_bug.cgi?id=14880

Kind of surprised the 'find by char' isn't allowed... In  any case, this is a trivially correct change.

Auto-merge toggled on


Airline-Flight-1000.cfg accepted contract has "land at Baikerbanur" completion requirement displayed

This is a cosmetic issue only. While the Active contract displays this text, the actual requirements are to land at the Island Airport
This can be verifyed from the tracking station or the map view with the contract way-points being set to KSC and Island Airport.
You can ignore and fly to island to complete mission.
Fix will be posted to Github and included in next release

fixed by v1.0.3


Using external helpers plugin rather than preset

Because of situations like https://github.com/rollup/rollup-plugin-babel/issues/12 and https://github.com/rollup/rollup-plugin-babel/issues/3 I'm trying to use the es2015 preset with the external-helpers-2 plugin in my .babelrc, as suggested in the README. But rollup-plugin-babel still complains about using es2015 rather than es2015-rollup. Is it possible to use es2015 + external-helpers?

es2015 includes the CommonJS transformer, which makes Rollup's job impossible (no ES6 modules). Because of that, the first .babelrc file Babel finds (it stops looking once it's found the nearest one) can't have the es2015 preset.
The best bet is probably to have a .babelrc in the root of your project with es2015, and another src/.babelrc (or whatever) that uses es2015-rollup. Your test runner/Gulp/whatever won't see src/.babelrc, and Rollup won't see the root .babelrc. Let me know if that works, I haven't tried it yet!

No luck, getting Error: External helpers are not enabled. Please add the "external-helpers-2" plugin or use the "es2015-rollup" preset. See https://github.com/rollup/rollup-plugin-babel#TK for more information

Ah, I figured out what's going on here – it runs the 'preflight checks' (ensuring module transformation is disabled and external helpers are enabled) in the cwd, which means it picks up the root .babelrc. Changed so that it runs preflight checks for each file before transpilation. Slight overhead but only way to ensure correct configuration throughout.

Meant to add – released 2.2.0 with a fix

Awesome, thanks! Might be worth explicitly documenting this pattern in the readme? I feel it's a reasonably common use-case, needing to use es2015 for some things in a codebase and rollup for others.


Difference on eagerloading relationship vs lazy loading it

Defining the following relationship I get two different SQLs with different results depending on how i load the relationship. The relationship adds some additional constraints, there might be a better or more optimal way do define this.
The need for it is to get me all booking prices that match that customer_id or where the customer_id is 0 (to match all users).
public function booking_prices()
{
        return $this->hasMany(EconomyBookingPrice::class, 'customer_id')->orWhere('customer_id', 0);
}

// Works and gives me the wanted data
Customer::find(1)->booking_prices->count()

Resulting in SQL:
SELECT * FROM `economy_booking_prices`
WHERE `economy_booking_prices`.`customer_id` = '1'
and `economy_booking_prices`.`customer_id` IS not NULL
or `customer_id` = '0'

// Always return 0 matches as customer_id can never be both 0 and 1
Customer::with('booking_prices')->find(1)->booking_prices->count()

Resulting in SQL:
SELECT * FROM `economy_booking_prices`
WHERE `customer_id` = '0'
and `economy_booking_prices`.`customer_id` in ('1')

// The following two also gives the correct count and SQLs as expected
Customer::find(1)->booking_prices()->get()->count();
Customer::find(1)->booking_prices()->count();
One of them is probably the expected behaviour, I would prefer the first, but, atleast the two should be consistent.

I don't think trying to include records where the relationship key doesn't point to the parent model makes sense inside a relation!
The relationship is meant to bring prices that belong to a customer, but you're trying to bring also prices that belongs to another customer (you can add any value just as you added zero), this breaks the whole idea of relationships IMHO.
I suggest that you achieve this using a normal query rather than a relationship.


Using an exisiting AppSync API w/ Amplify

** What AWS Services are you utilizing? **
AppSync, DynamoDB, and Lambda
** Provide additional details e.g. code snippets **
So I am a bit stuck on how to integrate AppSync within Amplify in React Native. I have an existing API within AWS AppSync that I created on the console. This API has several different models like: Users, Videos, VideoComments, etc. Some of the objects within these models have custom mapping templates and resolvers that are really important for the application.
For Example, this is a quick look at what we have schema wise.
type User {

userId: Id!
name: String
uploadedVideos(limit: Int, nextToken: String): VideoConnection
etc etc
}

type Video {

videoID: Id!
object: S3Object
userId: Id!
uploadedBy: User
}

We have a resolver that runs with a simple getVideo query that will retrieve the uploadedBy attribute by using the userId, and retrieves all the necessary information of that user.
Additionally, the data sources (dynamoDb tables) we created for the models have primary keys, and some have sort keys. Like a VideoLikes table keeps track of who liked a video and to avoid duplicates the primary key is the VideoID and the sort key is UserID. This is just a minor example, we have other places where we do this to also have access to LSIs.
When I started using Amplify, I tried recreating the AppSync API because I liked how powerful the CloudFormation capabilities were with the different staging environments. However, I noticed the DynamoDB for models were automatically defined and were automatically set to an id as a primary key. We use the LSIs to help sort by certain values, like for a video if we wanted to sort by the number of likes, or comments, so unfortunately this would not work for us. So when I noticed this, I used the "Codegen" command from my original AppSync API and ran into the issue where my resolvers and mapping templates were not copied down with the schema, queries, mutations, and subscriptions making most of the queries fail because those data sources were missing.
So my question is:

Is there a way to integrate/use EVERYTHING from my exiting AppSync API within my React Native application? This includes the custom resolvers and mapping templates.

IF NOT

Is there a way to set a primary and sort key for the DynamoDB of the Models when creating an API directly within the Amplify CLI?

IF NOT

Is there another way to have data sorted efficiently within DynamoDB without using LSIs and GSIs? If the models automatically generate tables with GSIs, this can be problematic because I know GSIs are a bit more expensive so I would like to avoid those as much as possible. Is there another service that will sort the data that can be used within AppSync from DynamoDB?

Any help will be appreciated, thank you.

Is there a way to integrate/use EVERYTHING from my exiting AppSync API within my React Native application? This includes the custom resolvers and mapping templates.

As of writing there is no automated command to import an existing API but it is possible to deploy a copy of your existing API that targets your existing data sources using custom resources within the API category. To do this you would need to pull the schema into schema.graphql, resolver templates into /resolvers, and lastly write custom cloudformation stacks that create the resolver, data source, and role resources to wire everything up in the /stacks directory. You can use custom stacks to target existing tables if necessary. As of writing you cannot import an existing table as a @model but this feature is in the backlog.

Is there a way to set a primary and sort key for the DynamoDB of the Models when creating an API directly within the Amplify CLI?

We are actively working on a new @key directive that does exactly this. The code (https://github.com/aws-amplify/amplify-cli/pull/1463) and docs (https://github.com/aws-amplify/docs/pull/689/files) are in PR.

@packerfan626 We released the @key directive.
Please take a look at our @key documentation for more details around this  - https://aws-amplify.github.io/docs/cli-toolchain/graphql#key

Re-using of existing AppSync API is a duplicate of #288

Is there a way to integrate/use EVERYTHING from my exiting AppSync API within my React Native application? This includes the custom resolvers and mapping templates.

As of writing there is no automated command to import an existing API but it is possible to deploy a copy of your existing API that targets your existing data sources using custom resources within the API category. To do this you would need to pull the schema into schema.graphql, resolver templates into /resolvers, and lastly write custom cloudformation stacks that create the resolver, data source, and role resources to wire everything up in the /stacks directory. You can use custom stacks to target existing tables if necessary. As of writing you cannot import an existing table as a @model but this feature is in the backlog.

Is there a way to set a primary and sort key for the DynamoDB of the Models when creating an API directly within the Amplify CLI?

We are actively working on a new @key directive that does exactly this. The code (#1463) and docs (https://github.com/aws-amplify/docs/pull/689/files) are in PR.

@mikeparisstuff
Could we please have an example of how to integrate an existing API into the "stacks" directory? I am just confused about how Amplify would be able to automatically pick up these new resources and use them.
Also, when using a custom schema in schema.graphql, can we still use directives such @auth or is that not possible?
Thanks


Create Docker Image To Support Build Process

This is no longer required since we are using a tarball rather than a deb package for the initial installation.


omit empty-label fields

superfluous FilterEmptyFields() helper removed

@karasz see my response

v0.4.2 tagged. also +0.0.1 on each affected handler


Clear outbox periodically

Bundles outbox cleaning into the existing EphemeralPurge method which is called periodically (rn every 5m by BackgroundEphemeralPurger).We could have different time cutoffs for ephemeral vs regular messages but wanted to see your opinion first @mmaxim

10 minutes is way too short for what I had in mind here. I was thinking like 1 week.

ok cool we can split the logic for ephemeral and non-ephemeral


Too many PHP Deprecated by PHPMD

Hi,
Thank you for developing and maintaining this great package

PHPMD version: latest
PHP Version: 8.2.4
Installation type: composer
Operating System / Distribution & Version: (Windows 10)

Current Behavior
There are too many PHP Deprecated in error_log when we activate PHPMD
We need to track every deprecated lines of PHP codes, But these too many deprecated will confuse us to fix them
[10:49:36] PHP Deprecated:  Symfony\Component\Config\Resource\FileResource implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/symfony/config/Resource/FileResource.php on line 21
[10:49:36] PHP Deprecated:  Function libxml_disable_entity_loader() is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/symfony/config/Util/XmlUtils.php on line 54
[10:49:36] PHP Deprecated:  Function libxml_disable_entity_loader() is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/symfony/config/Util/XmlUtils.php on line 68
[10:49:36] PHP Deprecated:  Function libxml_disable_entity_loader() is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/symfony/dependency-injection/Loader/XmlFileLoader.php on line 517
[10:49:36] PHP Deprecated:  Function libxml_disable_entity_loader() is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/symfony/dependency-injection/Loader/XmlFileLoader.php on line 519
[10:49:36] PHP Deprecated:  Return type of PHPMD\RuleSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/src/main/php/PHPMD/RuleSet.php on line 264
[10:49:36] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/src/main/php/PHPMD/RuleSetFactory.php on line 246
[10:49:36] PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/src/main/php/PHPMD/RuleSetFactory.php on line 369
[10:49:36] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/src/main/php/PHPMD/RuleSetFactory.php on line 246
[10:49:36] PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/src/main/php/PHPMD/RuleSetFactory.php on line 369
[10:49:36] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/src/main/php/PHPMD/RuleSetFactory.php on line 246
[10:49:36] PHP Deprecated:  Return type of PDepend\Source\Language\PHP\PHPBuilder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/Language/PHP/PHPBuilder.php on line 1841
[10:49:36] PHP Deprecated:  Return type of PDepend\Input\Iterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Input/Iterator.php on line 88
[10:49:36] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 178
[10:49:36] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 192
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 210
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 224
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 120
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 143
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 133
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 163
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 153
[10:49:37] PHP Deprecated:  Return type of PDepend\Source\AST\ASTArtifactList::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/pdepend/pdepend/src/main/php/PDepend/Source/AST/ASTArtifactList.php on line 110

You appear to be running an extremely old version of PHPMD (1.3.0 from before 2012), please update to the latest (currently 2.15.0).

@AJenbo
Hi,
Thank you for reply,
composer show phpmd/phpmd
name     : phpmd/phpmd
descrip. : PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.
keywords : dev, mess detection, mess detector, pdepend, phpmd, pmd
versions : * 2.15.0
type     : library
license  : BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) (OSI approved) https://spdx.org/licenses/BSD-3-Clause.html#licenseText
homepage : https://phpmd.org/
source   : [git] https://github.com/phpmd/phpmd.git 74a1f56e33afad4128b886e334093e98e1b5e7c0
dist     : [zip] https://api.github.com/repos/phpmd/phpmd/zipball/74a1f56e33afad4128b886e334093e98e1b5e7c0 74a1f56e33afad4128b886e334093e98e1b5e7c0
path     : D:\xampp\htdocs\vendor\phpmd\phpmd
names    : phpmd/phpmd
support
irc : irc://irc.freenode.org/phpmd
issues : https://github.com/phpmd/phpmd/issues
source : https://github.com/phpmd/phpmd/tree/2.15.0
autoload
psr-0
PHPMD\ => src/main/php
requires
composer/xdebug-handler ^1.0 || ^2.0 || ^3.0
ext-xml *
pdepend/pdepend ^2.16.1
php >=5.3.9
requires (dev)
easy-doc/easy-doc 0.0.0 || ^1.3.2
ext-json *
ext-simplexml *
gregwar/rst ^1.0
mikey179/vfsstream ^1.6.8
squizlabs/php_codesniffer ^2.9.2 || ^3.7.2

your log clearly states that it's the phar build being executed, even if you do have phpmd installed via composer also:

[10:49:36] PHP Deprecated: Function libxml_disable_entity_loader() is deprecated in phar://C:/Users/.vscode/extensions/ecodes.vscode-phpmd-1.3.0/phpmd/phpmd.phar/vendor/symfony/config/Util/XmlUtils.php on line 54

@AJenbo
Yes,
You are right,
I use a extension if VSCode, it seems it is using it's internal package, I changed the settings and everythings are ok
Thank you for your support and great package

no worries, hopefully we can soon star working on the next major version and raise the minimum php version supported so that the phar buold will work nicer on current versions of php.


Fix Typo in README file

Small typo fix

Thank you for your effort, but until further notice development on this project is frozen.


Fix: set cluster-proxy-agent replicas to a fixed number 1.

Signed-off-by: xuezhaojun<EMAIL_ADDRESS>

/lgtm


'Fix all auto-fixable problems' added a comma an end of params Incorrectly

before:
const foo = (
  propA => (
  ),
  propB => {
  }
);

after:
const foo = (
  propA => (
  ),
  propB => {
  },     //here is not allowed
);

auto-fix always add this comma, that can make mistake under node 6.+ LTS (node 8.+ seems all right)

JavaScript has allowed trailing commas in array literals since the beginning, and later added them to object literals (ECMAScript 5) and most recently (ECMAScript 2017) to function parameters.
ref: Trailing commas

it does as a new feature in ECMAScript 2017，but I can not use it in production env with node LTS

The plugin applies the auto fixes provided by the eslint node module. Can you please file the issue here: https://github.com/eslint/eslint. Thanks!


Unable to use CloudNativePG as a datastore with kamaji

Hi,
I have managed to get Kamaji to work nicely with the bundled etcd datastore.
But when I install postgres separately and then point kamaji to the datastore I get loads of invalid DeleteRange errors all over the logs.
Using v1.00 of the helm chart but saw this issue on previous versions as well.
Thanks
Daniel
values.yaml.txt
cnpg.yaml.txt

Thanks for your help on slack @prometherion
Added the following to helm chart values  - and all is working nicely now with Postgres :)
extraArgs:
  - --kine-image
  - rancher/kine:v0.11.10-amd64


idea: "patch" service

It would be super cool to have a service that checks if theres anything that the team would like to be patched on the current system and apply in whenever the user consents to do it. Like: there would be an endpoint somewhere with a JSON file specifiying the current patch or thing that should be applied and when it was published, then, the user computer would fetch the file and compare the current system state to the latest patch, if it isnt applied yet, show a popup telling the user that some action should be taken on the system for some reason with a "YES/NO" option to apply it. This would fix stuff like the ANSI signature check on older systems because they would be notified that their system is broken and they should run a script to fix it

In order to avoid abuse, the JSON should not have any kind of executable script directly in it and these should only be strictly suggestions, the user should not feel coerced to do anything and it should be completely optional

You mean the general template for comparing old stuff with new & notifying the user about this?
This would be a good fit in ublue-os/config imo

honestly the more i think about this it reallllyyy sounds a lot like just a fancy, more integrated, system-wide RSS fee


Add Prometheus monitoring capabilities

Problem
Dear development team,
I am writing to request the addition of Prometheus monitoring capabilities to the WSO2 API Manager platform. As you may know, Prometheus is the de facto monitoring standard for Kubernetes, and many users already have Prometheus monitoring set up in their environments. By adding Prometheus monitoring capabilities to the API Manager, users will be able to easily integrate their existing monitoring solutions with the platform.
Currently, the ELK based analytics available for metrics in the API Manager is overly complex and requires a lot of hardware. By adding Prometheus monitoring capabilities, users will have a simpler and more efficient monitoring solution that requires less hardware.
In addition to the above points, I would like to suggest some Prometheus metrics that could be useful for monitoring the WSO2 API Manager platform and functional monitoring of deployed APIs. These metrics include:
API Manager Platform Metrics:
    Number of requests per second
    Number of errors per second
    Average response time
    CPU and memory usage
    Number of active connections
    Number of API calls by user
    Number of API calls by application
    Number of API calls by API

Deployed API Metrics:
    Number of requests per second
    Number of errors per second
    Average response time
    CPU and memory usage
    Number of active connections
    Number of successful requests by user
    Number of failed requests by user
    Number of successful requests by application
    Number of failed requests by application

By providing these metrics, users will be able to easily monitor the performance of their APIs and the API Manager platform. This will allow for quick identification and resolution of any issues that may arise, ultimately leading to a better user experience.
Thank you for considering this feature request.
Sincerely, vozzy
Solution
High-Level Solution: Adding Prometheus Monitoring Capabilities to WSO2 API Manager Platform

Integration with Prometheus: Integrate the API Manager platform with Prometheus by creating a Prometheus endpoint within the platform that exposes the necessary metrics.

Define Prometheus Metrics: Define the relevant metrics to be monitored for both the API Manager platform and the deployed APIs.

Collecting Metrics: Collect the defined metrics using a Prometheus client library within the API Manager platform. The client library would periodically collect the defined metrics and expose them through the Prometheus endpoint.

Visualizing Metrics: Visualize the collected metrics using a Prometheus dashboard to allow users to view the metrics in real-time and monitor the performance of the API Manager platform and deployed APIs.

Alerting: Set up alerts based on the collected metrics to notify users in case of any issues that may arise with the API Manager platform or deployed APIs.

Documentation: Provide documentation to guide users on how to set up and use the Prometheus monitoring capabilities within the API Manager platform.

By following the above steps, users will be able to easily integrate their existing Prometheus monitoring solutions with the API Manager platform. This will provide a simpler and more efficient monitoring solution that requires less hardware. Additionally, the defined metrics will allow users to monitor the performance of the API Manager platform and deployed APIs, leading to a better user experience.
Affected Component
APIM
Version
3.2.0
Implementation
No response
Related Issues
No response
Suggested Labels
No response

There is an existing Prometheus Integration using the JMX exporter [1]. The following article [2] has some details on this.
There are synapse-level JMX MBeans [3] too. Might be worthwhile checking if the roadmap includes a similar integration in the future too.
[1]. https://github.com/prometheus/jmx_exporter
[2]. https://lashan.medium.com/wso2-api-manager-3-2-0-monitoring-prometheus-grafana-alerts-75cca6df607e
[3]. https://github.com/wso2/wso2-synapse/tree/v2.1.7-wso2v80/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/jmx


Is it possible to provide a condensed/readable version of grammar.json (similar to the python reference grammar format)

I am new to tree-sitter and my understanding is that the python grammar specified in grammar.json is based on the Python reference grammar. However, it isn't exactly 1 to 1 with the reference grammar, so I've been wondering what the differences are. I realize that the differences are reflected in grammar.json , but that file is difficult to read to get a summary view.
This leads me to ask, is it possible to provide the tree-sitter python grammar in a more readable and condensed format, similar to how the Python reference is presented (https://docs.python.org/3.8/reference/grammar.html)?
If it can't be provided, do you know if it is relatively trivial to generate, or are there some theoretical reasons it couldn't be converted into something like EBNF?
Thanks

I think this request would best be made in the tree-sitter repository. However, I am doubtful as to whether this is feasible, mainly because there really isn’t a more suitable high-level description of a grammar than grammar.js (note: are you reading grammar.json, or grammar.js): the JS DSL is able to express things like comma-separated lists in a manner that is a lot more readable than your standard EBNF grammar.


Content-Disposition header not valid

Description:
The Content-Disposition header ends with ";" when creating an OAuthSwiftMultipartData object with the parameter fileName set to nil. This violates the Hypertext Transfer Protocol RFC 6266 section 4.1 (https://tools.ietf.org/html/rfc6266#section-4.1).
When building the contentDispositionString in the append function in OAuthSwiftMultipartData.swift the ";" should not be separating name and filename, it should be a prefix in the filenameClause variable and therefor only be present when it supposed to.
OAuth Provider? (Twitter, Github, ..):
OpenID
OAuth Version:

[ ] Version 1
[x] Version 2

OS (Please fill the version) :

[x] iOS :
[ ] OSX :
[ ] TVOS :
[ ] WatchOS  :

Installation method:

[x] Carthage
[ ] CocoaPods
[ ] Manually

Library version:

[x] head
[ ] v1.2.1
[ ] v1.2 (Swift 4.0)
[ ] v1.0.0
[ ] v0.6
[ ] other: (Please fill in the version you are using.)

Xcode version:

[x] 9.3 (Swift 4.1)

[ ] 9.0 (Swift 4.0)

[ ] 9.0 (Swift 3.2)

[ ] 8.x (Swift 3.x)

[ ] 8.0 (Swift 2.3)

[ ] 7.3.1

[ ] other: (Please fill in the version you are using.)

[ ] objective c

thanks, waiting for the PR ;)


Upgrade react-hot-loader (add React 16 Support) (Fixes React 16 dev compile errors)

Next.js's yarn.lock file has the redbox-react dependency locked at 1.4.2, effectively forcing yarn users to use a redbox-react version that is incompatible with React 16.
(it makes reference to react-dom/lib/* files, causing a compile error):
 ERROR  Failed to compile with 19 errors                                                                                15:24:10

These dependencies were not found:

* react/lib/React in ./node_modules/next/node_modules/redbox-react/node_modules/react-dom/lib/ReactDOMOption.js, ./node_modules/next/node_modules/redbox-react/node_modules/react-dom/lib/ReactMount.js and 3 others
* react/lib/ReactComponentTreeHook in ./node_modules/next/node_modules/redbox-react/node_modules/react-dom/lib/ReactDOMUnknownPropertyHook.js, ./node_modules/next/node_modules/redbox-react/node_modules/react-dom/lib/ReactDOMInvalidARIAHook.js and 5 others
* react/lib/ReactCurrentOwner in ./node_modules/next/node_modules/redbox-react/node_modules/react-dom/lib/traverseAllChildren.js, ./node_modules/next/node_modules/redbox-react/node_modules/react-dom/lib/ReactUpdateQueue.js and 4 others
* react/lib/getNextDebugID in ./node_modules/next/node_modules/redbox-react/node_modules/react-dom/lib/instantiateReactComponent.js

To install them, you can run: npm install --save react/lib/React react/lib/ReactComponentTreeHook react/lib/ReactCurrentOwner react/lib/getNextDebugID

Previous version of react-hot-loader (3.0.0-beta.7) always imported redbox-react in development (even though Next.js overrides the errorReporter).
Now, however, redbox-react is no longer automatically imported 🎉 within react-hot-loader.
Version 3.0.0 (released today), in addition to fixing the above error through not requiring redbox-react, adds various other React 16 compatibility updates (see https://github.com/gaearon/react-hot-loader/commits/v3.0.0).
I've also upgraded the yarn.lock entry for redbox-react just to be safe, as react-hot-loader still currently has it listed as a dependency.

Nice. Thanks for this.