Can't log in to account

Unable to log in to the account, prompting that we cannot find an account with the email address/mobile number
Looking forward to this problem being resolved, thank you very much

I think different countries sometimes use separate accounts (E.g., Amazon.co.jp and Amazon.cn use separate accounts which can't login to .com and European domains.) US and EU accounts seem to be shared though.
I can't use Readwise for example because they only support read.amazon.com and not read.amazon.co.jp.
For this plugin, I'm not sure if it is as simple as changing the backend domain or whether there need to be some API related changes. The Web apps look more or less identical though.

The Obsidian plugin is a wrapper around Amazon's authentication flow. So hearing the error that you are getting, tells me it is one of two issues:

The Amazon credentials that you are using are incorrect (unlikely)
The login URL that the Obsidian plugin is using (https://www.amazon.com/ap/signin) is not valid for the region that you are in

@tyf2018 can you confirm if you are able to login in https://www.amazon.com/ap/signin? Take note of the URL and any redirection that happens. Let me know how you go on.

@mkasu if you can help provision me a Japanese Amazon account, or share with me temporarily the login credentials of an existing one, I can get this plugin to work for your region.

The Obsidian plugin is a wrapper around Amazon's authentication flow. So hearing the error that you are getting, tells me it is one of two issues:

The Amazon credentials that you are using are incorrect (unlikely)
The login URL that the Obsidian plugin is using (https://www.amazon.com/ap/signin) is not valid for the region that you are in

@tyf2018 can you confirm if you are able to login in https://www.amazon.com/ap/signin? Take note of the URL and any redirection that happens. Let me know how you go on.

I cant login in   https://www.amazon.com/ap/signin

What signin Amazon url works for your region?
And once you are logged in, can you manually access your notes via https://read.amazon.com/notebook?

What if you goto this url: https://read.amazon.com/notebook.
Are you able to logout and login to this URL and have access to your books?

I can only log in to my account at this website https://www.amazon.cn/, and all other logins fail

@tyf2018 if you cannot access your Kindle highlights manually yourself via https://read.amazon.com/notebook then this plugin in its current form cannot help as it is simply an automated wrapper.
I'm working on another feature that I will be releasing shortly that could help you instead. Uploading your highlights from your clippings text file on your Kindle.
If you are happy with this then you can close this issue.

@tyf2018 if you cannot access your Kindle highlights manually yourself via https://read.amazon.com/notebook then this plugin in its current form cannot help as it is simply an automated wrapper.
I'm working on another feature (#2) that I will be releasing shortly that could help you instead. Uploading your highlights from your clippings text file on your Kindle.
If you are happy with this then you can close this issue.

Thank you.

I can’t speak for CN but for Japan the url https://read.amazon.co.jp/notebook works the same way as US just with a seperate account system.
I can’t provide my account because I have all kinds of personal data attached. But Amazon.co.jp has English option if you want to create a test account. I can try to debug it too when I have some time.

@mkasu thanks for the insight.
I'm trying to think of one solution that would work for all Amazom regions. Can you confirm for me if by going to https://read.amazon.com/notebook it automatically redirects you to https://read.amazon.co.jp/notebook were you can login?
If it doesn't. Then the only other solution I can think of is providing you with a drop-down in settings to choose your account region. Choosing Japan would mean the plugins uses a Url scheme that always ends in .co.jp for signing in and browsing notes.

Thanks for the efforts. There's no redirect so I think drop-down is the only option. :(

@hadynz Hey - another Kindle account from China.  Had the same issue whey trying to sync with ReadWise.  ReadWise pointed me to 2 alternative solutions: 1. Kindle Device (My Clippings); 2. Kindle Apps (Email).  More details can be found through the line below:
https://help.readwise.io/article/30-how-do-i-import-highlights-from-personal-documents-on-kindle
I understand that you are working on the 1st solution (My Clippings) which is great.  I wonder whether the 2nd option, Kindle Apps (Email), is also feasible.  To me, the 2nd option is much more convenient.
Thanks a million!

Since the new update a few days ago, I have not been able to log into my USA Amazon account? And when I try to sign out so that I can log back in, it tells me, "error, could not sign out"
I've tried resetting the plug-in and un-installing and re-installing a few times.
Can you give me any other suggestions on what to try thank you, BTW I LOVE this plug-in!!!


Update kyle-monroe

Went back over questions and made changes.

Overall good answers to the questions, great job on the codepen project, great idea to use % units instead of pixels to space the images.  For lambda projects related to the coursework avoid  creating another fname-lname branch, its ok to have multiple commits in the same branch. Regardless good job on this project.


fix: create-tauri-app will fail when creating tauri.conf.json but src…

…-taur directory is not exist

What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] New Binding Issue #___
[ ] Code style update
[ ] Refactor
[x] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes. Issue #___
[x] No

The PR fulfills these requirements:

[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)
[ ] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Hi @ikey4u if you encounter an error because tauri.conf.json didn't exist, please open an issue we'll track down.
As @lucasfernog stated;

I think this is not needed considering this function should only be called after tauri init execution finishes.

Thanks for your contribution we do appreciate it a lot.
Have a great day


Python Code Cell in Jupyter Notebook Cannot Use Conda Virtual Environment

Seemingly similar issue to https://github.com/microsoft/vscode-jupyter/issues/2616, filing a new issue on @DonJayamanne's request.
Environment

VS Code: v1.51.1
Jupyter Extension: v2020.11.392013122
Python Extension: v2020.11.371526539
OS: Windows 10 Pro v1909
Anaconda: v2020.07 (anaconda), v1.7.2 (anaconda-client)

Description
I am using a Jupyter notebook with Python code cells in VS Code. After creating a new virtual environment using the standard Anaconda steps, I select the appropriate Python interpreter via the VS Code GUI.
I have registered the virtual environment with Jupyter using python -m ipykernel install --user --name=myenv and my virtual environment has the jupyter library installed. Note that the Jupyter, Anaconda, and Python extensions are all installed in VS Code as well.
I am able to use conda activate myenv and run code directly in the terminal perfectly fine. Unfortunately, when attempting to run the same code in the code cell inside the Jupyter notebook, I am unable to activate myenv; instead, I see that base is activated when I run !conda info --envs and !where python.
Would appreciate any suggestions.
Steps to Reproduce
In VS Code terminal (using Command Prompt):

conda create -n myenv python=3.8 pandas numpy matplotlib jupyter notebook

conda activate myenv

python -m ipykernel install --user --name=myenv
Output: Installed kernelspec myenv in C:\Users\ayush\AppData\Roaming\jupyter\kernels\myenv

conda info --envs

Output:
# conda environments:
#
base                     C:\Users\ayush\anaconda3
myenv                 *  C:\Users\ayush\anaconda3\envs\myenvp

In new Jupyter notebook test.ipynb:

Select myenv as the Python interpreter via the VS Code GUI.

In Python code cell: !conda info --envs

Output:
# conda environments:
#
base                  *  C:\Users\ayush\anaconda3
myenv                    C:\Users\ayush\anaconda3\envs\myenv

If I install additional libraries in myenv (e.g. PyTorch), they are unable to be loaded within the Jupyter notebook. For example, see below:

Thank you all for your help.

@ayushnoori we do have issues with Conda activation at times. Can you try something out for me? Could you please open up a command window with the myenv environment activated in Conda. Then from that command window open up vscode and run your scenario with myenv selected. See if that correctly uses your environment? Also make sure to check the kernel selector at the top right of the notebook. Make the myenv is selected there as well, as that selector is what the notebook is actively using.

Hi @IanMatthewHuff, thanks for the advice. I tried the first step before posting, to no avail. After activating myenv in the Anaconda GUI, I started the CMD.exe prompt from Anaconda, ran cd to my working directory, and launched VS Code via code .. Unfortunately, didn't change anything.
I see the kernel selector at the top right, here is what it looks like when I open the notebook (from Command Prompt):

When I click on "Busy", a dialog opens up in the command palette which allows me to select the virtual environment. If I specify myenv explicitly, the selector changes to:

If I attempt to then run a code cell, I get the following error pop up message:
StdErr from ShellExec, Did not find path entry C:\Users\ayush\anaconda3\bin for C:/Users/ayush/anaconda3/Scripts/activate && conda activate myenv && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\Users\ayush\.vscode\extensions\ms-python.python-2020.11.371526539\pythonFiles\pyvsc-run-isolated.py c:/Users/ayush/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/printEnvVariables.py

If I attempt to then run a code cell, I get the following error pop up message:
StdErr from ShellExec,

@IanMatthewHuff this is a known bug in core extension. Looks like some recent bug in core extension. Will find issue

@DonJayamanne ran a brief test this morning and the issue seems to have been resolved. Has a fix been implemented?

@ayushnoori are you using VS Code insiders or VS Code Stable?
I can seem that someone reported this issue (on VSCode-python repo) got resolved after updating to the latest version of VS Code insiders.

Dupe of #4011


Storage Support in AsBindGroup

What problem does this solve or what need does it fill?
Currently I use the storage binding to pass a vector of elements to a shader. Storage should be supported on the new AsBindGroup derive, otherwise it isn't really a replacement.
What solution would you like?
Support writing#[storage(0)] the same way #[uniform(0)] is supported.
What alternative(s) have you considered?
None, this is a pretty small change that fits in to the rest of the AsBindGroup macro, just seems like a strange missing piece.

Seems sensible. Could you link to the code where the uniform macro annotation is implemented? I think this is feasible for new contributors but I'd like to scope out the work a little more.

All of the AsBindGroup macro code is located here: https://github.com/bevyengine/bevy/blob/main/crates/bevy_render/macros/src/as_bind_group.rs

So not too bad, but macro code is always a bit intimidating 🤔 I think this should be pretty feasible, but not quite Good-First-Issue.

@alice-i-cecile Is there any way to get a vector of data to a shader currently without this? My manual implementation of the shader worked in 0.7 but broke in 0.8, so I'd like to switch methods if possible since I can't figure out what went wrong.

The reason this wasn't included was because @superdump wanted to collect materials together into an array in a later version of Bevy for instancing/batching, and that only works sensibly if materials are uniform buffers.
You can get around it by manually implementing the AsBindGroup trait and using a StorageBuffer. Or if you want to use a uniform, you can use something like ArrayVec from the tinyvec or arrayvec crates and making ShaderType implementations for them. Then you can use an array-like binding while treating it like a vec.

@wrapperup Thanks for the response! ShaderType is not implemented for ArrayVec. I did however just use a normal rust array. This isn't optimal of course since a variable amount of data can't be used, so a lot of wasted data is being sent for padding. For now it's an acceptable solution, but if manual implementation is going away soon, what's the replacement? Surely this is a pretty important use case that can't be cut off.

@wrapperup Thanks for the response! ShaderType is not implemented for ArrayVec. I did however just use a normal rust array. This isn't optimal of course since a variable amount of data can't be used, so a lot of wasted data is being sent for padding. For now it's an acceptable solution, but if manual implementation is going away soon, what's the replacement? Surely this is a pretty important use case that can't be cut off.

It mostly depends on what you are trying to do. Also ask in the Discord, we can help you out here! There may be a better way to do what you want.
Having a storage buffer that all of your material instances can access would be an interesting supported case, but there isn't a high level way to do that (yet?). But no, there isn't a replacement for using an unsized array in each material instance. It's an intended limitation of materials that will be useful for a future optimization (instancing/batching meshes).

The reason this wasn't included was because @superdump wanted to collect materials together into an array in a later version of Bevy for instancing/batching, and that only works sensibly if materials are uniform buffers.

That isn’t quite true. I want storage buffer support for ergonomic data bindings similar to AsBindGroup just as much as anyone else. :) I also want to group data into single buffers and update those buffers rather than having a separate buffer per material as AsBindGroup currently does. Indeed if the material is modified AsBindGroup currently allocates a new uniform buffer for that one material’s data. What I want to do is store all material data of the same material type in an array of some sort in the same buffer and index into it.
My intention is to work toward an abstraction over uniform/storage/data texture/whatever else to enable simple storage of per-instance, per-material, and per-view data.
I also ideally want something more flexible than AsBindGroup so there is some way of combining separate rust types into one bind group rather than having to define an entire bind group in one single type.
So my intention is to modify AsBindGroup a bit to meet these kinds of goals. But my desire for these goals isn’t why there’s no support for storage buffers in AsBindGroup. It just hasn’t been implemented yet. :)

You can get around it by implementing the AsBindGroup trait manually and using a storage buffer, but I suspect this won't be a supported case for materials soonish.

I’d review a PR. I’m just looking into batching and instancing with the time I have, which is the more long-term solution.

I recommend using something like ArrayVec from the tinyvec or arrayvec crates and making ShaderType implementations for them. Then you can use an array binding while treating it like a vec, and use the derive macro as usual.

ShaderType supports a trailing Vec for storage buffers as I recall.

Just created a pull request (#6669), but turns out there was already an unlinked one: #6129


Shorthand for coalesce

CIR-2016-22
Since null handling can be common within a statement, writing coalesce every time can be a bit verbose. It would be nice to have some syntactic shorthand sugar for this.
Oracle, for example, has the nvl function which is a more concise alternative to coalesce, which they also have (don't read this in any way as me being a fan of Oracle .... it's one of the only times their syntax is "concise").
This all started from the casual slack conversation on the neo4j-users slack channel #help-cypher. Not a massive priority, but raised issue this at the request of Michael Hunger ...
Kevin Turner [2:58 AM]
makes me want something like `(x IS NULL) ? 0 : x` sometimes.

Matt Byrne [6:23 AM]
Like `coalesce(x, 0)` ?

Kevin Turner [6:56 AM]
oh hey that is what coalesce does, isn’t it. okay, that’d be readable enough.

Matt Byrne [7:12 AM]
:simple_smile: ... yea comes in handy

Eve Freeman [7:13 AM]
if you have more complex stuff `... ? ... : ...` is basically `case when x is null then 0 else x end`

Matt Byrne [7:14 AM]
I'm not a massive fan of Oracle but they do have a more concise equivalent (as well as `coalesce`) called `nvl` ... fewer letters ... when you have a few of these in one statement it's more readable with 3 letters.

new messages
Michael Hunger [12:33 PM]
ya, true

[12:33]
can you raise it as issue on the openCypher repo @mattbyrne ?

Matt Byrne [1:19 PM]
sure @michael.neo

I don't think having two ways of spelling the same thing is beneficial, it only creates more things to learn in the language without any benefit. It would be better to instead propose changing the name of coalesce to something shorter, at which point I think nvl is a really poor proposal since that name doesn't provide a direct insight into what the operator does, it is another thing one has to learn by heart, which adds to the complexity of the language.
I'm not saying coalesce is a perfect word, the effect of the operator is not a perfect match for the dictionary definition of the word, but it is an actual word and it hints in the direction of what the operator does, and manages to do that while being pretty short. If we can come up with a word that does a better job by those criterions, changing it would probably be a great idea.
Just my 2¢.

I can see that sometimes an infix operator form may feel more natural as it gets less in the way of the intent of an expression.  Scala uses "OR ELSE" for chaining options, perhaps that would work here?
expr1 OR ELSE expr2 OR ELSE expr3
Alternatively, we could decide to spend an operator for this but the downside of that would be that it is much harder to read that without knowing it and it seems to small an issue to spend a special character on.

@thobe I see your point about confusion in having two functions that do the same thing. Although the word coalesce is in the dictionary, however, it's not a common word that you'd use every day. I know to use this function because it's common in other databases, but other than that I wouldn't think to search for a function with this name.
Databases tend to require more special null handling since null doesn't equal null like in some languages. The point of the ticket was to consider a shorthand since it could be used quite often.
It's commonplace for many languages to offer a shorthand for this, such as the elvis operator ?:
See here for examples: https://en.wikipedia.org/wiki/Null_coalescing_operator

That being said it was something raised in passing slack conversation and not a burning issue ;-)

How about |?
So instead of COALESCE(v1, v2, v3 ...) you could do v1|v2|v3.... Since OR is used for boolean arithmetic, the use of | would not conflict with anything. And the syntax would read "v1 or v2 or v3, whichever comes first as non-null".

Updated the original comment to include the name of the CIR

Throwing in some more operators: v1 // v2 // v3 or v1 :+: v2 :+: v3 (monoidal combine operator)


DocumentVersion shouldn't be reset to 0 when handling "textDocument/didSave"

I'm using the LSP client Eglot in emacs together with OmniSharp, and it mostly works well. One problem I have encountered is triggered by the following sequence:

Edit a file. (Client increments the DocumentVersion).
Save the file. (Server resets the version to 0 internally).
Request and execute a code action for the file, e.g. add missing 'using ...'
Server requests "workspace/applyEdit" for the file, with version 0.
Client fails to apply the edit since the version doesn't match.

I think that OmniSharp shouldn't reset the version in this case. I have looked at a few of the other major LSP servers and I couldn't find anyone that did this. Also I did try removing the line src/OmniSharp.LanguageServerProtocol/Handlers/OmniSharpTextDocumentSyncHandler.cs:158 and it solves the problem.
Thanks for your work!

I'm running into this issue as well, and it's very annoying to have to restart the LSP any time I want to do code actions (renames don't require a restart, though, which is nice 😅 ). I've dug into this a bit and would like to see if I can help bring traction to this issue.

In the LSP specification for textDocument/didSave, there is no mention that the server should reset the version to 0.
When looking at the blame of the line mentioned by @Swassie, it appears that this change was made almost 3 years ago by @razzmatazz in this commit.
@razzmatazz, is working on his own C# language server. In his implementation of textDocument/didSave, there doesn't appear to be any document version resetting.

Based on this analysis, @razzmatazz, would you be able to help with any of the following:

Provide some history / context as to why a version reset was added to textDocument/didSave.
Would you be able to fix this in Roslyn if this is indeed a bug?


⚠ Bofrost.es has degraded performance

In 0cc54df, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2549 ms

Resolved: Bofrost.es performance has improved in 9038d39 after 6 minutes.


Dead link at the bottom of the page

In "Next Steps" at the bottom of the page, the first bullet point "Quickstart: Enable users and create a SQL endpoint" which leads to https://docs.microsoft.com/en-us/azure/databricks/sql/admin/admin-quickstart goes to a 404 page.
[Enter feedback here]

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

ID: 1095c135-0915-f6c8-8032-4d04354fd40a
Version Independent ID: fe24dd29-de3f-a0de-26cf-2d7f0d4ad637
Content: What is Azure Databricks SQL Analytics?
Content Source: databricks/scenarios/what-is-azure-databricks-sqla.md
Service: azure-databricks
Sub-service: databricks-sql-analytics
GitHub Login: @mamccrea
Microsoft Alias: mamccrea

Thanks for the feedback! I have assigned the issue to the doc author to update appropriately.

#reassign: @mssaperla

We have filed a ticket in the Databricks bug tracking system: DOC-3024. We will update this Git issue when the ticket has been resolved. #label:"in-progress".

Thanks for providing feedback that helps improve our documentation. This issue has been resolved and we are closing the issue.
#please-close

#please-close


Refactor SepToString to take colIndex and avoid per col array unless needed (breaking changes)

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

Files
Coverage Δ

src/Sep/Internals/SepStringHashPool.cs
98.31% <100.00%> (ø)

src/Sep/Internals/SepToStringDirect.cs
100.00% <100.00%> (ø)

src/Sep/Internals/SepToStringHashPoolPerCol.cs
100.00% <100.00%> (ø)

src/Sep/Internals/SepToStringHashPoolSingle.cs
100.00% <100.00%> (ø)

src/Sep/SepReader.cs
97.75% <100.00%> (-0.41%)
:arrow_down:

src/Sep/SepReaderState.cs
100.00% <100.00%> (ø)

src/Sep/SepToString.cs
100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes
:loudspeaker: Thoughts on this report? Let us know!.


The "function length" bug is still an issue, yet it is closed on GitHUb

This tutorial appears to be the only source of information that supports configuration of multiple tables as input data sources, using DF.  As such, any assistance with the below error is appreciated:
Activity IterateSQLTables failed: The function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'.
As others have suggested, I ensured the "first row only" checkbox was not checked, and I have validated all pipelines and activities, as well as verified my SQL query works and returns the expected table names.
Still, this issue persists.  When invoked via the trigger that ends the GetTableListAndTriggerCopyData pipeline, the next pipeline fails with that above error.
I ran with debug mode on the parameter for IterateSQLTables and received the following:
{
"errorCode": "InvalidTemplate",
"message": "The function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'.",
"failureType": "UserError",
"target": "IterateSQLTables"
}

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

ID: 125c8ae8-332f-8792-d81b-30bb0eb3976f
Version Independent ID: 2e2ac8cb-4208-6692-0f25-701e4906475a
Content: Copy data in bulk using Azure Data Factory
Content Source: articles/data-factory/tutorial-bulk-copy-portal.md
Service: data-factory
GitHub Login: @linda33wj
Microsoft Alias: jingwang

@AlexFiala Thanks for the feedback and bringing this to our notice. At this time we are reviewing the ask and will update as appropriate.

@AlexFiala Thanks for the feedback and bringing this to our notice. At this time we are reviewing the ask and will update as appropriate.

Thank you @KranthiPakala-MSFT .  FYI - I'm implementing this for a customer so any resolution sooner rather than later is appreciated :)

@AlexFiala Could you try using this dynamic expression in 'TriggerCopy' (Executepipeline) activity of parent pipeline 'GetTableListAndTriggerCopyData': @array(activity('LookupTableList').output.value)

This should resolve your issue. Let us know how it goes.

@KranthiPakala-MSFT , I just tried it with your modified value including the @array and no luck :(

From pipeline runs, parameters screenshot for the iterateandcopysqltables pipline

Error: "Activity IterateSQLTables failed: The function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'."

I'm not sure why the tablelist parameter is empty.  It's assigned array type in "iteratesqltables"

@AlexFiala That is left empty since we are passing the tablelist parameter value from parent pipeline (i.e., from TriggerCopy Activity - you can look at the screen print I attached in the previous reply).

How are you testing this, I mean are you just triggering 'IterateAndCopySQLTables' pipeline or are you triggering the main pipeline 'GetTableListAndTriggerCopyData' ?
In order to test this tutorial, we have to trigger only the Main pipeline 'GetTableListAndTriggerCopyData' with will automatically trigger the child pipeline 'IterateAndCopySQLTables'.
If you trigger only child pipeline then you see the error you have mentioned, since the tablelist has empty/null value.
When you trigger the main pipeline it will pass the value of 'tablelist' parameter to child pipeline and it should execute without issues.
Could you also check if you were able to see the output of 'LookupTableList' activity using the 'Preview data' button? This output is the value of 'tablelist' parameter in child pipeline.

Additional info:
If you just want to test your test your child pipeline 'IterateAndCopySQLTables' please provide the tablelist' parameter value as below (you can copy paste below JSON array and test child pipeline)
[
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "SalesOrderDetailNewTest"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "SalesOrderDetailNewTestDecimal"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "Customer"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "ProductDescription"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "Product"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "ProductModelProductDescription"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "ProductCategory"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "Address"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "CustomerAddress"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "SalesOrderDetail"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "SalesOrderHeader"
},
{
"TABLE_SCHEMA": "SalesLT",
"TABLE_NAME": "CustomerTestingTable"
}
]
Hope this helps...

From 'IterateAndCopySQLTables' pipeline run, here is my parameters value:

Please check if you were able to able to see the data when you click on Preview data button in 'LookupTableList' activity.

Hi Kranthi,
Alex is working on US timing, Let us know your Availability in the IST evening timing to  work on the same.

Hi @KranthiPakala-MSFT .  Yes, I am triggering the first pipeline which calls the iterate pipeline.  I have also verified I can preview the data of from the query:

When I click the parameters value column is empty, in the Monitor blade, as shown in my previous comment.

@AlexFiala Could you try using a set variable activity next to LookUpTableActivity and see if you were able to get the output of LookupTable activtiy into your 'Set variable' activity in Main pipeline ("GetTableListAndTriggerCopyData") (Note: The reason behind this is to make sure if you were able to get the output of LookupTable activity to TriggerCopy (Execute pipeline) activity)
For this first declare a variable of type 'Array' in main pipeline ("GetTableListAndTriggerCopyData") and then use this dynamic expression - @array(activity('LookupTableList').output.value) in 'set variable' activity

@AlexFiala Just checking to see if the above suggestion helped to debug your issue?

@AlexFiala We will now proceed to close this thread as we have not heard back from you. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.


Shifted/flipped beampattern and gradients

The beampattern and gradients calculated by patternNarrowBand and gradientNarrowBand seem to be flipped/shifted along the azimuth and elevation direction. See the attached comparisons to the Matlab implementation.
Beampattern

gradAzi

gradEle

solved.


Refactor MDDatePicker.update_calendar + Fix #1169

Description of Changes
I rewrote the update_calendar method. Now, the method independently manages the day widgets. To change the displayed selected date, it is enough to set sel_year, sel_month and sel_day, and then call this method. You no longer need to support _sel_day_widget, calculate the position of the required widget in _calendar_list, and access it directly to remove or set the date selection. To maintain backward compatibility, it still gets the year and month of the displayed calendar page. The code that depended on the previous behavior was also rewritten, unnecessary _sel_day_widget and _current_selected_date fields were removed, set_month_day method has become useless and can be removed. As a result, the bug described in #1169 has been fixed.

Sorry, I forgot to show screenshots of bug fix :(
Code
from kivy.lang import Builder

from kivymd.app import MDApp
from kivymd.uix.pickers import MDDatePicker

KV = '''
MDFloatLayout:

    MDTopAppBar:
        title: "MDDatePicker"
        pos_hint: {"top": 1}
        elevation: 10

    MDRaisedButton:
        text: "Open time picker"
        pos_hint: {'center_x': .5, 'center_y': .5}
        on_release: app.show_date_picker()
'''

class Test(MDApp):
    def build(self):
        return Builder.load_string(KV)

    def on_save(self, instance, value, date_range):
        '''
        Events called when the "OK" dialog box button is clicked.

        :type instance: <kivymd.uix.picker.MDDatePicker object>;

        :param value: selected date;
        :type value: <class 'datetime.date'>;

        :param date_range: list of 'datetime.date' objects in the selected range;
        :type date_range: <class 'list'>;
        '''

        print(instance, value, date_range)

    def on_cancel(self, instance, value):
        '''Events called when the "CANCEL" dialog box button is clicked.'''

    def show_date_picker(self):
        date_dialog = MDDatePicker()
        date_dialog.bind(on_save=self.on_save, on_cancel=self.on_cancel)
        date_dialog.open()

Test().run()

Screenshots
Run code:

Click on the button:

Select another date:

Switch to the year selection:

Switch back:

Everything is fine, the date remains the one we selected earlier. Click on OK:

The date we selected is printed.

I just have a lot of free time :) I closed the PR, which in its own way tried to fix the bug, so all the remaining PRs. I checked that they don't conflict.


Pretrain Model to Compute Surface_FID

Could you provide the pretrain model and code to compute Surface_FID/Surface_KID?
Looking forward to your reply!

I'm looking forward to


Lexer : do note throw Exception on errors

On lexing error do note throw Exception.
instead use BuildResult<IEnumerable> for homogenity purpose

Both regex ans generic lexers

Both regex ans generic lexers

done.


[zh-cn] sync controllers/_index.md job.md pods/_index.md

content/zh-cn/docs/concepts/workloads/controllers/_index.md
content/zh-cn/docs/concepts/workloads/controllers/job.md
content/zh-cn/docs/concepts/workloads/pods/_index.md

/lgtm
/approve


Runelite will not update

Describe the bug
Runelite will not update
To Reproduce
Steps to reproduce the behavior:

Go to Runeelite
Click on Login
Scroll down to The bottom
See error

Expected behavior
All plugins and functions are available
Screenshots

Environment (please complete the following information):

OS: [e.g. Windows10
RuneLite version: [e.g 1.4.67]

Duplicate of #13671


Implementing "CFA for Target-Oriented Anomaly Localization"

Hello,
I was just wondering if someone is already working on an anomalib implementation of https://arxiv.org/pdf/2206.04325.pdf
(https://github.com/sungwool/CFA_for_anomaly_localization)
It apparently scores higher than PatchCore on MVTec without any tricks like ensembling very large models.

Hi @alexriedel1, the paper indeed looks promising. No one is working on it at the moment. It would be good to implement it for sure.


How to give custom file name for remote download PDFs?

Hi!
I think I understand what you want to do.
As you can see in DownloadFile interface, and its implementor class, you can set the destination path of your choice (including your custom file name), and the downloaded file will be written there:
File file = new File(destinationPath);
FileOutputStream fileOutput = new FileOutputStream(file);

Hope it is helpful for you! :)


Twistlock Security Scan shows High Vulnerabilities for versions 0.29.0, 0.31.0, and 0.33.0

Running the quay.io signalfx/splunk-otel-collector image (versions 0.29.0, 0.31.0, and 0.33.0) through Twistlock revealed some high vulnerabilities with known fixes.  Is it possible to address the issues with known fixes?  Here are the Twistlock scan results:
splunk-otel-collector_security_twistlock_scan.xlsx

Hey @TylerHelmuth , thanks for sharing this.
We are working on upgrading our Java and Go versions based on that scan's findings.
We've already looked into the python-keystoneclient CVEs a few weeks ago and found that they are for openstack keystone itself (e.g. cpe:2.3:a:openstack:keystone::::::::), and are incorrectly identified for python-keystoneclient. The python-keystoneclient package we use is already at the latest available version (v4.2.0).


Regression: --goto feature should accept empty line and column numbers

VSCode Version: 1.5.1
OS Version: MacOs

Steps to Reproduce:

Open terminal
run code . --goto somefile:

Expected: VSCode opens the file.
Actual: throws an error Arguments in --gotomode should be in the format ofFILE(:LINE(:COLUMN)).
The reason is simple - iTerm2 can be configured to run a program on a Cmd+click on filename in the terminal. It offers an ability to pass line number if it was identified, but it can't add colon conditionally if it identified the line number or not.
Feature was working on previous version

@joaomoreno Root cause might be the same as that for #11731 ?


Cleanup povertymapping modules

Problem:

We got into unexpected issues during rollout because of differences in common and official country names (e.g. "laos":"lao democratic peoples republic"

Initial solution

Cleanup hdx.py functions to take in the ISO country code as parameter instead of the official country name.

Problem with initial solution

The functions in hdx.py require both the common country name and ISO code at different stages to construct the urls, and other functions dependent on it (e.g. those in rollout_grids.py) take in the common country name too. It can be tedious to trace the variables one by one to update this.

Proposed solution

The errors from the inconsistencies are triggered from iso3.py, so its more straightforward and less time consuming to start cleanup from here
I modified iso3.py to read from a different table that contains common country names, add code to lookup common country name and output the ISO code.
I propose to keep hdx.py as is, and do the translation of ISO code to common country name in the rollout notebooks.

CURRENT:
# Imports
from povertymapping.iso3 import get_iso3_code
# Cell for  setting parameters
COUNTRY_OSM = "laos"
COUNTRY_CODE= get_iso3_code(COUNTRY_OSM, code='alpha-2').lower()

PROPOSED:
# Imports
from povertymapping.iso3 import get_region_name
# Cell for  setting parameters
COUNTRY_CODE = "la"
COUNTRY_OSM = get_region_name(COUNTRY_CODE, code='alpha-2').lower()

Some questions:

So essentially, the main change is that instead of the user supplying the "human-friendly" OSM region name and the code inferring the ISO code from it, we reverse it? That is, user supplies the 2-letter ISO country code, and then we infer the OSM name from it?

Have you checked that all the rollout notebooks run successfully with these changes? I also don't see the notebook changes in the PR yet.

Does this change impact any notebooks outside from the rollout ones?

Finished the minor bug fixes, refactors, and re-running all notebooks with @tm-jc-nacpil. All models and output data has been refreshed in the public GDrive folder.
Tests are fixed and updated too.


Exploiter problem and needs anti cheat

I kept getting hit while trying my best to run away but he’s finds a way to get me killed repeatedly, the kart is useful to run away but I cannot connect to the server and the exploiter has broken the chat. The exploiter’s name is fartsmeller2000⭐0 and he seem like he’s running into one direction looking like he’s a speed tasbot and I’m getting hit out of thin air. No matter where I hide, he’s always find me in that spot. The MMO server needs an anti cheat to prevent exploits. Probably one of the weakest exploiter I’ve seen because I can easily escape from him by driving away but it still not gonna stop him from finding me

The specification of "looking like he's a speed tasbot" leads me to believe that the person in question is using a macro of some sort, which, to my knowledge, would be pretty hard to actually deal with directly.


Made versionadded/versionchanged end with ".", but not with ":" when there is no content.

Regression in d2afa5eb2308e672b6313876856e32e2561b90f3.

I'm not sure if we need tests/ticket for this.

@sir-sigurd Thanks, great catch :+1:


MTV-509: typos corrected aa

Corrected two small typos

modified:   documentation/modules/increasing-nfc-memory-vmware-host.adoc
Line 9 -  Otherwise,the migration changed to Otherwise, the migration
modified:   documentation/modules/migrating-virtual-machines-cli.adoc
Line 239 - migation plan changed to migration plan

LGTM!

merging two typos fixes


Unit and Integration test should be separated

The Unit and Integration tests should be separated in jenkins, sonar, the ant build file, and source code.

[ ] Jenkins
[ ] Sonar
[ ] Ant (perhaps with a seperate test-it and test-unit target in addition to the test target that runs all)
[ ] Sources (Use IT in every class description, perhaps use Junit Categories?)

Once the gradle build is ready, ant can be replaced by gradle in the task list above. Note that ant and gradle already separate unit and integration tests: package nl.esciencecenter.xenon.integration and filenames matching IT*.java and *IT.java are marked as integration tests. In gradle they also have different tasks (integrationTest vs test, use check for both).

Gradle build file now uses include/exclude rules to split the tests. The integration tests should be moved to the src/integrationtest/java folder so we don't need to use include/exclude rules anymore and there is a clear seperation between unit and integration tests.

Parts 3 and 4 are fixed when #278 and #277 get merged.

Parts 1 and 2 are also fixed. See https://sonar.esciencecenter.nl/dashboard/index/3128 for unit and integration tests.


feat: abs handoff in composer

Description

[x] create a bot with profile when user click "open in composer" in azure, implement through create protocol
[x] open the existed bot when the alias is the same.

Task Item
close #5404
Screenshots

Coverage decreased (-0.02%) to 55.172% when pulling fa1afa15d8ef4f50cc2c4c04a6a34565409795b5 on wenyluo/abs into 743978cc2dfc569111bf1a6de13db0d11f5c268e on main.


Update library packages for the extension

After setting up the repo run the following command from an activated terminal:
nox --session update_packages

It will take some time to update packages. Be sure to use the minimum version of python for the extension. Look for the line that says @nox.session(python="3.7") in noxfile.py

I will work on Issue#222


WinKey + ~ : switch between instances of active application (macOS has this feature)

Description of the new feature / enhancement
WinKey + ~ : switch between instances of active application, like WinKey + Ctrl + ,  but for the active/inFocus  application. This feature is available in Mac.
Scenario when this would be used?
To switch between instances of active application
Supporting information
No response

/dup #278


Adjust pagination to remember position

Description of change
Resolves issues around navigating large, paginated tables contained in turbo frames.
When you click on a new page, a new frame is rendered with the results of a different route (determined by the ?page= query parameter. However, this doesn't reflect in the page's query parameters so this information is lost when navigating to edit something and going back.
According to the handbook, there are attributes that can control whether the route should update the page's params too (namely data-turbo-frame). However, this could break the page later if pagination was added there too.
So instead what this solution aims to do is a purely client-side solution which adds a click listener to the turbo frame (events bubble, so this is to ensure that all children get the listener without having to be polled) and when you click on one of the edit links it saves the row index and the page you are on to sessionStorage (which clears when the tab is closed and isn't shared between tabs), and when the page loads it checks if the index and page are stored and jumps nicely to them before clearing them (so it'll only do it once). This solution works for the simple flows referred to from the ticket, but perhaps not in more complex flows
Link to relevant ticket
UX Considerations
This ticket touches a number of UX pain-points that don't have a clean solution, so these would need to be resolved before this can sensibly go in
Lazy loading the frames
Because of how the lazy loading works for the turbo frames, they're only loaded when they're in the browser viewport. As such, any attempts to scroll to the elements from the page load doesn't do anything until the frame is scrolled to at which point the jump takes over.
If the lazy load is removed from the frames, everything works as expected and this would end up being preferential overall; but this could maybe impact page load times.
localStorage vs sessionStorage
I made a conscious decision to use sessionStorage here as it doesn't persist past closing the tab and the data isn't shared across multiple tabs, so each tab won't overwrite each other.
I think this is the preferential solution, but using localStorage could be seen as preferred based on how users interact with the system.
Smooth scrolling vs jumping
The behaviour by default is to smoothly scroll to the last row you clicked on, by removing the behaviour: smooth this ends up being a jump to the row instead.
I can see cases for both here, so whichever is preferred makes sense. It's a quick fix.
How the page "jump" works
So the only way I could think of having the page jump work (because I don't yet know the boundaries between rails and the client) was to simulate a click on the page, which obviously means that the first page is loaded first pointlessly before we then jump to the correct page.
If there's a simple way to pass the current page to Pagy from the client then that would be ideal.
Screenshots of changes (if applicable)
Before changes:
https://github.com/user-attachments/assets/015ced20-2fc6-49be-a55c-f28ebb08ea18
After changes:
Starts with a refresh to prove that nothing happens by default.
https://github.com/user-attachments/assets/1b12f31d-9ff3-4bb0-9104-13beeaabedbf
How to manually test the feature

Navigate to the claims adjustments page => review and adjust tab
Optionally make the below change to seed lots of work items

diff --git a/app/controllers/nsm/work_items_controller.rb b/app/controllers/nsm/work_items_controller.rb
index 1ca8fc6..84fe634 100644
--- a/app/controllers/nsm/work_items_controller.rb
+++ b/app/controllers/nsm/work_items_controller.rb
@@ -8,6 +8,12 @@ module Nsm
     def index
       claim = Claim.find(params[:claim_id])
       items = BaseViewModel.build(:work_item, claim, 'work_items')
+      items = items + items + items
+      items = items + items + items
+      items = items + items + items
+      items = items + items + items
+      items = items + items + items
+      items = items + items + items
       sorted_items = Sorters::WorkItemsSorter.call(items, @sort_by, @sort_direction)
       pagy, work_items = pagy_array(sorted_items, items: ITEM_COUNT_OVERRIDE)
       work_item_summary = BaseViewModel.build(:work_item_summary, claim)

Also optionally disable lazy loading on the turbo frame

diff --git a/app/views/nsm/adjustments/show.html.erb b/app/views/nsm/adjustments/show.html.erb
index 91bfa80..5620bef 100644
--- a/app/views/nsm/adjustments/show.html.erb
+++ b/app/views/nsm/adjustments/show.html.erb
@@ -41,7 +41,7 @@
       </ul>

       <div class="govuk-tabs__panel" id="work-items-tab">
-        <%= turbo_frame_tag 'work_items', src: nsm_claim_work_items_path(claim), loading: :lazy do %>
+        <%= turbo_frame_tag 'work_items', src: nsm_claim_work_items_path(claim) do %>
           Loading
         <% end %>
       </div>

Go to a different page and click on a random work item
Go back
The page should scroll to the row you clicked on before

Agreed to remove Turbo Frame instead, context


Sorry, your request failed. Please try again. Request id: 0fbf43af-64e3-4c3e-9eca-5b111e3c5ad7

Type: Bug
Sorry, your request failed. Please try again. Request id: 0fbf43af-64e3-4c3e-9eca-5b111e3c5ad7
this is given by github copilot
step 1: - select claude 3.5 ai model
step 2: - write ontext
strp 3: *It's a very important step read it very carefully:- * Send the request :).
Extension version: 0.24.2024121201
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 3 3200G with Radeon Vega Graphics     (4 x 3593)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
5.92GB (0.82GB free)

Process Argv
--crash-reporter-id c7f2ee15-d1b4-4630-8a60-727cc1684ad4

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31179979
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

i also face this issues most time with all models

Please include your output channel via CTRL + SHIFT +U -> GitHub Copilot Chat

this is  what i get "Sorry, your request failed. Please try again. Request id: 0d39e15b-64da-440b-8a68-1daadef90d2c"

Now, i'm not getting any issue but sometimes the claude ai model give this error till one day I am not getting any problems with the 4o model.

I'm getting the same issue with Claude whenever I use the @workspace command. Have tried it a dozen+ times over a week. I have never successfully got a response. I always get the ""Sorry, your request failed. Please try again. Request id: ..." message.

I'm again gaining this error for claude ai in the github copilot chat.
here is the output channel:-
2024-12-26 19:32:58.577 [info] request done: requestId: [754bc930-5371-44f7-b859-3347c7354cf9] model deployment ID: []
2024-12-26 19:32:59.737 [info] Request ID for failed request: e06fa0f1-9405-4098-b0ab-9b6707364892
2024-12-26 19:32:59.740 [error] Server error: 500 Internal Server Error


Use IntPtr instead of byte[] to be more efficient ( => VideoSample is replaced by RawImage)

Content of PR:
Use RawImage instead of VideoSample (to use IntPtr instead of byte[])
If necessary GetBuffer() can be used to get byte[].
Update RawVideoSampleDelegate and VideoSinkSampleDecodedDelegate to use RawImage
Update IVideoEncoder.EncodeVideo and IVideoEncoder.DecodeVideo to use RawImage
Bump also version to <IP_ADDRESS>

@ChristopheI @sipsorcery
this PR breaks SIPSorcery
src/app/Media/Sources/VideoTestPatternSource.cs
src/app/Media/VoIPMediaSession.cs
I couldn't find any easy solution in @ChristopheI sipsorcery-fork
I wouldn't like to use "unsafe" blocks to convert byte[] to IntPtr to assign RawImage.Sample in an otherwise not-unsafe assembly
Ralf

Hi @rj2Skipper,
I will create next week 2 PR:

one for SIPSorceryMedia.Abstractions to enhance it a little more (still about RawImage - I missed a simplification)
one for SIPSorceryMedia.Abstractions to use the new  SIPSorceryMedia.Abstractions package

Hope this will help
Christophe

Hi @sipsorcery , @rj2Skipper ,
Sorry for the delay, I have created 2 PR.

One for the project SIPSorceryMedia.Abstractions. It bumps the version to <IP_ADDRESS>
Another one in the project Sipsorcery to use SIPSorceryMedia.Abstractions v<IP_ADDRESS>

I had to set Sipsorcery as "unsafe" just because VideoTestPatternSource needs to do some encoding. It should be better to do this in another package to avoid to set Sipsorcery as "unsafe"
Christophe


Image to pdf UI Improvement

What kind of change does this PR introduce ?

Fixes #136
Previous UI was neither apt nor consistent with other functionality UI's (Word-to-Pdf (#114 ) & Text-to-Pdf (#127 ))
This pr makes the aforesaid UI not only consistent but also responsive for other screen size's.

Documentation updated ?
Yes
Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Links

https://udith51.github.io/Student-portal/Img-to-Pdf/index.html

Screenshots

Image to Pdf first page, user can drag-and-drop or click on choose files to select image(s):

After first image is inserted, user is taken to 2nd page.

Here he can perform basic editing:

Add an image to pdf - click on add files and add image:

Delete an image - click on delete icon available at the top of the image:

To download pdf of the image collection chosen, tap on Download pdf button:

Responsive (for other screen sizes):

Do update me, in case any changes are required :)

Hey, @Abirpal202049 @swati2603 thanks for merging this pr.
Can you please add relevant tags to it..


Updates helper text in reusable text module

Helper text was too long and was being truncated. This re-writes it to be shorter.
Changes

Shortens sidefoot heading helper text in reusable text snippet.

Testing

Create a test Document detail page in Wagtail.
Click on the sidebar and add a Reusable Text.
Choose a Reusable Text, edit it to add "sidefoot heading" if absent (latest database dump appears not to have any reusable text snippets with a sidefoot heading set.
Check the helper text when hovering over the field.

Screenshots
Before:

After (close-up):

@Scotchester renamed!


BlurEffect can't change Alpha

As discussed in this pull request: https://github.com/pkluz/PKHUD/pull/5
I'm still receiving an warning:
2014-09-16 14:29:47.912 PKHUD Demo[50313:10503170] <PKHUD.FrameView 0x7fa053e609d0> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.

It appears PKHUD is trying to animate the Alpha of the FrameView, while it's a subclass of UIVisualEffectView. The documentation of the VisualEffectView states the following:
Setting the Correct Alpha Value
When using the UIVisualEffectView class, avoid alpha values that are less than 1.
Creating views that are partially transparent causes the system to combine the view
and all the associated subviews during an offscreen render pass. UIVisualEffectView
objects need to be combined as part of the content they are layered on top of in order
to look correct. Setting the alpha to less than 1 on the visual effect view or any of its
superviews causes many effects to look incorrect or not show up at all.

So to solve this notification, the alpha fading must be done differently.
Any suggestions?
Cheers,
//Michael

I really don't want to do what @esmondmissen suggests. It's a lot of overhead and additional processing for something that currently seems to work flawlessly with barely any additional work (I have yet to receive a complaint about visual glitches due to animating the opacity of visual effect views - possibly ontop of GLKit views? Not tested).
As a matter of fact (despite producing a warning) I find the current solution to be 1. the most obvious 2. elegant, 3. concise and 4. maintainable.

I agree with you.  I was Googling for this error message to find a fix.  Before iOS 8 I wrote a class to implement blur using GLKit and core image rendering on the GPU.  It's not perfect and I'd prefer to use the Apple supplied view as their engineers have access to parts of the system that I don't.  But it's fast and flexible.  You're welcome to use it if you want.  https://github.com/carlos4242/FrostedGlass

Although I really hate warnings like this one, I agree with @pkluz. I am pretty sure there is a (probably undocumented) way to do it without causing this warning. If one of you guys will attend WWDC, go ahead and ask one of the UIKit guys.

It's "hacky" but maybe you can simply  take advantage of UIToolbar's effect.  Works for me in modal views I want "frosted".
view.backgroundColor = UIColor.clearColor()
let bgToolbar = UIToolbar(frame: view.frame)
view.insertSubview(bgToolbar, atIndex: 0)

Does this warning make any problems when pushing the app to the App Store?

Not at all.

On 25 Feb 2016, at 11:01 AM, Dieter Schäfer<EMAIL_ADDRESS>wrote:
Does this warning make any problems when pushing the app to the App Store?
—
Reply to this email directly or view it on GitHub.

Hi, pkluz
I have been using your framework for a while, it's great and easy to use. However, I encountered the same problem as this. Then I found a workaround, and no warning log appears :)
The idea is make the FrameView as a subclass of UIView and set the visualEffectView as its internal subview.
I've attached the file FrameView.swift, please have a look.
FrameView.txt
Cheers,
Hengyu

This is a pretty good idea @Hengyu ! Fantastic! Will look at it!

Hey, What's the solution to this? The app is crashing when I try do split view. I don't even have the PKHud showing.


Publish to NPM

Please publish this plugin to NPM :)

Done.
https://www.npmjs.com/package/capacitor-native-settings


Running in multiple zones

Could you please reference Azure (AKS) here too, as some customer reach your site first and think that AKS is not offering zone support:
https://docs.microsoft.com/en-us/azure/aks/availability-zones
Thanks

Hi @NitroAMD - would you be willing to provide a review (formally or informally) on https://github.com/kubernetes/website/pull/23498?


Outdated security contact

Expected Behavior
Link in SECURITY.md leads to meaningful information on how to report security issues or apply for the Bug Bounty program on HackerOne.
Actual Behavior
The provided link leads to corporate contact page that does not instruct how to report bugs or apply for bug bounty program.
Steps to Reproduce the Problem

Open SECURITY.md
Click the link in the description (https://corporate.zalando.com/en/services-and-contact#security-form)

Specifications

Version: n/a
Platform: n/a
Subsystem: n/a

Similar issue and resolution in other Z project: zalando/skipper#1929


Added ignoreFailure attribute to deployHubOutput goal.

Hello,
Thanks for submitting a pull request.
What was the exception that you were getting when trying to deploy to the hub such that you wanted to ignore it and not fail your maven build?

We experienced two exceptions; first, locally trying to deploy to the hub when it was not serving on port 8080 and second, after restarting the hub it had lost the credentials we had created. In the latter case it was from Jenkins so I have the logs; the exception was:
[INFO] --- hub-maven-plugin:1.0.4:deployHubOutput (deploy-black-duck-manifest) @ parent-pom ---
[info] BlackDuck Software parent-pom_bdio.jsonld file deployment starting...
Sep 28, 2016 11:47:54 PM org.restlet.engine.connector.HttpClientHelper start
INFO: Starting the internal HTTP client
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.944 s
[INFO] Finished at: 2016-09-28T23:47:54+00:00
[INFO] Final Memory: 45M/349M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.blackducksoftware.integration:hub-maven-plugin:1.0.4:deployHubOutput (deploy-black-duck-manifest) on project parent-pom: Cannot communicate with hub server. Unauthorized (401) - Unauthorized -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Build step 'Execute shell' marked build as failure
Sending e-mails to<EMAIL_ADDRESS>Finished: FAILURE
Essentially, we would like to see the publish be entirely exception neutral.

There are multiple options on how to configure the deploy goal in maven.  We want the build to fail if the deploy task has an error to avoid running the risk of succeeding the build, but not deploying the latest data to the hub.  Such that the hub may display stale data which may impact the business especially if security vulnerability information is stale.  By logging the error but not failing the build there is no indication in the CI system that there was a problem deploying and that it should be investigated further.
If you're using Jenkins, to work around the issue without a change to the plugin you could create a downstream job that uses the same workspace that only invokes the deploy to the hub maven goal.  You invoke the job that deploys the file as the last job so that other jobs or steps will not fail and complete as needed.   You could also look into Jenkins pipeline and invoke the maven command with the deploy goal.  The pipeline can pass the build if it completes N number of steps.  If you put the the deploy goal as the N+1 step then your build will be considered a success. This way the entire build does not fail and you can invoke your additional jobs.

I understand that there are several work around. However, being able to control this at the plugin level works best for our build and deploy pipeline.
While I would like to require the analysis succeed on every build, we have had issues keeping your product up and running; so I am not comfortable gating production builds including hot fixes on the success of this step.
Several other plugins allow for such modes and the failure is recorded in the build log. I'm sorry to see you close this pull request as it would be useful to us and is backwards compatible. Can you elaborate on why this cannot be accepted?

Hi Ville,
First, thank you so much for the pull request we always appreciate that.  The reluctance for us to accept this particular piece of functionality stems from our concern that we are breaking the life-cycle.  Typically we find that when a plugin is implemented and relies on an external system, any time the external system is down the build fails while relying on the goals/phases.  For example we use SonarQube and it functions exactly the same, if SQ is down the build fails.
We would however really like to see other examples of where these override switches exist.  Can you please link us to these implementations?
thanks!

Thanks for your reply @akamen. Just to be clear my pull request does not break anything, it is fully backwards compatible where the default behavior is that any failure to interact with Black Duck Hub causes the build to fail.
Our concern is exactly as you describe. The Black Duck Hub is an external system to our build process and as such can fail for a variety of reasons including: 1) Hub software failure, 2) Hub hardware/vm/docker failure, 3) Network failure. In our case, we do not wish to block builds including critical hot-fixes on the failure of a non-critical external system.
I can see how some customers may wish to include Black Duck in their critical build path, but in our opinion that is not, at least at this time, an option for us. Can you see how the ability to ignore failures in a plugin that is non-critical to our build process and subject to distributed system failure modes is desirable?
Numerous plugins in Maven include the ability to disregard failures. Many of these plugins are far more critical than either Sonarqube or Black Duck. For example, you can disregard test failures with Surefire and Failsafe. Findbugs (byte-code analysis), Checkstyle (code analysis) and Jacoco (code coverage) all allow you to ignore their results. These plugins are all arguably more critical to the correctness of a build than either Sonarqube or Black Duck and none are prone to transient failures from being external (since they all run local to the build). Yet, the results of their execution can be ignored and the build allowed to complete successfully.
Surefire:
http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#testFailureIgnore
Failsafe:
http://maven.apache.org/surefire/maven-failsafe-plugin/verify-mojo.html#testFailureIgnore
Checkstyle:
http://maven.apache.org/plugins-archives/maven-checkstyle-plugin-2.16/check-mojo.html#failOnViolation
Findbugs:
http://gleclaire.github.io/findbugs-maven-plugin/check-mojo.html#failOnError
Jacoco:
http://www.eclemma.org/jacoco/trunk/doc/check-mojo.html#haltOnFailure
You are correct that Sonarqube does not permit ignoring communication failures. However, if you take a look at the Sonarqube Maven Plugin goal configuration you will see that it only has one option (skip).
http://www.mojohaus.org/sonar-maven-plugin/sonar-mojo.html
I have used Sonarqube before, and would probably use it again, but in my opinion it leaves a lot to be desired. Simply put as a provider of commercial software the bar for Black Duck and how it can be integrated into customer build systems is already much higher than for a free open-source project like Sonarqube. Now SonarSource provides additional plugins and commercial support for SonarQube and were I a customer of theirs I would have a similar ask.
I'm happy to discuss any of this further and your coworker Kaila Gervais has my contact information. Additionally, I am happy to change the PR in any way to suite the goals of your plugin; however, I do feel strongly that this is an important and non-intrusive feature inline with many other plugins in the Maven ecosystem.
Thank you,
Ville Koskela

@vjkoskela appreciate the thoughtful response, we will consider the points you raised and get back to you shortly.

@vjkoskela after discussing this with the team, your feature request is accepted.   Due to significant code changes and new features to the maven plugin we will close down this pull request and open up a new ticket.

Glad to hear that. I'm happy to expand my PR to include to all existing mojos. Obviously, I can't apply it to features that are not yet available. Would that enable us to move forward with it? Incorporating these changes into your refactoring should be trivial.


Zeroconf based Authentication by command line

I want to mock (simulate) a connection to the lib by code, with the zeroconf authentication mode.
In other words, i want to run a librespot instance, and then connect to it as a "spotify connect" device, but using code or cli, not the spotify app.
is this possible?

I'm looking to do something similar. My goal is to programmatically swap which account the librespot instance is associated with. The document you referenced above explains how the auth blob is decoded but I need to know how to encode a blob which I would then use for zeroconf auth.

I have a similar need. I've got a Spotify Connect device at http://<IP_ADDRESS>/spotify that I would like to programatically run "addUser" on from one of two accounts. Calls to kick the current user off: curl -d action=resetUsers http://<IP_ADDRESS>/spotify and get details about the device curl -d action=getInfo http://<IP_ADDRESS>/spotify work fine, but similar to @noelhibbard I'm not quite sure how to craft a "blob"

I have a similar need. I've got a Spotify Connect device at http://<IP_ADDRESS>/spotify that I would like to programatically run "addUser" on from one of two accounts. Calls to kick the current user off: curl -d action=resetUsers http://<IP_ADDRESS>/spotify and get details about the device curl -d action=getInfo http://<IP_ADDRESS>/spotify work fine, but similar to @noelhibbard I'm not quite sure how to craft a "blob"

I'm not super knowledgeable on encryption but I'm thinking you would need the private key to construct the blob and all we have is the public key for decrypting the blob. As far as I know, only the official Spotify clients are capable of initiating a zero config auth. If there is an open source project that can handle that side of the process then we could look at that for hints but I don't think one exists.

I'm not super knowledgeable on encryption but I'm thinking you would need the private key to construct the blob and all we have is the public key for decrypting the blob. As far as I know, only the official Spotify clients are capable of initiating a zero config auth. If there is an open source project that can handle that side of the process then we could look at that for hints but I don't think one exists.

@plietar - I see you're the author of the zeroconf authentication page. Can you offer up any details on how to generate blobs? Whose private key do I need to do the DH exchange?

@plietar - I see you're the author of the zeroconf authentication page. Can you offer up any details on how to generate blobs? Whose private key do I need to do the DH exchange?

In the odd case you haven't already seen the docs on zeroconf..

In the odd case you haven't already seen the docs on zeroconf..

Those docs only explain how you decrypt a blob. We are trying to do the opposite.

Those docs only explain how you decrypt a blob. We are trying to do the opposite.

Ah fair enough, sorry for the noise :-)

Ah fair enough, sorry for the noise :-)

@idcmp with DH, both sides have a private and a public key. They exchange public keys to compute a shared secret.

Generate a random private key
Compute the corresponding public key
Fetch the device's public key using getInfo
Combine your private key with the device's public key to obtain the shared secret
Compute the encryption and checksum key. The docs look like they have some typos and don't match exactly what the code does (especially around the slicing the key bit). In doubt the code is more reliable.
Encrypt the blob using AES128-CTR and a random 16 byte IV.
Compute the mac of the encrypted blob using hmac-sha1
Concatenate the IV, mac and encrypted blob and send that to the device.

To actually compute the blob, you'd have to implement this function, backwards. There seem to be a couple of fields in the unencrypted blob that aren't described. I'm not sure what these are. Running librespot and printing their values could help.

@idcmp with DH, both sides have a private and a public key. They exchange public keys to compute a shared secret.

Generate a random private key
Compute the corresponding public key
Fetch the device's public key using getInfo
Combine your private key with the device's public key to obtain the shared secret
Compute the encryption and checksum key. The docs look like they have some typos and don't match exactly what the code does (especially around the slicing the key bit). In doubt the code is more reliable.
Encrypt the blob using AES128-CTR and a random 16 byte IV.
Compute the mac of the encrypted blob using hmac-sha1
Concatenate the IV, mac and encrypted blob and send that to the device.

To actually compute the blob, you'd have to implement this function, backwards. There seem to be a couple of fields in the unencrypted blob that aren't described. I'm not sure what these are. Running librespot and printing their values could help.

Got it.
As listed in:
blob = AES128-CTR-DECRYPT(encryption_key, IV, encrypted)

Got it.
As listed in:
blob = AES128-CTR-DECRYPT(encryption_key, IV, encrypted)

That piece of code corresponds to the login_data = AES192-DECRYPT(key, data) line in the docs.
The code is a naive manual translation from the disassembled binary to Rust. I’m no crypto expert, so I have a hard time identifying the “high level” algorithms.
It is certainly not CTR, since it is XORing pieces of the plaintext together, rather than the plaintext with some AES stream. On the other hand, it doesn’t match any of the other common cipher modes.

That piece of code corresponds to the login_data = AES192-DECRYPT(key, data) line in the docs.
The code is a naive manual translation from the disassembled binary to Rust. I’m no crypto expert, so I have a hard time identifying the “high level” algorithms.
It is certainly not CTR, since it is XORing pieces of the plaintext together, rather than the plaintext with some AES stream. On the other hand, it doesn’t match any of the other common cipher modes.

You can have a look at the Java implementation too: https://github.com/librespot-org/librespot-java/blob/1c9537a2a21833d68491f8bda077606fe1120c75/lib/src/main/java/xyz/gianlu/librespot/core/Session.java#L867

You can have a look at the Java implementation too: https://github.com/librespot-org/librespot-java/blob/1c9537a2a21833d68491f8bda077606fe1120c75/lib/src/main/java/xyz/gianlu/librespot/core/Session.java#L867


Snapshots should display the owner

I back up / from several machines to my main repository.
You can see in the output here that two / are shown, but there is no clue as to which machine they belong to.
Adding the owner to the snapshot will differentiate it.

That's a good idea. Get the last version, it should now automatically add the host name if there is more than a single hostname in the repository.
For now the format I used is {hostname} : {path} but I'm wondering if {path}@{hostname} would be better. Thoughts?

I suggest {user}@{host}:{path} as that is what KopiaUI uses (note no spaces).
However, the new change is definitely better. And I love this project. It should be part of the main kopia distribution.
Your latest update brought in a Python 3.11 module from typing import Self. I was only Python 3.10 and had to upgrade.  There appears to be a backport for earlier Pythons: https://stackoverflow.com/a/77247460

Side idea: would be cool to provide a url prefix in config to create deep links for user@host or specific snapshots into the KopiaUI.

I settled on {user}@{host} : {path} with spaces around the colon because on windows it's not very readable without the spaces.
The deep link idea is interesting but for it to work kopia-ui should register a handler for some custom URI protocol and intercept navigations. I don't know that it does something like that and don't have the time to research it so I'm going to pass on that.

No worries. Thank you very much for the great product and your responsiveness.


fix(pd): reset app height in testnet 77 migration

Describe your changes
Encountered CometBFT failure while testing chain resumption after applying testnet77 migration. Paired with @erwanor to resolve.
Issue ticket number and link
Refs #4497.
Checklist before requesting a review

[x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

fixes a migration for upcoming release, based on migration testing

Follow-up to https://github.com/penumbra-zone/penumbra/pull/4503. Also mentioning #4294 as relevant.

Tested a migration from v0.76.0 to the fix-77-migration image built from this PR, worked! :+1:


Add text on pinning namespaces

Is it clear what I am doing here? Do i need to add more examples? Specifically, I am thinking of adding some C code which forks, the child keeps the namespace fd open, and the parent closes it. I then want to demonstrate that the child still has access to the ns fd.

I've updated this PR with a section on entering namespaces as well.

I think this looks good, especially with the latest addition. Sorry for the late response. I'll pull it in.


Improve units in the DKG

As a follow-up to https://github.com/indralab/mira/pull/179, I started looking more carefully into the SPARQL query that gets units out of Wikidata. I have extended it to https://w.wiki/6rjM

[x] This new query is able to get synonyms as well as show the parents of all units.
[x] It appears that "SI unit" might work as a way to filter to non-derived/complex/compound units. Needs further investigation. Simple first solution - some text based rules
[x] I can also do some kinds of string processing to get the primary labels to not include spaces, parentheses
[x] Aggregate on qudt since multiple annotations of the wdt:P2968 property resulted in duplicate nodes
[x] Prioritize american english labels (5b9e5f4)
[x] Solve issue with duplicate entities due to SPARQL query returning multiple rows when there are multiple xrefs (using group by + group concat)

Local tests:

http://<IP_ADDRESS>:8771/api/search?q=fluid gives:
[
 {
 "id": "wikidata:Q69878540",
 "name": "fluid_ounce",
 "type": "class",
 "obsolete": false,
 "description": "unit of volume in Great Britain",
 "synonyms": [],
 "xrefs": [],
 "labels": [
   "unit",
   "wikidata"
 ],
 "properties": {}
 },
 ...

http://<IP_ADDRESS>:8771/api/search?q=meter gives:
 [
 {
"id": "wikidata:Q11573",
"name": "meter",
"type": "class",
"obsolete": false,
"description": "SI unit of length",
"synonyms": [],
"xrefs": [],
"labels": [
  "unit",
  "wikidata"
],
"properties": {}
 },

Codecov Report

Merging #181 (acb0b48) into main (7d94ca2) will increase coverage by 0.45%.
The diff coverage is n/a.

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

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
+ Coverage   76.44%   76.90%   +0.45%
==========================================
  Files          64       65       +1
  Lines        4975     5628     +653
==========================================
+ Hits         3803     4328     +525
- Misses       1172     1300     +128

see 11 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bgyori the normalization is working, but there remains an issue with synonym loading I haven't been able to crack yet

The structure of unit_names.tsv changed which is used in the metamodel module but the code needs to be updated for the new tsv structure - working on it now.

@cthoyt leaving this here so that it doesn't get lost, I'm still noticing issues with language for units, e.g.
meter
metre_kelvin
metre_of_mercury
metre_of_water
metre_second
metre_to_the_fourth_power
metre_to_the_power_of_six

where only the base unit uses American English, the others British.


[edgemesh/helm] merge sub charts edgemesh.agent and edgemesh.server  to edgemesh

Signed-off-by: zhu733756<EMAIL_ADDRESS>Currently, the sub-charts in edgemesh main chart are independent of each other, this pr aims to merge it.
/cc @Poorunga

@zhu733756 CI seems to be a problem, I will reopen your pr and try to re-trigger CI.
/close

/reopen

@zhu733756  Please use helm package re-create bulid/helm/edgemesh.tgz and build/helm/edgemesh-gateway.tgz

@zhu733756 Please use helm package re-create bulid/helm/edgemesh.tgz and build/helm/edgemesh-gateway.tgz

Let me see see, maybe we need to build this package automatically.

Let me see see, maybe we need to build this package automatically.

Great idea.


MQTT HVAC: Mode OFF doesn't work.

Home Assistant release (hass --version):
hass.io 0.56.2
Python release (python3 --version):
Component/platform:
MQTT HVAC
Description of problem:
When having a mode called "OFF" it is displayed as "False" and one is able to change temperature.
Expected:
That it is listed as off, the Target Temperature hidden. Ideally the red target temperature line would disappear from the

chart while off but I doubt that's possible.
Problem-relevant configuration.yaml entries and steps to reproduce:
climate:
  - platform: DaikinClimateQ
    name: "Daikin LVP"
  - platform: mqtt
    name: LVP
    current_temperature_topic: hem/climate/daikin/sensor/temperature
    initial: 23
    send_if_off: false
    modes:
    - OFF
    - Fuktig Värme
    - Värme
    - Torr Kyla
    - Avfuktning
    swing_modes:
    fan_modes:
    mode_command_topic: "hem/climate/daikin/mode/set"
    temperature_command_topic: "hem/climate/daikin/temperature/set"

Additional info:

Currently, the only thing that happens when you switch the mode to "off" is that this mode is being sent via MQTT (if I remember correctly). Optionally, you can disable the sending of any MQTT messages while the device is in "off" mode.
This will likely change with the changes outlined in https://github.com/home-assistant/home-assistant/pull/10151 , so I'm not taking any action here now, but please keep the bug open.
Question: What would your "expected behavior" be for the "off" mode? Switch to "auto" (or something else) as soon as a temperature is set? Just deny setting the temperature?

I would expect it to deny setting the temperature as explained above. And I want to be able to send off command by mqtt. This is the only way to st it in off mode because there is no button to send the power_command_topic.

Please have a look at  https://github.com/home-assistant/home-assistant/pull/9589#issuecomment-332709821 for what the 'power mode' was originally intended. I think in this setting, a power state topic wouldn't make too much sense, as the "power" command topic is just used to toggle the A/Cs "main" switch.
The more I think about this the more I think the "power" thing should be removed from the MQTT climate platform. If you need to send an "power on" every time you enter some mode, that should be easily achieved by a small automation.

I get why mode off should not be working. Also I don't get why the mode off is mentioned in the example but it does not work. What I would like to suggest is that it would be super awesome if this component had an availability topic so you could sent a last will message when your sensor dies in worst case scenario.

A working solution for me is to put put quotes around off in the configuration.yaml

@JayWolf95 Great, thanks so much!

@arjhun Glad I could help :)

@JayWolf95 AAAh bummer the text shows up now but updating it still doesnt work, the log gives me the following:
2017-12-13 16:12:19 ERROR (MainThread) [homeassistant.components.climate.mqtt] Invalid mode: Off

@arjhun Try the O in off as lowercase

D'oh.

Oh, missed referencing this issue in #11623 - that PR should fix this issue, by allowing you to specify a template that unquotes "OFF", right?

It's working perfectly for me know... Issue can be closed if it's up to me!


Scripts fail with reason Failed: timeout

Hi there!
I have around 150 Test scenarios in different feature files, that run every day. All the scenarios run perfectly some days but sometimes, we are seeing Failed: timeout with out any specific reason.
Below is the Protractor config file.
exports.config = {
      //seleniumAddress: 'http://localhost:4444/wd/hub',

      specs: ['./features/login_test.js', './features/login_errors_test.js', './features/settings_test.js'],
      framework: 'jasmine2',
      capabilities: {
        browserName: 'chrome',
      },

      jasmineNodeOpts: {
        defaultTimeoutInterval: 6000000
     },
}

Below is the error seen after few scenarios passed, from here all the scripts do fail.

Failed: timeout   (Session info: headless chrome=71.0.3578.98)   (Driver info: chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.13.6 x86_64)

stdout:
TimeoutError: timeout
(Session info: headless chrome=71.0.3578.98)
(Driver info: chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.13.6 x86_64)
at Object.checkLegacyResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:441:30)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
From: Task: WebDriver.navigate().to(https://myurl.com)

Any help would be appreciated to handle the above!
Bug report

Node Version: 8.12.0
Browser(s): Chrome
Operating System and Version Windows 8.1 and Mac OS X 10

@juliemr , can you pls look into this and help me out!

Hi, @dhee0807 ! Could you please provide test example? It seems that there could be issue with tests suites.

Hi, @IgorSasovets , we use hiptest framework.
Below is my spec file
`describe('Login', function () {
beforeEach(function () {
this.actionwords = Object.create(require('./actionwords.js').Actionwords);
});
it('LOGN_01 Verify if the login option present is settings (uid:1)', function () {
this.actionwords.iLaunchTheApplication();
// Given I am not Logged in and I am on Home page
this.actionwords.iAmNotLoggedInAndIAmOnHomePage();
// When I navigate to Settings option
this.actionwords.iNavigateToSettingsOption();
// When I select the "Settings_HomePage"
this.actionwords.iSelectTheP1("Settings_HomePage");
// Then I should see the "LoginButton_SettingsPage"
this.actionwords.iShouldSeeTheP1("LoginButton_SettingsPage");

});
});`
Below is the actionword.js:
`exports.Actionwords = {
loc: Object.create(require('../common/locators.js').locators),
commonfunc: Object.create(require('../common/commonfunctions.js').commonfunc),
iLaunchTheBTSportApplication: function() {
browser.get('https://****app.com');
browser.manage().window().maximize();
browser.executeScript('window.sessionStorage.clear();');
browser.executeScript('window.localStorage.clear();');
browser.manage().deleteAllCookies();
browser.refresh();
//this.iSwitchTheEnvToStub();
browser.wait(EC.presenceOf(this.loc['Menu']), 3000, 'Home page not loaded yet');
if (this.loc['Menu].isPresent()) {
  this.loc['Menu'].getAttribute('class').then(activeClass => {
    if (activeClass.includes('focus')) {
      this.commonfunc.pressKey('Down');
      browser.wait(EC.visibilityOf(this.loc['LoginToWatch']), 3000, 'CTA not visible');
    }
  });
}

},`
These are sample files and we follow the same template for all specs and every actionword is implemented in actionword.js
Thanks,
Dheeraj

@dhee0807 , try move this.actionwords.iLaunchTheApplication(); function call to the beforeEach hook.

Also, try to run these tests and provide feedback about the results.

@IgorSasovets ,

@dhee0807 , try move this.actionwords.iLaunchTheApplication(); function call to the beforeEach hook.

Hi @IgorSasovets , we intentionally kept iLaunchTheApplication in every step as per our requirements as we clear cookies and launch in each test case.
Secondly as a work around I have added browser.refresh() in the same iLaunchTheApplication function to avoid the url blank.
Also I have seen the same tests you provided and I have implemented the same way!
Thanks and appreciate for your time! Will comment further on my runs as currently no refresh issue.
Dheeraj G


Optimize McKay decomposer

The main optimization is the replacement of np.cross with a direct calculation for 3d vectors.
# on develop
%timeit myCircuit.decompose_mckay()
1.24 ms ± 54 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each)
# this PR
In [4]: %timeit myCircuit.decompose_mckay()
686 µs ± 79 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each)

@pablolh

I like your PR more for the nice code improvements than for the performance gain (we target feature and API over performance for now). The replacement of np.cross for pure performance reasons is debatable to me - you add more code and the performance gain will likely not be noticeable (this algo takes roughly linear time in the number of gates).

Fair argument. Let me know if you want me to revert the changes to np.cross, I do not have a strong opinion here.

Fair argument. Let me know if you want me to revert the changes to np.cross, I do not have a strong opinion here.

Let's revert the np.cross change then :)
I'll keep in mind that this np.cross seems to not be optimal performance-wise (for short vectors?).

In general numpy has a very large overhead for short arrays (or scalars). For example:
> import math
>  import numpy
>
> %timeit math.sin(.2)
> %timeit numpy.sin(.2)
102 ns ± 8.93 ns per loop (mean ± std. dev. of 7 runs, 10,000,000 loops each)
710 ns ± 37.5 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)

And np.cross in particular has a lot of overhead because it is much more general than a simple 3d vector cross.

In general numpy has a very large overhead for short arrays (or scalars).

That is very good to know indeed!
In this particular case I am using numpy for the mathematical functions it provides, not for its compact arrays and fast C implementation of linear algebra. So probably indeed not the best use case for numpy, since this is just a 3d vector... Do you know an alternative library for this? We could implement cross product with native Python types ourselves but I also feel this is already implemented somewhere... with tests and assertions and corner cases and...
(I am also using numpy in a more standard way when I build the circuit matrix, which is kind of circuit simulation, therefore performance-heavy and appropriate for numpy.)

Unfortunately, there is no good lightweight (e.g. performant for small arrays) alternative to numpy. There is https://github.com/kwant-project/tinyarray, but the arrays are immutable. One can use cython or numba to increase performance, or use extensions such as rust.


⚠ Bofrost.fr has degraded performance

In 274a4cf, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1105 ms

Resolved: Bofrost.fr performance has improved in 9e6a2b6 after 6 minutes.