Provide a way to add/see properties for a server

Orchestrator is aware of the replication environment but not aware of the larger environment in which a server may be running in.  This information is thus not exposed to DBAs or sysadmins who may be using orchestrator.
It may be desirable to add certain properties to a server, ignored by orchestrator but store by it s o they can be seen by the user, especially on http interface.
Ideas for such properties or labels may be:

it's "role" or "type" used in other parts of configuration management
using a specific type of storage, e.g. filer storage
testing server
using specific types of hardware
other site specific property values

If we allow orchestrator to store this information it must be able to also remove and display it.

given http space is somewhat limited perhaps add another "dot" with a mouse over which provides a list of properties. that's similar to other usage in the GUI
provide a cli interface to extract properties for an instance
provide a http api interface to extract all properties from all instances

These properties should be persistent across an orchestrator restart.
The aim of adding these properties is so that it's easier to see them in the GUI but also external tooling around the MySQL servers or orchestrator may find it helpful to query orchestrator to get these values.

related: https://github.com/github/orchestrator/pull/664


Setting a fixed width on a Dropdown component adds extra space to the outside

Setting a Dropdown component's width (in order to prevent jumping sizes on different selections) causes any extra space to be put on the outside of the text and indicator:

IMO the extra space should be between the text and the indicator:

@mcoker making you aware of this one. Is this something we need to fix in Core?

@rachael-phillips yep!

:tada: This issue has been resolved in version 2.20.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Doc Feedback: "not" missing from "note" section

In the only "note" of the page (point 3), there is a "not" missing.
"Note : It is recommended to throw errors from the Java methods to the authentication script. All the errors have to be handled by the method itself."
Location : https://is.docs.wso2.com/en/5.10.0/develop/writing-custom-functions-for-adaptive-authentication/

Good catch @gspadotto :)
https://github.com/wso2/docs-is/pull/2683/files should fix this.


pkg subsystemctl is removed from aur?

https://aur.archlinux.org/packages/subsystemctl
return 404 for now

Yes, they don’t accept WSL exclusive packages now. I’ll publish PKGBUILD directly in this repo soon.

Yes, they don’t accept WSL exclusive packages now. I’ll publish PKGBUILD directly in this repo soon.

thanks, I'm using https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=subsystemctl as a temporary substitute

noted (but forgot to close) https://github.com/sorah/subsystemctl#arch-linux


the namesapce named Yii is not found

<?php
/**
 * Yii bootstrap file.
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

require(__DIR__ . '/BaseYii.php');

/**
 * Yii is a helper class serving common framework functionalities.
 *
 * It extends from [[\yii\BaseYii]] which provides the actual implementation.
 * By writing your own Yii class, you can customize some functionalities of [[\yii\BaseYii]].
 *
 * @author Qiang Xue<EMAIL_ADDRESS> * @since 2.0
 */
class Yii extends \yii\BaseYii
{
}

spl_autoload_register(['Yii', 'autoload'], true, true);
Yii::$classMap = require(__DIR__ . '/classes.php');
Yii::$container = new yii\di\Container();

I have some confusion that why the file named Yii.php don't have namespace.
I know the class named Yii extends \yii\BaseYii .But I found some file generated by gii like this.
namespace common\models;

use Yii;

/**
 * This is the model class for table "xxx".

You will find the 'Yii' . But I find no namespace named Yii  in framework.
This make me confusion.

My English is not good,I'm sorry.

Yii is located under the root namespace and is included manually in index.php. See https://github.com/yiisoft/yii2-app-basic/blob/master/web/index.php

Yii is a class in the root namespace, other yii classes are in the yii\ namespace.

Why the file generated by gii is use Yii  not use yii. Though the namespace is not case-sensitive . The IDE named phpstrom show this occurred  a warning.

that is a bug in the IDE. see #11201

I see. Thank you very much :)


change incorrect instance of getYaw()

Before, it was getYaw() before describing getSkew(). That is not correct.

This fixes #266


New name!

React-animation is taken on npm. Let's find a better name for it.
Current suggestions:

React-Spring (not sure, we might add Decay component later)
React-Motion
React-Move
Reanimation
React-Tween

React-Motion is nice

React-Physics
React-State-Physics
React-Dynamic-Animation
React-Pop :stuck_out_tongue:

ng-react-animation-library-by-cheng-lou™.js

@sebmck hmm good suggestion but I'm afraid it's hard to type npm install ng-react-animation-library-by-cheng-lou™ in the terminal

What about npm install ⚛✨ then?

Not sure how to require that from vim so I'll have to scratch that.

I went from react-animation to re-animation. reanimation or react-necromancer :wink:

@chenglou did you try to contact react-animation package owner? It seems that package is abandoned and it is likely they can transfer package name to you.

react-motion :+1:

react-anim
react-tween
react-transitions

@brentvatne react-pop would be neat, too bad this library has no association with Pop (except in spirit!)
@andreypopp: yeah I did, hasn't replied yet.
@devknoll re-animation...humm

I kind of like reanimation - brings linear, static animations to life :)

re-animation sound cool, but Im not sure people will associate it to react right away (so might be harder to find it)

How about react-kinect ??

react-motion :+1:
what about, drumroll: react-animotion?

:+1: on re-animation or reanimation too :); ranimation could be another one too

I like kinetic too :smile:

I like reanimation.

using the react- prefix make it WAY MORE easier to locate a package in the npm hell, so I'm against the "re" only prefix. Sorry @dariocravero  :D

spring-animation or reanimation

@attilah haha yeah, I know what you mean, we still have keywords though ;)

Keyword should be fine enough to compensate for reanimation. I'm leaning toward that or react-motion

:+1: react-motion

@chenglou
while react-motion is pretty good, react-animation somehow sounds better. Try contacting npm.

reanimation is pretty cool!
How about replay or react-play?

I like how react-motion is both pragmatic and hints that it's not your regular $.animate.

@gaearon I like the idea of avoiding the baggage of what $.animate entails :+1:

React-motion sounds good.

React-FX? I like React-Motion too :+1:

react-motion : not tied to a specific technique/API (like Spring or Decay, and who knows what in the future) and still clear about the thematic.

Democracy has spoken! React-Motion it is. @brentvatne transfer please =)
Here are the honorable contenders:

Reanimation (definitely the next animation library name)
React-Tween
React-⚛✨ (import ⚛✨ from 'react-⚛✨)

Thanks was fun, people! =)
Now back to polishing the library for the impending release. Closing!

@chenglou - transfer complete :smile: all yours

React-⚛ (import ⚛✨ from 'react-⚛✨)

Unusable since you forgot a '! :trollface:  That being said, love the new name. :+1:


Allow for users to enabled release mode debugging

If a ENV var is set then the menu options are present

This PR also prevents some menu options from throwing exceptions if
the main window is closed.

Signed-off-by: Sebastian Malton<EMAIL_ADDRESS>

We are already having DEBUG=true env var option that enables verbose logging. Just thinking could we enable those consoles when that env var is set to true as well.

@nevalla Do you think it should be "as well" or "instead"?

@nevalla Do you think it should be "as well" or "instead"?

Instead 🙂

@nevalla done

I would also like to say that this doesn't actually work. Because if you run the app (from say the dock in macos) the ENV is not propagated from a terminal. So there would be practical way to set any of these variables

I think we should also limit the size of the log file.


Fix multiple row adding

This fixes multiple row adding. So if there is no field present the next field is added right above the button and not at the beginning of the field.

Reviewer: @orlandohohmeier


infra: Common file sync 2023-09-06

Disclaimer: @benjaminulmer did not make this PR---it was made by a bot operating on his behalf (see bg-devcommon)
Files changed:
CMakePresets.json

Codecov Report

Merging #34 (4a765af) into main (77f1620) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@           Coverage Diff           @@
##             main      #34   +/-   ##
=======================================
  Coverage   32.07%   32.07%
=======================================
  Files           3        3
  Lines          53       53
=======================================
  Hits           17       17
  Misses         36       36

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Provide visual preview support for NDJSON

Is your feature request related to a problem? Please describe.
Many APIs return data in NDJSON (application/x-ndjson) format. The visual preview renderer almost gets it, but not quite. Specifically, the collapsing doesn't work correctly.
Describe the solution you'd like
I'd like the visual preview renderer to detect that the result is NDJSON (either by how it is formed, or by looking at the Content-Type header) and display it correctly, specifically the collapsing.
Describe alternatives you've considered
Alternatives are copying the raw result and paste it into an editor that works with NDJSON.
Additional context
For me, the collapsing works only every other line. This doesn't look like a bug; it rather looks like an arbitrary artifact of applying the JSON renderer to NDJSON data (which is almost, but not quite, JSON).

Related to this is support for NDJSON on the sending side.


Windows logo key

With Dark theme is windows logo key icon unrecognised.

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

ID: 0a1428fb-1282-c537-8714-29cf2ccb0446
Version Independent ID: d329fbf9-0b17-e4e4-733f-9b9c96eb46bd
Content: Developer Command Prompt for Visual Studio
Content Source: docs/framework/tools/developer-command-prompt-for-vs.md
Product: dotnet-framework
GitHub Login: @mairaw
Microsoft Alias: mairaw

Thank you for your feedback @Abedron. You're right, the icon disappears. We should replace the icon with something that works in all themes.


why is NaN==NaN;///false

Challenge Name

Issue Description

Browser Information

Browser Name, Version:
Operating System:
Mobile, Desktop, or Tablet:

Your Code

Screenshot

@Suyash2724 Thank you for reporting this issue but GitHub issues are for bugs on the site, not coding help. Please use search around elsewhere for an answer to your question. A place to start might be http://stackoverflow.com/questions/19955898/why-is-nan-nan-false. Please chat in one of the chat rooms linked below if you have more questions.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding!


Deleting isort and the lines in the settings.json

I would like to delete the linting "I" option, together with the options added in the .vscode/settings.json to format the order on save.
It just bugged out a lot during reworking my plugin, but in general, I doubt sorting imports is just interesting if there is the minimal chance that the linting gets crazy.
@blueraft

Thanks for raising the issue.
Internally within Area D import sorting is something we eventually want to bring to nomad-lab, which is why we have gone with import sorting for new plugins. It's also part of the new GUI lints.
Feel free to add or remove any linting rules for your plugins if you wish though.
Can you say a bit more on how the linting gets crazy? From my experience, it would just auto sort the imports on save and thats kind of it.

This was an issue with isort extension and ruff extension not working well together, the solution is to disable/uninstall isort extension since ruff provides the same functionality.


React-native project not running in iOS device (version 0.39.0)

Hi,
Iam working on react-native app. Previously my app is of version 0.25.0 but now i have upgraded the react native version to 0.39.0 of my application.
Now my app is not running on iOS device. It showing like 'bundleURL must be non-nil when not implementing loadSourceForBridge'.
My AppDelegate.m file looks like:
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  NSURL *jsCodeLocation;
  jsCodeLocation = [[RCTBundleURLProvider sharedSettings]<EMAIL_ADDRESS>fallbackResource:nil];
  NSLog(@"JSCodelocationh=%@",jsCodeLocation);
  RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                      moduleName:@"Roger"
                                               initialProperties:nil
                                                   launchOptions:launchOptions];
  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  return YES;
}

In this my jsCodeLocation is returning null value. Can anyone tell me how to solve this.

Why are you calling jsBundleURLForBundleRoot in the first place? I don't see that mentioned in our docs anywhere.

@lacker I did not modify anything in app delegate after I upgraded the project it is the new app delegate file.

I had a similar problem.
Adding -lc++ in Other Linker Flags helped.
I also updated the code in AppDelegate to not use jsBundleURLForBundleRoot (it was used in the example project for react-native-navigation)
Check this: (npm 3 had the same issue)
https://github.com/facebook/react-native/issues/7566#issuecomment-219226634

Hi Peyotle,
I have added the -lc++ but I got same issue what i have to use instead of
jsBundleURLForBundleRoot
On Mon, Dec 19, 2016 at 2:53 AM, Peyotle<EMAIL_ADDRESS>wrote:

I had a similar problem.
Adding -lc++ in Other Linker Flags helped.
I also updated the code in AppDelegate to not use jsBundleURLForBundleRoot
(it was used in the example project for react-native-navigation)
Check this: (npm 3 had the same issue)
#7566 (comment)
https://github.com/facebook/react-native/issues/7566#issuecomment-219226634
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/11451#issuecomment-267847696,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASbdy2PWNBMSGhQXlKBNJp8CHUbGiwlEks5rJaRqgaJpZM4LMkZa
.

--
Thanks & Regards,
I.K.Swaroopa,
Stellent Soft Pvt. Ltd.

hi @swaroopa94,
I have encountered with the same issue, can you please let me know if you have solved this issue.
thanks.

@Moussawi7
Hi I have some error in my project so I am getting my bundleURL as null.

Thanks.

Oh @swaroopa94,
Thanks a lot, everything is fine now.

in my case I don't have any error running react-native bundle --dev false --assets-dest ./ios --entry-file index.ios.js --platform ios --bundle-output ios/main.jsbundle
I'm building the app in bitrise.io, after 0.39 , it builds without errors but it can't find main.jsbundle so it crash on startup.
It's like something changed and the main.jsbundle its not generated anymore, perhaps generated in a different path?

Reminder: can be caused by not having localhost bound to <IP_ADDRESS> in hosts file, or running a proxy app which blocks localhost.

@jackkav dude you just saved me! I use gasmask and had a hosts file that didn't map <IP_ADDRESS> to localhost

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with Canny! Check out its new home: https://react-native.canny.io/feature-requests/p/react-native-project-not-running-in-ios-device-version-0390


53812687 - Disable auto bug filing via TSA for the 1.6-Stable branch on the Foundation repo

Disable auto bug filing via TSA for the 1.6-Stable branch on the Foundation repo, as we focus on enabling TSA for the main branch.
Once this PR has been merged, I will attempt to CP it to 1.5.
A microsoft employee must use /azp run to validate using the pipelines below.
WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.
For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

/azp run


Fix incorrect build directory

Original error message:
CMake Error: The source directory "/root/OpenShadingLanguage-<IP_ADDRESS>/src/build-scripts/ext" does not appear to contain CMakeLists.txt.
Build occur in src/build-scripts/ext/OpenImageIO/build
It should look in .. src/build-scripts/ext/OpenImageIO instead of going to ../.. src/build-scripts/ext/OpenImageIO
Description

Tests

Checklist:

[x] I have read the contribution guidelines.
[x] I have previously submitted a Contributor License Agreement.
[x] I have updated the documentation, if applicable.
[x] I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
[x] My code follows the prevailing code style of this project.

Further check investigation required


Change the Navbar

Add logo
Change the font
Increase the width
if possible use better colours with them.

I will like to work on it sir @anushbhatia


shellenv missing

After installation it doesn't work because shellenv package is missing:
import sublime, sublime_plugin, subprocess, time, re, os, subprocess, sys, shellenv
ImportError: No module named 'shellenv'

thanks mate !, it should be fixed
https://github.com/alvarolm/GoGuru/commit/947034defe67c9369ce8a64eb528a88e077f8e07
https://github.com/alvarolm/GoGuru/commit/ab69ee88d59d31ebe3992903bfbe816fb30ff5f9
https://github.com/alvarolm/GoGuru/commit/87e8d4198b79ccaf6e4aae2dd5ce489585c402ad
please tell me if its working for you and I'll close this one
:)

Updated using git. Still fails
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 78, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "/Users/uldericofilho/Library/Application Support/Sublime Text 3/Packages/GoGuru/goGuru.py", line 11, in <module>
    import sublime, sublime_plugin, subprocess, time, re, os, subprocess, sys, shellenv
ImportError: No module named 'shellenv'

I do see files in dep/ though.

fixed https://github.com/alvarolm/GoGuru/commit/cdf94d284de08bcac6cd3cd8812211a747ff9afe
the are https://github.com/alvarolm/GoGuru/tree/master/dep/shellenv
please try again :)

Problem fix. Another bug remains, opening a new issue.

hooray ! this one is over :)
I'll watching for the new issue, thanks !


ci: add cgo support

Hello @nicks,
Please review the following commits I made in branch nicks/cgo:
abc493eb95ee4696fdb74228805c70113bb5f5f2 (2022-03-14 18:13:36 -0400)
ci: add cgo support
Code review reminders, by giving a LGTM you attest that:

Commits are adequately tested
Code is easy to understand and conforms to style guides
Incomplete code is marked with TODOs
Code is suitably instrumented with logging and metrics

Hi! This is the friendly automated conda-forge-webservice.
It appears you are making a pull request from a branch in your feedstock and not a fork. This procedure will generate a separate build for each push to the branch and is thus not allowed. See our documentation for more details.
Please close this pull request and remake it from a fork of this feedstock.
Have a great day!

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


typo: EXISITING -> EXISTING

@Dansimp @AndreaBarr - PR is ready for final review. This is just a typo issue. Thanks.


router ssl squash

This is a pre-final PR for comments and clean up.  This will also lead to a follow up doc PR to migrate routing.md into the documentation project

For your review:

Implementation of adding certificates to a route for the following scenarios:

edge termination: router accepts tcp traffic with SNI on :443.  Use a cert, key, and ca cert at the router.  Send decrypted http traffic to endpoints
pod termination: router accepts tcp traffic with SNI on :443.  Router sends encrypted tcp traffic to  endpoints
reencrypt termination: router accepts tcp traffic with SNI on :443.  Use a cert, key, and ca cert at the router.  Create a tcp ssl backend that does a health check with a ca cert on the endpoints
non-sni: router tries to use a generic cert to decrypt traffic.  Then attempts to check for a reencrypt backend, if none is found then use a regular http backend

refactor of route domain to handle certificates.  Summary: ServiceUnit is 1:1 for a service.  ServiceUnit.EndpointTable still contains all known endpoints for the service.  ServiceUnit.ServiceAliasConfig is 1:1 for a route.  Certificate information is stored on the ServiceUnit.ServiceAliasConfig
Validations and validation test cases to support the constructs above
Refactor of existing tests to support the new domain
HAProxy implementation of the template router to support the scenarios above.  When reviewing the template please keep this diagram in mind: https://docs.google.com/a/redhat.com/drawings/d/1fRsvKg1iuY1EfQ-C3O6s8lxxouapzuCwVz7jFUKDUsc/edit

Open Issues:

HAProxy prompts for a password when using an encrypted private key and does not provide a way to automate the response.  Currently we need a non passphrase protected private key
Private key passphrase is stored in clear text.  See above, currently validation prevents users from storing a passphrase as an temporary solution
Loading of the files from the cli is done in the REST implementation @ffranz - let me know the best way to handle this and I'll make the correct updates
certmanager.go is not writing the ca cert - didn't get to it yet, will address Monday
Bug: deleting a route removes all service alias configs for the service name
Bug: route mods don't appear to be working as intended (not due to new code, but will address)

I have tested the following scenarios so far:

plain route (non-ssl)
edge term only
pod term only
edge term and pod term in combination (2 services, 2 routes)

@pmorie @rajatchopra @smarterclayton

@smarterclayton : per our discussions in IRC on Friday, next step in the router lifecycle needs to be determining how much of this can be EOL'd with all the recent PRs in upstream.

Just FYI, I will squash the fixes I'm committing, I just have to go through the commit/push/build process for the images for a full test.

@thockin as per the discussion at the Kube face to face, a lot of these capabilities are useful for abstract ingress of traffic.  i think it's generally useful enough on its own to be a Kube plugin like logging (even without the rest resource)

Rebased, closing this for final testing and PR


Class-Level Swagger Responses not showing in generated swagger doc

It appears class-level swagger responses or not recognized by the the nswag command line generator. The only responses that appear in the generated swagger appear to be the ones defined on the endpoints themselves.
Steps to reproduce:

Create a new dotnet core project
Annotate a class with the below attribute.
Use the command line generator to create a swagger doc. Notice the response is not recognized.

[SwaggerResponse(HttpStatusCode.Forbidden, "The user is not authorized")]
Thanks

https://github.com/NSwag/NSwag/commit/3ee465214d83f3a2a05292a6592b0a1a92eb4ec0


add: ability to wrap markdoc in layout

This fixes https://github.com/markdoc/markdoc/discussions/329, where on upgrading to the app directory structure for Next JS it's impossible to get the context of the markdoc prop outside of the markdoc component itself making it near impossible to do things like creating table of contents, sidebars, etc.
This PR takes the approach I've used on my project which creates a "layout" component that wraps markdoc components allowing you to insert the markdoc context into an outer wrapper which can contain table of contents components etc.
This effectively gives you the same flexibility as the pages router did.

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

@arranf we won't support layouts directly in this plugin. To support layouts, we would want to encourage folks to use Next.js Layouts: https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts. If those don't currently work, I would be happy to accept PRs to improve compatibility.

@arranf we won't support layouts directly in this plugin. To support layouts, we would want to encourage folks to use Next.js Layouts: https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts. If those don't currently work, I would be happy to accept PRs to improve compatibility.

Hey Mike, I appreciate it's not a particularly elegant solution and I'm happy to try and alternate approach. Given the difficulties provided by #462 - I'm not sure it's possible using any other mechanism to create a wrapper component which receives the relevant markdoc context.
If you have an alternate approach in mind I'm happy to put together a PR


Dockerize Repo

Is your feature request related to a problem? Please describe.
Having a docker option for development will help new contributors get setup faster sicne development environments can vary drastically.
https://www.zdnet.com/article/what-is-docker-and-why-is-it-so-darn-popular/

Is your feature request related to a problem? Please describe. Having a docker option for development will help new contributors get setup faster sicne development environments can vary drastically.
https://www.zdnet.com/article/what-is-docker-and-why-is-it-so-darn-popular/

Hii, thanks a lot for you PR, we've merged the PR and have also given the hacktoberfest-accepted label. If you would like to contribute more, you can check out other issues.


Clarify the docs regarding libcurl for installation on openSUSE

PR Summary

Explicitly mention the conflict error and the solution.

Make the command that looks for libcurl more precise, since the goal is to find the specific package that places the lib in the place where the RHEL PS package looks for it.

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

User-facing changes

[ ] Not Applicable
OR
[x] User-facing Documentation needed

[x] Issue filed - Issue link: https://github.com/PowerShell/PowerShell/issues/6184

Testing - New and feature

[x] Not Applicable or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[ ] Add [feature] if the change is significant or affects feature tests

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

I'm a Microsoft employee (arsing), so I don't believe I need to sign the CLA.

This PR should be submitted to the PowerShell/PowerShell-Docs repo

https://github.com/PowerShell/PowerShell-Docs/pull/2169


Merge stabilization -> mrtk_dev

Overview
Manual merge, to revert the version number change to 2.5.1 so we don't overwrite the existing 2.6.0 version in the dev branch.

/azp run


lib: remove job updates from the drivers and put on lib pipeline

drivers don't need to import db/types of snickers, they should only have one job. The pipeline on lib/lib.go should take care of this.

done by 2336b913b1bed284048e3d4f28a4059d63472d87


Fix incorrect units documented for getIntensity

I think these methods could be made clearer, but at a minimum this unit needs to be documented correctly.

I wonder if we should also keep the value set by the user so they have an API to retrieve what they set

I think we could add a getIntensityLumens to return whatever the user called setIntensity with.

I would like this stuff to work like std::Chrono::duration ideally.
That is, an intensity is always in some canonical unit, and the user can specify/convert to whatever they like.


Different results than Java?

I was just spying on a new minifier called babeli.  They have a chart where they compare the performance of the Java and JS versions of closure against themselves:
https://github.com/babel/babili#benchmarks
Closure is the most successful minifier and the JS build of Closure is the least.
Here's the code that generates the benchmarks: https://github.com/babel/babili/blob/e38a050ab396df8f7cbcdb6d2784cc7c6193d803/scripts/benchmark.js#L89-L101
Is it a fair test?  Should the Java and JS versions be producing different output?

For Closure Compiler Java, looks like they are using an old version built at least 10 months ago. For Closure Compiler JS, I believe they are using 20160713.0.3, which was released last month.
It's not 100% fair, because Closure does some checking and runs on not just the source file but also a bunch of externs. I've created https://github.com/babel/babili/pull/101 to update both the Java and the JS version to 20160822.0.0, turn off most of the checks and include only the language externs.
My results:
Backbone.js
raw     raw win gzip   gzip win parse time run
uglify        21.79kB 221%    7.29kB 169%     2ms        242ms
closure     21.67kB 223%    7.37kB 167%     2ms        1311ms
babili        21.62kB 223%    7.4kB  165%     1ms        724ms
closure js 24.01kB 191%    8.04kB 144%     2ms        3607ms
React.js
raw      raw win gzip    gzip win parse time run
closure    171.46kB 265%    52.97kB 168%     11ms       2246ms
uglify       176.36kB 255%    53.13kB 167%     11ms       1208ms
closure js 174.08kB 260%    53.58kB 165%     15ms       11967ms
babili        177.28kB 253%    55.18kB 157%     14ms       3171ms
jQuery.js
raw      raw win gzip    gzip win parse time run
uglify        94.27kB  218%    32.78kB 158%     9ms        990ms
closure     94.23kB  218%    33.38kB 153%     8ms        1973ms
closure js 95.63kB  213%    33.83kB 150%     8ms        10738ms
babili       101.52kB 195%    35kB    141%     7ms        4302ms
Closure Java and Closure JS should generate different output. I think there's some optimization that is not run under Closure JS. We will investigate further.

(I presume you mean shouldn't.)
It's not really fair for this test but those numbers are only with simple optimizations (not fair because I don't think it'd compile at all with advanced).

My assumption would be since this is the same algorithm being run on a different VM, the output should be identical across {java,javascript}, so long as the same configuration is used.  Glad you guys are looking into this.

This is probably better for the mailing list than as an "issue"

@MatrixFrog, well, then post please a link to mailing list thread here, because some people may to track this issue. e.g. to start using this on production.

Enabling TracerMode.TIMING_ONLY and comparing the two traces should tell
you which pass are run and whether we are unintentionally skipping one.
On Tue, Aug 30, 2016 at 5:34 AM, Arthur Stolyar<EMAIL_ADDRESS>wrote:

@MatrixFrog https://github.com/MatrixFrog, well, then post please a
link to mailing list thread here, because some people may to track this
issue. e.g. to start using this on production.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/closure-compiler-js/issues/9#issuecomment-243424042,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABMDKp-wAnEZqi1dDknoCW5p58F4sfwkks5qlCNxgaJpZM4JtuMu
.

@MatrixFrog, I'm interested to hear the motivation for that decision.  An Issue seems like a way easier way to keep track of a potential issue than a mailing list thread.  It's discoverable (both by team members and external authors) and explicitly "open" or "closed."
  Invariably, they either invite every even-mildly-opinionated person to chime in on a centithread or die when people run out of off-the-cuff remarks to make (often, the same thread can suffer both).  In contrast, Issues are never forgotten - even dormant ones come back to the fore when someone has something new to contribute.

I think it is fair that this stay open here.

If this is still an issue, it can be posted at Please switch to the main distribution at https://github.com/google/closure-compiler


Improves behavior of failing Log4j 1.x builders

If a Builder fails due to a missing property, it returns null. This activates the fallback "instantiate by class name" mechanism that will fail with NoClassDefFoundException in the best scenario or will instantiate a native Log4j 1.x component in the worst scenario.
A better approach, IMHO, is to return an empty wrapper, which deactivates the fallback mechanism, but will be unwrapped to null soon after and removed from the configuration. If the Log4j 1.x builder does not check for a condition that is fatal to the Log4j 2.x component, an empty wrapper will be returned anyway.
This PR also increases the level of status logger messages to ERROR if the condition prevents the instantiation of the component.

This should prevent frustrating debugging like in this StackOverflow question, where the user just got:
2022-02-16 21:04:20,396 main ERROR Unable to create Appender org.apache.log4j.RollingFileAppender due to ClassNotFoundException:org.apache.log4j.RollingFileAppender


[Travis #14451] Autogenerated Python Stubs

Deprecating in favor of @jmerle  's stubs generator: https://github.com/QuantConnect/Lean/pull/4899


Icon & Lang validator

We need to validate if icons and language keys are valid after data processing. Any mismatches will cause an error to make sure everything are valid before committing.
#3 & #1

We can start with icon validation first @Zehui-He. I will be adding language keys in json files. Then, we can extract and validate the generated language file #10.

There are missing icons for achievements. We need to decide whether we should ignore those keys.

For now, a red cross is shown. Not sure if we should just remove it.


Please add a LICENSE to this project so others can contribute changes.

As an employee of a corporation I can't contribute changes back to a project that has all rights reserved (the default position of source code if no license is present). We'd like to add support for v18.

Added a license and updated unreal toolchain to v18. It's going through the package verification process now.

Thank you for the fast turnaround!


Add realistic TS profiles for sponge and initialisation

I have gotten a hold of cruise profiles for the 2012 113E cruise. Profiles are selected close to 62S for T and S:

The profiles are provided in the TS_profiles folder as netCDf files.

Great! What's this kink in T profile at the top?? Is it related with mixed layer? Should we include it in our initial condition?

Great question, I've been puzzling over the same thing... I think this must be due to the ML, and it's not a data quality problem because it's present in all profiles up to around 50S. My first thought is to discard those values in the first instance. Maybe we could use the horizontally-averaged T profile in the 67.5-62S section highlighted in red? It's nice we have the CDW though, so perhaps just discard the inversion.

The vertical axis is pressure! 🤯 --> https://github.com/navidcy/ASC-idealised/blob/main/TS_profiles/Analyse_113E_data.ipynb
How do we convert this to depth? We need to use TEOS?

Also, what is this pressure values?
julia> using NCDatasets

julia> ds = NCDataset("TS_profiles/TS_profiles.nc");

julia> ds["Pressure"][:]
3000-element Vector{UInt16}:
 0x0002
 0x0004
 0x0006
 0x0008
 0x000a
 0x000c
 0x000e
 0x0010
 0x0012
 0x0014
 0x0016
 0x0018
 0x001a
 0x001c
 0x001e
 0x0020
 0x0022
 0x0024
 0x0026
 0x0028
 0x002a
 0x002c
 0x002e
 0x0030
 0x0032
 0x0034
 0x0036
      ⋮
 0x173c
 0x173e
 0x1740
 0x1742
 0x1744
 0x1746
 0x1748
 0x174a
 0x174c
 0x174e
 0x1750
 0x1752
 0x1754
 0x1756
 0x1758
 0x175a
 0x175c
 0x175e
 0x1760
 0x1762
 0x1764
 0x1766
 0x1768
 0x176a
 0x176c
 0x176e
 0x1770


ARTEMIS-4151 tighten default MBean access

This is a preventative measure to limit what users can do with any MBean other than those in the hawtio or org.apache.activemq.artemis domains.

@jbertram can you rebase and run the whole test suite please?

Full test-suite passed.


Use ISO date format instead of hard-coded English date format for date range in repo activity page

January 2, 2006 -> 2006-01-02
See:

#21380
#21387

I think we should take this one before Gitea's i18n module can handle complex i18n features.

I'd rather handle date formatting completely in frontend with https://github.com/github/time-elements. The backend can not know which timezone the user is in, while the frontend can.

I think we should take this one before Gitea's i18n module can handle complex i18n features.

I'd rather handle date formatting completely in frontend with https://github.com/github/time-elements. The backend can not know which timezone the user is in, while the frontend can.

How about having this PR now, and refactor later?
This PR is simple and clear, and it helps people who do not read English, ISO date is also widely used and can be read by most people. I would say this PR is a quick and good enhancement.

Yeah my suggestion was not for this PR 😉

Added another commit to render according to locale

The codebase has no <time></time> tags, I see no problem here. What if I scope it to the activity page instead of globally?

But what if there are other <time> tags come in the future? The future developers may not know this code and then they would spend a lot of time resolving the conflicts.

How about a new Vue component, so it'll be a different tag?

Well, that's more complex than I thought.
My preference is:

Just change it to ISO format in first step (that's my approval for this PR)
Make a clear CSS class for the customized <time> format (I could also accept if other reviewers also agree @silverwind @delvh )

If there are other changes, I think it need to be re-reviewed.

Ok, I'll take it in another PR

I think either differentiating by class, or probably better by a custom attribute such as data-format or similar, is the best course of action.

I think either differentiating by class, or probably better by a custom attribute such as data-format or similar, is the best course of action.

Sounds good, let's merge this now and I'll start this on a new PR

Maybe silverwind  suggestted  https://github.com/github/time-elements  could be used, instead of writing components from scratch.


New version

Proposed Changes

(Describe the changes and rationale behind them)

Related Issues

(Github link to related issues or pull requests)

Thanks for opening a PR, but we automate these things. See #15

No worries, I hadn't seen the renovate bot until I'd submitted my pr


Submit Project Page

Create a submit project page which will show following information.

[ ] Header showing

Same as Home Page

[ ] Body showing

[ ] Heading like How to Submit your Open Source project.
[ ] Paragraphs with images showing how to contribute in this project and update the info into the file that will be used for showing list on Home Page
[ ] Fields that we would need is the repo and maintainer url then we can use github API to fetch other info.

[ ] Footer showing

Same as Home Page

Parent #3

@smkamranqadri  kindly assign me this issue

@owais4321 Great, let me know if you have any questions.


boundariesElement for non-scrolling header

I have a situation that I am not sure how to fix. I have a pages that has a fixed header and footer, and the body, when scrolls, falls under them. If I have a tooltip popped open to the top of an object, if I scroll the page, the tooltip doesn't flip until AFTER the object has scrolled under the header.
Is there a way to dynamically set the margins of the boundariesElement area, so that, when I scroll the body, the height of the header is taken into consideration to enable the flip? You can see an example of this at popper.js.org:

I think you could define a custom padding to preventOverflow:
https://popper.js.org/popper-documentation.html#modifiers..preventOverflow.padding
But this will apply it to all 4 sides.
Alternatively you may set a margin-top equal to your header size to your popper elements, just make sure to apply it only when [data-placement*="top"]

Thanks for the reply. Pardon my questions. The design I have is also responsive, where the floating header can change sizes and I would need to dynamically adjust that style. I am looking into if onUpdate() could be something I could use, but I am not really sure how I can update the style of the popper instance to change the margin top. I tried this as a test:
onUpdate: (data: any) => {
        data.instance.reference.style.marginTop = '200px';
      },

The results were less than desirable. It mangled the entire page. :)

You are not supposed to modify the data object in onUpdate, at that point the data has already been used.
If you use media queries you could define the margin and adjust it using the same media query?

Unfortunately, my skills in this area are very limited. I will have to seek some help from some colleagues. I was hoping to find a solution within my skill set. CSS is still something that I need to work on. Thanks for taking the time.

If you have a media query that changes the height of the navbar:
.navbar {
  height: 100px;
}
@media (max-width: 1000px) {
  .navbar {
    height: 200px;
  }
}

You can use the same media-query, or at least the same breakpoint, to adjust the tooltips margin:
.navbar {
  height: 100px;
}
.tooltip[data-placement*="top"] {
  margin-top: 100px;
}

@media (max-width: 1000px) {
  .navbar {
    height: 200px;
  }
  .tooltip[data-placement*="top"] {
    margin-top: 200px;
  }
}

This put me on the right path. THANK YOU!

Reduced test case: https://stackblitz.com/edit/react-ufuwhc?file=src%2FApp.js
I'm surprised that this doesn't work out-of-the-box. Couldn't Popper.js check whether the popover "collides" with any elements that are stacked on top and adjust the position accordingly? In this case the popover should appear below the reference element.


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

close


Ansible request for playbooks to support CentOS stream

The following do not exist in the CentOS stream8 repositories so cannot be installed out of the box in Common/vars/CentOS.yml:

libdwarf-devel (Build_Tool_Packages)
perl-GD (Build_Tool_Packages)
ccache (Additional_Build_Tools_CentOS8)
fakeroot (Additional_Build_Tools_NOT_Centos8)
Also, the crontab tool isn't available so crontab tag needs to be skipped too without additional changes

I'll pick this up, could you assign it to me please @sxa ?.

libdwarf-devel equivalent can be installed with sudo dnf install libdwarf.x86_64

Added in https://github.com/adoptium/infrastructure/pull/2577 - closing


Crash on showing the photo picker due to exclusive access

Here is the crash log:
Simultaneous accesses to 0x15e826118, but modification requires exclusive access.
Previous access (a modification) started at TLPhotoPicker`TLPhotosPickerViewController.customDataSouces.modify + 68 (0x105ca6170).
Current access (a read) started at:
0    libswiftCore.dylib                 0x00000001e7197468 swift_beginAccess + 544
1    TLPhotoPicker                      0x0000000105ca5e48 TLPhotosPickerViewController.customDataSouces.getter + 104
2    TLPhotoPicker                      0x0000000105cb0988 TLPhotosPickerViewController.makeUI() + 6548
3    TLPhotoPicker                      0x0000000105cb2490 @objc TLPhotosPickerViewController.makeUI() + 40
4    TLPhotoPicker                      0x0000000105cadf04 TLPhotosPickerViewController.viewDidLoad() + 164
5    TLPhotoPicker                      0x0000000105cadfdc @objc TLPhotosPickerViewController.viewDidLoad() + 40
6    UIKitCore                          0x00000001e51d3bd4  + 1012
7    UIKitCore                          0x00000001e51d43b0  + 28
8    UIKitCore                          0x00000001e510b848  + 88
9    UIKitCore                          0x00000001e5100334  + 136
10   UIKitCore                          0x00000001e51e49a4  + 2632
11   UIKitCore                          0x00000001e51e80e4  + 104
12   UIKitCore                          0x00000001e51e844c  + 508
13   UIKitCore                          0x00000001e51e7ff4  + 176
14   UIKitCore                          0x00000001e51e8264  + 160
15   Forma                              0x00000001003d3008 CameraCoordinator.didTapGallery() + 2320
16   Forma                              0x00000001003d3eb4 protocol witness for CameraViewControllerDelegate.didTapGallery() in conformance CameraCoordinator + 12
17   Forma                              0x000000010048df78 CameraViewController.galleryButtonTapped() + 196
18   Forma                              0x000000010048e0cc @objc CameraViewController.galleryButtonTapped() + 40
19   UIKitCore                          0x00000001e577efe0  + 96
20   UIKitCore                          0x00000001e5228178  + 80
21   UIKitCore                          0x00000001e5228330  + 440
22   UIKitCore                          0x00000001e522731c  + 568
23   UIKitCore                          0x00000001e57b5ac8  + 2108
24   UIKitCore                          0x00000001e57b68e8  + 3140
25   UIKitCore                          0x00000001e5797448  + 340
26   UIKitCore                          0x00000001e585d02c  + 1768
27   UIKitCore                          0x00000001e585eb64  + 4828
28   UIKitCore                          0x00000001e585eb64  + 5692
29   UIKitCore                          0x00000001e5858fd8  + 152
30   CoreFoundation                     0x00000001b8f17000  + 24
31   CoreFoundation                     0x00000001b8f16f40  + 88
32   CoreFoundation                     0x00000001b8f167d0  + 176
33   CoreFoundation                     0x00000001b8f113d0  + 1004
34   CoreFoundation                     0x00000001b8f10efc CFRunLoopRunSpecific + 436
35   GraphicsServices                   0x00000001bb111734 GSEventRunModal + 104
36   UIKitCore                          0x00000001e577d8a4 UIApplicationMain + 212
37   Forma                              0x00000001004e47e0 main + 76
38   libdyld.dylib                      0x00000001b89d68dc  + 4

This is how I am calling it:
let viewController = TLPhotosPickerViewController()
viewController.delegate = self
var configure = TLPhotosPickerConfigure()
configure.allowedVideo = false
configure.allowedVideoRecording = false
configure.maxSelectedAssets = 9
viewController.configure = configure
navVC.present(viewController, animated: true, completion: nil)

Hi @tilltue,
Thanks for getting back to me!

I'm using cocoapods
What is the question for no.2?

Looks like during the Photo picker's videDidLoad, TLPhotosPickerViewController.customDataSouces is being read and write at the same time.

@siyao1030
I checked it with a sample, but it's not reproduce to me.
Can you try check this sample?
https://github.com/tilltue/Sample

@siyao1030
My guess, it is related issue #187


Adds northstar id to partner markup

What's this PR do?
This PR adds the Northstar ID to the partner embed markup is a variable is specified by the admin
How should this be reviewed?
Confirm the northstar id is present in the URL

 (2) As a Truth, I want to have a unique identifier of the user (Northstar ID).


use recent ruby 2.3 and 2.4 on travis

I'm strongly considering removing .travis.yml as the Travis builds have been brittle and instead I've been relying on the much-more-thorough current pipelines including PRs.
I'm curious what you think, but honestly I see little value in continuing to use travis.

I wrote my thought at https://github.com/sparklemotion/nokogiri/pull/1700#issuecomment-363079365 .


[TODO] multiple f tags / route hints

multiple f fields not supported yet
MAY include one or more f fields.
for Bitcoin payments:
MUST set an f field to a valid witness version and program,
OR to 17 followed by a public key hash, OR to 18 followed by a script hash.

+1
I need that feature


UI hangs on pressing 'Mark all as Read'

Upon pressing the said button within any course, the UI hangs for a few hundred milliseconds.

When this does happen, are the quite a few significant number of sections that have to be marked as read?

Dear Abhijeet,
While this issue happens regardless of the number of unread sections, the duration of the UI hanging is barely noticeable ( less than half a second ). I have not noticed yet how dependent it is on the no of unread sections, but can say that it occurs even when that number is small.
Get Outlook for Androidhttps://aka.ms/ghei36

From: Abhijeet<EMAIL_ADDRESS>Sent: Sunday, May 12, 2019 6:03:55 PM
To: crux-bphc/CMS-Android
Cc: Divyanshu Agrawal; Author
Subject: Re: [crux-bphc/CMS-Android] UI hangs on pressing 'Mark all as Read' (#97)
When this does happen, are the quite a few significant number of sections that have to be marked as read?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/crux-bphc/CMS-Android/issues/97#issuecomment-491591749, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB23RGA4OKVNOPNJA6QH2NTPVAFDHANCNFSM4HITCRBA.

This has no longer been a problem since #80 was merged.
#320 further improves the 'Mark all as read' logic.


Configure Phabricator to use a staging area.

basic idea
To properly be able to test the patches people upload, set up a "staging area" in Phabricator for the github monorepo. This way contributors upload the exact code they have locally, so that the build can be reproduced by the pre-merge tests:
https://secure.phabricator.com/book/phabricator/article/harbormaster/
This is based on a bug reported in #64 .
Drawbacks

This might have impact on contributor's workflows.
We need to set up and maintain the stating repository.
This still does not guarantee, that you patch can be cleanly applied to the master branch at the time of merging.
People still can merge somthing different from what was reviewed and tested.

alternative solution
Use github pull requests. This would solve all of the problems above except: It has an even bigger impact on the workflows.

won't fix because moving towards #154


Fix rotation or changed password

fix for: if you want to reconnect to a remote desktop session and your password is changed.

http://mutonufoai.github.io/pgina/documentation/changepwd.html

This does not work completely.

If you are logged in to 2 different systems and you disconnect on system 1 and change your password in system 2. Then the local-windows user on system 1 still has your old password.

We have a rotation password on some users, these can have a new password every hour. These can not log in after locking / disconnecting the system.

If you block a user, for example, on your LDAP so that he can no longer get into systems, he can still pick up sessions as long as he is not logged out.

Do you think messing with the code is everything that has to be done?
Have you tested your changes against all possible login options by using all available plugins?
The documentation is writing itself?
Do you see my point?
This changes fit your needs, and your needs only.
Modification on the heart of pgina need to be tested, verified and documented!
public static bool ChangeLocalUserPassword(string username, string password)
take a look into pinvokes
User.ChangeLocalUserPassword(sessionDriver.UserInformation.Username, sessionDriver.UserInformation.Password);
as soon as this raises an exception you'll get this
m_logger.ErrorFormat("Internal error, unexpected exception while handling login request: {0}", e);
I worked a lot to get rid of this unhelpful error!
Here is my last question.
If your pwd policy is so restrictive why do you still store all there passwords as plain text in ram?

Do you think messing with the code is everything that has to be done?
Yes, I only validate a user with the Authentication plugins if there is an existing session and the user was originally logged in with pgina.
If no session is present, he will also run Authentication from the plugins
Have you tested your changes against all possible login options by using all available plugins?
No, that's not possible, I have not tried all possible situations.
Only LDAP and our new plugin that already uses this adjustment.
There have been 4 separate pull requests. If they are accepted (possibly with adjustments) I will offer our plugin as a pull request.
The documentation is writing itself?
I can not find the documentation that says pGina is not working properly when a password is changed outside of the operating system.
Do you see my point?
Yes, I fully understand you. First, they do not want to accept your adjustments in the official pgina code. Now that you feel responsible for the code and when someone changes the heart of this code is not nice. This is pretty scary. But I really saw this as a bug and would like to contribute to a better pgina for all.
This changes fit your needs, and your needs only.
Modification on the heart of pgina need to be tested, verified and documented!
Again I saw this as a bug. Disconnected session can be retrieved without authentication. You only need to know the "old" password.
If your account is blocked, you can still pick up disconnected sessions.
take a look into pinvokes
I will look into pinvokes and commit the changes.
If your pwd policy is so restrictive why do you still store all there passwords as plain text in ram?
**If you use Windows, you have all your passwords in memory. Otherwise, you can not start programs as Administrators. We have Windows and Linux machines here. All connections are broken at night. If you want to pick up a session again, you can do that with your rotated password. All login actions are tracked and strange behavior is automatically intercepted.
We log in 2 way factor on a system that gives us a rotated password which we can use to log on to a system. When we log in we will always get a new rotated password, which can be used up to 24 hours.**

Now I use pInvoke

Hi Opvolger,
in a radius/otp AD environment had to change the following in your source to get rid of an internal error(NullReferenceException) on relogin of a domain user into a disconnected RDP session:
Service.cs Line 508:
if (userinfo4.comment.Contains(m_pGinaCreatedComment) && CheckIfUserWasLoginWithpGina(sessionDriver))
Changed To:
if ( CheckIfUserWasLoginWithpGina(sessionDriver))
as I have no userinfo4 object for a non-local user at this time ( I guess ;-))
Please forgive me for not doing it the right way with a diff bit I am an old sysadmin not used to work with git...
Works now for initial login and relogin to a disconnected RDP session going through the pgina plugin chain (for me only radius) in both cases.

userinfo4 can be null if account is not a local user account... I will fix this bug.

@schwoerertw can you test it again with the change i have made?


⚠ Samsung has degraded performance

In a0f9169, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2529 ms

Resolved: Samsung performance has improved in 3487387.


test(blob): add submitting equal blobs test case

Closes https://github.com/celestiaorg/celestia-node/issues/2909

Codecov Report

Merging #2914 (4e3eb86) into main (65f0f53) will increase coverage by 0.21%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2914      +/-   ##
==========================================
+ Coverage   51.38%   51.60%   +0.21%
==========================================
  Files         167      167
  Lines       10812    10812
==========================================
+ Hits         5556     5579      +23
+ Misses       4763     4738      -25
- Partials      493      495       +2

see 10 files with indirect coverage changes


drivers: wifi: winc1500: Update reset procedure in wifi_winc1500_nm_bsp.c

drivers: wifi: winc1500: Update reset procedure in wifi_winc1500_nm_bsp.c
ATWINC1500 reset pin is active low.
Correct reset procedure to use logical sense, not physical sense,
as per gpio_pin_set_dt().
Signed-off-by: George Priestner<EMAIL_ADDRESS>

Should also resolve #52792

@gp-src please note that changing the github PR note/description does nothing to the commit itself, you need to edit your local commit in your tree and force push the branch

@jukkar Hopefully the commit name/note are OK now.
Not sure why those 3 unit tests have failed though.

Not sure why those 3 unit tests have failed though.

It's a regression on main that is already fixed. A rebase should help.

463ec46377d7fc04938918255a217e6d3480316c: author email (gp-src<EMAIL_ADDRESS>needs to match one of the signed-off-by entries.
463ec46377d7fc04938918255a217e6d3480316c: author email (gp-src<EMAIL_ADDRESS>does not follow the syntax: First Last .

This looks like a git misconfiguration on your side.

Hm seems rebasing wasn't the best idea... didn't realise bot would add all reviewers to this PR. Should I just close and re-create?

I'm not sure why GitHub is saying there are conflicts now. I have checked locally for conflicts and nothing is found and have force pushed the rebase from main.


Output IP addresses, domain names, file manipulations, and (potentially) registry details

This PR addresses issue #1907. It extracts IP addresses, domain names, and file manipulations from CAPE sandbox traces and outputs them. It may eventually extract and present registry details as well. It uses a regex to identify IPv4 and IPv6 addresses. It uses another regex to identify web domains and potential subdomains.
The extraction and rendering functions require tests (still a work in progress). This PR may require changelog and documentation updates.
Most of the significant features are in common.py and default.py - changes in the other files are to make the main additions compatible. I have gotten it to pass most of the tests locally. I'm still working on a few issues and need to improve the tests (especially the rendering tests). What do you think of the general design? Do you have any questions or suggestions?
The output would look like this:
        +-----------------+
        |   Domain Names  |
        |------------------+
        | google.com         |
        | web.domain.net |
        | mywebsite.edu   |
        +-----------------+
        +-----------------+
        |    IP Addresses    |
        |-----------------  |
        |       <IP_ADDRESS>           |
        |     <IP_ADDRESS>      |
        +-----------------+
        +------------------------+------------------------+
        |        APIs               |      File Names                              |
        |------------------------+-------------------------|
        |        CreateFile      |          /path/to/file.txt                   |
        |        WriteFile         |           /path/to/other_file.txt      |
        +------------------------+------------------------+
The ResultDocument class seems to be the staging ground for outputting results. I have added a couple attributes that I use for presenting IPs and domains, and might be useful if capa outputs further dynamic analysis results in the future. The default, verbose, and vverbose modes all output the same results right now, but the verbose and vverbose modes can probably be expanded.
Also, @mr-tz can you please tell me a bit more about what type of registry key/value analysis you think would be useful? I was thinking about listing: what keys are created, modified, and deleted; whether any of these registry keys are run when the computer starts up; whether functions like RegSetKeySecurity are called, which can grant malware increased privileges; and the registry keys that all of these actions relate to. But I don't want to add too many details for a simple default output - it might be good to add additional details in verbose and vverbose mode. What do you think of these things?
EDIT: I actually think it would be better to refactor the new features out of "common.py" into their own file(s), and also their rendering functions into files like "render_ip_addresses.py", "render_domains.py", "render_file_names.py", etc. Default, verbose, and vverbose rendering functions could be included in each of these files. I am going to work on this, and also work on making sure the suggested changes pass the CI tests.

Hi @mr-tz, I hope you're having a nice weekend. Sorry for all the messages. I have changed the program design since the last commits - I realized that the default extractor/rendering functions should be easily extensible to verbose modes so I have restructured the program to reflect this (haven't pushed any additional code to GitHub though). Since I have changed these features' design fairly significantly, I just wanted to update this PR.
In the initial PR, the extraction functions (like "extract_domain_names," etc.) don't fully handle dynamic and static inputs. These extraction functions: 1) extract strings from inputs; and, 2) regex parse the strings for e.g., domain names and IP addresses. Furthermore, some static inputs in capa implement the "extract_file_strings" in slightly different ways. It seems that using **kwargs could be an elegant way to call the "extract_file_strings" that a given extractor requires. This is roughly what I was thinking:
### main.py

if format_ == FORMAT_GHIDRA | FORMAT_IDA:
    extract_domain_names(extractor=extractor)

elif format_ == FORMAT_PE | FORMAT_ELF | FORMAT_VIV:
    buf = extractor.get_buf(extractor)
    extract_domain_names(extractor, buf=buf)

elif format_ == FORMAT_CAPE:
    extract_file_strings(extractor, report=report)

### extract_domain_names.py
def get_strings(**kwargs):
    '''different extractors implement 'extract_file_strings' in slightly different ways
    the **kwargs matching is meant to: 1) find the extractor being used;
    and, 2) call 'extract_file_strings' as a given extractor requires'''
    # Static - static inputs implement extract_file_strings methods
    if "extractor" in kwargs:
        if format_ == FORMAT_GHIDRA:
            strings = extractor.extract_file_strings(kwargs["extractor"])
        elif format_ == FORMAT_IDA:
            strings = extractor.extract_file_strings(kwargs["extractor"])

    elif "buf" in kwargs:
        if format_ == FORMAT_ELF:
            strings = extractor.extract_file_strings(kwargs["buf"])
        elif format_ == FORMAT_PE:
            strings = extractor.extract_file_strings(kwargs["buf"])
        elif format_ == FORMAT_VIV:
            strings = extractor.extract_file_strings(kwargs["buf"])

    # Dynamic
    elif "report" in kwargs:
        if format_ == FORMAT_CAPE:
            strings = kwargs["report"].strings  # this equals CapeReport.strings
        # elif: perhaps future sandbox reports

    return strings

def default_extract_domain_names(**kwargs) -> Iterator[str]:
    """yield web domain regex matches from list of strings"""
    # See this Stackoverflow post that discusses the parts of this regex (http://stackoverflow.com/a/7933253/433790)
    domain_pattern = r"^(?!.{256})(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+(?:[a-z]{1,63}|xn--[a-z0-9]{1,59})$"
    for string in get_strings(**kwargs):
        if re.search(domain_pattern, string):
            yield string

def verbose_extract_domains_names():
    # wrap 'default_extract_domain_names' - every time a domain
    # name is yielded, 'verbose_extract_domains_names' can add
    # some extra details
    pass

def vverbose_extract_domains_names():
    # wrap 'default_extract_domain_names' and add details
    # every time a string is yielded
    pass

It might be a good idea to create "default" extraction functions (such as "default_extract_domain_names"), and then wrap these default functions to provide more verbose output. Every time a domain name is yielded by the default function, it could be wrapped by a verbose function to add extra output. It may be a good idea to create files specifically for these extraction functions and then implement the default functions, verbose wrappers, and any supporting functions in each (e.g., "extract_domain_names.py", "extract_ip_addresses.py", etc.).
Apologies again for all the messages - just wanted to make sure my approach sounds reasonable before proceeding too far! But no worries if you're on holiday - Merry Christmas and Happy New Year!


Avoid un-strict syncing by-default for build isolation

Summary
Closes https://github.com/astral-sh/uv/issues/6580.
Closes https://github.com/astral-sh/uv/issues/6599.

(Needs docs.)

(Docs separately, they go beyond the changes here.)


Achievement Controller Documentation

Document the following in /server/api/achievement/achievement.controller.js

index controller method
show controller method
create controller method
update controller method
destroy controller method

Notes

Run npm run apidoc to generate the documentation
View the generated documentation by opening /docs/index.html
Generated documentation won't be committed to the repository - don't worry if you don't see a lot of changes in your working tree.

We'll be using APIDoc.js to auto-generate documentation from our source code. Please replicate the following example for each method in the controller
/**
* @api {get} /api/achievements Index
* @apiName index
* @apiGroup Achievements
* @apiDescription Get list of Achievements
* @apiPermission public
* @apiSuccess {Collection} root Collection of all active Observatory Achievements.
* @apiError (500) UnknownException Could not retrieve Achievement collection
*/
module.exports.index = function (req, res) { }

Note - this ticket will be assigned to Khalil Fleming (kdot34) when he joins the RCOS GitHub organization.


ISSUE-71: Added use_defaults support for schema.validate

Resolves #71

Hey @mauler I've taken another look at this; looks good!
Just left a few more minor comments and looks like you also have to rebase this before we can merge it.

Looks like this is good to go. I'll merge this. :)


Remove symlink for audit log location

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/tools/cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[ ] Ready to merge

Summary

Various security certifications expect that audit logs be placed in a separate partition. If a symlink is used (from /var/log/audit to /var/opt/audit/log) rpm will refuse to install the package if a mountpoint is present at /var/log/audit (since there is already a something there).
We should just store our audit logs in the standard location instead of using a symlink.
Change Log

Remove the symlink from /var/log/audit to /var/opt/audit/log
Give ownership of '/var/log/audit` directory to the audit package.

Does this affect the toolchain?

YES
Test Methodology

Local build in progress

Noticed some issues with the audit package and the systemd post/pre etc rpm macros, however they are also present before these changes.


Error: disableAsyncTimeout on OnLoad in not a function

Hello,
I’m trying to use the method executioncontext.getEventArgs().disableAsyncTimeout() on the onLoad event. I found this method on the Form-Onload page, but when I call the onLoad method, I receive an error message saying that disableAsyncTimeout is not a method (while getEventArgs is correctly working).
In fact, on this page geteventargs that method exists only as child of onSave method.
Is it possibile to disable the timeout on onLoad or it is an error of the documentation?
My current dataverse version is 9.2.23112.00216

@Astaneta -
Thanks for your feedback and apologies for the delay in responding.
Our doc feedback system works best when people use the Feedback > This page button at the bottom of the article.
This notifies the contributors and we can respond faster.
You didn't mention this, but I can't assume. Did you turn on the setting mentioned here Enable Async OnLoad using app setting, just above the description of the disableAsyncTimeout even argument? This seems a possilbe cause.
I also found this blog post Disable Async Timeout for Save Events in Model-Driven Forms – Show Dialogs in OnSave which indicates that it does work, but perhaps didn't for some time. A forum post on a similar issue: model-driven app Client API : disableAsyncTimeout issue
@tahoon-ms
This is the current description of Async OnLoad timeouts

Async OnLoad timeouts
When using an async handler, a form load will wait for the promise to be fulfilled, but only up to 10 seconds. This is to ensure that the form loads within a reasonable amount of time.
There may be scenarios where you want to pause OnLoad for a longer period of time. An example is opening a dialog in the async OnLoad handler and waiting for the user's input before saving. To make sure the async operation will wait, you can invoke the event argument disableAsyncTimeout as follows executioncontext.getEventArgs().disableAsyncTimeout(). When disableAsyncTimeout is set, the timeout for that handler will not be applied. It will continue to wait for that handler's promise to be fulfilled.
This should be used with caution as it might affect the performance of the form load.

Is there anything we might change in the content of this page? Perhaps a link to the community blog post?
From an information architecture perspective, we should have a separate page for this argument.

Create new disableAsyncTimeout.md page and add it to the table of contents below setSharedVariable
Change this row in save-event-arguments.md: |[disableAsyncTimeout](events/form-onsave.md#async-onsave-timeouts)|Disables the default async handler timeout.| so that it points to the new page.
Update form-onload.md so that it refers to the new page.
Update Execution context (Client API reference) table so it is listed there

The documentation is in error. disableAsyncTimeout() is not available for OnLoad events.
These 2 paragraphs should be removed:
There may be scenarios where you want to pause OnLoad for a longer period of time. An example is opening a dialog in the async OnLoad handler and waiting for the user's input before saving. To make sure the async operation will wait, you can invoke the event argument disableAsyncTimeout as follows executioncontext.getEventArgs().disableAsyncTimeout(). When disableAsyncTimeout is set, the timeout for that handler will not be applied. It will continue to wait for that handler's promise to be fulfilled.

This should be used with caution as it might affect the performance of the form load.

Thanks @tahoon-ms  & @Astaneta
With your input we have updated the content.


[ENH] add neurovault data as subdataset

Work in progress... Will ping when all the data is on GIN.
closes #4 (I think)
Adding neurovault data as a subdataset.
Neurovault data will be on a repo on GIN here: https://gin.g-node.org/RemiGau/neurovault_narps_open_pipeline
Limitation of GIN:

requires users to create a GIN account and set up an ssh key.

Could later be improved by creating something similar to the github "forks" of openneuro datasets.
TODO

[x] update README

Thanks a lot for these improvements @Remi-Gau! It will definitely be helpful!


Enhance expression with duplicate function

Expression is not thread-safe to execute. I added a duplicate function to Expression so a thread can create and own its own copy and safely run.
The expression tree is now refcounted and shared with the cloned Expression to avoid costly copy.
There's also a few dead variables/methods in the Expression class that I removed.

Doesn't seem to matter, executing in multiple threads has not benefit to performance


devTools doesn't  work with chrome 111

Describe the bug
I'm trying to inspect some code on the dev tools but the next message appears over and over on vsCode

PD:  I love this extension <3
Reproduction
just open the dev tools
System Info
This happens on mac OSX ventura 12.2.1

Used Package Manager
npm
Validations

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

The title suggests that DevTools worked fine before Chrome version 111. Can you confirm this?

Actually yes. Before the chrome update browse lite was my browser for work by default, But after this can't use it anymore

Does not work for latest chrome version

Doesn't work on chrome 113 on Windows 11 too

See the above mention for a solution to this issue.

I am seeing this issue with Chrome 114. Is the only path forward at this time to downgrade Chrome to 110?

I’m also having this bug with Chrome version 115.0.5790.56 on Ubuntu 23.04.
Changes between version 110 and 111 are listed here but the list is many pages long :roll_eyes:

I also have tried to disable chrome://flags/#devtools-tab-target, no changes.
Any idea?

I cannot get the dev tools and debug for this extensions to work with chrome version 115.
Looks like this issue has persisted for a while.
@antfu is this extension still active?
Unfortunately i cannot downgrade the chrome version as its controlled by my current organization

I'm working on building Chromium myself to identify specifically what the breaking changes are, which is taking a while. The only change in the relevant update that involves DevTools seems to be this one.
@crunchwrap89, I was not able to "downgrade," I instead installed the specified version of Chromium alongside my Chrome install, and pointing browse-lite to it in the settings. Is that possible for you?

@CalebUsadi okay yeah that might actually be possible, I will give it a try :). Thanks

#40 has fixed the bug by add the --remote-allow-origins=* argument, but v0.3.2 does not include the argument.
@antfu, can you please release a new version?

currently, adding "browse-lite.otherArgs": "--remote-allow-origins=*" to setting.json can temporarily fix the bug.

@ipcjs Your settings.json fix is working great for me. Thanks a lot! :+1:

@ipcjs Oh sorry I forgot to do the release, thanks for the reminder. Just released.

@antfu with the new release the browser panel is empty, and the devtools too (bottom panel on the screenshot) :confused:

It fixed it. Thanks!


remove BOM from catalog.json

this pr will fix #28 .
please review

@ayapi Applying your patch to lib/schema-provider.ts and installing 'npm install strip-bom -save' nothing changes for Atom: the annoying error dialog is still triggered saving and opening any JSON file. Ideas?

@asgarage  we need to transpile .ts files. please try gulp typescript on your terminal.

@ayapi [11:40:55] Using gulpfile ~/.atom/packages/json-schema/gulpfile.js [11:40:55] Task 'schema-provider.ts' is not in your gulpfile


HTML

HTML
User Story
As a bootcamp student
I want the prework notes to be structured on a webpage
so that I can easily find and read information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed

#CSS
##User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

JavaScript
User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I can see the four topics I learned listed along with a suggestion on what I should study first

README
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
so that I can easily find and read the information.
GIVEN the prework project repository,
WHEN I view the READM for the repository,
THEN I can see a professional README that provides information on the project and how to use it

Deployment
User Story
As a boot camp student,
I want the prework notes to structured on a webpage,
so that I can easily find and read the information.
Acceptance Criteria
GIVEN a Prework Study Guide website,
WHN I visit the website using the URL,
THEN I can access my website from any browser


task/modify quantity - 11897

Hey @Vadim-x-squad, would you mind to provide a gif/video of the result ?

Yes, i forgot to make i disabled case, let me push changes and the video will be there after!


UI up to date.

Coverage remained the same at 19.497% when pulling c2ddbe986133e613188f53cdd2e746b902ca0cef on sync-ui into accaf60afa5d7e71889eeb8b161a8a57ff6953e3 on master.


Elaborate on SE project management

This adds a sentence to the SE skill about awareness of SE methods in PM.
To give an example of a very software specific PM practice the general idea of
product line management is exemplified in the tasks and responsibilities section.
This is related to #263

makes sense

any news on taking out the uom example?


Use coud-init files instead of a unit service file for elemental-operator

Elemental-operator is called by an elemental-operator.service file included into the Elemental OS. From #50 investigations it looks like this has some potential to collide with other on going services. More specific it seams to have issues when executed before cos-setup-network.service ends (which happens like one or two minutes after reaching the login prompt). I am wondering if shouldn't we relay on calling elemental-operator from one of our yip stages (network.after?) for a more cloud-init centric and simpler boot process management. This could be extensible to other one shot services too, if any.
This is also to prevent having to run changes such as https://build.opensuse.org/request/show/990272 which are not obvious.

This seems to plug in in the rework Im doing of the base elemental (read non OBS tweaked) so I migth just plug this in as part of that card. I mean, I need it to work as close as obs elemental so we can test as close as obs elemental so....

Completed by rancher/elemental#178


A solution to make filters support 'NOT' 'AND' 'OR'

Feature Request Type

[ ] Core functionality
[x] Alteration (enhancement/optimization) of existing feature(s)
[ ] New behavior

Description

Because there may be bugs, or it can be solved more elegantly, so I post here for discussion.
Here is how I do it.
Where apply_filters only needs to remove the two asterisks.
from __future__ import annotations

from enum import Enum
from typing import TYPE_CHECKING, Generic, Optional, TypeVar

import strawberry
import strawberry_django.filters
from django.db.models import Q
from django.db.models.sql.query import get_field_names_from_opts  # type:ignore
from strawberry import UNSET
from strawberry.type import has_object_definition
from strawberry_django.filters import (_resolve_global_id,
                                       function_allow_passing_info,
                                       lookup_name_conversion_map)
from strawberry_django.utils.typing import has_django_definition

if TYPE_CHECKING:
    from typing import Any, Callable, List, Tuple

    from django.db.models import Model, QuerySet
    from strawberry_django.filters import WithStrawberryObjectDefinition

    _M = TypeVar('_M', bound=Model)

T = TypeVar("T")

@strawberry.input
class FilterLookup(Generic[T]):
    exact: Optional[T] = UNSET
    i_exact: Optional[T] = UNSET
    contains: Optional[T] = UNSET
    i_contains: Optional[T] = UNSET
    in_list: Optional[list[T]] = UNSET
    gt: Optional[T] = UNSET
    gte: Optional[T] = UNSET
    lt: Optional[T] = UNSET
    lte: Optional[T] = UNSET
    starts_with: Optional[T] = UNSET
    i_starts_with: Optional[T] = UNSET
    ends_with: Optional[T] = UNSET
    i_ends_with: Optional[T] = UNSET
    range: Optional[list[T]] = UNSET
    is_null: Optional[bool] = UNSET
    regex: Optional[str] = UNSET
    i_regex: Optional[str] = UNSET
    n_exact: Optional[T] = UNSET
    n_i_exact: Optional[T] = UNSET
    n_contains: Optional[T] = UNSET
    n_i_contains: Optional[T] = UNSET
    n_in_list: Optional[list[T]] = UNSET
    n_gt: Optional[T] = UNSET
    n_gte: Optional[T] = UNSET
    n_lt: Optional[T] = UNSET
    n_lte: Optional[T] = UNSET
    n_starts_with: Optional[T] = UNSET
    n_i_starts_with: Optional[T] = UNSET
    n_ends_with: Optional[T] = UNSET
    n_i_ends_with: Optional[T] = UNSET
    n_range: Optional[list[T]] = UNSET
    n_is_null: Optional[bool] = UNSET
    n_regex: Optional[str] = UNSET
    n_i_regex: Optional[str] = UNSET

strawberry_django.filters.FilterLookup = FilterLookup

def build_filter_kwargs(
    filters: WithStrawberryObjectDefinition,
    path='',
) -> Tuple[Q, List[Callable[..., Any]]]:
    filter_kwargs = Q()
    filter_methods: List[Callable[..., Any]] = []
    django_model = (
        filters.__strawberry_django_definition__.model
        if has_django_definition(filters)
        else None
    )

    for f in filters.__strawberry_definition__.fields:
        field_name = f.name
        field_value = _resolve_global_id(getattr(filters, field_name))

        # Unset means we are not filtering this. None is still acceptable
        if field_value is UNSET:
            continue

        if isinstance(field_value, Enum):
            field_value = field_value.value

        negated = False
        if field_name.startswith('n_'):
            field_name = field_name[2:]
            negated = True

        field_name = lookup_name_conversion_map.get(field_name, field_name)
        filter_method = getattr(
            filters, f"filter_{'n_' if negated else ''}{field_name}", None)
        if filter_method:
            filter_methods.append(filter_method)
            continue

        if django_model:
            if field_name == 'OR':
                (
                    subfield_filter_kwargs,
                    subfield_filter_methods,
                ) = build_filter_kwargs(field_value, path)
                filter_kwargs |= subfield_filter_kwargs
                filter_methods.extend(subfield_filter_methods)
                continue

            if field_name not in get_field_names_from_opts(
                django_model._meta,
            ):
                continue

        if has_object_definition(field_value):
            subfield_filter_kwargs, subfield_filter_methods = build_filter_kwargs(
                field_value,
                f'{path}{field_name}__',
            )
            filter_kwargs &= subfield_filter_kwargs
            filter_methods.extend(subfield_filter_methods)
        else:
            filter_kwarg = Q(**{f'{path}{field_name}': field_value})
            if negated:
                filter_kwarg = ~filter_kwarg
            filter_kwargs &= filter_kwarg

    return filter_kwargs, filter_methods

strawberry_django.filters.build_filter_kwargs = build_filter_kwargs

def apply_filters(filters, queryset: QuerySet[_M], info=UNSET, pk=UNSET) -> QuerySet[_M]:
    if pk not in (None, strawberry.UNSET):
        queryset = queryset.filter(pk=pk)

    if filters in (None, strawberry.UNSET) or not has_django_definition(filters):
        return queryset

    # Custom filter function in the filters object
    filter_method = getattr(filters, "filter", None)
    if filter_method:
        kwargs = {}
        if function_allow_passing_info(
            # Pass the original __func__ which is always the same
            getattr(filter_method, "__func__", filter_method),
        ):
            kwargs["info"] = info

        return filter_method(queryset=queryset, **kwargs)

    filter_kwargs, filter_methods = build_filter_kwargs(filters)
    queryset = queryset.filter(filter_kwargs)
    for filter_method in filter_methods:
        kwargs = {}
        if function_allow_passing_info(
            # Pass the original __func__ which is always the same
            getattr(filter_method, "__func__", filter_method),
        ):
            kwargs["info"] = info

        queryset = filter_method(queryset=queryset, **kwargs)

    return queryset

strawberry_django.filters.apply = apply_filters

Hey @star2000 ,
The ideas in here are interesting! Support for both "OR" and "NOT" are totally issues that I want to solve (I also miss having those in my projects).
We had a discussion about that on discord the order day, and Colin (don't know his github handler) shared his custom implementation as well: https://discord.com/channels/689806334337482765/689861980776955948/1126205282440204378
If I understood your solution correctly, it expects a field called OR to apply with a | to the rest of the filters. You didn't give any example on how the user would define that, but I imagine it would be very similar to Colin's idea of typing it as Self.
One interesting thing he proposed is to add flag to the filters function which would allows users to opt in to this feature, and we could inject the or and and fields and their resolvers.
Regarding the "NOT", I like this! I was previously wondering about a similar solution (not to say identical =P) or exposing an extra exclude of the same type as the filters, but I don't think it would work very well when doing complex and/or stuff, so probably your implementation is the way to go here.

@bellini666
Regarding the definition of OR , I just do.
But I think it's best to integrate this OR directly.
e.g.
import strawberry_django

@strawberry_django.filter(m.Group, lookups=True)
class GroupFilter:
    permissions: 'PermissionFilter | None'
    name: auto
    id: auto
    user: 'UserFilter | None'
    OR: 'GroupFilter | None'

I saw this message.
https://discord.com/channels/689806334337482765/689861980776955948/1129431715752976425
Regarding the problem of a && (b || c), although it can be transformed into an equivalent (a && b) || (a && c), the behavior of repeatedly entering the condition a is not elegant after all. So it's better to add an AND field.
            if field_name in ('AND', 'OR'):
                (
                    subfield_filter_kwargs,
                    subfield_filter_methods,
                ) = build_filter_kwargs(field_value, path)
                if field_name == 'AND':
                    filter_kwargs &= subfield_filter_kwargs
                else:
                    filter_kwargs |= subfield_filter_kwargs

from typing import Self

import strawberry_django

@strawberry_django.filter(m.Group, lookups=True)
class GroupFilter:
    permissions: 'PermissionFilter | None'
    name: auto
    id: auto
    user: 'UserFilter | None'
    AND: 'Self | None'
    OR: 'Self | None'

query onlyOR {
  Groups(
    filters: {
      name: {startsWith: "a"},
      id: {range: [1, 2]},
      OR: {
        name: {startsWith: "a"},
        id: {range: [3, 4]}
      }
    }
  ) {
    id
  }
}

query useAND {
  Groups(
    filters: {
      name: {startsWith: "a"},
      AND: {
        id: {range: [1, 2]},
        OR: {
          id: {range: [3, 4]}
        }
      }
    }
  ) {
    id
  }
}

@star2000 nice!
I would just call those and and or in the schema though. Also, maybe "injecting" those fields at the filter would make sense so that the user doesn't have to define an and/or by himself.

@bellini666
How to implement the filter injection attribute you mentioned, is there a code example?

@bellini666 How to implement the filter injection attribute you mentioned, is there a code example?

Probably something similar to how this PR implemented fields/exclude.
Inside _process_type, if the type is a filter you can inject the annotations and also set setattr(cls, "<attr>", UNSET)

I tried it and it was successful. I just need to add this code after checking __annotations__ in _process_type.
    if is_filter:
        cls.__annotations__.update({
            'AND': Optional[Self],
            'OR': Optional[Self],
        })

There is no need to set a default value, because here is set.
https://github.com/strawberry-graphql/strawberry-graphql-django/blob/5e146adb5bab1ef1ddd87ab07465d20c1e8e422b/strawberry_django/type.py#L173


True 4k playback?

Flashed bionic-lxde-rock64-0.7.9-1067-arm64.img.xz and followed the recipe here: https://github.com/ayufan-rock64/linux-build/blob/master/recipes/video-playback.md
When I run the following commands:
mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp --loop bbb_sunflower_2160p_30fps_normal.mp4

or even:
mpv bbb_sunflower_2160p_30fps_normal.mp4

I get the following:
Playing: bbb_sunflower_2160p_30fps_normal.mp4
 (+) Video --vid=1 (*) (h264 3840x2160 30.000fps)
 (+) Audio --aid=1 --alang=und (*) (mp3 2ch 48000Hz)
     Audio --aid=2 --alang=und (*) (ac3 6ch 48000Hz)
File tags:
 Artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 Composer: Sacha Goedegebure
 Genre: Animation
 Title: Big Buck Bunny, Sunflower version
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
Segmentation fault

You are probably better off starting with the minimal release and adding the midgard driver yourself as per http://wiki.pine64.org/index.php/ROCKPro64_Main_Page#Video_playback
And using rkmpv (sets the correct options I hope)
Note (HDMI) sound is knackered any 4.4 kernel higher than 4.4.139-1100
rkmpv Big\ Buck\ Bunny\ animation\ \(1080p\ HD\)-XSGBVzeBUbk.mp4
Playing: Big Buck Bunny animation (1080p HD)-XSGBVzeBUbk.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 24.000fps)
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
VO: [gpu] 1920x1080 yuv420p
V: 00:00:07 / 00:09:56 (1%)

Exiting... (Quit)

So I followed the direction under "Video Playback" on the pine64.org page you linked to:
sudo apt-get install ffmpeg mpv libmali-rk-midgard-t86x-r14p0-gbm

Now video plays, but not anywhere close to smooth using Big Buck Bunny 1080p or 4k:
rkmpv --loop bbb_sunflower_2160p_30fps_normal.mp4
Playing: bbb_sunflower_2160p_30fps_normal.mp4
 (+) Video --vid=1 (*) (h264 3840x2160 30.000fps)
 (+) Audio --aid=1 --alang=und (*) (mp3 2ch 48000Hz)
     Audio --aid=2 --alang=und (*) (ac3 6ch 48000Hz)
File tags:
 Artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 Composer: Sacha Goedegebure
 Genre: Animation
 Title: Big Buck Bunny, Sunflower version
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
mpi: mpp version: Without VCS, under bleeding
hal_h264d_api: Assertion p_hal->vcodec_type & ((0x00000200) | (0x00000001) | (0x00000002)) failed at hal_h264d_init:186
mpp_device: mpp_device_init failed to find device for coding 0 type 7
hal_h264d_api: p_hal->vpu_socket <= 0
mpp_hal: mpp_hal_init hal h264d_rkdec init failed ret -2
mpp_hal: mpp_hal_init could not found coding type 7
mpp_dec: mpp_dec_init could not init hal
mpp: error found on mpp initialization
mpp: WARNING: setup buffer group before decoder init
mpp: command 310002 param 0x55ac495420 ret -1
[ffmpeg] h264_rkmpp: Failed to assign buffer group (code = -1)
[ffmpeg] h264_rkmpp: Failed to initialize RKMPP decoder.
Could not open codec.
AO: [pulse] 48000Hz stereo 2ch s16
VO: [gpu] 3840x2160 yuv420p
AV: 00:00:00 / 00:10:34 (0%) A-V:  0.166

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).

AV: 00:00:03 / 00:10:34 (0%) A-V: 13.607 Dropped: 90

Exiting... (Quit)

Hello, I have do following things and i can play video as well as rtsp stream using hardware-codec.
Steps:

sudo apt-get install ffmpeg mpv libmali-rk-midgard-t86x-r14p0-gbm
If got any error like as : trying to overwrite.....(use "sudo dpkg -i --force-overwrite" and overwrite the package).

Command:

mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp people-walking-in-nyc-3_-jlkz7dgh__D.mp4
mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp rtsp://admin:jenex#2018@<IP_ADDRESS>:554

Its woirking when try to use with gstreamer, its not work.
-gst-launch-1.0 v4l2src device=/dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_DF3A963F-video-index0 ! mppvideodec ! videoconvert ! autovideosink
What should be wrong here?
Regards,
Kishan Patel.

Hello after try to install this
sudo apt-get install ffmpeg mpv libmali-rk-midgard-t86x-r14p0-gbm
my VLC doesn't works more
i try to desinstall ffmpeg etc
and reinstall vlc , but the interface don't works
if i try VLC in terminal works fine, but i can see the interface
can you help me ?
Thanks


Feature request: No clean up post scaffold failure.

Subject of the issue
There is no clean up when scaffolding a fsm which fails validation
i.e.
when running;
autonomy scaffold -tlr fsm --spec fsm_spec.yaml eightballer

I get the following error as I have poorly defined my fsm;
autonomy.analyse.abci.app_spec.DFASpecificationError: DFA spec has the following issues:
 - Transitions out from final states: {'ObjectiveComplete'}

I would expect that if the command fails, it does not create artefacts, or cleans them up post failure.
Presently, the application will leave artefacts on the users working directory which must be cleaned, if we validate the spec prior to creating the artefacts, the users wont have to clean their working directory
Your environment

OS: [e.g. iOS]
Python version: [e.g. 3.7.2]
Package Version [e.g. 0.1.3]
Anything else you consider helpful.

Steps to reproduce
Tell us how to reproduce this issue.
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead

Yes, 100% agree.


context.run(statistics_gen) interactive pipeline throwing error

Docker container running the following image tensorflow/tensorflow:2.2.1-gpu-py3-jupyter
tensorflow==2.2.1
tfx==0.22.0
Running the interactive pipeline notebook throws the following error when trying to run statistics gen
ERROR
TypeCheckError: Type hint violation for 'ToTopKTuples': requires FrozenSet[FeaturePath] but got Set[Any] for bytes_features
Full type hint:
IOTypeHints[inputs=((Tuple[Union[NoneType, bytes, str], RecordBatch], FrozenSet[FeaturePath], FrozenSet[FeaturePath], Union[NoneType, str]), {}), outputs=((Tuple[Tuple[Union[NoneType, bytes, str], Tuple[Union[bytes, str], ...], Any], Union[Tuple[int, Union[float, int]], int]],), {})]
strip_iterable()
based on:
IOTypeHints[inputs=((Tuple[Union[NoneType, bytes, str], RecordBatch], FrozenSet[FeaturePath], FrozenSet[FeaturePath], Union[NoneType, str]), {}), outputs=((Iterable[Tuple[Tuple[Union[NoneType, bytes, str], Tuple[Union[bytes, str], ...], Any], Union[Tuple[int, Union[float, int]], int]]],), {})]
from_callable(_to_topk_tuples)
signature: (sliced_record_batch:Tuple[Union[str, bytes, NoneType], pyarrow.lib.RecordBatch], bytes_features:FrozenSet[tensorflow_data_validation.types.FeaturePath], categorical_features:FrozenSet[tensorflow_data_validation.types.FeaturePath], weight_feature:Union[str, NoneType]) -> Iterable[Tuple[Tuple[Union[str, bytes, NoneType], Tuple[Union[bytes, str], ...], Any], Union[int, Tuple[int, Union[int, float]]]]]
File "/usr/local/lib/python3.6/dist-packages/tensorflow_data_validation/statistics/generators/top_k_uniques_stats_generator.py", line 202

I was able to resolve the above error by using the latest versions of tensorflow and tfx.
tensorflow==2.4.1
tfx==0.27.0