Add another prompt control string that prints out the current path relative to the repository root.

I find this useful as I do not print the full path in my prompt normally. This works especially well if you include a newline at the end of your git-radar prompt. Here is how it looks with my prompt:

My prompt string:
GIT_RADAR_FORMAT="\\x01\\033[1;32m\\x02→\\x01\\033[0m\\x02 \\x01\\033[1;36m\\x02%{git_path}\\x01\\033[0m\\x02 \\x01\\033[37m\\x02git:(\\x01\\033[0m\\x02%{remote: }%{branch}%{ :local}\\x01\\033[37m\\x02)\\x01\\033[0m\\x02%{ :stash}%{ :changes}\\x01\n\\x02"

Looks good. Interesting idea. I personally wouldn't use it but I can see where it would be useful. Like a project aware directory indicator telling you where you are inside your project.
It is however untested. Which would mean preventing breaking with future changes would be difficult.
Can you add tests for:

the git_path function:

to prove it's use-case
cover some of the corner cases (not inside a git repo, inside the .git folder, inside a folder in the repo that is then deleted)

the render_prompt function (tested in test-format-config.sh):

when the new control string is in the format
when the new control string is not in the format
when the new control string is in the format with a prefix
when the new control string is in the format with a suffix

That should ensure that the new indicator doesn't break on future changes.

Thanks for the feedback! I will work on adding the tests.


Translation Source Organization

Currently, the Account Settings page does not prompt for a source for translations.
Concept:

Add (and require) a prompt for the org from which the translation work will be done
When user opens, say, Titus Literal, then two windows should open:

the source literal text
the target literal text

If the target text does not exist, then a template should be opened to give them a place to start

Notes:

This implies that the windows will always be paired.
It implies that users cannot start without the source text - it must exist. They could not, for example, attempt translation from a paper copy of the source.

@birchamp After the call today, this need occurred to me. Might be overly restrictive... thoughts?

Branch Management
Overview and Definitions
In translation scenarios, there is always a source and target, a "from" language text and a "to" language text.
Even when a translator is simply reviewing or editing their own work, there is also a source and target. The source will be the work-in-progress in the master branch and the target will be the updates in their user branch. I call this the "editor" scenario.
Both source and target work occur in organizations and in a language and for a resource type. Importantly, the work exists in a repo, which equates to an organization, language, and resource type.
For an editor, there is only a single repo involved. They are updating content in a repo, not translating it.
For a translator, two repos are involved. One is the source repo; and the other is the target repo. The source repo is view-only. The target repo will receive updates made by the translators.
Editor Scenario
In this scenario, a single repo is involved.
Source: content is read from the master branch. This is on-going work-in-progress that has been approved, but not yet released (unless no updates have been made since the last release).
Target: content is read from editor's user branch. If it doesn't exist yet, it is read from the master branch. If any changes are saved, a user branch will be created if it doesn't exist and the changes saved into their branch.
Translator Scenario
In this scenario, two repos are involved.
Source: content is read from the source organization, language, and resource type, which equates to a repo in DCS. This is view only access. The content will come from the latest release for that repo; it will not from from the source repo's master branch (which is work in progress).
Target: content is read from target organization, language, and resource type, which equates to a (different) repo in DCS. In that repo, it is read from the translator's user branch.

If the translator does not have a user branch yet, it will be read from the target master branch.
If the content does not exist yet in the master branch (indicating that this is new translation work), then it will come from the source's latest released. (see note 1)
Regardless of where the content for the target is obtained, once changes are made and saved, they will be saved to translator's user branch in the target repo.

Notes

A translator may wish to 'stick' with a released version of the source during a work effort. This would require persisting this preference somewhere in DCS. Since the translator may use different computers, it cannot be reliably stored locally. At this time, there is no solution proposed to store preferences in DCS. Thus in the above description, the source is said to come from the latest released.

@mandolyte about:

At the moment no solution has been proposed to store the preferences in the DCS.

I always thought that the "source" property of the manifest.yml could work for that, that is, we could define which version we should use as source in the repo manifest.
This is a scenario that has happened to us:

We start translating using a version of a resource as source.
While we are working, there is a new released version of that source.
When we finish, without realizing it, we have worked using two different versions as sources.
When we are publishing our translation, it is not clear which version we should declare in the manifest that we have used as source.

Since, once we finish the draft it is reviewed by academics, I think it is not a big problem in terms of the quality of the translation, but it has confused me when I needed to state which was our source for the translation.

I think if the software reads the manifest it already knows which released version it should try to load first as the source.
Then we should be able to change the source if necessary using some drop down select input and that preference should be stored in the browser, but there should be a button or some way to save that change in the manifest if we decide that's the one we're going to use.
Maybe this should be a gA concern, but I see this as something that could be handy to have in the application.

@abelpz I have contended that the manifest cannot serve this role because it represents data for the entire repo. Source versions should be associated with individual files.
Consider this scenario I described some time ago in Zulip: https://unfoldingword.zulipchat.com/#narrow/stream/207526-Tools---UR/topic/On.20Versioning/near/295839989
Possibly, the source version could be stored in the projects section. But there is also a risk of multiple updates to the manifest by a larger team that could lose data. You might minimize the chances of data loss by re-accessing the manifest just before you update to see it has changed since you updated it yourself. But this is no guarantee that another user on a different computer is doing the same thing. One of your changes will be lost.

So I think the manifest could still be used. The source version would be the default version to open. If the user chooses to see a different version for a particular book that can be stored within the app's settings. gE already stores layout and book selection. It should be clear to the user that this isn't the default version, like the version number is in red or has a yield sign beside it.
If a team wanted to change the default source an admin could do that in gA.
Finally if we have a call for versions per book we already list the books in the manifest. It wouldn't break anything to later add a source version for each book.


错误  错误  error

Why did I make this mistake？
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.

Hi @dingyan1478,
Can you please provide some more information on what you're trying to run and on your environment?

Hi!
I want to use the network to train my data sets, which are underwater data sets, clear underwater images and color biased underwater images. My server has some problems recently, so I use the windows system's Pytorch to run. I don't know if it's the system's reason. I've changed the path of the data sets.
Thank you!

We haven't tested the code on windows, but it should work if you configure your environment correctly and have correct CUDA configurations.
I searched the error you got and found this thread that could be useful: https://github.com/HRNet/HRNet-Semantic-Segmentation/issues/39
Regarding running on windows, this may be useful: https://github.com/eladrich/pixel2style2pixel/issues/29


Error ['git', 'rev-parse', '--short', 'HEAD'] after updating for first time

I encountered the following problem after updating InvenTree for the first time.
I installed InvenTree 0.1.5 following the installation instructions but using zip download of the source instead of the git command. Everything worked flawlessly until I tried to upgrade to 0.1.7.
Trying to download the new release zip files and overwrite the old files did not work well.
The login page still worked but the index page crashed with error:
CalledProcessError at /index/
Command '['git', 'rev-parse', '--short', 'HEAD']' returned non-zero exit status 128.

Seems like the about.html can not generate a hyperlink to Github because it is missing the commit hash, probably due to the install method of using the zip releases and not using git pull.
Switched to using git clone and git pull to work with the InvenTree files works better.
Maybe add a hint in the docs that using git is the recommended way or adding more update information for Installations which used zip files and add an exception for the git rev-parse command?

@SchrodingersGat About this, shouldn't users be warned that, as InvenTree is updated so frequently, the zip install is not recommended?


Vet Clinic Database

Database requirements

Created new features for the owners and visits tables

ALTER TABLE owners ADD COLUMN email VARCHAR(120);

Created data to fill these new columns

INSERT INTO owners (full_name, email) SELECT 'Owner ' || generate_series(1,2500000), 'owner_' || generate_series(1,2500000) ||<EMAIL_ADDRESS>INSERT INTO visits (animal_id, vet_id, date_of_visit) SELECT * FROM (SELECT id FROM animals) animal_ids, (SELECT id FROM vets) vets_ids, generate_series('1980-01-01'::timestamp, '2021-01-01', '4 hours') visit_timestamp;

Made queries to the database using explain analize

EXPLAIN ANALYZE SELECT COUNT(*) FROM visits where animal_id = 4;

EXPLAIN ANALYZE SELECT * FROM visits where vet_id = 2;

EXPLAIN ANALYZE SELECT * FROM owners where email =<EMAIL_ADDRESS>

We decided to improve access by creating indexes on these columns, therefore the processing time will drop.

CREATE INDEX idx_animal_id ON visits(animal_id);

CREATE TEMPORARY TABLE temp_visits AS SELECT * FROM visits WHERE vet_id = 2;
CREATE INDEX temp_id_vet_id_p ON temp_visits (vet_id);

CREATE INDEX idx_email ON owners(email);

Updated the PR with the new table query

@V-Blaze please mark the project as accepted so I can submit it, thanks in advance.


svg:image not preprocessed correctly in firefox, IE

readium-js.js has a function resolveDocumentImages which replaces a reference to an image with the url of a blob holding the image.
I have an epub which has a cover page image, with markup like this:
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 1053 1600">
<svg:image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../images/9780802712103.jpg" transform="translate(0 0)" width="1053" height="1600"/>
</svg:svg>

The call to resolve the image tag (<svg:image....) using the following line of code works on chrome,
resolveResourceElements('image', 'xlink:href', 'blob', resolutionDeferreds, onerror);
because jquery matches the selector image[xlink:href]
But jquery on firefox or IE does not match.  I added another line, after the above line,
            resolveResourceElements('svg\\:image', 'xlink:href', 'blob', resolutionDeferreds, onerror);

This matches in Firefox and IE, and (more importantly) does not match in Chrome, so the combination fixes IE and Firefox.  So the method becomes
        function resolveDocumentImages(resolutionDeferreds, onerror) {
            resolveResourceElements('img', 'src', 'blob', resolutionDeferreds, onerror);
            resolveResourceElements('image', 'xlink:href', 'blob', resolutionDeferreds, onerror);
            resolveResourceElements('svg\\:image', 'xlink:href', 'blob', resolutionDeferreds, onerror);
        }

Version information:
Chrome Version 47.0.2526.106 m
Firefox 43.0.4
IE 11.0.9600 update 11.0.23
(Should I make a pull request for this?)

Note: a similar issue was solved for epub:switch some time ago (document.querySelectorAll(...) instead of $(...), but same XML namespace matching problem).
https://github.com/readium/readium-shared-js/blob/develop/js/models/switches.js#L55
    var getQuery = ((window.navigator.userAgent.indexOf("Trident") > 0) || (window.navigator.userAgent.indexOf("Edge") > 0))
        ? function (elementName) { return 'epub\\:' + elementName; }
        : function (elementName) { return elementName; };

    _.each(dom.querySelectorAll(getQuery('switch')), function(switchNode) {

...

    });

My only concern with the proposed svg\\:image matcher for element names is that svg may not be the only namespace prefix for SVG XML fragments. Thoughts?

Alternatively: elementNode.getElementsByTagNameNS("*", "svg");?

I guess, what you think is best.  All I can tell you is that on FF something else is needed.  And it really surprises me that jquery functions differently on the two browsers; maybe this is a jquery bug?
From: Daniel Weck<EMAIL_ADDRESS>Sent: Monday, January 18, 2016 10:58 AM
To: readium/readium-js-viewer<EMAIL_ADDRESS>Cc: Robert Hanson<EMAIL_ADDRESS>Subject: Re: [readium-js-viewer] svg:image not preprocessed correctly in firefox, IE (#461)
Alternatively: elementNode.getElementsByTagNameNS("*", "svg");?
—
Reply to this email directly or view it on GitHubhttps://github.com/readium/readium-js-viewer/issues/461#issuecomment-172589198.

Hi Daniel, I should introduce myself
I’m “kimtuck”, otherwise known as Robert Hanson.
I’m a consultant for sdg, a software consulting firm in Minneapolis.  I’m currently working for Bibliotheca, a company that provides library solutions to public and private libraries all over the world.  I’m working on a version of our client apps, a web-based app that allows people to check out books and read them through a web browser.
So of course, I’m using Readium.  My UI is just about finished, and I’m testing with a range of books on different browsers, and I’m finding issues that need to be addressed.  I’ll try to find workarounds which may or may not be appropriate for incorporation into the baseline,   because of course I’m not completely familiar with the code, and I’m not writing or running unit tests for readium.
So I’ll suggest fixes, but leave it up to you as to whether you want to incorporate my fixes or do something else.
From: Daniel Weck<EMAIL_ADDRESS>Sent: Monday, January 18, 2016 10:58 AM
To: readium/readium-js-viewer<EMAIL_ADDRESS>Cc: Robert Hanson<EMAIL_ADDRESS>Subject: Re: [readium-js-viewer] svg:image not preprocessed correctly in firefox, IE (#461)
Alternatively: elementNode.getElementsByTagNameNS("*", "svg");?
—
Reply to this email directly or view it on GitHubhttps://github.com/readium/readium-js-viewer/issues/461#issuecomment-172589198.


[blitz] Update to the latest commit and fix no dll and lib generated

There are no dlls or libs generated by blitz current version on Windows platform in vcpkg.
So I update this port to the latest commit to fix this issue.
Related issue #10531
Note: No features need to test.

Dear @NancyLi1013  how can try to install Blitz via vcpkg with this PR?
It is possible to tell at vcpkg to use your repo instead its one?

Done, I directly changed the value in my portfile.cmake.
And....... it works!! The DLL and library (static and dynamic) are properly copied at good places.

Tested for x64-windows, installed is OK.
For x86-windows, compilation seems to failed.

Finally it passed for x86-windows, the first there was an error about the write operation around genvecbfn.exe tools.
So it is OK under Windows 10, with standard tools provided by vcpkg (CMake 3.14.0 + Python 2.7.16)

/azp run


[meshoptimizer] Updating to 0.18 and adding gltfpack feature

Describe the pull request

What does your PR fix?
Updates mesh optimizer and adds the ability to depend on gltfpack as a tool

Which triplets are supported/not supported? Have you updated the CI baseline?
All the same as before

Does your PR follow the maintainer guide?

Yes

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Feature gltfpack is tested successfully in the following triplet:
x86-windows
x64-windows
x64-windows-static
x64-linux


Graph CLI fails to install

Which packages are impacted by your issue?
@graphprotocol/graph-cli
Describe the issue
Graph CLI currently fails to install.
pnpm i @graphprotocol/graph-cli @graphprotocol/graph-ts
 WARN  deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
 WARN  deprecated<EMAIL_ADDRESS>This module has been superseded by the multiformats module
 WARN  deprecated<EMAIL_ADDRESS>This module has been superseded by the multiformats module
 ERROR  Could not resolve feat/smaller to a commit of https://github.com/hugomrdias/concat-stream.git.

This error happened while installing the dependencies of<EMAIL_ADDRESS> at<EMAIL_ADDRESS>
pnpm: Could not resolve feat/smaller to a commit of https://github.com/hugomrdias/concat-stream.git.
    at resolveRefFromRefs (/snapshot/dist/pnpm.cjs)
    at resolveRef (/snapshot/dist/pnpm.cjs)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async resolveGit (/snapshot/dist/pnpm.cjs)
    at async Object.resolve (/snapshot/dist/pnpm.cjs)
    at async run (/snapshot/dist/pnpm.cjs)
Progress: resolved 139, reused 139, downloaded 0, added 0

Reproduction
f
Steps to Reproduce the Bug or Issue
pnpm i @graphprotocol/graph-cli @graphprotocol/graph-ts
Expected behavior
It works
Screenshots or Videos
No response
Platform

OS: Mac

Subgraph Manifest
No response
Subgraph GraphQL Schema
No response
Additional context
No response

should be patched in<EMAIL_ADDRESS>


More documentation for remote-expr

Is it possible to get a bit more documentation on remote-expr please?
For example, I'm not sure why I'm getting:
➜  / nvr --remote-exp "checktime"
Evaluation failed: checktime

In the output of nvr -h?
Commands came first (ancestry of vi) and the scripting language later, that's why Vim distinguishes between commands (starting with :) and expressions (like variables or functions; :h expression, h function-list).
So, in your case you want nvr -c checktime instead.

Beaut, thanks! Working for me now but the richer feedback may help others in the future.
(I'm writing a function to to send the ZSH mode to Neovim when running ZSH in a terminal in Neovim so I can have one consistent statusline.)

Okay! Thanks for the feedback. I pushed v1.8.6 to PyPI.

Thanks for your previous help.
What if the command takes an argument?
I'm trying to do something like this in my .zshrc:
reload() {
 source ~/.zshrc
 tmux source-file ~/.tmux.conf
  # nvr -c source ~/.config/nvim/init.vim
}

Put quotes around it to make zsh evaluate it as a single argument:
nvr -c 'source ~/.config/nvim/init.vim'

thanks


fixed fs for newer version of fs/node

On newer versions of FS, they require async functions to have a callback.
Since fs.close is an async, it throws an error when you run the code (and crashes everything).
fs.close
fs.closeSync

Thank you!


notification_sounds: Add sounds created by @stwime.

These are all good notification sounds that may fit taste of
different users.
I tested all the sounds, and they are all notification sounds that someone would like to set as default. I renamed some of them for naming.

@amanagr can you document the license for these in docs/THIRDPARTY?

@amanagr can you document the license for these in docs/THIRDPARTY?

I note that all of these are tonal sounds that are good for grabbing attention, but it might also be nice to have more subdued atonal options along the lines of zulip.ogg?

I note that all of these are tonal sounds that are good for grabbing attention, but it might also be nice to have more subdued atonal options along the lines of zulip.ogg?

I note that all of these are tonal sounds that are good for grabbing attention, but it might also be nice to have more subdued atonal options along the lines of zulip.ogg?

I have just added 10 more atonal sounds to my pack, maybe some of them are what you are looking for? I have to say that making atonal sounds is much more difficult, as my background definitely is not sound effects. But I think some of them turned out decent and could definitely be used

I note that all of these are tonal sounds that are good for grabbing attention, but it might also be nice to have more subdued atonal options along the lines of zulip.ogg?

I have just added 10 more atonal sounds to my pack, maybe some of them are what you are looking for? I have to say that making atonal sounds is much more difficult, as my background definitely is not sound effects. But I think some of them turned out decent and could definitely be used

Updated the PR with the sounds I thought would be liked by people.

Updated the PR with the sounds I thought would be liked by people.

Merged, huge thanks for creating these @stweil!  (And thanks for doing the integration work @amanagr).
We will likely down the line want to sort them in the list based on some metric of how many folks have selected them, just to make it easier to find sounds folks might like, but we can think about that once enough folks have played with them.


Sol kit update release calendar

Adaptation Insights (part of Solutions Kit) is now in private beta.
@dlhartveld can provide additional details if needed.

Closing due to out of date develop.


add update to info

What's the reason for needing this?

we do a lot of this in gdsfactory
c.info.update(**info_settings)

Then you only need the dict and not the info object one, right?
That makes this way easier. If you don't need iterable and Info object, I don't see why we should add it here. It just makes the signature unreadable.

Yes, good point

Looks good to me,
feel free to merge

included in this one
https://github.com/gdsfactory/kfactory/pull/273


Large request body stalls request

Description
When the request body is somewhere in the range 2-3 MB, it becomes impossible to send the request, the function never finishes. In fact, the function code never starts, it seems like it's func.exe that is still executing. This limitation is not found for in-process dotnet functions.
How to reproduce

Create a new Azure Functions (out-of-process) from template
Run project and send a post request to http://localhost:7071/api/Function1 with a request body that amounts to 3 MB

Expected result
The default response returns immediately
Actual result
The function seems to execute forever (or at least for a very long time, more than minutes) without response

It also seems like after the first large request, the function app doesn't respond to anything. Meaning someone can deny access to the full function app by sending a large request body with just garbage data.

I have confirmed that this problem appears not only using func.exe locally, but also in deployed state in Azure. I have to restart the function app to get it to work again.


Float class (backend)

Backend implementation of the Float class, without the frontend (parsing). At this stage, Floats are instantiated via String#to_f.
Two related additions are made to the codebase:

the Numeric interface, common to Float and Integer; currently it's only a lightweight, convenient, interface, not a full/visible Goby class
the static method toBooleanObject(), which replaces the boilerplate for converting Go boolean values to a Goby boolean Object

This PR closes the backend side of #379.

Reference: Ruby strategy for cross-data type operations:
/*
 * call-seq:
 *   float + other  ->  float
 *
 * Returns a new Float which is the sum of +float+ and +other+.
 */

static VALUE
flo_plus(VALUE x, VALUE y)
{
    if (RB_TYPE_P(y, T_FIXNUM)) {
  return DBL2NUM(RFLOAT_VALUE(x) + (double)FIX2LONG(y));
    }
    else if (RB_TYPE_P(y, T_BIGNUM)) {
  return DBL2NUM(RFLOAT_VALUE(x) + rb_big2dbl(y));
    }
    else if (RB_TYPE_P(y, T_FLOAT)) {
  return DBL2NUM(RFLOAT_VALUE(x) + RFLOAT_VALUE(y));
    }
    else {
  return rb_num_coerce_bin(x, y, '+');
    }
}

And (see https://silverhammermba.github.io/emberb/c/):
There are a host of “NUM” macros that try to be more duck-typish about things. These will convert their C types to whatever Ruby Numeric subclass seems appropriate:

...
DBL2NUM() for double

@st0012 should the equivalent of Integer#to_intNN be implemented for Float? For example, Float#to_float32? I don't know this design/concept, since there's nothing similar in Ruby.

@saveriomiroddi The purpose for those methods is for calling Go functions. For current Integer class, those methods just change integer object's flag, and those flags only will be used when the integer is passed as Go function's parameters.
But I think I'll change the implementation of this by letting methods like to_int8 return a GoObject that really contains the int8 type integer. Because mutation is bad.

@st0012 ready for review.

BTW thanks for reorganizing our integer tests at the same time 👍


CASMPET-6979 fix command getting active_mgr_version in storage node upgrade

Description
An edge case was hit on Rocket. For some reason, the mgr ceph daemons do not have a random string at the end of their name. Their names are
mgr.ncn-s001
mgr.ncn-s002
mgr.ncn-s003.qwflht
This means that when the storage node upgrade tried to get the version for the active mgr, it search for all Ceph daemons that contained the node name only. For example, if mgr.ncn-s002 was the active mgr daemon, the upgrade searched for versions of daemons with the name ncn-s002. This happens to be many different daemons.
The fix in this PR make the command look for daemons with the name mgr.ncn-s002 which results in getting only the correct version.
This error is an EDGE CASE and I am not sure how Rocket go into this position.

Checklist

[x] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[x] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[x] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport release/1.5


Move Items

Mod Version & Minecraft Version
I am using 1.21.3 and the newest mod-version.
Describe the feature
I want to be able to press and hold a key (configuarable) to move all stacks of one item into the other inventory.
Screenshots
If applicable, add screenshots to help explain your feature.
Additional context
For example, I am at a chest with 9 stacks of dirt, and I want to move all the dirt into my inventory. I want to just press a key and do a normal mouse click and everything moves the inventory.

Hi there,
Actually this feature is already included in Minecraft out of the box. You need the item you wanna move in your hand and then shift+double click on other stacks with the same item.
We are aware it is not as convenient but we don't want to invest time into something that is already perfectly working and doesn't add anything new into the game. It just like bloats our mod with load of stuff. The name "Inventive" stands for new, innovative features, not for rethinking existing ones.
Thanks for the idea though!


Replacing executor_information_traits

This is the third in a row of pull requests targeting the removal of the executor traits while replacing then with separate customization points. This PR foicusses on replacing the former executor_information_traits.

@sithhell Your comments have been addressed.


Undefined is not an object(reactNative.View.PropType.style')

<AdMobBanner
          adSize="fullBanner"
          adUnitID="ca-app-pub-9757359219487544/6438054726"
          testDevices={[AdMobBanner.simulatorId]}
          onAdFailedToLoad={error => console.error(error)}
        />

<AdMobBanner
          adSize="fullBanner"
          adUnitID="ca-app-pub-9757359219487544/6438054726"
          testDevices={[AdMobBanner.simulatorId]}
          onAdFailedToLoad={error => console.error(error)}
        />

I am facing the same issue, did you find a solution?

Step-1. Add below line at top in node-modules/react-native-admob/RNAdmobBanner.js and RNPublisherBanner.js
import PropTypes from "prop-types";
Step-2. Delete these line from both file(May be line no is 48 and 50 respective)
style: View.propTypes.style
Step-3. Change this words in both file
React.PropTypes ===> to ===> PropTypes
old Content=>
bannerSize: React.PropTypes.string,
adUnitID: React.PropTypes.string,
testDeviceID: React.PropTypes.string,
adViewDidReceiveAd: React.PropTypes.func,
didFailToReceiveAdWithError: React.PropTypes.func,
adViewWillPresentScreen: React.PropTypes.func,
adViewWillDismissScreen: React.PropTypes.func,
adViewDidDismissScreen: React.PropTypes.func,
adViewWillLeaveApplication: React.PropTypes.func,
admobDispatchAppEvent: React.PropTypes.func,
new content should be like this=>
bannerSize: PropTypes.string,
adUnitID: PropTypes.string,
testDeviceID: PropTypes.string,
adViewDidReceiveAd: PropTypes.func,
didFailToReceiveAdWithError: PropTypes.func,
adViewWillPresentScreen: PropTypes.func,
adViewWillDismissScreen: PropTypes.func,
adViewDidDismissScreen: PropTypes.func,
adViewWillLeaveApplication: PropTypes.func,
admobDispatchAppEvent: PropTypes.func,

Actually using latest version of admob solved it.

please send version

what I did was:

yarn remove react-native-admob
yarn add react-native-admob@next

I just tried to implement it (v.1.3.2) and still facing this exception for interstitial Ads, but in fact it seems this is triggered on the momment of Import - how to handle it?

Also still facing this issue


Bazel CI fails with Bazel@HEAD

Breakage example: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2091#c17c0576-e53f-40b5-8519-7b4e70af06b2
Culprit: https://github.com/bazelbuild/bazel/commit/7800ff9eb2dc0b4b3b7a2e6b8a908078f3e73d3b
Temporary solution: Run CI builds with --incompatible_enable_exports_provider. We'll need to follow up to fix these builds before the flag may be removed.

Temporary solution PR: https://github.com/bazelbuild/rules_proto/pull/92

Can you upgrade rules_jvm_external used in rules_proto? It has been fixed not to use exports provider and it works with older Bazel versions as well.

Whoops, even worse, I misread the breakage and it's for https://github.com/protocolbuffers/protobuf, not rules_proto.


安装后以后，一直报错，无法使用。

Describe the bug

package.json type设置为“module”也没用。
Reproduction
暂无
System Info
pnpm chrome vscode eslint

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

For VSCode, we should enable "eslint.experimental.useFlatConfig": true

Added to README


bug: Autocommands caused command to abort

Describe the bug
When I :wq with sidebar open, it shows this message:

To reproduce
Open sidebar, select split with file that you are editing, type :wq
Expected behavior
Closes vim
Installation method
Use lazy.nvim:
{
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    -- add any opts here
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-treesitter/nvim-treesitter",
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
}

Environment
❯ nvim -v && uname -a
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info
Linux Monday 6.6.54 #1-NixOS SMP PREEMPT_DYNAMIC Fri Oct  4 14:30:05 UTC 2024 x86_64 GNU/Linux
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    -- add any other plugins here
  },
})

Any news on this? Is kind of anoying to not be able to close my editor with the avante window opened without needing to close it and then close the editor...

Can you dump your nix config here?

Sure, not sure how it is related but here you go :) https://github.com/gytis-ivaskevicius/nix2vim/blob/master/modules/ai.nix#L48-L52


Fix xdg-shell stable popups

The anchor and gravity enums are no longer a bitfield. That was fun to debug and fix.
Fixes #916

Thanks!


Uncaught exception: Error: EPERM: operation not permitted, open kubectl.exe due to Lock file is already being held

Describe the bug
Sometimes, when switching the cluster I get the following error
Uncaught exception:
Error: EPERM: operation not permitted, open
.../kubectl.exe

I've installed lens successfully on my windows machine and I also could successfully add clusters. I also can see cluster details, seems all fine. However sometimes, when I switch the cluster, I get the error mentioned above. After clicking ok, I can continue working
To Reproduce
Steps to reproduce the behavior:
TBD
It usually happens when I switch to another cluster, but not always
Expected behavior
I do not expect any error when switching the cluster
Screenshots
See above
Environment (please complete the following information):

Lens Version:
OS: Windows Server 2016
Installation method (e.g. snap or AppImage in Linux): download and execute binary

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
←[31merror←[39m: Failed to get a lock for 1.18.0
←[31merror←[39m: Lock file is already being held {"code":"ELOCKED","file":"C:\\Users\\sc146082as\\AppData\\Roaming\\Lens\\binaries\\kubectl\\1.18.0"}
←[31merror←[39m: Failed to get a lock for 1.18.0
←[31merror←[39m: Lock file is already being held {"code":"ELOCKED","file":"C:\\Users\\sc146082as\\AppData\\Roaming\\Lens\\binaries\\kubectl\\1.18.0"}

Having the same problem. It also "deletes" (0KB) the kubectl.exe after that happens.

#778 probably fixed this by releasing the lock when downloading of kubectl fails.

I experienced the same issue:
Environment
Windows 7
Lens 3.5.3
I resolved it (work around) by manually downloading kubectl for the given version and placing it in the above mentioned folder before starting up Lens.

Thanks @nevalla I will check with 3.6.0

Hi, Lens update itself this morning to 3.6.0
Got this error now, on 1.18.8 kubectl.exe
Windows 10
Lens 3.6.0
Lens is not usable, trying to downgrade to 3.5.3

With 3.6.3 it's even worse. Getting the error every few seconds (2-10 seconds). Totally bad experience as you need to click it away ervery time.

Describe the bug
Sometimes, when switching the cluster I get the following error
Uncaught exception:
Error: EPERM: operation not permitted, open
.../kubectl.exe

I've installed lens successfully on my windows machine and I also could successfully add clusters. I also can see cluster details, seems all fine. However sometimes, when I switch the cluster, I get the error mentioned above. After clicking ok, I can continue working
To Reproduce
Steps to reproduce the behavior:
TBD
It usually happens when I switch to another cluster, but not always
Expected behavior
I do not expect any error when switching the cluster
Screenshots
See above
Environment (please complete the following information):

Lens Version:
OS: Windows Server 2016
Installation method (e.g. snap or AppImage in Linux): download and execute binary

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
←[31merror←[39m: Failed to get a lock for 1.18.0
←[31merror←[39m: Lock file is already being held {"code":"ELOCKED","file":"C:\\Users\\sc146082as\\AppData\\Roaming\\Lens\\binaries\\kubectl\\1.18.0"}
←[31merror←[39m: Failed to get a lock for 1.18.0
←[31merror←[39m: Lock file is already being held {"code":"ELOCKED","file":"C:\\Users\\sc146082as\\AppData\\Roaming\\Lens\\binaries\\kubectl\\1.18.0"}

https://github.com/lensapp/lens/pull/800 fixed this issue

With 3.6 you can define Download directory in preferences? Does that help? Also it's possible to disable downloading kubectl binaries and define path to your own kubectl binary.

Setting the path to my own kubectl binary works! Setting a different path, for example the desktop does not work.

Setting the path to my own kubectl binary works! Setting a different path, for example the desktop does not work.

when you defined desktop, did you see any binaries downloaded? Trying to figure out what is the actual problem here. I thought that app will release the lock on all situations, but apparently I am wrong.

It created the directory Desktop\binaries\1.18.8 and the kubectl.exe is just 0kb in size.

Hi, still happens in 3.6.7 :(
Are there any workarounds?

The problem is with the 0KB kubectl.exe file. Download kubectl manually from Kubernetes stores e.g. https://storage.googleapis.com/kubernetes-release/release/v**x.xx.xx**/bin/windows/amd64/kubectl.exe and replace 0KB file.
This works for me!

The problem is with the 0KB kubectl.exe file. Download kubectl manually from Kubernetes stores e.g. in my case https://storage.googleapis.com/kubernetes-release/release/v1.16.14/bin/windows/amd64/kubectl.exe and replace 0KB file.
This works for me!

That worked also for me sometime. But not always and you need to override it way too often.

Thanks @Ghebrehiywet : seems to be a good workaround.

Do you have any news about this issue?

The problem line is https://github.com/lensapp/lens/tree/67898152171cd8a9f6f927f12c47aa306105158c/src/main/kubectl.ts#L140.
A possible solution would be to notify the user in a similar manner to #2173

Still happens with Lens 4.2.3

Thanks for the information.

In my case I did similar as @simwak, disabled Download kubectl binaries matching the Kubernetes cluster version option in Preferences and than this does not fail (optionally you can set path to your own kubectl if is is not in your PATH already). Of course I might not be using cluster matching kubectl version as a consequence.
This is reproducible always on my setups (Hyper-V VMs with WinServer 2016). User that runs Lens is an admin on the machine and has no problem to create files in the destination folder. And I installed Lens only for that one user (but does not help even when I tried with Install for everyone). Lens version 4.2.4.
@Nokel81 - could you please explain why https://gihub.com/lensapp/lens/issues/736#issuecomment-806040167 is the problematic part and how would notification solve this issue?

Upgraded to Lens 4.2.5 today.
The first startup still threw the error but if I close Lens and restart it now I no longer get the error.
Note: I never stopped/started Lens multiple times a day before. Is it possible you get this error only once each day/each boot?
Side note which may or may not be relevant: the auto upgrade failed: Lens 4.2.4 prompted me to upgrade. After I accepted it removed Lens 4.2.4 and then nothing happened. I manually downloaded the installer for 4.2.5 and installed from scratch.
I'll open a separate issue for that but wanted to note it here in case it is relevant.

In my org we have firewalls preventing the download as it must use the provided proxy configuration within Windows. We can disable the download option and pre-provide the binary, but it seems odd that a pre-provided functional kubectl.exe is destructively overwritten with a zero-byte file. Surely the download should succeed to a temporary location before the file is overwritten?

This problem is gone for me ever since I setup HTTP Proxy in File->Preferences properly. New kubectl.exe is downloaded and I see no errors except of this one on the startup:

But that one seems to have no influence on Lens functionality.

Problem still occurs in 5.0.2-latest.20210705.2

Maybe I'll jinx it by posting too soon but I did not get the error on the first launch of 5.1.0.
I did still see it before when launching 5.0.2 before upgrading.

This problem is gone for me ever since I setup HTTP Proxy in File->Preferences properly. New kubectl.exe is downloaded and I see no errors except of this one on the startup:

But that one seems to have no influence on Lens functionality.

That issue is slightly different and was fixed by #3362


Preview sometimes causing a 404

Bug Description
As reported by @pbakaus, there seems to be a case where the preview causes a 404.
I was not able to reproduce this, but my guess is that the autosave when clicking "Preview" somehow does not fully work, and then it tries to preview an auto-draft instead of the draft, or perhaps there is not even a draft.
Expected Behaviour
Preview should not cause 404s
Steps to Reproduce

Do ????
Click "Preview" to preview the story
A new tab opens with something like https://example.com/?post_type=web-story&p=1234&preview=true in the address bar
That tab shows a WordPress 404 page instead?

Screenshots

Additional Context

Plugin Version: 1.0.0-rc.1 / main
Operating System:
Browser:

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

Related: #5963

Related: #5963

Doesn't seem to happen anymore


Error loading the depth map script

Hi, I am very new to stable diffusion web ui and I managed to install it and make it run by watching some tutorials on youtube. I discovered the depth map extension and wanted to use it to create pointcloud like visuals inside of TouchDesigner. But unfortunately, everytime I boot the Automatic1111 web ui, it shows "Error loading script: depthmap_api.py".

what could be the possible solution for this? Please help me out and thank you so much!

Same here, it just a sourse of endless bugs, I added several packages, and installed an outdated jax bot this pile of software still has a lot more bugs and refuses to start. The best solution is just to delete and forget this crap.

I think it should be fixed by now @larinius @knordest could you please test?


Offert to limit a function's analysis to LLIL when full analysis is impossible

In this CTF challenge ch30.zip from root-me (https://www.root-me.org/en/Challenges/Cracking/ELF-x64-Crackme-automating), the function 0xac5 is too large to fully analyze and lift to HLIL, making it hard to automate the solution.
While this is NOT a limitation of BN -- IDA similarly cannot properly decompile it due to its enormous size -- binja users may find it harder to deal with the challenge because now the only viable way is to work with the disassembly. However, since we prefer the users to do analysis on ILs (see https://github.com/Vector35/binaryninja-api/issues/4439), we offer limited ways to extract information from the disassembly. For example, there is no easy way to get the nth operand in a disassembly instruction. Working with the tokens of each instruction is a viable alternative, but it is quite verbose and not robust.
To deal with this, we can offer to lift the function to LLIL and then stop the analysis there. Since LLIL is light-weight, it is unlikely that the lifting will cause OOM. The benefit is obvious, LLIL is a structured representation of the code and the users can access it efficiently.

The LLIL-only lifting also works for this sample: https://crackmes.one/crackme/5ee1f28c33c5d449d91ae7c0

Here is a workaround for this, we can set analysis.mode to basic to force ALL functions to be analyzed and lifted only to LLIL. It is different from what wanted, i.e., selectively limit the analysis of certain functions, but it works fine for the two files I mentioned.

I am closing this because we have a workaround for it and #2924 will support fine-grained control of function analysis


Lists as input to "Beam" component gives an error

One of the participants in the training Tuesday got this error when trying to create several beams. For some reason, it worked when we grafted the curve and section input, but it should work for lists as well?

This is expected using the component in the screenshot. There are two components to construct a beam. One of them must receive a list of sections for each curve. The other simple component would work as you expect in this case.
This is a frequently asked question, I think we should merge the two beam.construct components into one and have a different way to construct beams with multiple sections

Okay, I understand (y) If this is a common question it might be good to see if there is anything we can do to make it easier to understand

yes.
it is not an easy concept for beginners.
One idea, would be to create a component with start-section, end-section as input and create a logic from it.

One idea, would be to create a component with start-section, end-section as input and create a logic from it.

Beware that it is totally valid to have a beam with 3 or more sections in FEM-Design. Not just start and end. Example:

A problem with creating a component having start-section and end-section instead of list input is that you will end up with start-eccentricity, start-connectivity as well totalling 6 input parameters. I would recommend that we direct the users to our docs:

instead of updating the component.

Hmm, maybe it would help just to change the naming, I think most people who want to create a beam find the component "Beam" (and not "BeamSimple").
"BeamSimple" I'm guessing is the normal beam that 99% of users will need. "Beam" is for the 1% that want to do different sections?
Maybe the common component should be called "Beam" and the second one "BeamComplexSection" or something instead

Agree!


How to use MaxPoolingAggregator?

Hello,
I have attempted to use the max pooling aggregator for GraphSAGE but it did not work.. May I know how to implemented it to change the MeanAggregator to Max Pooling?
☺Thank you

Thanks for getting in touch and thanks for waiting!
I'm afraid I'm not sure what you mean by "did not work", and so I cannot help you easily. Did you see an exception or other error? Is your model performance poor? Something else?
If you have some demonstration code that will help a lot too.

Hi Wilson,
I’m not sure how exactly to add the max pooling aggregator class and switch the mean pooling to max pooling? Is there an example code to do that?
Thank you so much😅

Ah, I see. The aggregator can be switched using the aggregator argument to the GraphSAGE class: https://stellargraph.readthedocs.io/en/stable/api.html#stellargraph.layer.GraphSAGE
For example:
from stellargraph.layer import GraphSAGE, MaxPoolingAggregator
GraphSAGE(
    layer_sizes=[8, 4],
    activations=["relu","softmax"],
    generator=generator,
    aggregator=MaxPoolingAggregator,
)


P0 | Disable pg_statements extension with CI test pipeline

We need to use the postgres extension pg_statements in our databases to improve query monitoring. It is the prime reason why we switched hosted databases from Digitalocean to AWS.
Now - when we use a backup of our staging database as part of our CI-pipelines we get the following error:

Possible fix: Try to remove the whole extension instead of just dropping the view
DROP EXTENSION IF EXISTS pg_stat_statements CASCADE;

CI working and test passed. But off course we disable pg_stat_statements.
Although this extension is needed because we build query tracking with Grafana + Prometheus.
WIthout this extension we can make it work the monitoring built

@CarlosQ96
To fix this is pretty straighfoward.
Avoid using CASCADE, you can drop any view, but when you said CASCADE is going to delete anything related.

Currenlty CI test pipeline works perfectly fine without that extension. It's a temporary solution, now we need to figure it out how to do it

@Rolazo @geleeroyale After thinking about this, and instead of modifying anything in the tests.
I would suggest going with the below solution:

Adding the pg_statements in the Postgres Image that is used in the CI-CD (I created an issue for that here: https://github.com/Giveth/postgres-givethio/issues/8)
Enable the pg_statements again on AWS
Monitor how it will behave

WDYT??

I left this PR: https://github.com/Giveth/postgres-givethio/pull/9 to add this feature and tested it.
What is left to do is:

Merge the PR
Enable the pg_stat_statements again from AWS
Monitor the CI-CD pipeline

Let me know if this helps @Rolazo @geleeroyale

@Rolazo It seems to me you are not 100% aware of how we are using our own testing Docker Container in the CI that is found in the repository here: https://github.com/Giveth/postgres-givethio
Again, I am not able to understand why you need to over-complicate this. As I see it:
Currently, the scenario is:

The backup is tested in the CI on a Docker Image that doesn't support pg_stat_statements ---> Results: FAILING

And after Adding the pg_stat_statements support to our image, the expected scenario should be:

The backup is tested in the CI on a Docker Image that supports pg_stat_statements ---> Results: SUCCESS (Hopefully)

Why dig very deep into postgres if we can try simpler approaches?? Please don't do anything regarding the backups (Don't do any exclusions) Before we all meet up and agree on this. @geleeroyale FYI

@mhmdksh
Look the logs, the view cant be drop becouse pg_stat_statements requires it

The postgres container in the CI doesn't contains the module pg_stat_statements. But when you insert the backup, containing the module. It will enable that module. So the module is enable by the backup
The current scenario is:

Without module pg_stat_statements --> Working
I disabled the module from our database, did the backup without the module. Run the CI staging and worked

With module pg_stat_statements --> Failing

It's actually pretty straighfoward.
Just modifying in the options here with:

@Rolazo I thought this option was added already, but it seems it might be a different thing. Please go ahead and try it. And update us how it goes.

@Rolazo I thought this option was added already, but it seems it might be a different thing. Please go ahead and try it. And update us how it goes.

Hey @mhmdksh - I am not as deep into the thing as you guys when it comes to postgres, but from what I have seen, I do think that we should try @Rolazo 's approach. Excluding the extension from the backup is a great thing - saves us some trouble.
Also - you should know that we met together with Carlos to find a way to solve it and Krati signed off on these changes. We are getting to a place where we can have better planning before work starts.
But I have one question to @Rolazo - can you think of a negative implication removing the extension. We definitely need to test that we can use the backups to fully restore a Giveth db

Alright I came to the following conclusions:

There is no test like DROP VIEW, after searching for all test. It seems this is a pre-test doing by default, any dev has build the annoying test that we're looking for.

For future reference, how did I solve it.
I create another schema called stat_chema:
List of our current schemas
       List of schemas
     Name     |     Owner
--------------+---------------
 cron         | rds_superuser
 public       | giveth
 stats_schema | giveth

Then I created the extension under that schema:
CREATE EXTENSION pg_stat_statements SCHEMA stats_schema;
After that, I set that schema to look also for public schema (The schema that we use)
SET search_path TO stats_schema, public;
This query proof that the extension belongs to the stats_schema
SELECT e.extname AS extension_name,
       n.nspname AS schema_name
FROM pg_extension e
JOIN pg_namespace n ON e.extnamespace = n.oid
WHERE e.extname = 'pg_stat_statements';
   extension_name   | schema_name
--------------------+--------------
 pg_stat_statements | stats_schema
(1 row)

Since pg_stat_statements is under the stats_schema, we only need to exclude that schema from our backups, which is not being used  for anything else.
Commit excluding the schema:
https://github.com/Giveth/devops/commit/799b2b9386388dd4cbb197cd18d4aba38b9b9224
This will allow us to make use of pg_stat_statements, passing the test =)
@geleeroyale @mhmdksh FYI

I re run the problematic CI with the latest backups, excluding stats_schema and it worked.
https://github.com/Giveth/impact-graph/actions/runs/8233230115/job/22685936824
Feel free to close this issue:

@Rolaz
So you are saying that you enabled the pg_stat_statements again in the staging, but with a different schema???
It will perform query monitoring in the same way?? Or will changing the schema exclude the monitoring for the public schema? <---- (Did you test this in the Monitoring?)
Regardless of the CI working again or not, Is the query monitoring (The original Functionality that we need) performing the same with this change??

@mhmdksh
Exactly.
Cool feature about Postgres right ? You can have a module in a different schema and set it for other schema like I did:
SET search_path TO stats_schema, public;`
stats_schema which contains pg_stats_statements will track public schema which is where our data is located
This is going to make our tracking work and passing the test

Pls move it to QA in zenhub once you have finalized the solution and deployed.

@jainkrati I moved it

Yep, it was deployed and tested! Worked as intended


Nested model bindings

Hi,
I have this model :
{
a: "value1",
b: "value2",
nestedModel: (Backbone.Model) {
c: "value3",
d: "value4"
}
}
How bind the main model and the nested model into the same view ?
I can't access to the nested model in the bindingSources declaration :(
Thank you !

I pretty much need this feature too. There is way around though. You need to use bindingSources to bind into nested model.
Like this
bindingSources: function() {
return {
nestedModel: function () {
return this.model.get("nestedModel");
}.bind(this)
}
}
Don't forget to add: _.bindAll(this, "bindingSources"); in constructor.


Can't create retina sprite it's not #64 , #121

#64 , #121 - no, it's not working
here is my test file, please look at the files
https://github.com/SnisarOnline/examples

This is the same message as in #121 and we've already replied there. Please keep everything in the same issue on #121. Closing this as a duplicate


xDnsServer: Enable Unit Tests to be run Locally

Pull Request (PR) description
This PR enables all the unit tests to be run locally, without requiring the DnsServer PowerShell module to be installed.
To achieve this, the following changes have been made:

Added code to load the DnsServer stubs file to all tests that required it.
Added Mock for Assert-Module to all tests that required it.
Removed partial function stubs that were inline in the tests.
Added Set-DnsServerPrimaryZone mocks to xDnsServerADZone tests.

Additionally, trailing spaces were removed from some of the test files.
This Pull Request (PR) fixes the following issues
None
Task list

[x] Added an entry under the Unreleased section of the change log in the README.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[x] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[ ] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

This PR is currently dependent on PR #111 being merged, as a related AppVeyor test is failing.

I've submitted PR #112 which adds some missing unit tests for the helper module, which I'm hoping  will resolve the coverage on this PR.

Merging this since this seems to be needed to fix issue #120.


ConvertTo-Json with AsHashtable option does not maintain order of the properties

ConvertTo-Json with AsHashtable option does not maintain order of the properties. This leads to invalid positional parameters being passed to the shell script that relies on positional parameters.

Please update the title, the issue is when you run ConvertFrom-Json with AsHashtable flag.

Resolved as part of the PR  - https://github.com/Azure/vdc/pull/122


testcase 'Security.Test Bmc Expire Password.Expire And Change Root Password Via GUI' Teardown insufficient

In some recent testing on a development BMC, the subject testcase failed. As a result, the last testcase in the suite, Verify New Password Persistency After BMC Reboot, also failed. Modifying the Teardown in the subject testcase as described below eliminated the second fail.
Here are the fails in Expire And Change Root Password Via GUI seen before modifying the Teardown:

Immediately after above fail, Verify New Password Persistency After BMC Reboot fails in the same run as follows:

(Note that the failure of Verify New Password Persistency After BMC Reboot happens whether or not the intervening testcase Verify Maximum Failed Attempts And Check Root User Account Locked is skipped.)

As a workaround I appended     ...  AND  Test Teardown Execution to the subject test and re-ran. With that change,Verify New Password Persistency After BMC Reboot passes as shown:

Please remediate the Teardown for Expire And Change Root Password Via GUI as appropriate.

@rahulmah Please look into it

opps.. may be @prkatti1 @swe12345 needs to look at this expire password for GUI

I just observed that Restore Default Password For Root User now succeeds in Expire And Change Root Password Via GUI when the fail occurs. Consequently, I no longer see a fail in Verify New Password Persistency After BMC Reboot.
Closing as fixed.


Why don't remove the block and use vars instead.

RT,
remove the block will improve the template more tiny. Less module, less write.

Blocks can be extended or overwritten. I'm not sure it is possible with vars
{% block foo %}
    {% parent %} <!-- output parent's foo content -->
{% endblock %}

If I don't need the overwritten, should I use the single block tag as a block box？
exp：{% singleblock foo %}  or use the vars instead {{ blockFoo }}?


column/table level change detection

Objective

currently, bevy's change detection will check all matched archtype entities ,leading to unnecessary overhead  in certain scenarios.
try to fix #5097

Solution

Introducing an AtomicU32 type to track the last mutable access for tables and columns.
Assigning the responsibility of updating this information to the set_table and set_archetype methods.
Implementing the archetype_filter_fetch method on QueryFilter to filter out tables or columns that have not been subject to mutable access since system last run.

Notes
I !!!express reservations about the current implementation due to its involvement in multiple data flows, potentially increasing code vulnerability and expensive . I would highly appreciate it if someone could propose an alternative implementation details with fewer complexities and improved security considerations.
Performance
Intel 13400kf NV4070ti

to comprehensively evaluate the change detection mechanism, additional benchmarking across various scenarios is deemed necessary
regression:

The regression in spawn/insert is attributed to the introduction of an atomic operation for each table per component.
iter_fragmented_* method appears to only iterate over few entities, making the maintenance of tick costly.
query.get_mut_compoent/unchecked(entity) is expensive becase it set the archetype for each entity retrieved.
It is worth mentioning that many_foxes frame_time dropped from 3.06ms to 4.21ms
yellow is main ,red is the pr

the hotspot is animation_player ,propagate_transform  which parallel use of get_unchecked for each entity seems leading to numerous invalid cache instances across CPU cores.

Migration Guide

This section is optional. If there are no breaking changes, you can delete this section.

If this PR is a breaking change (relative to the last release of Bevy), describe how a user might need to migrate their code to support these changes
Simply adding new functionality is not a breaking change.
Fixing behavior that was definitely a bug, rather than a questionable design choice is not a breaking change.

Okay, really neat stuff. Thanks for trying this out and presenting those benchmark results! Initial thoughts:

I think / hope we should be able to do this without the introduction of atomics. As you've seen, they introduce a meaningful performance overhead on all operations. The scheduler should already guarantee that only one system ever has mutable access to each archetype-component (I think this is what you called a table) at once. However, we will still need to be cautious in how we implement parallel iteration over queries directly.
Firmly agree on the need for more benchmarks for change detection before merging something in this space. I want to have a clear sense of the performance tradeoffs involved, and the
We should consider making change detection configurable (#4882) before merging this work: I suspect the correct trade-offs will vary substantially by component type.

Definitely excited to have this, as it opens up an opportunity for my reactive UI crate to skip regenerating the UI when a query has no changed data.

I think / hope we should be able to do this without the introduction of atomics. As you've seen, they introduce a meaningful performance overhead on all operations. The scheduler should already guarantee that only one system ever has mutable access to each archetype-component (I think this is what you called a table) at once. However, we will still need to be cautious in how we implement parallel iteration over queries directly.

current impl of this pr includes both table (built with their owned table-storage columns) and every columns (both table-storage and sparse-set-storage). schedule cannot guarantee only one mutable access to a table and sparse-set column simultaneously. If we avoid using AtomicType, the viable option would be to only implement column-level change detection specifically for table-storage columns. (of course ,i think not to use atomic is  the right way that will greatly reduce overhead )

Firmly agree on the need for more benchmarks for change detection before merging something in this space. I want to have a clear sense of the performance tradeoffs involved, and the

yeah,i think i can add more benchmark related to change detection in another pr

The only time we need to update change ticks in parallel is when we're using par_iter. Could we special case that scenario? Maybe use something like https://docs.rs/thread_local/1.1.7/thread_local/ and take the max of all the ticks after the par_iter is done and use that to update the archetype ticks.
Also adding branching inside the iterator is very bad for vectorization. You probably want to somehow update the matched archetypes. Probably needs benchmarking to be sure.

The only time we need to update change ticks in parallel is when we're using par_iter. Could we special case that scenario? Maybe use something like https://docs.rs/thread_local/1.1.7/thread_local/ and take the max of all the ticks after the par_iter is done and use that to update the archetype ticks.
Also adding branching inside the iterator is very bad for vectorization. You probably want to somehow update the matched archetypes. Probably needs benchmarking to be sure.

yeah,this impl is just a try to identify a method that  balances both ergonomics and performance.still need more benchmark,my current thoughts are:

archetype/table level change detection is not easy to impl in bevy,A archetype not only updates pararllel when using par_iter but also between systems run(mulityple systems can run parallel with same archetype)
it is not worth it that accurate update archetype/table change tick like Mut  when deref_mut  of each coloumn/archetype.
similar to flecs,we could update the archetype/column level tick when it first mutable access in a system run, for example ,Query<&mut T >.iter_mut().foreach that will update the corresponding archeype tick even if the loop does nothing;


dist_release 3.0

What have you changed? (mandatory)
This PR is against the release-3.0 branch.
Cherry-picks dist_release makefile changes from https://github.com/tikv/tikv/pull/4687
See that issue and the corresponding SRE PR for discussion: https://github.com/pingcap/SRE/pull/243
What are the type of the changes? (mandatory)

Engineering (engineering change which doesn't change any feature or fix any issue)

How has this PR been tested? (mandatory)
Nothing. Assuming it works as the branch it was cherry-picked from.
Does this PR affect documentation (docs) or release note? (mandatory)
Not user-facing docs. It is documented internally. Eventually it will be documented in a developer guide.
Does this PR affect tidb-ansible update? (mandatory)
No
Refer to a related PR or issue link (optional)
https://github.com/tikv/tikv/issues/4674
https://github.com/tikv/tikv/pull/4687
https://github.com/pingcap/SRE/pull/243
Benchmark result if necessary (optional)
Add a few positive/negative examples (optional)

Same as https://github.com/tikv/tikv/pull/4687 but for release-3.0. Should be approved by @zhouqiang-cl before merge. Like that PR, simply merging this PR should not affect anything, since all the release targets temporarily retain their previous behavior, so little risk.
If a cherry-pick is not the right way to update release-3.0 let me know the right way and I'll do it.
PTAL @breeswish @nrc @AndreMouche

bench and build_release should not be required

/run-all-tests tidb=release-3.0 pd=release-3.0

No, this is just for the CI builds and developers should not notice any difference.

I don't have the correct permissions to merge this. Can someone else hit the button?

LGTM


Hiding of PS5 Controller not working after Windows 10 21H1 Update

[x] I have searched open and closed issues for duplicates
[x] I am submitting a bug report for existing functionality that does not work as intended
[x] I have read https://vigem.org/Community-Support/
[x] This isn't a feature request or a discussion topic

Thanks for this tool. Really working great in use with DS4Windows!
Bug description
After updating to Windows 10 21H1 it seems like i cant hide the original PS5 Controller anymore. DS4Windows shows the device with HidHide exclusive access. setting were not changed inside DS4Windows. Tried rehiding the device and multiple restart but can't get it to work.
Steps to reproduce
Didnt to anything except update to 21H1 With Build 1904.1237
Actual result: Device is still shown inside game (Trackmania) and joy.cpl also shows the device even if its hidden in the configurator.
Expected result: Hiding of the PS5 Controller.
Screenshots

Machine info

CPU-Architecture: x64,
Windows version: Windows 10 21H1 (Build 1904.1237)
Software/driver version(s): <IP_ADDRESS>
Any other helpful information
Is this maybe also related to #39  ?

@flok hey! How have you resolved this issue?

Just found what my problem was, if anyone else stumbles upon this:

This checkbox wasn't marked! Just mark it again and everything will work just fine :D


Cannot understand the difference between embedded/nested mode

Hi @jeffwannamaker
Nice to meet you, I'm running a project which uses 'pxscene' to launch embedded mode (GPU : Mali-T820 ). I have some question about westeros.

I am confusing about the difference between 'nested' and 'embedded' mode. I cannot imagine the usage of these mode. Do you have some example about how to use these two mode in real situation.

When I launched 'embedded mode' by the API( wstRendererEMBCreate ), I cannot understand what display I get when I called 'eglGetDisplay' (GBM Native display in westeros-gl.c or original compositor such like wayland-0 ). Because I don't see some context initialization function in westeros-render-embedded.c (e.g: eglMakeCurrent). Do I need to implement them ?

I'm try to port the 'pxscene' and the GPU of my board is Mali-T820 (drm-backedand) and I find it has some problem to launch 'embedded mode'. I can launch the normal mode and WPE can run. Do the 'embedded mode' on the Mali is supported ?

Thanks a lot.
Best Regards,
Oscar

Hi Oscar,
Wayland nested composition is where one compositor acts as the client of another compositor.  For instance one Wayland compositor is created as a normal compositor that displays its output frames to the screen with display name “display0”.  A second Wayland compositor is created as a nested compositor with the display name “display1”.  A Wayland client application can then connect to “display1” and receive user input and render its UI.  The surfaces rendered by this client will pass to the nested compositor running “display1” and as new surfaces arrive from its clients it will render output frames consisting of the composition of all clients.  Instead displaying its output frame to the screen, it is passed as a client surface to “display0”.  The compositor running “display0” will render output frames as it receives updates from its clients and these output frames will be
displayed on the screen.
A real world example of the use of nest composition is with the WPE web browser (https://github.com/WebPlatformForEmbedded). It’s design uses a central process that receives user input and separate process for each web page.  It can be configured to use a Westeros backend where its central process creates a nested display that connects to a master compositor that displays to the screen.  The processes for each web page connect to the one nested display and the nested display distributes user input to the web page in focus.
In embedded composition an application uses Westeros API’s to create an embedded Wayland compositor instance with a given display name.  This compositor instance is available to accept connections from Wayland client apps just like any other Wayland display.  The embedded compositor instance doesn’t display its composited output frames to the display but instead makes them available to the application that created the display to use as textures within the applications UI.  This facilitates the inclusion of the UI of other applications into the UI of the application creating the embedded compositor.  An application can create multiple embedded compositor displays.
In pxscene, when a node of type “wayland” is used, it creates an embedded Wayland display and launches an application to connect to it.  The UI of the launched application is displayed as an element in the pxscene scene graph and can be manipulated and animated like any other element.
The embedded compositor instance will render using the GLES/EGL context created by the application.  So before creating an embedded display the application needs to establish an GLES/EGL context.  In the case pxscene, the GLES/EGL context is the one created by pxscene for its scene rendering.  It’s “wayland” nodes create embedded compositor instances using that GLES/EGL context (see pxWayland.cpp in pxscene).  For another example of embedded composition, look at the Westeros reference compositor: westeros-main.cpp
Yes, pxscene and embedded composition can work on devices using Mali GPU.  If the GLES/EGL/wayland-egl implementation used is provided by Mali, which would normally be the case, there can be limitations like only being able to create a single embedded compositor at a time within pxscene.  Also Mali code does not support nested composition.  In some devices Mesa can be used in place of Mali which avoids these issues.
Thanks, Jeff
From: Oscar0612<EMAIL_ADDRESS>Reply-To: rdkcmf/westeros<EMAIL_ADDRESS>Date: Friday, September 20, 2019 at 4:28 AM
To: rdkcmf/westeros<EMAIL_ADDRESS>Cc: "Wannamaker, Jeff"<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: [rdkcmf/westeros] Cannot understand the difference between embedded/nested mode (#12)
Hi @jeffwannamakerhttps://github.com/jeffwannamaker
Nice to meet you, I'm running a project which uses 'pxscene' to launch embedded mode (GPU : Mali-T820 ). I have some question about westeros.

I am confusing about the difference between 'nested' and 'embedded' mode. I cannot imagine the usage of these mode. Do you have some example about how to use these two mode in real situation.
When I launched 'embedded mode' by the API( wstRendererEMBCreate ), I cannot understand what display I get when I called 'eglGetDisplay' (GBM Native display in westeros-gl.c or original compositor such like wayland-0 ). Because I don't see some context initialization function in westeros-render-embedded.c (e.g: eglMakeCurrent). Do I need to implement them ?
I'm try to port the 'pxscene' and the GPU of my board is Mali-T820 (drm-backedand) and I find it has some problem to launch 'embedded mode'. I can launch the normal mode and WPE can run. Do the 'embedded mode' on the Mali is supported ?

Thanks a lot.
Best Regards,
Oscar
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/rdkcmf/westeros/issues/12?email_source=notifications&email_token=AADEFF52PFT5R5FXHJW7YSDQKSCQ5A5CNFSM4IYUHUVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMTWBHA, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AADEFF4IBKVAFD7GD2LD5V3QKSCQ5ANCNFSM4IYUHUVA.

Hi @jeffwannamaker
Thanks for your quick response and very excellent explanation. It really helps me a lot to understand. I have another question about embedded mode and pxscene. Let me describe my question in detail.
I launch pxscene and use “westeros_test” as my sample program.  When I launch “westeros_test” by pxscene, nothing shows onto screen (black screen).  I trace the code found something weird. After FBO pass to embedded compositor using WstCompositorComposeEmbedded in pxWayland.cpp. I step into Mali source code and found that it failed in glEGLImageTargetTexture2DOES.  The texture cannot be filled into the buffer which created by eglCreateImageKHR (eglImage).
The GPU I use is Mali-T820 (Migard-series), In Migard-series, it separated the wayland library into wayland-client and wayland-server(libmali-client.so , libmali-server.so). The drm backend load wayland-server library and the pxscene (wayland-client) load the wayland-client library. In two library structure, glEGLImageTargetTexture2DOES shows that it cannot get EGL context. I tried to fill the red    color before the buffer return to pxscene. The screen shows the red color successfully.
I tried to combine these two wayland library into one library, but it still failed in  glEGLImageTargetTexture2DOES.
Do you have any idea or recommendation ?
Thanks,
Best Regards,
Oscar

Hi Oscar,
That’s interesting.  I don’t know if I have used a Midgard-series.  I have a device with a Bifrost-series and embedded composition within pxscene works with it.
Thanks, Jeff
From: Oscar0612<EMAIL_ADDRESS>Reply-To: rdkcmf/westeros<EMAIL_ADDRESS>Date: Saturday, September 21, 2019 at 10:28 AM
To: rdkcmf/westeros<EMAIL_ADDRESS>Cc: "Wannamaker, Jeff"<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [rdkcmf/westeros] Cannot understand the difference between embedded/nested mode (#12)
Hi @jeffwannamakerhttps://protect2.fireeye.com/url?k=eb920429-b7760ae2-eb92239d-000babff3540-c22d45f9dcc9fdc7&u=https://github.com/jeffwannamaker
Thanks for your quick response and very excellent explanation. It really helps me a lot to understand. I have another question about embedded mode and pxscene. Let me describe my question in detail.
I launch pxscene and use “westeros_test” as my sample program. When I launch “westeros_test” by pxscene, nothing shows onto screen (black screen). I trace the code found something weird. After FBO pass to embedded compositor using WstCompositorComposeEmbedded in pxWayland.cpp. I step into Mali source code and found that it failed in glEGLImageTargetTexture2DOES. The texture cannot be filled into the buffer which created by eglCreateImageKHR (eglImage).
The GPU I use is Mali-T820 (Migard-series), In Migard-series, it separated the wayland library into wayland-client and wayland-server(libmali-client.so , libmali-server.so). The drm backend load wayland-server library and the pxscene (wayland-client) load the wayland-client library. In two library structure, glEGLImageTargetTexture2DOES shows that it cannot get EGL context. I tried to fill the red color before the buffer return to pxscene. The screen shows the red color successfully.
I tried to combine these two wayland library into one library, but it still failed in glEGLImageTargetTexture2DOES.
Do you have any idea or recommendation ?
Thanks,
Best Regards,
Oscar
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://protect2.fireeye.com/url?k=6a5086bb-36b48870-6a50a10f-000babff3540-84718acd58eb8fd4&u=https://github.com/rdkcmf/westeros/issues/12?email_source=notifications&email_token=AADEFF5SRMR6JPG4EDABUK3QKYVPVA5CNFSM4IYUHUVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ISZIA#issuecomment-533802144, or mute the threadhttps://protect2.fireeye.com/url?k=a382d1f2-ff66df39-a382f646-000babff3540-ea764dc6a10eed94&u=https://github.com/notifications/unsubscribe-auth/AADEFFZGCXQXKM2LQI25PR3QKYVPVANCNFSM4IYUHUVA.

Hi Jeff,
I found that ‘eglGetDisplay(EGL_DEFAULT_DISPLAY)’ in westeros-render-embedded.cpp which use westeros-gl.cpp implement. After I replace it with Mali implement, pxscene can work.
Thanks for your advice.
Thanks,
Best Regards,
Oscar


#[Visualisation]:Added Grid Gallery as custom visualisation

CATEGORY
Grid Gallery  is a custom visualisation added in superset to solve use cases like showing table with images with description and addition information like trending e-commerce websites are showing their menu items.
This component is based on of https://github.com/benhowell/react-grid-gallery.
Any suggestions/Feedback are welcome to improve  in this component .
Choose one

[ ] Bug Fix
[x] Enhancement (new features, refinement)
[ ] Refactor
[ ] Add tests
[ ] Build / Development Environment
[ ] Documentation

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS

In general, I think we're trying to get away from adding visualizations to the main superset repo, instead splitting them out into plugins. You can see examples of that here: https://github.com/apache-superset/superset-ui-plugins
I would recommend not relying on the viz.py file and instead use the new /api/v1/query/ endpoint to interface with superset for this visualizations. You can fork this template repo and add your new plugin here, then use it in your instance of superset https://github.com/apache-superset/superset-ui-plugins-template
@kristw would have more context on this as well

I agree with all @etr2460 said above. With that said, I would like to clarify here that we probably won't merge this PR. Superset is a large community now. Adding one uncommon type of visualization into the main repo, which will show up in everybody's deployment, is not a scalable direction. Please create a plugin and you can plug that into your personal deployment.

I am also agreed with you @kristw  but when we can get final cut of add custom vis in
https://github.com/apache-superset/superset-ui-plugins
so that we can follow  steps and deploy custom vis in our personal deployment.


Support albums of a single track with a .cue file

I have several albums (especially in flac) that are a single long fine with a .cue file that says when a track starts and when a track ends. It'd be neat it beets knew how to look for it and split the big song file.
I've tried extending the autotagger for that goal but without success: candidates and item_candidates don't work at that level — and the default candidate (from beets.autotag.mb.match_album) is actually the right one. But in the propositions, it has a low match rate for there are missing tracks, the track length is not the right one, etc.
Should splitting automatically happen earlier? But then what if the user wants to skip that folder, since we shouldn't have touched it? Maybe the plugin should look for folders with a .cue file at import_started time, split in a temp folder and replace the task with that temp folder? Then we have to hook again when we take a decision...
So overall I'm mostly looking for tips & pointers on how to write a plugin that realize well the aforementioned task :-)

Hello! We have an old issue for this: #136. I'll put a few thoughts there.


Removing extra copy in default crypter during segment upload

Currently, we have two unnecessary copy calls during segment upload if we are using the default crypter. Essentially, "decrypting" the segment is not needed. Also, we do not need segment fetcher to do an extra copy; in the case of segment, we will simply start with the segment in its final location.

Codecov Report

Merging #3294 into master will increase coverage by 0.02%.
The diff coverage is 65.38%.

@@             Coverage Diff              @@
##             master    #3294      +/-   ##
============================================
+ Coverage     70.81%   70.83%   +0.02%
  Complexity        4        4
============================================
  Files           983      983
  Lines         45294    45374      +80
  Branches       6083     6095      +12
============================================
+ Hits          32075    32142      +67
- Misses        11117    11127      +10
- Partials       2102     2105       +3

Impacted Files
Coverage Δ
Complexity Δ

...linkedin/pinot/core/crypt/PinotCrypterFactory.java
77.77% <100%> (ø)
0 <0> (ø)
:arrow_down:

...i/resources/PinotSegmentUploadRestletResource.java
61.13% <60%> (+1.13%)
0 <0> (ø)
:arrow_down:

...om/linkedin/pinot/core/crypt/NoOpPinotCrypter.java
80% <75%> (ø)
0 <0> (?)

...a/manager/realtime/RealtimeSegmentDataManager.java
75% <0%> (-25%)
0% <0%> (ø)

...pinot/server/starter/helix/HelixServerStarter.java
77.22% <0%> (-7.78%)
0% <0%> (ø)

...kedin/pinot/core/util/SortedRangeIntersection.java
83.82% <0%> (-7.36%)
0% <0%> (ø)

...ore/startree/v2/builder/BaseSingleTreeBuilder.java
90.38% <0%> (-4.81%)
0% <0%> (ø)

.../broker/helix/LiveInstancesChangeListenerImpl.java
64.28% <0%> (-2.39%)
0% <0%> (ø)

...impl/dictionary/DoubleOnHeapMutableDictionary.java
73.33% <0%> (-2.23%)
0% <0%> (ø)

...pby/NoDictionarySingleColumnGroupKeyGenerator.java
90.9% <0%> (-1.02%)
0% <0%> (ø)

... and 20 more

Continue to review full report at Codecov.

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


createAppUser in /container-entrypoint-initdb.d leads to "ORA-01917: user or role does not exist"

I have created three files inside /container-entrypoint-initdb.d to create new users and a view for each user.
01-create-user.sql
-- copied from /opt/oracle/createAppUser
CREATE USER TEST01 IDENTIFIED BY "pass" QUOTA UNLIMITED ON USERS;
GRANT CONNECT, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW, CREATE SYNONYM TO TEST01;

02-create-user.sh
createAppUser TEST02 pass

03-create-tables.sql
CREATE VIEW TEST01.V_DUMMY AS SELECT * FROM dual;
CREATE VIEW TEST02.V_DUMMY AS SELECT * FROM dual;

I would expect that when I start the container, the two users are created and the view is present in both schemas. However, when I start gvenzl/oracle-xe:latest I face a ORA-01917 error. The output is:
CONTAINER: Executing user defined scripts...

CONTAINER: running /container-entrypoint-initdb.d/01-create-user.sql ...

User created.

Grant succeeded.

CONTAINER: DONE: running /container-entrypoint-initdb.d/01-create-user.sql

CONTAINER: running /container-entrypoint-initdb.d/02-create-user.sh ...

Session altered.

User created.

Grant succeeded.

CONTAINER: DONE: running /container-entrypoint-initdb.d/02-create-user.sh

CONTAINER: running /container-entrypoint-initdb.d/03-create-tables.sql ...

View created.

CREATE VIEW TEST02.V_DUMMY AS SELECT * FROM dual
*
ERROR at line 1:
ORA-01917: user or role 'TEST02' does not exist

CONTAINER: DONE: running /container-entrypoint-initdb.d/03-create-tables.sql

CONTAINER: DONE: Executing user defined scripts.

What did I miss?
For a complete example, see rweisleder/test-oracle-xe-with-multiple-users

Hi @rweisleder,
Thanks a lot for using these images!
The reason for this behavior is that createAppUser defaults to the pluggable database XEPDB1:
Usage:
  createAppUser APP_USER APP_USER_PASSWORD [TARGET_PDB]

  APP_USER:          the user name of the new user
  APP_USER_PASSWORD: the password for that user
  TARGET_PDB:        the target pluggable database the user should be created in, default XEPDB1 (ignored for 11g R2)

However, any script in initdb (or startdb.d) will be run against the container database (CDB) XE:
The *.sql, *.sql.gz and .sql.zip files will be executed in SQLPlus as the SYS user connected to the Oracle instance (XE).
So what happened is that you created a user TEST01 in the CDB XE and a user TEST02 in the PDB XEPDB1. Then, when the script tried to create the views in the CDB, it worked for TEST01 but not for TEST02 because there is no user TEST02 in the CDB.

Thank you for the explanation, @gvenzl!
Well, I didn't know the difference between CDB and PDB before. This explains why the scripts behave differently.
From my point of view, the issue can be closed.

You are very welcome, @rweisleder!


pull request for e2e test at 12/28/2016 17:45:10

: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.


Fix line number width

set line-number width based on total number of lines
set target in webpack config as electron

Before:

After

Ah! Good catch. Thank you!


Still images not updating when using custom videoFilter

Describe The Bug:
When using a custom videoFilter in the config, still images fail to update. The change that introduced this bug was in release 0.1.18 where the videoFilter value is added to the ffmpeg command rather than the default scale values. Specifically https://github.com/homebridge-plugins/homebridge-camera-ffmpeg/compare/v0.1.17...v0.1.18#diff-aa15bf368787a2fc2fbd3f276bdcca87R188
To Reproduce:
Add a custom videoFilter. Mine specifically is "format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1080 -bf 0" as I am using hardware encoding for my ffmpeg streaming
Expected behavior:
Still images should update in the app occasionally
Logs:
Happy to provide logs however they don't actually report failures. I can however downgrade to 0.1.17 and it starts working again. Anything above 0.1.18 fails to update unless I remove the custom videoFilter
Show the Homebridge logs here.
Remove any sensitive information.

Homebridge Config:
           "platform": "Camera-ffmpeg",
            "videoProcessor": "/custom/built/bin/ffmpeg",
            "cameras": [
                {
                    "name": "Front Porch",
                    "videoConfig": {
                        "source": "-init_hw_device vaapi=intel:/dev/dri/renderD128 -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -rtsp_transport tcp -re -i rtsp://<IP_ADDRESS>:80/cam/realmonitor?channel=1&subtype=0",
                        "stillImageSource": "-rtsp_transport tcp -re -i rtsp://<IP_ADDRESS>:80/cam/realmonitor?channel=1&subtype=0",
                        "maxStreams": 3,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 30,
                        "maxBitrate": 1024,
                        "vcodec": "h264_vaapi",
                        "videoFilter": "format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1080 -bf 0"
                    }
                },

Screenshots:

Environment:

Node.js Version: v11.6.0
NPM Version: 6.13.0
Homebridge Version: 1.0.4
Homebridge Camera FFmpeg Version:  0.1.18 or above fails
Homebridge Config UI X Plugin Version: 4.19.0
Operating System: Ubuntu

Any updates on this?


Fix urls in different apps

Orders

order_list must be replaced by index. In fact these 2 are the same. so /orders/order_list must redirect back to the orders.index

this means the views also need to be renamed

order_details must be /orders/<int:id>.

Foods

foods_list which must be the index should also be the same as menu. But this time, the the index of the foods app must redirect to the foods/menu/
food_details must have this url: foods/<int:id>
Category related views are ok as of now

complete in #76


App crashes when scanning a certificate

Avoid duplicates

[X] Bug is not mentioned in the FAQ
[X] Bug is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[X] Bug is not already reported in another issue

Technical details

Device name: iPhone XR
iOS version: 15.2
App version: 2.15.1

Describe the bug
The Corona-Warn-App for iOS crashes when scanning a specific certificate. Under Android, the app does not crash.
Steps to reproduce the issue

Open the universal QR code scanner
Scan the certificate
The app crashes

Expected behaviour
The app should import the certificate and not crash.
Additional context
I can provide the certificate via mail to you (@thomasaugsten).

Internal Tracking ID: EXPOSUREAPP-11450

The crash is still reproducible on version 2.16.2.
Under Android the certificate is still accepted.
I would appreciate if someone could take a look at this, to be sure that this is an edge case and does not happen to more users (@thomasaugsten)
@dsarkar I guess it would be good to get this mirrored to JIRA.

Yes please provide the certificate

@thomasaugsten Your e-mail is<EMAIL_ADDRESS>right?

Thanks for your report @Ein-Tim. Internal Tracking ID: EXPOSUREAPP-11450

Corona-Warn-App Open Source Team

<EMAIL_ADDRESS>

@thomasaugsten I send it to<EMAIL_ADDRESS>

@Ein-Tim FYI PR #4107

Thanks @larswmh!
Seems like this will be included in a hot fix!
I was able to confirm that this PR fixes the issue.

@Ein-Tim Thanks for the feedback!

This has been fixed in 2.17 and I confirmed the fix.


Often non responsive Datalab VM

Often my Datalab is becoming non-responsive during execution of Python cell.

The only way I found to make it back to working state is to reset the VM (and reinstall again manually some Python packages), but this operation is taking ~20 minutes, which is less than optimal.
If you can detect this non-responsive state it will be great, as for now I have everything green in my monitoring console, but the reality is less than green. Especially if the user need to pay excessive CPU usage due to internal .
Any suggestion how to restart faster?
I hope you will be able to make it more stable, let me know if you need some access some logs to analyze the causes of this

Some libraries, if used unexpectedly, may cause excessive resource usage including CPU, disk, memory. Can you isolate your code and find which part of code is consistently causing this?
We also have options to specify a more powerful VM (disk, memory, cpu) config during Datalab deployment. These options are supplied in URL of the deployer. For example:
http://datalab.cloud.google.com?cpu=2&memorygb=7.5&diskgb=200
By default the VM we choose is a standard one.

Thank for URL to increase resources, I will try with this and check if it is more stable. I didn't manage to identify direct correlation of code that is freezing the VM. The same code worked well before, and after the reset.
I have the feeling that it is linked several parallel executions or connection failed/restart notebook session...
The code I was executing was Python with pandas and Google BigQuery & Storage before the freeze.

App engine Datalab version issue


Apply new fingerprinting to build dir outputs

We now much more aggressively cache the output of the compiler based on feature
sets and profile configuration. Unfortunately we forgot to extend this caching
to build script output directories as well so this commit ensures that build
script outputs are cached the same way with a directory per configuration of
features and output settings.
Closes #3302

r? @brson
(rust_highfive has picked a reviewer for you, use r? to override)

@bors r+

:pushpin: Commit 41579ba has been approved by brson

:hourglass: Testing commit 41579ba with merge c82fd7f...

:sunny: Test successful - status-appveyor, status-travis
Approved by: brson
Pushing c82fd7f82b8cd3a846fa63d30d6b12d79ca2abe6 to master...


User login and registration

The user can sign in using their credentials. (/users/sign_in)
The user can register. (/users/sign_up)

Hello @Anand8317 :wave:

Great implementation of the controllers and the devise gem together with the authentication
Once again, thumbs up :+1:
We can also work on adding the email confirmation once a user signs up to send them an email to verify their accounts.
Happy coding :clinking_glasses:


2.8.1 crashes

I upgraded from 2.7.2 (never installed .3) to 2.8.1, and now it crashes. Running on Windows 10 x64 with lots of memory, from command line. Did the --upgrade. Copied the whole var/lib/arangodb directory over, but not the arangodb-apps. The docs just say the "data directory", so I had to guess.
[7656] ERROR Unhandled exception: -1073741819 - will crash now.
I'm using GRAPH_NEIGHBORS, TRAVERSAL w uniqueness. Graph is small (<20 nodes).
I can provide you the code I'm using, if you need.

Is the crash reproducible with a specific query/operation or does it happen undeterministically? If the former, then if you could provide the exact instructions for reproducing plus any the underlying graph data this would be very helpful. Thanks!

It happens every time. I couldn't see anything in the conversion log, which was empty BTW.
(I looked in ...\AppData\Local\ArangoDB 2.8.1\var\log\arangodb only a .keepme file there). In the web console I have verified that all my collections are there.
Running directly in the web interface I get the following:
Query: illegal document handle
stacktrace of offending AQL function: Error: illegal document handle
    at Error (native)
    at Object.AQL_GRAPH_NEIGHBORS (c:\Users\JensPetter\AppData\Local\ArangoDB 2.8.1\share\arangodb\js\server\modules\org\arangodb\aql.js:7864:10)
    at Function.

which is maybe a bit more helpful than the previous posted error (from the command line console).
Through the web-interface, Arango Server does not crash. I'm usually going via the REST interface via ArangoDB-NET.
My query is rather large:
// Get the whole subtree up til max depth
let subtree = (
    for u in GRAPH_NEIGHBORS('cellGraph', @parentId,
        {edgeCollectionRestriction:'cellTree', direction:'inbound', maxDepth:@maxDepth})  // find all children
    return u
)

// Find all non-leaf nodes
let nonLeaf = (
for cellId in subtree
    for edge in cellTree
    filter edge._to == cellId
    return distinct cellId
)
// Find leaf nodes by removing non-leaves sub-tree
let leaves = (
for cellId in subtree
filter cellId not in nonLeaf
return cellId
)
// Find all defacto leaves by combining real leaves with cells at exactly max level
let cellsAtLevel2 = (
    for u in GRAPH_NEIGHBORS('cellGraph', @parentId,
        {edgeCollectionRestriction:'cellTree', direction:'inbound', maxDepth:@maxDepth, minDepth:@maxDepth})
    return u
)
let bottomCells = UNION_DISTINCT(leaves, cellsAtLevel2)
//return {nonLeaf: nonLeaf[*], leaves: leaves[*], cellsAtLevel2:cellsAtLevel2, bottomCells:bottomCells}

// For each cell in bottomCells, we need to run a traversal all the way down
let annotatedBottomCells = (
    for ch in cells
    filter ch._id IN bottomCells
        for c in traversal(cells,cellTree,ch,'inbound',{uniqueness:{vertices:'global'}})
        collect child = ch._id into group
            let num = length(group)
            let works = (
                for w in group
                return w.c.vertex.Work
            )
            let workDone = (
                for p in group
                return p.c.vertex.Work * p.c.vertex.Progress
            )
            let ParentId = FIRST(
                for edge in cellTree
                filter edge._from == child
                return edge._to
            )
            //let localSubtree = group[*].c.vertex._id
            let localSubtree = (
                for g in group
                filter g.c.vertex._id != g.ch._id
                return {_id:g.c.vertex._id, Work: g.c.vertex.Work, Progress: g.c.vertex.Progress}
            )
            let theChild = FIRST( for ccc in cells filter ccc._id == child return ccc)
            return merge(theChild, {ParentId, group, Subtree:localSubtree, NumDescendants:num, TotalWork:SUM(works), TotalWorkDone: SUM(workDone)})
    )

// Now return these cells + the rest of the subtree of maxDepth
let topCells = (
    for c in cells
    filter c._id in MINUS(subtree,bottomCells)
    let ParentId = FIRST(
        for edge in cellTree
        filter edge._from == c._id
        return edge._to
        )
    return merge(c, {ParentId})
)

return {topCells: topCells, bottomCells: annotatedBottomCells}

With bind parameters:
{"parentId":"/cells/ABCRoot",
"maxDepth":"3"}

database-17063398643.zip
logfile-23761893238.zip

I have tried to create a new database in 2.8.1, fill it with the same data and run the query. Same result. So I guess it is not with the old data.

Thanks for the data. I can reproduce the crash on Linux as well.

The crash is fixed in the 2.8 and devel branches now (2.7.x not affected).
The illegal document handle error is actually correct from my point of view. It's due to the start id being "/cells/ABCRoot", but it should rather be "cells/ABCRoot" (without the forward slash at the start).

That was fast. Thanks.


Non-residual datatypes

We should be thinking about how we will handle datatypes different than residuals, e.g., DM data for cyclic spectroscopy timing (with DM uncertainties possibly correlated with TOA uncertainties), profile intensity data for profile-domain timing, etc.
Pulsar can easily host other vectors, but we will probably have to extend/replace the PTA object.

Yes this is definitely true and I've been a bit worried about this as we have been going along. I know what we need for the DM data but we would have to work with Lindley for the profile domain stuff because I have no idea what is needed for that.