gerbera: 1.9.0 -> 1.9.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/gerbera/gerbera/releases.
meta.description for gerbera is: "UPnP Media Server for 2020"
meta.homepage for gerbera is: "https://docs.gerbera.io/"
meta.changelog for gerbera is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/b7c1zj7hqa93hgxx7bwalsr8qnmhrl87-gerbera-1.9.1/bin/gerbera passed the binary check.

1 of 1 passed binary check by having a zero exit code.

1 of 1 passed binary check by having the new version present in output.

found 1.9.1 with grep in /nix/store/b7c1zj7hqa93hgxx7bwalsr8qnmhrl87-gerbera-1.9.1

found 1.9.1 in filename of file in /nix/store/b7c1zj7hqa93hgxx7bwalsr8qnmhrl87-gerbera-1.9.1

directory tree listing: https://gist.github.com/c7d4f5eec08230934c15aaea1e410937

du listing: https://gist.github.com/3291adaf91fbb78178327c44de96da17

Rebuild report (if merged into master) (click to expand)

7 total rebuild path(s)

3 package rebuild(s)

3 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
gerbera
nixos-install-tools
tests.nixos-functions.nixos-test

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/b7c1zj7hqa93hgxx7bwalsr8qnmhrl87-gerbera-1.9.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gerbera https://github.com/r-ryantm/nixpkgs/archive/1a81511189df352338bd0177fded1e1db6140ce1.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/b7c1zj7hqa93hgxx7bwalsr8qnmhrl87-gerbera-1.9.1
ls -la /nix/store/b7c1zj7hqa93hgxx7bwalsr8qnmhrl87-gerbera-1.9.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

nixos-install-tools

1 package built:

gerbera

Maintainer pings
cc @ardumont for testing.

Result of nixpkgs-review pr 138113 at 1a815111 run on aarch64-linux 1

2 packages built successfully:

gerbera
nixos-install-tools


docs: add docs.ceph.com link in README.rst

This commit adds a hyperlink to Running Integration Tests Using
Teuthology in docs/README.rst under the section Test Suites.
Signed-off-by: Shraddha Agrawal<EMAIL_ADDRESS>

Can one of the admins verify this patch?

ok to test


[Snyk] Security upgrade com.hazelcast:hazelcast from 5.3.0 to 5.3.5

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

611/1000  Why? Recently disclosed, Has a fix available, CVSS 6.5
Improper Access Control SNYK-JAVA-COMHAZELCAST-6249443
com.hazelcast:hazelcast:  5.3.0 -> 5.3.5
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Improper Access Control

📚  View the storybook of this branch here

Close in favor of https://github.com/gravitee-io/gravitee-api-management/pull/6658


Bursting a PDF with owner password set and warnings ignored throws error

Describe the bug
When attempting to burst a PDF that has an owner password set, node-pdftk throws an error with the warning from pdftk even though ignoreWarnings is set to true and pdftk returns a 0 exit code from the same command.
To Reproduce
Grab this PDF to use for input in the below code: http://www.orimi.com/pdf-test.pdf
Code to reproduce:
const pdftk = require('node-pdftk')
pdftk.configure({ignoreWarnings: true})
pdftk.input('/tmp/pdf-test.pdf').burst().then(() => console.log('Success')).catch((err) => console.error(err))

Output:
Promise {
  <pending>,
  domain:
   Domain {
     domain: null,
     _events: { error: [Function: debugDomainError] },
     _eventsCount: 1,
     _maxListeners: undefined,
     members: [] } }
> WARNING: The creator of the input PDF:
   /tmp/pdf-test.pdf
   has set an owner password (which is not required to handle this PDF).
   You did not supply this password. Please respect any copyright.

Running pdftk /tmp/pdf-test.pdf burst outputs the warning but returns a 0 exit code.
Expected behavior
An error shouldn't be thrown since I'm ignoring warnings.

Found a bonehead mistake that was re-assigning the _ignoreWarnings property. This hopefully takes care of the problem. Let me know if it doesn't. I published the fix to npm as v2.0.2

Thanks @jjwilly16. I upgraded to 2.0.2 and I'm still seeing the issue. You should be able to reproduce using the code example in my original comment.

I'm experiencing the same issue using version 2.1.1 of node-pdftk.  Is there a solution?
pdftk.configure({ ignoreWarnings: true });

pdftk
    .input(sourcePDF)
    .fillForm(data)
    .flatten()
    .output()
    .then(() => {
      console.log('Success');
    })
    .catch(err => {
      console.log(err);
    });

Output:
WARNING: The creator of the input PDF:
forms/myPdf.pdf
has set an owner password (which is not required to handle this PDF).
You did not supply this password. Please respect any copyright.

Hopefully fixed in 2.1.2. Let me know if it's still a problem

I'm still getting a similar error when trying to parse a document.
What I'm sure of is that is has a placeholder password since it can be opened through any other means with no issues.
Is there a way I can supply an empty string as a password using your wrapper library ?
Thank you for your work on the library !
Error output:
Failed to open PDF file:
   /home/user/project/node_modules/node-pdftk/node-pdftk-tmp/4e520d879039e8f5e4ef11d716f15ccd.pdf
   OWNER PASSWORD REQUIRED, but not given (or incorrect)
Errors encountered.  No output created.
Done.  Input errors, so no output created.

@m-majetic Can you get me a sample PDF to test?


Wraps the front page post summaries in paragraph-tags

Unless you use <!--more--> at the end of a markdown paragraph break (assuming there is one within the summary character limit), the post summaries are stacked together with no vertical whitespace between them. Adding the <p>-tags fixes this. The main issue is inconsistency - if the summary ends at a paragraph break then you get the vertical space but it the summary just ends when the character count is full, then there will not be any vertical whitespace.
Before:

After:

Similar change should be done to the post-list partial

Thanks for the suggestion, I just released a new version of the theme.


build: improve libedit handling for builds

Use the FindLibEdit.cmake module from LLDB to properly control where
the libedit libraries are searched for and linked from as well as where
the headers come from. This uses the standard mechanisms which allows
users to control where libedit is pulled from (which is important for
cross-compilation).
This second version is more aggressive about pruning the libedit
handling.  The Ubuntu 14.04 version of libedit does not have
histedit.h, and the intent is to rely on that to determine if we have
unicode support or not.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please test


Refactor EDM init admin user logic

Pull Request Overview
This initialization logic is now moved into the EDM container.
See also,
https://github.com/WildMeOrg/Wildbook/commit/6d65e70e43691f1b281bb76edf151e5c7cdb7403
Basically, EDM can tie their own shoes now and doesn't need Houston to
do that for them.
Addresses a similar issue as resolved in #114, just in a different area of the system. Instead of Houston defining the initial admin user, Houston can now assume that the EDM is ready to be acted upon with the credentials it has been given.

Review Notes
Mostly looking to verify the understanding on the moving parts. This change is not currently tested, but will be as part of #109
Pull Request Checklist

[X] Ensure that the PR is properly formatted

Example: All lint checks are passing

[X] Ensure that the PR is properly rebased

Example: The PR is rebased on develop (commit: <insert develop commit hash>)

[X] Ensure that the PR uses a consolidated database migration

Example: One database migration is proposed (revision <insert develop revision> -> <insert new revision>)

[X] Ensure that the PR is properly tested

Example: All automated tests are passing

[X] Ensure that the PR is properly covered

Example: The percentage of the code covered by tests has not decreased

[X] Ensure that the PR is properly sanitized

Example: No sensitive data or large content was added to this PR

[ ] Ensure that the PR is properly reviewed

On startup of a fresh composition, I see the following:
➜  docker-compose logs edm | grep 'initAdminUser'
edm_1           |  * StartupWildbook.initAdminUser() successfully created org.ecocean.User@596dbc89[uuid=957b5c41-1e2a-4459-aae1-6b4f741e22b4,username=admin@example.com,fullName=<null>]

which means the user is successfully being created by the changes in the EDM's next-gen branch (within the currently deployed wildme/edm:latest image).
And I've verified the credentials work by seeing the houston frontend site pop up into setup wizard mode.

Another PR should either remove or fix the existing logic that initializes the admin user in EDM. A fix to this is underway in #114


let the coreos bare_metal_offline.md point to examples/ rather than having its own examples

let the coreos bare_metal_offline.md point to examples/ rather than having its own examples
@jeffbean @hvolkmer
#5799 #8087
cc @bgrant0607 @krousey

LGTM

LGTM thanks!


About the model's random select frame input

Hi! I notice that the input of this model is randomly selected from the original video. May I know how you make use of the non-keyframe information? And is the result of this model the full result of the video(including key and non-key frames) or just keyframe results? Thanks!

Hello, all of the frames will act as key frames and they will refer to each other in our implementation and all frames in one batch will have prediction results.

Hello, all of the frames will act as key frames and they will refer to each other in our implementation and all frames in one batch will have prediction results.

Thanks! May I also ask another question: What's the 'Randomly select 𝑓 frames' mean in the model image in the paper?

Randomly

It is the codes what you see in your question. The author random select f frames in the whole video, and use it to train and test

Hello, all of the frames will act as key frames and they will refer to each other in our implementation and all frames in one batch will have prediction results.

Thanks! May I also ask another question: What's the 'Randomly select 𝑓 frames' mean in the model image in the paper?

It is the codes what you see in your question. The author random select f frames in the whole video, and use it to train and test


fix(repository): 가계부 적은 내용 삭제시 무한 Select 실행되던 버그 수정

Join된 Sequelize Model 객체에서 destroy 함수 호출시 발생하는 것으로 파악됨

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.067%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
865

Relevant Lines:
865

💛  - Coveralls


Deploying on NUC

For some reason, the NUC was always only seeing <IP_ADDRESS>
Thus: docker run -it --rm -e HOST_IP=<IP_ADDRESS> --network host pytrigno via #2
Notes regarding IP in C:\Program Files (x86)\Delsys, Inc\EMGworks\SensorBaseControl.exe:

SensorBaseControl.exe shows IP(s) in Configure > Digital output (last line, in bold)
Config in C:\Users\ROBOASSET\AppData\Roaming\SensorBaseControl\SensorBaseControl\ does not mention IP (only ports).
Deactivate firewall
Also turning wifi off seems useful
Make sure sensors are paired and on, https://github.com/roboticslab-uc3m/pytrigno/issues/4

docker run -e HOST_IP=<IP_ADDRESS> --network host pytrigno

Changed the IP4 static address of vEthernet (WSL) from the above to the misterious <IP_ADDRESS> (note the 1 not 16; netmask <IP_ADDRESS>) and now have a nice working compact:
docker run -e HOST_IP=<IP_ADDRESS> pytrigno

Also works changing BOTH to <IP_ADDRESS>.

Also works changing BOTH to <IP_ADDRESS>.
So, essentially, IP_HOST has to match the IP of the vEthernet (WSL)

Note that we are NOT using --network host, which may be a completely different story
Note that we are not reading the sent ROS2 messages anywhere, which may require the previous point.

In any case, fixing #2 was a good idea and has proved to be a very good tool due to its flexibility.

In SensorBaseControl.exe it is not required to press top Start Analog, our Python script does it (in fact, if you do, you get a warning that already done). Upon connection, bottom Stopped passes to Remote (1 user).

https://learn.microsoft.com/en-us/windows/wsl/networking

Don't get your hopes up, only the TCU is running on the NUC. Docker is on other linux machine because Docker on Windows uses WSL and communications with WSL are complicated:
docker run -it --rm -e HOST_IP=windows.machine.ip.address --network host pytrigno

Where --network host is only required to see the websocket externally, so exposing port 9090 would have been enough (however, in real life we'll probably not be running the bridge here, so network host seems reasonable).

The correct command should be:
docker run -it --rm -e HOST_IP=windows.machine.ip.address --network host --ipc host --pid host pytrigno

pid: host and ipc:host allow the docker process to function as host process and communicate using shared memory when two dockers containers are run in a single machine


Includes script to update oaa status from a csv

@cfarm
Closes jira 3995
Additions

csv of urls and target statuses
A script that applies these statuses to each page with matching urls, replacing the blob status in wagtail (getting us to parity with statuses in enforcement pages).

Testing

Pull branch
./cfgov/manage.py runscript update_oaa_status
Child pages of /administrative-adjudication-proceedings/administrative-adjudication-docket/ should have their sidebar statuses updated

this needs to be linted to fix the failing travis test
also I found at least one page that was in the csv, that didn't get the update locally that should have, and the status is missing for it now: http://localhost:8333/administrative-adjudication-proceedings/administrative-adjudication-docket/american-express-travel-related-services-company/

NOT APPROVED ❌ 🚫 🚯

Drive-by observation:
The csv (from Excel?) has a BOM that will defeat URL matching for the first entry.
When I run it through the code the first URL comes out like this, and won't be found:
{
    '\xef\xbb\xbfhttps://www.consumerfinance.gov/administrative-adjudication-proceedings/administrative-adjudication-docket/capital-one-bank/':
    'Expired/Terminated/Dismissed'
}

@cfarm That action just doesn't have a status in general, see https://www.consumerfinance.gov/administrative-adjudication-proceedings/administrative-adjudication-docket/american-express-travel-related-services-company/
so that's unrelated to this PR.

but it's in the script?
https://github.com/cfpb/cfgov-refresh/pull/5426/files#diff-31311c4bc7cdf38b0ba44cc541dda987R17

but it's in the script?
https://github.com/cfpb/cfgov-refresh/pull/5426/files#diff-31311c4bc7cdf38b0ba44cc541dda987R17

Good point! Further investigation reveals there are 4 such cases, I'll update them in content manually


Functionality change: move info --json flag to be --format json to allow for more formats

Linked to #11, it'd be nice to be able to add more formats by just adding to an enum instead of checking multiple flags.

May actual


feat: Update artifacthub-pkg.yml automatically from now on

Description

Consume<EMAIL_ADDRESS>Add new make artifacthub-pkg.yml target, make needed changes to metadata.yml, recreate artifacthub-pkg.yml.
Relates to https://github.com/kubewarden/kubewarden-controller/issues/389

Test
CI job check-artifacthub should pass, among all the others.
Additional Information
Tradeoff

Potential improvement

rebased fixup commit, consumed v3.1.0.


Implement a dialog queue

Even though it's probably an edge case, there are moments we need to queue dialogs as user would otherwise miss important dialogs (e.g. alert informing about an issue).

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3478. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3478. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


📦 NEW: Shades of Purple theme

🙌 Thank you for making awesome-hyper.
This PR adds Hyper's 🦄 Shades of Purple theme that I made.
P.S. More SOP themes →

Checklist for submitting a resource to awesome-hyper:

[x] Title: The title for the addition uses its npm title (hyper-example) or the resource's title.
[x] Link: The link for the addition uses the npmjs.com link (https://www.npmjs.com/package/hyper-example) or the resource's full URI.
[x] Repository: The package.json file of the resource contains repository information.
[x] Visual: There is a visual representation of what the addition does in its source repository.
[x] Location: The awesome addition is in the correct category or sub-category.

If it's a plugin or resource, put your awesome item at the BOTTOM of the correct section.
If it's a theme, insert it according to the ALPHABETICAL order.

[x] Description: I've written a short (one sentence) description for the addition in the README.md.
[x] Downloads: I've added a download stats badge in the second column ([![npm](https://img.shields.io/npm/dm/hyper-example.svg?label=DL)]())

Thanks!


⚠ Bofrost.es has degraded performance

In 6ddf67c, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1473 ms

Resolved: Bofrost.es performance has improved in 9586d64 after 11 minutes.


Add python 3.4/3.5 support

cf https://github.com/novafloss/django-chartjs/blob/master/tox.ini#L2

Should be ok with the 1.1 release coming soon.
Thanks for the contribution


New violation: Prefer TypeError for unexpected types

Hi there,
A couple of times on existing code bases I've ran into a problem with built-in exceptions. I'm hoping to interest you into accepting it into this project, as it's the closest I've seen so far to the use case.
A simple GitHub search results in many codebases struggling with this pattern.
The issue
Often built-in exceptions are used regardless of their semantics. This results in confusing diagnostic information for the user.
if isinstance(my_var, int):
    pass
else:
    raise ValueError("...") #should be typeerror

The above examples has variations with multiple elif statements and other exception types as RuntimeError.
Similarly, if the if/elif conditions check values, not type, then a TypeError is misleading.
Proposed solution
Detect these patterns and report them, ideally fix them automatically (as pyupgrade would do).
Are you open to including this functionality in the package? If you're to busy, but open, then the community could take a turn (hacktoberfest).

Hi @sbrugman ! 👋
Thanks for trying Tryceratops 🦖  and sharing your thoughts.
Violation definition
That's a great suggestion! The Python docs makes the definition clear:

Raised when an operation or function is applied to an object of inappropriate type. [...]
This exception may be raised by user code to indicate that an attempted operation on an object is not supported [...]
Passing arguments of the wrong type (e.g. passing a list when an int is expected) should result in a TypeError, but passing arguments with the wrong value (e.g. a number outside expected boundaries) should result in a ValueError.

So it fits the description you just mentioned!  I'd suggest we create a new Violation: TC004 - Prefer TypeError exception for invalid type.
Autofix support
I agree, we already have some implemented, so it should be fine.
Variant support
I believe we should stick just to some classic built-in exception classes... But I'm not completely sure yet.
I'd recommend considering only the following classes:  Exception, ValueError, and RuntimeError as you mentioned. Do you feel strongly about including any other types?
I just want to ensure the developer can create a class OperationXUnsupportedType(TypeError) if he wishes.
Implementation + Release

Are you open to including this functionality in the package?

Yes! 😄

If you're too busy, but open, then the community could take a turn (hacktoberfest).

I'm kind of busy due to my work and other side projects regarding microservices that I'm planning to do 😢
so I can't commit to delivering it. I'll check how to include Tryceratops into the hacktoberfest! Thanks for suggesting!
Also, be my guest to implement it if you have the time! ❤ 😄

Hi there @guilatrova - mind if I take a crack at an implementation?

@swellander Be my guest! Thanks for suggesting ❤
Please, check out the contributing guidelines, and take some time to understand how the commit messages play with the auto release setup.


Create release artifacts on the CI

Builds the dora cli, runtime, and coordinator for Linux, macOS, and Windows whenever a new GitHub release is created. The binaries are then compressed as a zip archive and added to the release as artifacts. On platforms where iceoryx is supported (Linux and macOS), we also include the iox-roudi binary in the release (together with its LICENSE file).
Test release: https://github.com/dora-rs/dora/releases/tag/v0.0.0-test.4
Should be merged after #81 .

I have fixed the CI in #92 . The error in the name collusion between the dora cli and dora the python package.


Implement op caching in ODSP driver

There is feedback from users that snapshot caching in ODSP driver results in non-optimal UX behavior:

User opens a file and types a bunch of text
User closes tab
User opens tab

Result:
Old snapshot (cached) is rendered, without changes typed by user above.
After some time, user's edits show up.
Work mentioned in https://github.com/microsoft/FluidFramework/issues/4767 would partially solve this problem by reducing time to show latest edits. But it is still bound by network request and time to process ops.
We should (as part of this change)

Cache ops in ODSP driver (in chunks, let's say 100 ops a piece) using IPersistedCache.
On fetching snapshot, fetch all the ops from the cache and add them to the list of ops available for future use (we can add it to this.ops, but this is used only once, and have certain assumptions around usage, so if we are too late with merging ops to it, it will not work).
Start looking if we could reliably process ops before we render, i.e. if ops are returned as part of above mentioned issue soon to runtime, is there some mechanism (opt-in or not) that would allow to process them before container is returned to client? I'd split this item, as it's not clear if this can be done without affect other metrics (time to render), and it's sort of independent from everything else

@vladsud, I agree about the third item being a separate item. I'll log one

@vladsud, I agree about the third item being a separate item. I'll log one

I've started working on it...

https://github.com/microsoft/FluidFramework/issues/5288 shows the amount of traffic we are creating (op sizes in typical complex doc).
https://github.com/microsoft/FluidFramework/issues/5211 looks deeper into metrics around how fast we can catch up and opportunities for faster catch up.
At the current moment, given all the data, https://github.com/microsoft/FluidFramework/issues/5211 is more important to address than this item, as it will improve (if done right) catch up process 3x (bigger payloads, parallel requests). It is also simpler to solve than this item. So I'm prioritizing it over caching, but intend to do both in March.
Feedback is welcome!


Spread jenkins load by randomizing daily cron schedule

This is recommended by Jenkins and shows as a warning in the job UI. See: https://issues.jenkins-ci.org/browse/JENKINS-17311

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Spark

Go

---
---
---
---
---

Java

Python

---

---
---
---

a discussion (no related file):
R: @Ardagan

Comments from Reviewable

Run Java PreCommit


over again

some of the sentences repeat themselves over and over again

some of the sentences repeat themselves over and over again

Feel free to send an example of the output and commands you used. Haven't encountered this.


[Settings] Allow pickle protocol to be configurable for carbonlink requests.

TL/DR: Allow to set pickle protocol in case in future any non python carbon cannot parse newer highest protocols in higher Python versions.
Description of Issue
When installing graphite-web it will use highest available pickle protocol pickle.dumps(request, protocol=-1) in the Python version, which is then used for sending carbonlink requests to Carbon.
This works well for any Python based implementation of Carbon considering if they will both use similar Python version.
But when using non Python, e.g. go-carbon, which was implemented during/for Python 2.7 graphite-web.  It is parsing highest available protocol of 2 in Python 2.7 . Consequently carbonlink requests are unparsable by go-carbon , if Python 3.0+ is used for graphite-web.
Benefit
Allows user set their own pickle protocol for carbonlink requests, so that they are not fixed to certain Python versions, when using non python Carbon that only support certain pickle protocols.
To Reproduce
Set up and run go-carbon with carbonlink enabled and configured.
Run graphite-web in Python 3.0+ (3.7) and try to request data from go-carbon carbonlink.
go-carbon will throw warnings due to higher pickle protocol being used, thus it does not parse it correctly.
Environment (please complete the following information):

OS flavor: Linux Ubuntu 18.04
Graphite-web version 1.1.6
Django/Python version: Python 3.7
Setup type: running in docker, installed using pip
Carbon: go-carbon 0.14

SIDENOTE: Python 2.x to 3.x change from ASCII to Unicode has also affected pickle parsing in go-carbon, but still considering graphite-web is sending protocol 4 it would not have been able to parse it,  I've also Opened PR in go-carbon to be able to parse Unicode pickle up to protocol 5. But still would be nice to select desired protocol from graphite-web

We should probably make this configurable in Python Carbon as well


Support showonly in ListBlobsFlatPager in order to list directories

Feature Request
Ability to list directories in the container client. It is supported by the API, so it is unclear as to why this is not supported in the sdk. It looks like someone already requested this, but the ticket issue was locked -- #18921. This is an extremely important feature for the sdk to support and the lack of support for this feature may lead to the use of different storage solutions.

Hi @erictg looking at showonly in https://learn.microsoft.com/en-us/rest/api/storageservices/list-blobs?tabs=azure-ad#uri-parameters all the options have to do with HNS accounts, this flag will be available in our datalake package which we are currently working, since it's not supported in flat namespace accounts.


[Azure PowerShell] New service principal warning

Docs Build status updates of commit e7914ea:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azps-5.0.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-5.0.0)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 89b7bd6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azps-0.10.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-0.10.0)

azps-1.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-1.8.0)

azps-2.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-2.8.0)

azps-3.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-3.8.0)

azps-4.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-4.8.0)

azps-5.0.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-5.0.0)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 5a547fa:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-conceptual/azps-0.10.0/create-azure-service-principal-azureps.md
:warning:Warning
View (azps-0.10.0)
Details

docs-conceptual/azps-1.8.0/create-azure-service-principal-azureps.md
:warning:Warning
View (azps-1.8.0)
Details

docs-conceptual/azps-2.8.0/create-azure-service-principal-azureps.md
:warning:Warning
View (azps-2.8.0)
Details

docs-conceptual/azps-3.8.0/create-azure-service-principal-azureps.md
:warning:Warning
View (azps-3.8.0)
Details

docs-conceptual/azps-4.8.0/create-azure-service-principal-azureps.md
:warning:Warning
View (azps-4.8.0)
Details

docs-conceptual/azps-5.0.0/create-azure-service-principal-azureps.md
:warning:Warning
View (azps-5.0.0)
Details

azps-0.10.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-0.10.0)

azps-1.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-1.8.0)

azps-2.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-2.8.0)

azps-3.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-3.8.0)

azps-4.8.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-4.8.0)

azps-5.0.0/Az.Resources/New-AzADServicePrincipal.md
:white_check_mark:Succeeded
View (azps-5.0.0)

docs-conceptual/azps-0.10.0/create-azure-service-principal-azureps.md

Line 2, Column 1: [Warning-ms-prod-or-service-missing] One of the following attributes is required: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.

docs-conceptual/azps-1.8.0/create-azure-service-principal-azureps.md

Line 2, Column 1: [Warning-ms-prod-or-service-missing] One of the following attributes is required: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.

docs-conceptual/azps-2.8.0/create-azure-service-principal-azureps.md

Line 2, Column 1: [Warning-ms-prod-or-service-missing] One of the following attributes is required: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.

docs-conceptual/azps-3.8.0/create-azure-service-principal-azureps.md

Line 2, Column 1: [Warning-ms-prod-or-service-missing] One of the following attributes is required: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.

docs-conceptual/azps-4.8.0/create-azure-service-principal-azureps.md

Line 2, Column 1: [Warning-ms-prod-or-service-missing] One of the following attributes is required: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.

docs-conceptual/azps-5.0.0/create-azure-service-principal-azureps.md

Line 2, Column 1: [Warning-ms-prod-or-service-missing] One of the following attributes is required: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Selection quirk in dropdown when using preact/compat

When using preact/compat (i.e. when any dependency uses React directly), onFocus event will bubble (to match React behavior):
https://github.com/preactjs/preact/pull/3355
For dropdown this will cause a selection bug (mousedown on an item will trigger onFocus on the menu item, which will bubble up to the dropdown, which will call setSelected with the previous selected item, which will be highlighted instead until mouseup).
https://github.com/yuanqing/create-figma-plugin/blob/main/packages/ui/src/components/dropdown/dropdown.tsx#L111-L128
Probably many ways to fix that, here's the one I went with: https://github.com/divriots/create-figma-plugin-ui/commit/b7ffa1738ebe6859eb4c5aefa2b73dbbe9adcce3

I was running into this as well, and took me a while to realize it was the dropdown and not my app logic. Thanks for logging this!

How do I solve this i my plugin ? @yuanqing  @gluck . Thanks in advance guys.


get_db_prep_value saving None as string 'null'

I was looking to add a JSONField that can't be null and ran into JSONField saving a None value when the field is set to not allow NULL as a string 'null'. It appears to be right here:
https://github.com/bradjasper/django-jsonfield/blob/master/jsonfield/fields.py#L100
Is this intentional for some reason? I'd assume it should return None if the value is None so that database constraints could take over, but wanted to check if this was intentional before submitting a PR.
Thanks!

This is currently an open issue, with more info available at: https://github.com/bradjasper/django-jsonfield/issues/100
The plan is to support both types of JSON (RFC-4627 or EMCA-404)—but work hasn't started yet.
I'd be happy to accept a pull request if you wanted to take a shot at this.

In our use case, we wanted the DB to prevent None / NULL like a standard field would do if null=False. So we made the following change:
https://github.com/gmeans/django-jsonfield/commit/9f30ff761185a9af6cd4cf676e2c41a6de34b08a
The original code was calling json.dumps() if the value was None and the field was configured with null = False. This resulted in the field not raising an IntegrityError if it was set to None due to json.dumps() returning 'null' as a string.
IMO Python None should always be database NULL so things behave as expected. I'd prefer to handle an IntegrityError as opposed to parsing the field out for 'null'.
Probably a bit narrower view than supporting the specs you listed, but if you agree I'll fire off a PR.
Thanks!

The main issue is this change will need to be deeply tested, as this package has had regressions in the past from small changes like this.
My hope was to get my hands around this with a better set of tests soon—but so far have been busy with other items.
I'd be happy to accept a PR for this—but wouldn't be able to pull it in until this case was thoroughly covered in tests.

Closed in favor of #100. In short, the rewrite should handle JSON strings. I borrowed from Django's postgres field here, and decoded strings are wrapped in a JSONString class, which prevents duplicate decodings such that '""' => '' => 💥  no longer happens.


Added new define codes

Added COAP responses codes from RFC7959 and RFC7252 https://www.rfc-editor.org/rfc/rfc7959
https://www.rfc-editor.org/rfc/rfc7252
Added new LwM2M security object IDs for object version 1.2 https://raw.githubusercontent.com/OpenMobileAlliance/lwm2m-registry/ prod/version_history/0-1_2.xml
This is a rebase of #715

LGTM


ajaxError implementation breaks Ember.js contract

While Ember-Data ajaxError returns errored jqXHR (as documented), ember-django-adapter instead returns Error(jsonErrors['detail']); breaking contract and making any suffisticated error processing impossible due to no original error data with exception of "detail" message making it to application.

Thanks for the bug report. There's definitely some inconsistency in our implementation and the comment in this adapter.
I looked at the active model adapter and it also returns the jqXHR instead of the an Error in this case (Error(jsonErrors['detail']);).
https://github.com/emberjs/data/blob/48c02654e8a524b390d1a28975416ee73f912d9e/packages/activemodel-adapter/lib/system/active_model_adapter.js#L124
I chose to parse the error that Django Rest Framework provides because I thought it would be more useful than returning the jqHXR. I'm definitely open to changing this but I just want to understand how this is normally used in Ember applications. Can you provide an example of something that you can't do with the current implementation? Or an example that shows the returning the jqXHR is better? Thanks.

Can you provide an example of something that you can't do with the current implementation?

For startes I can't do what guide tells me I should be able to do:
http://emberjs.com/guides/routing/loading-and-error-substates/
Resources on ember.js forums show me that I should be able to do so:
http://discuss.emberjs.com/t/how-to-deal-with-route-when-model-gets-a-404/5283/2
I want to look into error within my ApplicationRouter error handler and thus make call between error404 page that will have search field, common links and suggestions about why user can't reach page, and error 403 that will actually display error message from server. There is also special kind of error 403 that happens when user is banned. In this case ban details are added to error JSON and I can notice that within 403 handling and render errror-banned template that will display this json.

Ok, I'll fix this. Thanks for the information.

:+1: good man, thanks for working on this!

@rafalp Review the code and try out the fix in #62 to see if it's going to work for you? Thanks.

Yep, my Ember.js ApplicationRoute's error hook can now access error status and whole message. There's also error.status so :+1:


Configuration is now handled with Cobra and Viper.

This commit also removes support for proxy_mode, as mentioned here:
https://github.com/Beanstalkg/beanstalkg/issues/39#issuecomment-306454795
Closes #39.

@stephenwithav looks good please add the new libs to godeps.

@vimukthi-git adding viper and cobra with godep adds a ton of dependencies.  Is there a way to omit their dependencies?

@stephenwithav I honestly don't know if it can be avoided. lets do some research.

Should I go ahead and push what

you can push, then I can see the diff

Added.

@stephenwithav You are correct, this introduces too many dependancies just for something as simple as config params. Lets find a simpler way. As you may understand more dependancies means more things that can go wrong.

@stephenwithav shall we close this?

@vimukthi-git Yes.


ChemPlot doesn't seem to be able to save as a vector image

Hi, ChemPlot developer,
I noticed that web application of ChemPlot doesn't seem to be able to save as a vector image, can you add this feature? Thanks.
Peter

Hi @jeep3,
Indeed the web application of ChemPlot uses only Bokeh to generate the images. Therefore exporting to SVG requires some work in adding a simple download button for that!
We will update you when this is added!
Thank you for the suggestion!

Also I am closing the issue here since it is related to the web application and not the library.
Please refer to the webapp issues tracker for these enhancement.

Many thanks @dajtmullaj


Support for Multiple Active Result Sets (MARS)

SQL Server has a spec (https://docs.microsoft.com/en-us/sql/relational-databases/native-client/features/using-multiple-active-result-sets-mars?view=sql-server-ver15) for MARS so that we can execute multiple queries on single connection. Will this feature be supported?

It is supported already...
For example https://github.com/prisma/tiberius/blob/master/tests/query.rs#L483-L507

According to MARS the resultsets can be interleaved. How can you write assert statements saying first resultset will be the results of first query? Isn't that random the way the results comeback?

No, they come in order.

Does this answer your question @kesavkolla ?


doc: add homebrew install

fixes #147

@soywod I dont know how to update wiki so I filed a PR of adding the installation instruction in here.

Any update on this thread?

Thank you :tada: sorry for the delay, I was quite busy these days.

totally understand and thanks for the merge 🎉


[sanity] Support ability to embed HTML

DOMAIN = both
Feature request...support the ability to embed HTML (primarily to insert Hubspot forms and Youtube vids in articles).
The content team has requirement for an HTML block in Sanity to support the ability of doing things like pasting in hubspot code or a hubspot CTA button.
See these discord chats for further context:
Klima Newsletter Landing Page
Blog Hubspot Embed
Example of a snippet:
<script charset="utf-8" type="text/javascript" src="//js-eu1.hsforms.net/forms/embed/v2.js"></script>
<script>
  hbspt.forms.create({
    region: "eu1",
    portalId: "26010207",
    formId: "7eeaa834-912a-4a37-8bfc-3b6a47899006"
  });
</script>

An example of what we are trying to solve for by having actual CTAs:

low priority, closing


Doc section 4.5.14 method 2 I believe is incorrect.

Section 4.5.14 in the doc page recommends creating a UGameplayEffect at runtime, this would be great because it would let me pick which attribute to change making it selectable in the details panel of my ability, or set it dynamically.
My code looks something like this:
UGameplayEffect* UGvGameplayAbility::GetCostGameplayEffect() const
{
    // This snippet is taken from https://github.com/tranek/GASDocumentation#4517-creating-dynamic-gameplay-effects-at-runtime
    UGameplayEffect* CostGE = NewObject<UGameplayEffect>(GetTransientPackage(), FName(TEXT("Cost")));
    CostGE->DurationPolicy = EGameplayEffectDurationType::Instant;
    CostGE->Modifiers.SetNum(1);
    FGameplayModifierInfo& Info = CostGE->Modifiers[0];
    Info.ModifierMagnitude = FScalableFloat(AbilityCost);
    Info.ModifierOp = EGameplayModOp::Additive;
    Info.Attribute = CostAttribute;
    return CostGE;
}

This seems to be working during CheckCost, but it "fails" when the cost has to be actually applied because the Spec is created using GetCostGameplayEffect()->GetClass(), resulting in an empty gameplay effect being applied, therefore no cost is deducted.
To be more specific what happens in UGameplayAbility::ApplyCost is that ApplyGameplayEffectToOwner is called with the new instance of the gameplay effect as the argument, inside this function though, Effect->GetClass() is called, ending up using the default object.
Hopefully I didn't misunderstand the doc intent. I should also mention that I have read the part where this is discouraged during prediction, although I was trying to do my own tests.
A solution to this would be to override UGameplayAbility::ApplyCost, and rather than invoking ApplyGameplayEffectToOwner, I could create my own FGameplayEffectSpecHandle using the dynamically created instance instead of the default object.
This would look something like the following:
void UGvGameplayAbility::ApplyCost(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo,
    const FGameplayAbilityActivationInfo ActivationInfo) const
{
    UGameplayEffect* CostGE = GetCostGameplayEffect();
    if (CostGE)
    {
        // ApplyGameplayEffectToOwner(Handle, ActorInfo, ActivationInfo, CostGE, );
        if (CostGE && (HasAuthorityOrPredictionKey(ActorInfo, &ActivationInfo)))
        {
            FGameplayEffectSpec* GESpec = new FGameplayEffectSpec(CostGE, {}, GetAbilityLevel(Handle, ActorInfo));
            FGameplayEffectSpecHandle SpecHandle(GESpec);
            if (SpecHandle.IsValid())
            {
                ApplyGameplayEffectSpecToOwner(Handle, ActorInfo, ActivationInfo, SpecHandle);
            }
        }
    }
}

Thank you in advance for your response.

Unfortunately I lost my test code for that part, so I don't have an answer for you for that specific example.
If you want to continue using a dynamically created GE, I think your approach of overriding ApplyCost() is the way to do it.


LCAM 1598 Resolve Duplicate Version Issues

What
Link to story

Updated readme with details of local publishing following discussion on versioning issues.

Lg2m


show-whitespace - Restore feature on Firefox and Safari

Partially reverts https://github.com/refined-github/refined-github/pull/7315
Related to #7404

So if I'd manually toggled this feature previously before it was removed, will it automatically be re-enabled, or will that still require further manual interaction?

The way this was disabled was only in its init, unlike the usual hotfixes which appear in the options. In short you could toggle it on and off in the options but it wouldn't run anyway.
To answer your question: no further action is necessary.


Possible to cut a new release?

Any plans to release a new version of rspec-snapshot to rubygems to include the UPDATE environmental variable and other recent changes?

This can now be closed, since a new release has been published since:
https://github.com/harrylewis/rspec-snapshot/releases/tag/v0.1.2

This can now be closed, since a new release has been published since:
https://github.com/harrylewis/rspec-snapshot/releases/tag/v0.1.2


Memory leak on Windows

Describe the bug

Two hours ago I started Ray and used it for an hour, frequently using Ctrl + Shift + C to clear it completely
I was away from keyboard for half an hour and came back and noticed everthing was not as snappy as before in Windows itself. Checked the taskmanager (see screenshot) and saw Ray eating all memory it could find.
As you can see in the screenshot, ray was not accumulating new errors, the scroll handle within the Ray app is still pretty big.

Versions

spatie/ray package: latest
spatie/laravel-ray package: latest
PHP: 8.0
Laravel: latest

To Reproduce
I do not know how to reproduce, not happening before.
Screenshots

Desktop (please complete the following information):

OS: Windows 10 Pro

Additional context
I am running this same version of the Windows Ray app for at least a week I think.
I run composer update frequently, last time was yesterday so I should have the newest version of the Laravel Ray package too.

It's actually so hard to even restart the app and clear the queue because it gets stuck way before I can even try. This thing is so slow especially when I forgot I put it there for like an hour while debugging :(

@genesiscz that's true for Ray and also other Electron apps on Windows. Closing Ray is not enough to stop all Ray processes, they just stay active and the window is hidden. I have to use the task manager to really stop all processes.
But I think it is typical for Electron apps as HELO behaves the same.

Duplicate of #210


Adding new options

Hi, I was also willing to extract n character like in issue #11, and then saw that there are other issues related with customization. So far:

extract n paragraphs #11
extract n characters #11
extract custom element #10
add custom extractor #3
strip HTML tags and get only text (in the line with #8 but not the same)

Can we add new options to the plugin?
Or it's better to create a brand new plugin? e.g.: metalsmith-extract.
I can work on a PR if you see this interesting. Otherwise I'll go the another-plugin way.

Closed as this can be solved with metalsmith-snippet. It's not perfect, but good enough.


Youtube tracklist

Checklist

[X] I'm reporting a site feature request
[X] I've verified that I'm running youtube-dl version 2021.01.08
[X] I've searched the bugtracker for similar site feature requests including closed ones

Description

Looking to add functionality for track and artist info for videos with multiple songs in 1 video, currently it is my understanding this functionality only works when there is one song in a video.

youtube does not provide the time range when the song is used, so it can't be used as chapters.
and for adding metadata to file, this not going to help, you can only specify single artist the whole media file.
in what way this information will be used?
you should provide enough info on what is expected.

youtube does not provide the time range when the song is used, so it can't be used as chapters.
and for adding metadata to file, this not going to help, you can only specify single artist the whole media file.
in what way this information will be used?
you should provide enough info on what is expected.

No problem understood, currently for the extract_info call it has the possibility to return the following information (this is from the ReadMe).
 track (string): Title of the track
 track_number (numeric): Number of the track within an album or a disc
 track_id (string): Id of the track
 artist (string): Artist(s) of the track
 genre (string): Genre(s) of the track
 album (string): Title of the album the track belongs to
 album_type (string): Type of the album
 album_artist (string): List of all artists appeared on the album
 disc_number (numeric): Number of the disc or other physical medium the track belongs to
 release_year (numeric): Year (YYYY) when the album was released

Some YouTube videos have multiple songs associated with them like in the image I provided earlier, which doesn't work with the standard extract_info call. I dug into the code a bit and found the info does exist in the video_webpage value, but still requires some RegEx to pull it out (re.findall(r'{"simpleText":.*?}', video_webpage) can be used to see some of these examples but still working on making it more specific to not catch false positives) and then adding that info to the dictionary and returning to the caller.
Overall goal of this is to be able to be able to see which songs Youtube has identified are in the video (which is not currently supported through the YouTube API) -> another example of this in Youtube https://www.youtube.com/watch?v=mNASC3txZHw&t=2119s

No problem understood, currently for the extract_info call it has the possibility to return the following information (this is from the ReadMe).
 track (string): Title of the track
 track_number (numeric): Number of the track within an album or a disc
 track_id (string): Id of the track
 artist (string): Artist(s) of the track
 genre (string): Genre(s) of the track
 album (string): Title of the album the track belongs to
 album_type (string): Type of the album
 album_artist (string): List of all artists appeared on the album
 disc_number (numeric): Number of the disc or other physical medium the track belongs to
 release_year (numeric): Year (YYYY) when the album was released

Some YouTube videos have multiple songs associated with them like in the image I provided earlier, which doesn't work with the standard extract_info call. I dug into the code a bit and found the info does exist in the video_webpage value, but still requires some RegEx to pull it out (re.findall(r'{"simpleText":.*?}', video_webpage) can be used to see some of these examples but still working on making it more specific to not catch false positives) and then adding that info to the dictionary and returning to the caller.
Overall goal of this is to be able to be able to see which songs Youtube has identified are in the video (which is not currently supported through the YouTube API) -> another example of this in Youtube https://www.youtube.com/watch?v=mNASC3txZHw&t=2119s

No problem understood, currently for the extract_info call it has the possibility to return the following information (this is from the ReadMe).
track (string): Title of the track
track_number (numeric): Number of the track within an album or a disc
track_id (string): Id of the track
artist (string): Artist(s) of the track
genre (string): Genre(s) of the track
album (string): Title of the album the track belongs to
album_type (string): Type of the album
album_artist (string): List of all artists appeared on the album
disc_number (numeric): Number of the disc or other physical medium the track belongs to
release_year (numeric): Year (YYYY) when the album was released

this would work only for single songs(the information is unambiguous, it apply to the full media file), how would you make it work with multiple songs in a single video without having time ranges?
without having unambiguous way to assign the information, i don't see this as something to included in youtube-dl.

No problem understood, currently for the extract_info call it has the possibility to return the following information (this is from the ReadMe).
track (string): Title of the track
track_number (numeric): Number of the track within an album or a disc
track_id (string): Id of the track
artist (string): Artist(s) of the track
genre (string): Genre(s) of the track
album (string): Title of the album the track belongs to
album_type (string): Type of the album
album_artist (string): List of all artists appeared on the album
disc_number (numeric): Number of the disc or other physical medium the track belongs to
release_year (numeric): Year (YYYY) when the album was released

this would work only for single songs(the information is unambiguous, it apply to the full media file), how would you make it work with multiple songs in a single video without having time ranges?
without having unambiguous way to assign the information, i don't see this as something to included in youtube-dl.


[consoleApp] Updating Role Mapping via the Attributes tab for a saml web application fails with Error something went wrong message

Describe the issue:
Updating Role Mapping via the Attributes tab for a saml web application fails
How to reproduce:
1.Access https://localhost:9443/console
2.Login as super admin
3.Navigate to Develop > Applications > New Application > Web Application > SAML and add a saml application
4.In the edit view go for Attributes tab
5. Role Mapping section
6. Add local role as admin from the suggested drop down list and add a application role as test
7. Click Update
Observation
UI error is getting  displayed and update is not successfull
Environment information
Mssql 2019
uniqueid jdbc primary US
IS 5.11.0 beta3
ubuntu 16.04
Chrome Version 85.0.4183.121

The request returns the following error
code: "APP-60001"
description: "Invalid application configuration for application: 'Sample' of tenantDomain: carbon.super. Local Role Sample is not available in the server."
message: "Error patching application with id: 8f2da1c6-6977-4952-baba-118954c042a0"
traceId: "76728755-e50f-4f27-8f07-0c96ec74ff02"

But the local role Sample is available.


Adding MySQL table option {INDEX | KEY} to the CREATE TABLE,  restrict to MySql and generic dialects

Breaking changes:

Now HASH and BTREE are KEYWORDS, and using them as names can result in errors.
Now 'KEY' and 'INDEX' column names start the parsing of a table constraint if unquoted for the Generic dialect. This results in possible conflicts if canonical results are compared for all dialects if a column is named 'key' without quotes.

Theoretically, the behavior should be the same as CREATE INDEX, but we cannot make that assumption, so the parse is (almost) identical to the input. MySQL seems to be the only one to support this syntax. (1)
Now we can support statements like:
CREATE TABLE (id INT, INDEX (id));

CREATE TABLE (id INT, KEY index_name USING BTREE (id))

The supported syntax implemented here is:
CREATE TABLE (..., {KEY | INDEX} [index_name] [USING {BTREE | HASH}] (<key_part>, ...))

<index_name>: Single identifier
<key_part>: Single identifier

[1] : https://dev.mysql.com/doc/refman/8.0/en/create-table.html

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

88 of 91 (96.7%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 85.866%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/parser.rs
62
63
98.41%

src/ast/ddl.rs
15
17
88.24%

Totals

Change from base Build<PHONE_NUMBER>:
0.08%

Covered Lines:
10559

Relevant Lines:
12297

💛  - Coveralls


Customize the Query dynamically when exporting from view?

How to customize the query when exporting from a view in 3.0? Was super easy in 2.1.
I want to change the query based on users parameters, not just use all(); but still want to export from a view so I can do custom logic with relationships.
Feels like I need a mix of fromQuery and fromView?

You can just do your custom query in the fromView method like done in 2.1. You don't need fromQuery for that.
public function view(): View
    {
        return view('exports.invoices', [
            'invoices' => Invoice::query()->where('foo', 'bar')->get()
        ]);
    }

How do you pass arguments to it? The where needs to change based on the
route.
On Fri, Aug 17, 2018, 3:38 AM Patrick Brouwers<EMAIL_ADDRESS>wrote:

You can just do your custom query in the fromView method like done in
2.1. You don't need fromQuery for that.
public function view(): View    {        return view('exports.invoices', [            'invoices' => Invoice::query()->where('foo', 'bar')->get()        ]);    }
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Maatwebsite/Laravel-Excel/issues/1765#issuecomment-413784167,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AELd8_RR8_DrRNNlzBay0q1OXHdddbD9ks5uRnMFgaJpZM4WAnr8
.

Just the same as you would for fromQuery: https://laravel-excel.maatwebsite.nl/3.0/exports/from-query.html#customizing-the-query Pass the params via the constructor and use them in view()


⚠ Slack has degraded performance

In 41c0663, Slack (https://status.slack.com/api/v2.0.0/current) experienced degraded performance:

HTTP code: 200
Response time: 38 ms

Resolved: Slack performance has improved in c4a46d8 after 19 hours, 4 minutes.


AWS IAM policy role

File: themes/default/content/registry/packages/aws/api-docs/iam/role/_index.md
Hi, we found out that when creating an aws role with inline policy, it shows the changes when previewing but when applying it does no changes. I'm talking about the parameter inline_policies.

Thank you for catching this and submitting an issue @JonathanBernaerts ; we'll take a look.

Hi @JonathanBernaerts,
Thank you for submitting this issue!
I was unfortunately unable to reproduce this issue. As a reference, I created and deployed the following simple IAM role:
import pulumi
import json
import pulumi_aws as aws

test_role = aws.iam.Role("testRoleDebug",
    assume_role_policy=json.dumps({
        "Version": "2012-10-17",
        "Statement": [{
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Sid": "",
            "Principal": {
                "Service": "ec2.amazonaws.com",
            },
        }],
    }),
    tags={
        "tag-key": "tag-value",
    })

I then updated this resource with an inline policy as shown here:
import pulumi
import json
import pulumi_aws as aws

test_role = aws.iam.Role("testRoleDebug",
    assume_role_policy=json.dumps({
        "Version": "2012-10-17",
        "Statement": [{
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Sid": "",
            "Principal": {
                "Service": "ec2.amazonaws.com",
            },
        }],
    }),
    inline_policies=[
        aws.iam.RoleInlinePolicyArgs(
            name="my_inline_policy",
            policy=json.dumps({
                "Version": "2012-10-17",
                "Statement": [{
                    "Action": ["ec2:Describe*"],
                    "Effect": "Allow",
                    "Resource": "*",
                }],
            }),
        )
    ],
    tags={
        "tag-key": "tag-value",
    })

As I am unsure if this workflow mimics your deployment experience, would you mind providing the steps you took/code you used to reproduce this issue?
Also, in reference to the following:

when applying it does no changes

To clarify, did you mean that the IAM role resource was not updated with the new policy, that the update to the role was not shown in the CLI output, or something else?
Thanks in advance!

Closing due to not being able to reproduce the issue.


Support SLSA v1.0 provenance format

Background
SLSA has published the 1st release candidate for SLSA v1 schema. https://slsa.dev/provenance/v1-rc1. And they may publish an official release soon.
Question
I am wondering what is the grafeas's plan to support this new SLSA provenance.
Thanks

Looks like this is done and lives in main now, but it seems not in an official release https://github.com/grafeas/grafeas/issues/601.
Will close this ticket in favour of 601.


Typo in release notes

Issue moved from MicrosoftDocs/feedback#2852

Please respond to @msivia.

From @msivia on Thursday, June 11, 2020 4:35:19 PM
Typo in Visual Studio 2019 version 16.6 Release Notes
Typo in IntelliSense shows that "tilde-slash" (~/) points to ASP .NET Core 3.1 project root instread of wwwroot subfolder after upgrading Visual Studio Enterprise 16.5.6->16.6.0

@JaquelineWiddis FYI on this

A PR with the fix has been submitted.
From: Terry G. Lee<EMAIL_ADDRESS>Sent: Wednesday, June 17, 2020 11:21 AM
To: MicrosoftDocs/visualstudio-docs<EMAIL_ADDRESS>Cc: Jacqueline Widdis<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/visualstudio-docs] Typo in release notes (#5494)
@JacquelineWiddishttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJacquelineWiddis&data=02|01|Jacqueline.Widdis%40microsoft.com|d55e2755bb6d48db22d008d812eb3795|72f988bf86f141af91ab2d7cd011db47|1|0|637280148744757067&sdata=Y6iJdTP0n0GG91V%2FG9MZ3npzBhZccUikKeIs89GOrrE%3D&reserved=0 FYI on this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fvisualstudio-docs%2Fissues%2F5494%23issuecomment-645541118&data=02|01|Jacqueline.Widdis%40microsoft.com|d55e2755bb6d48db22d008d812eb3795|72f988bf86f141af91ab2d7cd011db47|1|0|637280148744767025&sdata=%2FOlezyHkOe401gtKRiimGBWqnQtVryRf9gPuR3yH7OA%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALYJ4XH7BFU7UASWLLI3V6TRXECRTANCNFSM4OA2SDRA&data=02|01|Jacqueline.Widdis%40microsoft.com|d55e2755bb6d48db22d008d812eb3795|72f988bf86f141af91ab2d7cd011db47|1|0|637280148744767025&sdata=13J436PbFs5qMzSE3XUoH4QzdAqEO%2BfMf9OQl9RRqG4%3D&reserved=0.

The PR is processed and the fix is live.
@msivia Thanks for helping us improve the documentation!
Closing this issue, now.


Infrastructure (back-end) thoughts and concerns

Hey everyone,
During the call today I had a few thoughts and concerns about the current infrastructure (back-end). Disclaimer: I'm not 100% familiar with the current back-end, so please point out of if I'm making any incorrect assumptions about how things are currently working. I'm mostly relying on my limited experience of adding a new task and on brief descriptions of the infrastructure from Scott.

I really like the "snakemake approach" where new "builds" are only triggered when one of the input changes. In thinking about the broad scope of this project (many tasks, many datasets, many methods), it seems clear that a new "build" should only be triggered when a new dataset or a new method gets added, and only for those specific datasets/methods (no need to re-run all the other methods on all the other datasets). Currently I think everything gets run with each new commit, and I don't think that that's a sustainable solution.

In thinking about this snakemake approach some more, I think it's interesting to think about what should happen when a new metric gets added to a particular task. Naively, this would require all methods to run on all datasets again, which seems like a huge effort. The only way to avoid this would be to store the result of each method on each dataset. This way, any new metric could be run simply by comparing the stored method result to the "ground truth". This suggests that metric calculation should be decoupled from actually running the methods. Currently, method results are not stored anywhere.

The previous points 1) and 2) suggest to me that a we should store both the docker images (one docker image for each method and each version thereof) and input data (one file/directory per dataset) as files on a server (probably a cloud bucket). This would make it clear when we would have to run a method, namely when we encounter a previously unseen combination of docker file and input data. This also seems very different from how things are set up currently, where both methods and datasets are fundamentally represented as code, not as files, which in my mind makes it very difficult to implement a logic on what has already been run and what still needs to be run.

In summary, I really think the infrastructure needs to be modified to allow more modularity in terms of when to run which method on which dataset and for decoupling metrics from everything else.

I can quickly add a comment for point 1. Only Travis runs are run at every commit atm. This will only be done for test datasets, which are miniature versions of the datasets in the future. That has to be done so that we know the code we are adding can be run at all.

Thanks for opening this up. Lots of thinking to do as we scale.

As Malte said, this one is not really a big deal -- the CI is done with small datasets and runs quickly.
The way the snakemake pipeline is currently set up, we don't have a way of just selectively running a few methods, because the way the codebase is set up, the full codebase cannot be linked as a snakemake dependency (e.g. if scikit-learn changes its default behaviour for an MLP, this should trigger a rerun of the corresponding method, but nothing in our codebase has changed.)
One thing we have talked about is storing intermediates in S3. An example is the current data loaders, which currently store intermediates in /tmp after they are run the first time. Eventually this will be stored in S3 instead -- then any change to the raw data or the preprocessing will trigger a rebuild. We could do the same for methods and metrics, by using S3 as a cache, we can check the uploaded file against a hash of current code versions, and if anything has changed, recompute.

Thanks Malte and Scott for your comments!

I can quickly add a comment for point 1. Only Travis runs are run at every commit atm. This will only be done for test datasets, which are miniature versions of the datasets in the future. That has to be done so that we know the code we are adding can be run at all.

@LuckyMD @scottgigante Regarding testing, I think the testing system needs to be completely decoupled from the "actual" (real-world) set of methods and datasets currently available. I think that for each task, there should be a few (at least one) dummy datasets, and a few (at least one) dummy methods. The test would then be a check of whether the code can correctly load a dataset, execute a method, read a result, and then calculate the metrics for each task. I don't think the testing system should include a test of whether a particular (real-world) method is running correctly. If a method (docker container) gets added that doesn't work properly, this should just result in N/A values for the testing accuracies, but that's not really a problem with the back-end code itself.

The way the snakemake pipeline is currently set up, we don't have a way of just selectively running a few methods, because the way the codebase is set up, the full codebase cannot be linked as a snakemake dependency (e.g. if scikit-learn changes its default behaviour for an MLP, this should trigger a rerun of the corresponding method, but nothing in our codebase has changed.)

@scottgigante I think if a method depends on scikit-learn, then a particular version of it needs to be pre-installed in the docker container for that method (e.g. as part of a conda environment), or at the very least the docker image should contain a snapshot of the environment including all versions that can be installed via conda/pip (e.g. in the form of a conda environment file, see conda env export). Basically, I think the docker container should completely encapsulate all the dependencies of a given method. I haven't worked with docker in a while, but based on what I know this seems feasible and so in my mind I'm thinking of the docker image as the file that can serve as a very useful dependency for snakemake or a snakemake-like system that checks the md5sum of the docker image or something like that.

One thing we have talked about is storing intermediates in S3. An example is the current data loaders, which currently store intermediates in /tmp after they are run the first time. Eventually this will be stored in S3 instead -- then any change to the raw data or the preprocessing will trigger a rebuild. We could do the same for methods and metrics, by using S3 as a cache, we can check the uploaded file against a hash of current code versions, and if anything has changed, recompute.

@scottgigante I think this definitely goes in the direction that I was thinking in. The main difference is that I'm not thinking of the things (docker images, data files) stored on S3 as "intermediates". I would make them the primary data source for the entire project. Once we have cloud storage available, I think we have to weigh the complexity burden it puts on the system to allow external downloads while maintaining this type of version control, vs. the benefit of being fully transparent in terms of "preprocessing" the data. I feel like definitions of preprocessing and "raw data" are quite arbitrary. If we're downloading a count matrix from GEO, why is cell or gene filtering considered "preprocessing", but read mapping and expression quantification (UMI counting) not? Are there really a lot of tangible benefits to making these "preprocessing" steps part of the infrastructure?

Sorry, I just remembered that I had another comment that I forgot to mention in my initial post:

This is related to 2) (storing of results): I we're running methods through docker, I think it would also make sense from a technical perspective to require (as part of the "API"/specifications for a particular task) that the results be written to a particular file in a particular format. I think in docker you can mount external file systems (probably even S3 buckets) that allow you to read and write stuff, since a docker file is immutable. I think this would also completely decouple the language in which a particular method is run in. So you could run an R method in a docker image and just write the results to a particular file, then the result would get read by our Python code after the docker container has shut down.

This is sort of splitting into multiple discussions so I would recommend shifting the discussion of saved outputs to https://github.com/singlecellopenproblems/SingleCellOpenProblems/issues/45.
Re: decoupling from languages, I can imagine shifting to a YAML format where a method is built from a file containing method metadata (currently contained in decorators) and a script file of the form ./script /path/to/input.h5ad /path/to/output.h5ad. I think there are some trade-offs to be managed here, principally in the realm of sandboxing -- the current setup is very easy to interact with by running a simple git clone; pip install; python -c 'import openproblems'. If everything is moved to language-agnostic descriptors that are run exclusively in docker containers we lose some of that ease of use in favour of breadth of use.
I'm yet to see a use case where rpy2 can't be used to run more or less any R code, and I doubt that many other languages are in high demand at present. There is already substantial boilerplate involved in adding a method, maybe simply adding a template PR to add an R method would solve this issue without the subsequent loss of ease of use?

Re: your other point:

Regarding testing, I think the testing system needs to be completely decoupled from the "actual" (real-world) set of methods and datasets available at any given time. I think that for each task, there should be a few (at least one) dummy datasets, and a few (at least one) dummy methods. The test would then be a check of whether the code can correctly load a dataset, execute a method, read a result, and then calculate the metrics for each task. I don't think the testing system should include a test of whether a particular (real-world) method is running correctly

I tend towards keeping testing of all methods in here -- otherwise how do we know when to merge a PR? It's relatively low cost and ensures that we're not filling our repo with low-quality code.

I guess my idea was that methods should not be part of the codebase but instead just be docker images. Maybe you could keep the metadata for each method in the codebase, a yaml file could be sufficient for that. It just feels to me that there are too many functionalities tightly coupled together through the code and the testing system at the moment, and that the current architecture won't be able to support all the features requiredreach its limit in terms of what you can do with it before you're even

I think it is paramount to have the methods as part of this. By ensuring the code is easily accessible it is possible for anyone to go and check what a method is doing. That makes it easy to detect cheating (which would be easy to do as you have access to the datasets via the data loaders and the ground truth).

@LuckyMD I think there's possibly some confusion (or maybe it's a difference of opinion) about what this codebase really needs to do. It looks to me that we need a framework which at its core needs to implement some form of "version control" for both datasets and methods, be able to execute the methods on those datasets, then evaluate the results against a set of methods, and present the results on a website. Benchmarks should only be re-run for a particular combinations of methods and datasets if either the method or the dataset is new. Realistically I think the framework also needs to be language-agnostic in terms of what programming language is used by the methods, since the CompBio world is firmly divided between Python and R and perhaps a smattering of other languages. And it needs to be built on cloud infrastructure to make sure you have enough computational resources (especially memory) to run all these methods.
I think @scottgigante can probably speak better about how compatible the current code is with those features. To me it seems that the idea of having a language-agnostic framework is at odds with including the methods directly in this codebase, and that the idea of version control for datasets is somewhat at odds with downloading the datasets on the fly from external sources. And I think the idea of only re-running benchmarks if the method or the dataset has changed (or is new) requires some careful planning.
Regarding your concern that there needs to be transparency in terms of the code of each method, I think a reasonable solution would be to publish electronic notebooks that document exactly how each docker image is generated (which would for example including a command like "pip install magic-impute==2.0.3 " that provides transparency in terms of where the code is coming from. We talked before about how this approach could be useful to provide transparency in terms of how the datasets are generated. In this scenario, if I want to "contribute" a method to the website, I would make a docker image and provide an electronic notebook documenting how I created the docker image.

I am actively working on an easier integration of R code. I feel very strongly that the code for all methods should be easily accessible in the repo.


Added ability to disable lighting in the viz-module.

When I reconstructed the 3D scene I want to show it as viz::WMesh with an initial value of lighting. For this I disable lighting and shadows:
cv::viz::Viz3d viz_3d_window("3D");
viz_3d_window.setRenderingProperty("mesh", cv::viz::LIGHTING, 0);
Most of the examples show the 3D reconstruction using the point cloud, but using  the mesh one part of it creates a shadow on other parts of it if lighting ON.
Using a 3D mesh with disabled lighting gives the most realistic picture of the reconstructed 3D scene.

:+1:


Fixes #14945: FiveTran Improvements

Describe your changes:
Fixes #14945
I worked on Fivetran Epic improvements

Type of change:

[x] Bug fix
[x] Improvement
[ ] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] My PR title is Fixes <issue-number>: <short explanation>
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] For JSON Schema changes: I updated the migration scripts or explained why it is not needed.


Merge develop into master for release

Merge develop into master for release

:tada: This PR is included in version 0.5.1 :tada:
The release is available on:

GitHub release
v0.5.1

Your semantic-release bot :package::rocket:


Problem with run_conv_net.py

Traceback (most recent call last):
File "/home/saber/Desktop/Deep-Learning-TensorFlow-master/cmd_line/convolutional/run_conv_net.py", line 90, in
convnet.fit(trX, trY, vlX, vlY)
File "/usr/local/lib/python2.7/dist-packages/yadlt/core/supervised_model.py", line 62, in fit
self.build_model(train_X.shape[1], num_classes)
File "/usr/local/lib/python2.7/dist-packages/yadlt/models/convolutional/conv_net.py", line 109, in build_model
self.cost = self.loss.compile(self.mod_y, self.input_labels)
AttributeError: 'ConvolutionalNetwork' object has no attribute 'mod_y'
I got this problem,have no idea, Any help will be appreciated! Thank you!
I directly run run_conv_net.py. It leaded the error?

Issues solved! It took me a long time  to sovle it. I shouldn't directly run run_conv_net and should modify the Cmd example usage to make it trained by Mnist. What's more, it's weird that TensorFLow 0.12.0 above will work. 0.8.0-0.11.0 always miss something module.

But when I run "python run_dbn.py --dataset mnist --main_dir dbn-models --model_name my-deeper-dbn  --verbose 1 --rbm_layers 512,256 --rbm_learning_rate 0.005 --rbm_num_epochs 15 --rbm_batch_size 25 --finetune_batch_size 25 --finetune_learning_rate 0.001 --finetune_num_epochs 10 --finetune_loss_func softmax_cross_entropy --finetune_dropout 0.7 --finetune_act_func relu"
It tells me that
File "run_dbn.py", line 114, in
finetune_dropout=FLAGS.finetune_dropout)
File "/usr/local/lib/python2.7/dist-packages/yadlt/models/boltzmann/dbn.py", line 59, in init
momentum=momentum)
File "/usr/local/lib/python2.7/dist-packages/yadlt/core/trainers.py", line 51, in init
use_nesterov=d("use_nesterov", False))
File "/usr/local/lib/python2.7/dist-packages/yadlt/core/trainers.py", line 33, in d
return kw[k]
KeyError: 'use_nesterov'
looks like the 'use_nesterov' doesn't exsit in the dictionary. I hope you are aware of it, Thanks a lot!!!\

Hi! Sorry for the late response!
The 'use_nesterov' issue is now fixed in the latest master branch code. I guess I should also update the pip package to this new version.

Yes! Every time I install it, it is still the old version. However, Thanks for your Contribution~~

Ok, now you should be able to get the latest version from pip :smile:

I just hurry to my home and it.....just works!!! You guys just like a wizard! :100:  I will study your code one line by one line and try to figure out what is going on there~ Thanks again!! I hope I can contribute to it one day~~:-)


PLT-5493 React Native: Add a profile scene that shows user information

Summary
This PR adds a user profile screen that can be accessed by clicking on the username or profile picture on a post.
Ticket Link
https://mattermost.atlassian.net/browse/PLT-5493
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Added or updated unit tests (required for all new features)
[ ] All new/modified APIs include changes to the drivers
[x] Has UI changes
[x] Includes text changes and localization file updates

@jarredwitt

@enahum changes made.


Lookup use text instead of value

Pretty sure this is an easy one but cant quite get it for some reason (probably has to do with the screaming baby in the background :(
I have a lookup i want to use but i want to save the text field of the lookup, not the id field.
so i have the lookup:
ID: 1 Value: test1
ID: 2 Value: test2
ID: 3 Value: test3
when i save the entity that uses this lookup its saving with the ID. I want to save the text instead.
sorry i explained that pretty bad!

If you want get description in client side, see https://github.com/volkanceylan/Serenity/issues/2521
If you want get descriotion in server side use  Serenity.GetText() enum extension method

thanks but it is not an enum actually .. i have a table that holds this lookup .. called "reviewtypes"
has rows like "surgery" , "anesthesia", etc.

A simple solution, may be to create a separate lookup (server side) that uses the text as both the 'IdField' and 'TextField'...note that I haven;t tried this myself though.
namespace MyApp.Scripts
{
    using Serenity.ComponentModel;
    using Serenity.Data;
    using Serenity.Web;
    using Entities;

    [LookupScript("MyApp.MyLookup", Permission = "*")]
    public class MyLookup : RowLookupScript<MyRow>
    {
        public MyLookup()
        {
            IdField = MyRow.Fields.Name.PropertyName;
            TextField = MyRow.Fields.Name.PropertyName;
        }

        protected override void PrepareQuery(SqlQuery query)
        {
            var flds = MyRow.Fields;
            query.Distinct(true)
                .Select(flds.Id, flds.Name, ...)
                .Where(...);
        }

        protected override void ApplyOrder(SqlQuery query)
        {
        }
    }
}

Make sure you update the LookupEditor attribute in your Form or Row class.
    public Int32 Id { get; set; }
    [LookupEditor(typeof(MyLookup)), ...]
    public String Name { get; set; }
    ...

client side - add a changeSelect2 event to the 'LookupField' that transfer the text to the 'LookupFieldText' field.
constructor() {
    super();
    ...
    this.form.LookupField.changeSelect2(e => this.entity.LookupFieldText = this.form.LookupField.text);
    ...
}

server side - in the repository class
    private class MySaveHandler : SaveRequestHandler<MyRow> {

        protected override void ValidateRequest()
        {
            // code to lookup the text from
            base.ValidateRequest();
        }
    }

Lookupscript as suggested is the way.


REST API setConfig fails to update clientPorts connectPort and others

I am trying to call this REST API from Fiddler. I set POST and request body.  The call returns success 200.
Exhibitor : http://solr1:8080/exhibitor/v1/ui/index.html
Exhibitor version 1.5.1
But I look at the Config tab, i notice it does not update anything below ports.
Any help would be greatly appreciated. Thank you
REST Call: http://solr1.erpint:8080/exhibitor/v1/config/set
Request Body:
{"rollInProgress":false,"rollStatus":"n/a","rollPercentDone":0,"hostname":"erpintslr1","serverId":1,"logIndexDirectory":"","zookeeperInstallDirectory":"/opt/zookeeper","zookeeperDataDirectory":"/var/lib/zookeeper/data","zookeeperLogDirectory":"/var/lib/zookeeper/logs","serversSpec":"S:1:erpintslr1,S:2:erpintslr2,S:3:erpintslr3","backupExtra":"","zooCfgExtra":{"syncLimit":"5","tickTime":"2000","initLimit":"10","autopurge.snapRetainCount":"3","autopurge.purgeInterval":"1"},"javaEnvironment":"","log4jProperties":"","clientPort":2181,"connectPort":2888,"electionPort":3888,"checkMs":30000,"cleanupPeriodMs":43200000,"cleanupMaxFiles":3,"autoManageInstances":0,"autoManageInstancesSettlingPeriodMs":180000,"observerThreshold":999,"autoManageInstancesFixedEnsembleSize":3,"autoManageInstancesApplyAllAtOnce":1,"controlPanel":{}}
Exhibitor logs
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22960 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22958 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22955 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22953 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22949 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22948 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22944 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22942 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22938 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22937 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22933 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22932 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22926 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22914 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22913 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22909 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22907 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22904 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22902 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22897 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22897 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22891 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22891 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22880 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22880 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22875 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22874 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22869 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22869 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22864 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22863 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22859 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22858 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22853 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22853 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22847 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22847 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22842 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22841 of 40000 ms before restarting
Tue May 05 19:10:10 EDT 2015	INFO	ZooKeeper down/not-serving waiting 22837 of 40000 ms before restarting

It turns out the numeric values are passed as strings. So pass the port values as "NNNN" instead of NNNN.


Added an option to choose the tag under the cursor

I got annoyed that I had to specify which tag I wanted when my cursor was
always on the one I wanted, so I added an option that would take
whatever tag the cursor was on when there was an option if it was a valid
tag. I wasn't sure if you'd care, but I figured I'd just create the request and
let you decide if you wanted to pull it or not.
Added g:helplink_choose_tag_under_cursor to Options section (Defaults to
off).
If this option is set and the cursor is on a tag, vim will automatically
take the tag under the cursor instead of asking which one to use.

Thanks.
I actually changed it to enable this by default, and renamed the option to g:helplink_always_ask (default: off).


Add missing dependency to Xcode project.

This allows building from the command line without further ado.

@danchr
Very very very sorry, I saw your PR the other day in the morning, but thought I should get some coffee first, and then forgot. Thanks a whole lot, merging right now.

Thanks 🙂 FWIW I ran into this when creating a port for MacPorts — mainly so that I could get easy upgrades.


Alias Generator Not Converting Field Names to CamelCase with .model_dump(by_alias=True)

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
Hey,
I'm trying to use Field and alias_generator in Pydantic, but it doesn't seem to affect the field names when I use .model_dump(by_alias=True). The fields remain in snake_case instead of being converted to camelCase.
The output I get is {'current_account': '12345'}
The expected output is {'currentAccount': '12345'}
Could you please help me resolve this issue?
Thanks!
Example Code
from pydantic import BaseModel, ConfigDict, Field
from pydantic.alias_generators import to_camel

class Account(BaseModel):
    model_config = ConfigDict(populate_by_name=True, alias_generator=to_camel)
    my_account: str = Field(serialization_alias="current_account")

class Account_2(BaseModel):
    model_config = ConfigDict(populate_by_name=True, alias_generator=to_camel)
    my_account: str

if __name__ == '__main__':
    a = Account(my_account="12345")
    print(a.model_dump())
    print(a.model_dump(by_alias=True))
    a_2 = Account_2(my_account="6789")
    print(a_2.model_dump())
    print(a_2.model_dump(by_alias=True))

# output

{'my_account': '12345'}
{'current_account': '12345'}  # expected `{'currentAccount': '12345'}`
{'my_account': '6789'}
{'myAccount': '6789'}

`

Python, Pydantic & OS Version
pydantic version: 2.9.2
pydantic-core version: 2.23.4
pydantic-core build: profile=release pgo=false
install path: C:\Users\MYUSER\PycharmProjects\INTERPRETER\gw\Lib\site-packages\pydantic
python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct  2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
platform: Windows-10-10.0.19045-SP0
related packages: fastapi-0.115.0 mypy-1.11.2 pydantic-extra-types-2.9.0 pydantic-settings-2.5.2 typing_extensions-4.12.2
commit: unknown

As per the documentation, the serialization_alias takes precedence over the alias_generator, unless you change the alias priority. If you want the serialization_alias to be converted using to_camel, this is not possible. What prevents you from doing my_account: str = Field(serialization_alias="currentAccount")?


Add more type hints

Coverage increased (+0.2%) to 58.442% when pulling 49f392823bd88488a99d93452cc884328fdc0100 on add-more-type-hints into a5ad4fc7634f232d510b7d821891cb76b29e77d4 on master.


[Q&A] 使用 cgroup-devices 和 lxcfs-rw 后， debugfs 报错

A: 因为 debugfs 只支持 ext2/ext3/ext4
https://linux.die.net/man/8/debugfs

The debugfs program is an interactive file system debugger. It can be used to examine and change the state of an ext2, ext3, or ext4 file system.
device is the special file corresponding to the device containing the file system (e.g /dev/hdXX).


no detection results on demo.py

Hi,
I am trying to generate some visual results on VSPW dataset, I used VIPSeg's config and ckp, but it detect 0 instances, could you give me any suggestions?
Thanks!

There were some bugs in the inference process in VSS mode, but I have fixed them. After testing, it works well now. In VSS mode, the number of instances is not counted, so it will display as 0.

The results are:
demo_out-197.zip

Thanks much for your help! It works now.


Some questions about n_steps，n_envs and padding_side.

Thanks for such great work!
I am familiar with NLP, but new to RL.  What does n_steps mean? Or what does it control? In text generation, does it mean generate n_steps tokens?
For n_envs, why do i need more than 1 env? Does losses from different env will be averaged?
At last i saw that the update function in observation.py only considered left padding. I think it also need a right padding one?
Thanks again and sorry for so much questions.

n_steps - number of interaction steps with environment (each interaction corresponds to observe, take action and get reward )
n_envs - parallel environments
n_envs and n_steps together control of total number of interactions before we make an update using the algorithm. In particular, this means we generate n_envs sentences using actions from policy up to a length (specified in generation kwargs) and once we reach n_envs x n_steps interactions, we stop and use the collected interactions to update the policy.
With respect to padding, the padding you see in update function of observation.py is only with respect to context (which holds previously generated tokens) and padding of left is sufficient for this. The padding of input text is controlled by setting padding side in tokenizer (https://github.com/allenai/RL4LMs/blob/d2a8f4ff519df0ba263734bcdb3b7e355ffe8306/scripts/training/task_configs/synthetic_generate_increasing_numbers/gpt2_ppo.yml#L3) which supports both right and left padding.
Hope this provides some clarification.

Hi @rajcscw. Another beginner here. Adding a couple more minor related questions:

Verify: Each interaction consists of using one of the sentences (or one of the envs), predicting the next token (the action), and getting the reward (via completing the sentence using rollouts, and then computing the reward metrics).
Thanks for the description above. Could you please build on that to include the role of alg/args/n_epochs and train_evaluation/n_iters, plus their difference with the epochs and iterations used in a standard ML / NLP task?


Reliance on human_attribute_name does not work with plural model classes

I have an ActiveModel class named Credentials with encapsulates an email and password form. I define the following translations:
---
en:
  activemodel:
    attributes:
      credentials:
        email: Email Address
        password: Password

However, when I call fill_form(:credentials, { email<EMAIL_ADDRESS>password: 'password' }, I get an InputNotFound error. Formulaic first tries to use simple form translations to find the input. Failing that, it tries to get at human attribute name by classifying the model name passed to fill_form. Unfortunately, classify uses the inflector to singularize the input.
I don't know if there's a great solution to this. I can't think of a scenario where the singularization would be useful for formulaic, but I also think reimplementing classify might be more trouble than its worth here as well.
For now, I can work around this by duplicating the translations as simple_form label translations, but this is also not an ideal solution.

adding inflect.uncountable 'credentials' to my inflections also fixes this and is likely a fine solution for this (even though its a lie). If you don't have a good idea for fixing this without the inflector, then feel free to close.


Remove the second argument to MultiChildLayoutDelegate.performLayout()

Fixes https://github.com/flutter/flutter/issues/2403
I have an e-mail ready to send to flutter-dev about this.

LGTM