Initial commit with DIOPI ops on GCU.

Ops support mmpretrain resnet50 training on imagenet1k(exclude normal_)
Ops Support facebook/llama(exclude  cumsum, multinomial, triu, where) inference with fairscale.

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation and Context

Description

Use cases (Optional)

BC-breaking (Optional)

Checklist
Before PR:

[ ] I have read and followed the workflow indicated in the Contributors.md to create this PR.
[ ] Pre-commit or linting tools indicated in Contributors.md are used to fix the potential lint issues.
[ ] Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
[ ] New functionalities are covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[ ] The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

[ ] CLA has been signed and all committers have signed the CLA in this PR.

 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.jason.jiao seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Bugs with UI elements when used with Magnific Popup

Hi there,
I'm having some issues using plyr with Vimeo and YouTube vids inside of a popup (using Magnific Popup).
See my codepen for a reduced test case.
Issue does not already exist, cannot be observed on https://plyr.io
Expected behaviour
On play, play button should disappear and progress should appear on progress bar. Class plyr--playing should be added to div.plyr while plyr--stopped should be removed.
Actual behaviour
Play button remains visible while video is playing, progress is not shown on progress bar. Class plyr--playing is never added while plyr--stopped is never removed.
Environment

Browser: all
Version:  all
Operating System: all
Version: all

Players affected:

YouTube
Vimeo

Steps to reproduce

See codepen

I am getting this same thing with my popup plugin Popup Maker. Sometimes the play button fades out properly but often it doesn't.
I was able to fix it by adding an event listener to the 'play' & 'progress' events and adding the classes if missing.
Another thing I have noticed and it may be related is that when we try to seek() or rewind() prior to playing on popup open the progress slider breaks. That is to say it doesn't move while playing.
Not sure but it may be related to elements being hidden when initialized or because items are hidden when pause is run etc.

I found that if the player is initialised on a dom node and then that dom node is moved (say, to a modal overlay), the player still works but listeners for the play/pause/ended functions no longer fire, and it's the fact that the node has moved away from where it was initialised that causes the plyr--stopped and plyr--playing to stop getting applied to the container.
I found this out by first initialising the playing the player, then moving it to a different node when the user began a navigation event that re-pulled content to the page - I had wanted to keep the video playing whilst that navigation loaded and the elements around the video changed.
That seems to be what is going on in this pen as well - the plyr is initialised THEN the modal is created and the video element is put into it. When it's html5, it doesn't seem to be a problem since I guess the way it initialises and holds reference to those events/nodes?

Try This:
// external js:
// jquery
// plyr
// magnific popup
// initialise  plyr
// initialise magnific popup
$(".container").magnificPopup({
delegate: ".btn",
type: "inline",
gallery: {
enabled: true
},
callbacks: {
updateStatus: function(data) {
if (data.status === "ready") {
window.dispatchEvent(new Event("resize"));
}
},
resize: function() {
plyr.setup(".jsMediaPlayer");
}
}
});

You'll want to create and destroy for every mfp open and close event.
`$.magnificPopup.open({
items: {
src: '#pop',
type: 'inline'
},
removalDelay: 500,
mainClass: 'mfp-zoom-in',
callbacks: {
open: function(){
      players = plyr.setup('.js-player', {
        autoplay: true,
        controls: ['progress', 'current-time', 'mute', 'volume', 'fullscreen']
      });

    },
    close: function(){
      players[0].pause();
      players[0].destroy();
    }
  }
});`


fix: allow to update project organization

AAP-25825: The PATCH /projects api does not update the organization_id

I'm not quite sure if allowing changing organization for project makes sense to me. Following the RBAC hierarchy Organization -> Project, we are essentially migrating a project from one org to another. Even if we allow that, should the permission for that be more strict, e.g. only Admin user of both orgs can perform this change, not just anyone with change_project permission? @AlanCoding could you chime in, in case I'm missing something here?

If project does not allow to switch organization, what about other types such as DecisionEnviornment, EdaCredential, ad CredentialType? They all allow to switch organizations by the PATCH method. We need to be consistent.


Provide feedback on async analysis jobs

User interface hints about running tasks -  (job panel ?)
Error handling in case of analysis failure

6ed4afcccdab9246243bfd037a0fc159e6d584e7 resolves this issue.


Implement undef option for SA_SPAM_SUBJECT

Use undef to disable the sa_spam_subject_tag in amavis config. Currently the string "undef" is written before the email subject.

You also could add a empty string if you don't want the tag?


Support for Python 3.9

Hi @srstevenson ,
I was wondering why support for older versions of Python were dropped in this last major release?

This is to support assignment expressions, generic syntax for the built-in collections, and writing union types as Foo | Bar instead of Union[Foo, Bar] (the latter is what requires 3.10 specifically). As this package was renamed from xdg to xdg-base-dirs, you won't unintentionally pick up any backward incompatible changes even if you have no upper version bound on xdg. If you still need Python 3.9 support, you can continue to use the xdg package rather than xdg-base-dirs with no loss of features--the final 6.0.0 release of xdg supports down to Python 3.7.

Hello there! What is the suggestion for:

A package supporting < 3.9, and
It is a pip package (i.e., cannot depend on$ apt-cache policy python3-xdg
 python3-xdg:
   Installed: 0.26-1ubuntu1
   Candidate: 0.26-1ubuntu1
   Version table:
  *** 0.26-1ubuntu1 500

?

@stdedos The last release of the xdg package on PyPI (6.0.0) supports Python >=3.7.


rncore/States.cpp Build input file cannot be found:

I installed a fresh application and it ran fine after that I followed the instructions to install the scanner app.
Once i installed the package now i could not build anymore
/Users/test/BarcodeScannerTest/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp Build input file cannot be found:

'/Users/test/BarcodeScannerTest/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

I believe it's related to this issue https://stackoverflow.com/questions/76721082/react-native-error-build-input-file-cannot-be-found-node-modules-react-nativ

I have uploaded a test repo here https://github.com/khanakia/BarcodeScannerTest
➜  BarcodeScannerTest git:(main) npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 13.5
  CPU: (10) arm64 Apple M1 Max
  Memory: 14.53 GB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.1
    path: ~/.nvm/versions/node/v18.17.1/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 9.6.7
    path: ~/.nvm/versions/node/v18.17.1/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.13.0
    path: /Users/khanakia/.rvm/gems/ruby-2.7.7/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.2 AI-222.4459.24.2221.10121639
  Xcode:
    version: 14.3.1/14E300c
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 20.0.2
    path: /usr/bin/javac
  Ruby:
    version: 2.7.7
    path: /Users/khanakia/.rvm/rubies/ruby-2.7.7/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: true

Somehow i was able to solve that issue but now getting another error

* A module failed to load due to an error and AppRegistry.registerComponent wasn't called.

Test repo is working fine below is the screenshot (You just missed the installation of react-native-permissions)

@khanakia I think you don't setup the react native permissions that why you facing this issue?

Yes it's working now but another issue is it's not able to scan all the barcodes
As you can see below screenshot i am able to scan EID and MEID but it's not scanning IMEI and IMEI2

Let me check is this AVFoundation support these type of Barcodes.

Barcode scanning work properly even with IMEI & 2 (CODE 128 type of barcode)

Strange. I am testing with iPhone 13 Pro Camera it only scans MEID and EID, not the IMEI

I have confirmed with different Phone Imei Barcode
it just gives this error when i scan via iPhone 13
2023-09-25 23:21:51.859975+0530 BarcodeScannerTest[50051:8125391] SocketStream read error [0x283118000]: 1 54

Just a note Do you provide some kind of Paid support to help us solve the problem if possible ?
Thanks, Pushpender

@khanakia Thank you for sharing the log. I'll thoroughly investigate and debug the issue. If you happen to discover a solution, please feel free to submit a pull request. While I genuinely appreciate your offer of paid support, it won't be necessary at this time.

If you happen to be available over call tomorrow if possible i can share you my screen and show you the issue

You can provide me the screen recording.

I will do. Also, i just tried this app https://github.com/alfianlosari/BarcodeTextScannerSwiftUI
and it worked fine It seems they are using Vision Kit not 100% sure

You can provide me the screen recording.

Here's the video https://i.analyzify.app/X6un2ZnP
you will be able to see it scans the EID and MEDI only

@pushpender-singh-ap I have checked many other libraries react-native-camera-kit, react-native-camera v2, expo-barcode-scanner etc. All of them also not working also for the IMEI scan but i also used some native apps like above i sent you which are using Apple Vision Kit so they are working.
It has to do with something or some bug within not Avfoundation maybe

@khanakia I was try to add vision kit but i failed because in vision kit apple not provide the objective-c documentation for DataScannerViewController.

Hi DataScannerViewController is only available for Swift we can try to use this https://developer.apple.com/documentation/visionkit/vndocumentcameraviewcontroller or VNDocumentCameraScan

Hello @khanakia , could you kindly clone this repository: https://github.com/pushpender-singh-ap/react-native-nativeios-scanner and attempt to scan the IMEI barcode? Unfortunately, I don't currently have access to any iPhone devices, so I'm unable to test it myself at the moment. Your assistance would be greatly appreciated!

Getting this error while building

@khanakia Can you compile for Simulator because i was build on Simulator it's working correctly but not sure about the real-device.

same error
ld: library not found for -ld_classic
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It has to do something with this because when i compare this with the New React project there are no flags i could find -Wl -ld_classic

Run this command in you rootProject
yarn add ./react-native-nativeios-scanner && cd .. && node react-native-nativeios-scanner/node_modules/react-native/scripts/generate-codegen-artifacts.js \   --path react-native-nativeios-scanner/ \   --outputPath react-native-nativeios-scanner/react-native-nativeios-scanner/generated/

Getting error
node:internal/modules/cjs/loader:1080
  throw err;
  ^

Error: Cannot find module '/Users/khanakia/react-native-nativeios-scanner/node_modules/react-native/scripts/generate-codegen-artifacts.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.17.1

I was able to install the app after i removed the below flags
"-Wl",
"-ld_classic",
"-Wl",
"-ld_classic",

But i do not see any camera and also i tried clicking Start Scanning button

@khanakia Thanks for the update i will check this why it's happening.

For now i have created a custom module in OLD Arch https://github.com/khanakia/react-native-barcodeoldarch as i needed this urgently.
Once you are able to complete your module i will replace it with yours.
Thanks @pushpender-singh-ap


cmd: add siginfo handler

I am not sure if it is a correct place to put siginfo handler registration.

You'll have noticed that this didn't build for all platforms :-(
What you need to do is separate your SigInfoHandler  into a separate file called siginfo_darwin.go.  This should have a build tag of //+build darwin.  Then make a completely empty SigInfoHandler function in siginfo_other.go - this file should have a build tag of //+build !darwin.
This should then make it compile for all platforms and only do something on darwin.  (You can take out the if runtime.GOOS == "darwin" check too.

Sorry I missed the notification for this...
It looks great now - thank you :-)


Implement function to save an order after created Omise charge

1. Objective
Implement function to save an order after created Omise charge.
Related information:
Related issue: -
Related ticket: T1147
Required pull request: #19
2. Description of change

Add a new class, PaymentOrder, to save the order
Implement a function that used to redirect the system to the result page
Modify payment controller class, OmisePaymentModuleFrontController, to save an order and redirect to the result page

3. Quality assurance
Environments:

Platform: PrestaShop <IP_ADDRESS>
Omise plugin: Omise-PrestaShop <IP_ADDRESS>
PHP: 5.6.28
Mozilla Firefox: 50.1.0

Details:

Make sure that the Omise-PrestaShop has been installed and enabled.
At the front-end, add a product to cart.
Proceed to checkout.
At the step, 05. Payment, fill the valid card information and click button, Submit Payment. The system will process the payment and display the result page.

The screenshot below shows a product that will be used to test.

The screenshot below shows the default result page of PrestaShop. After successfully created Omise charge and saved an order, the cart information will be cleared.

The screenshot below shows the saved order from the above payment at the payer side.

The screenshot below shows the saved order from the above payment at the merchant side.

4. Impact of the change
-
5. Priority of change
Normal
6. Additional notes
The result page still be the default of PrestaShop. It has no any information about the order. For the next pull request, the proper result page will be developed including error handling at the server side.
The screenshot below shows the passed unit tests at Travis CI.

The source code in this pull request has been changed and combined to merge together with the pull request #21.


[Fix #8857] Modify --auto-gen-config regarding Exclude and inheritance

When we generate Exclude properties in .rubocop_todo.yml, we already check if the same Exclude appears in existing configuration. The file list is then copied into the generated file. This doesn't work as intended for Exclude properties in custom configuration. They override (by default) the same properties inherited from .rubocop_todo.yml, resulting in a configuration that will not hide all the offenses when rubocop is next run. The expected behavior is that --auto-gen-config should hide all offenses.
This change makes rubocop --auto-gen-config warn about this situation when it occurs. If inherit_mode is set to merge for Exclude properties, the behavior is pretty much as expected today, but we tweak the behavior here too, and skip the copying of file names that will be excluded anyway due to the merging.

Nice improvement!


Hide human feedback buttons when persistence is disabled

I am not planning on using the Literal AI integration. However, even with data persistence disabled, the human feedback buttons show up in the UI and cause an error if the user interacts with them. Is there a way I can hide or disable these buttons?

In a similar situation, could we add back the ability to disable the feedback buttons.

I have hidden the feedback buttons using this way.
public/style.css
.css-1d7zxcn {
    display: none !important;
}

I have hidden the feedback buttons using this way.
public/style.css
.css-1d7zxcn {
    display: none !important;
}

The css identifier was not exactly the same for me. But the idea worked like a charm !


DynamicMiddlewareHelper.CreateEdmModel - error with Postgres, MySql

I have tried DynamicMiddlewareHelper.CreateEdmModel for Postgres and Mysql
Both give error ( for postgres, it shows "unknown type array")
I need to use at a POC for https://netcoreblockly.herokuapp.com/blockly.html , where I want to show how to see all database tables / functions from just a connection string
I can provide MySql and Postgres connection strings to test.
Are you interested ?

To reproduce this error, I need a database script to create tables.

this is the error:
at OdataToEntity.EfCore.DynamicDataContext.InformationSchema.PostgreSqlSchema.GetColumnClrType(String dataType)
at OdataToEntity.EfCore.DynamicDataContext.InformationSchema.SchemaCache.GetRoutines(DynamicTypeDefinitionManager typeDefinitionManager, InformationSchemaMapping informationSchemaMapping)
at OdataToEntity.EfCore.DynamicDataContext.DynamicDataAdapter.BuildEdmModel(DynamicMetadataProvider metadataProvider)
at OdataToEntity.EfCore.DynamicDataContext.DynamicMiddlewareHelper.CreateEdmModel(ProviderSpecificSchema providerSchema, InformationSchemaMapping informationSchemaMapping)
at TestBlocklyHtml.Startup.ModelDB() in E:\ignatandrei\NETCoreBlockly\src\NetCore2Blockly\TestBlocklyHtml\Startup.cs:line 190
( last line is from my code ...)
I can provide you better  -  a connection string to a Postgres data
Host=kandula.db.elephantsql.com
Please send me an email to<EMAIL_ADDRESS>to provide you database, user and password

sent email ( yours has landed in the spam ...)

thanks. Waiting to deploy to nuget.

Put on nuget and I will try :-)Thanks for the work!Andrei
Sent from Yahoo Mail on Android
On Thu, May 21, 2020 at 2:11<EMAIL_ADDRESS>wrote:
Have you tried, does this work for you, bux fixed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Change the the default CSS var declaration file to theme.liquid

What are you trying to accomplish with this PR?
We currently require users to create a snippets/css-variables.liquid file in order to use Slate out of the box. This file is used to declare CSS variables which are linked to Liquid variables.
This snippet is completely unnecessary, and the creation of a snippet should be left to the discretion of the theme developer. Let's default to using layout/theme.liquid as the file in which we search for CSS variable declarations.
To reverse this behaviour, developers can specify a snippet by declaring the following in their slate.config.js:
const path = require('path');

module.exports = {
  slateCssVarLoader: {
    cssVarLoaderLiquidPath: [ path.resolve(__dirname, 'src/snippets/css-variables.liquid')];
  }
};

Late to the game but good call @t-kelly 👍


Please mention somewhere in the docs that POST operations are only permissible within Change Set

[Enter feedback here]
.... or maybe it is a bug in product not a feature. The truth is that batch without change set can only execute GET commands.

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

ID: 6db53047-327d-6eec-e6a8-4d9dae98f362
Version Independent ID: 31b3ebbd-9070-db30-cc4e-cec4b41373b8
Content: Execute batch operations using the Web API (Microsoft Dataverse) - Power Apps
Content Source: powerapps-docs/developer/data-platform/webapi/execute-batch-operations-using-web-api.md
Service: powerapps
Sub-service: dataverse-developer
GitHub Login: @divka78
Microsoft Alias: dikamath

Thanks for your comment, @MateRadz. This issue has been assigned to the doc author for review.

@MateRadz
Thanks for your feedback.
You are saying:

...batch without change set can only execute GET commands

This isn't true.
You can't use a GET request inside of a changeset, but you can send POST, PATCH, DELETE, and PUT requests outside of a changeset.
Here is an example:
Request
POST [Organization URI]/api/data/v9.2/$batch HTTP/1.1

OData-MaxVersion: 4.0
OData-Version: 4.0
If-None-Match: null
Accept: application/json
Content-Type: multipart/mixed; boundary="batch_04fb0926-918b-4fbb-aadc-4105e4e02803"
Content-Length: 574

--batch_04fb0926-918b-4fbb-aadc-4105e4e02803
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/accounts HTTP/1.1
Content-Type: application/json; type=entry

{
  "name": "account 1"
}
--batch_04fb0926-918b-4fbb-aadc-4105e4e02803
Content-Type: application/http
Content-Transfer-Encoding: binary

POST /api/data/v9.2/accounts HTTP/1.1
Content-Type: application/json; type=entry

{
  "name": "account 2"
}
--batch_04fb0926-918b-4fbb-aadc-4105e4e02803--

Response
HTTP/1.1 200 OK

Content-Type: multipart/mixed; boundary=batchresponse_cd089f57-e599-4628-b655-db0cda5c34f7

--batchresponse_cd089f57-e599-4628-b655-db0cda5c34f7
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 204 No Content
OData-Version: 4.0
Location: [Organization URI]/api/data/v9.2/accounts(0d374653-314b-ed11-bba1-0022482624f0)
OData-EntityId: [Organization URI]/api/data/v9.2/accounts(0d374653-314b-ed11-bba1-0022482624f0)

--batchresponse_cd089f57-e599-4628-b655-db0cda5c34f7
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 204 No Content
OData-Version: 4.0
Location: [Organization URI]/api/data/v9.2/accounts(33374653-314b-ed11-bba1-0022482624f0)
OData-EntityId: [Organization URI]/api/data/v9.2/accounts(33374653-314b-ed11-bba1-0022482624f0)

--batchresponse_cd089f57-e599-4628-b655-db0cda5c34f7--

Nope it is not working. I just tried to replicate:
POST /api/data/v9.1/$batch HTTP/1.1
Host: andupmidsb.crm4.dynamics.com
Authorization: Bearer ******
OData-MaxVersion: 4.0
OData-Version: 4.0
If-None-Match: null
Content-Length: 556
--batch_04fb0926-918b-4fbb-aadc-4105e4e02803
Content-Type: application/http
Content-Transfer-Encoding: binary
POST https://andupmidsb.crm4.dynamics.com/api/data/v9.2/accounts HTTP/1.1
Content-Type: application/json; type=entry
{
"name": "account 1"
}
--batch_04fb0926-918b-4fbb-aadc-4105e4e02803
Content-Type: application/http
Content-Transfer-Encoding: binary
POST https://andupmidsb.crm4.dynamics.com/api/data/v9.2/accounts HTTP/1.1
Content-Type: application/json; type=entry
{
"name": "account 2"
}
--batch_04fb0926-918b-4fbb-aadc-4105e4e02803--
And Response is:
--batchresponse_d2b26f89-9458-44fa-8b52-4561cc865fd0
Content-Type: application/http
Content-Transfer-Encoding: binary
HTTP/1.1 204 No Content
OData-Version: 4.0
Location: https://andupmidsb.crm4.dynamics.com/api/data/v9.2/accounts(0798e9a2-404d-ed11-bba3-0022489e2bce)
OData-EntityId: https://andupmidsb.crm4.dynamics.com/api/data/v9.2/accounts(0798e9a2-404d-ed11-bba3-0022489e2bce)
--batchresponse_d2b26f89-9458-44fa-8b52-4561cc865fd0
Content-Type: application/http
Content-Transfer-Encoding: binary
HTTP/1.1 400 Bad Request
REQ_ID: 471a9777-5f4b-45d0-9fa2-0b8e21695c07
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0
{"error":{"code":"0x0","message":"Error identified in Payload provided by the user for Entity :'accounts', For more information on this error please follow this help link https://go.microsoft.com/fwlink/?linkid=2195293  ---->  InnerException : System.ArgumentException: Stream was not readable.\r\n   at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)\r\n   at System.IO.StreamReader..ctor(Stream stream, Encoding encoding)\r\n   at Microsoft.OData.JsonLight.ODataJsonLightInputContext.CreateTextReader(Stream messageStream, Encoding encoding)\r\n   at Microsoft.OData.JsonLight.ODataJsonLightInputContext..ctor(ODataMessageInfo messageInfo, ODataMessageReaderSettings messageReaderSettings)\r\n   at Microsoft.OData.Json.ODataJsonFormat.CreateInputContext(ODataMessageInfo messageInfo, ODataMessageReaderSettings messageReaderSettings)\r\n   at Microsoft.OData.ODataMessageReader.ReadFromInput[T](Func`2 readFunc, ODataPayloadKind[] payloadKinds)\r\n   at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)\r\n   at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)."}}
--batchresponse_d2b26f89-9458-44fa-8b52-4561cc865fd0--
Which indicates that the first POST from your example works the second does not. And they do not differ. So either the product is broken or documentation is not detailed enough to cover this scenario.

Thanks. Indeed. It works. Maybe this is obvious but it would not hurt to stress in the documentation that POST Requests inside the batch do not require [organization URI] after "POST" and before "/api/data/v9.2/accounts HTTP/1.1".

@MateRadz
Thanks for letting us know.
Refreshing this content is on my TODO list.
Do you think that adding a link to the OData specification at 11.7 Batch Requests might help? Ultimately, this is where all the information comes from.
Do you mind if I ask what language you are using? JavaScript? Python?, C#? something else?
For C# .NET 6.0 we added a new helper library that includes $batch capabilities about 2 months ago. See WebAPIService class library (C#) and the classes within the Batch folder are the ones I used to write the sample I sent you. Details are here Batch documentation. The key for .NET was understanding how to use the MultipartContent Class.

Yes. It would definitely help. After your suggestion I also checked that. I use Node.js in Azure Functions. For the call I am using client_credentials to connect to D365.


[SPARK-17369][SQL] MetastoreRelation toJSON throws AssertException due to missing otherCopyArgs

What changes were proposed in this pull request?
TreeNode.toJSON requires a subclass to explicitly override otherCopyArgs to include currying construction arguments, otherwise it reports AssertException telling that the construction argument values' count doesn't match the construction argument names' count.
For class MetastoreRelation, it has a currying construction parameter client: HiveClient, but Spark forgets to add it to the list of otherCopyArgs.
How was this patch tested?
Unit tests.

Test build #64812 has started for PR 14928 at commit 4c4684e.

Test build #64812 has finished for PR 14928 at commit 4c4684e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64812/
Test PASSed.

Can you update the pull request title / description to say more about the actual issue?

Updated.

retest this please

Test build #64957 has started for PR 14928 at commit 4c4684e.

Test build #64957 has finished for PR 14928 at commit 4c4684e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64957/
Test PASSed.

LGTM, merging to master and 2.0!

Seems this breaks 2.0 build.

I will revert it from branch 2.0.


Update oneuser

correct spelling of 'specific' under token examples
Description

Branches to which this PR applies

[ ] master
[ ] one-X.X

[ ] Check this if this PR should not be squashed

thanks!!


overlay: use index=off to fix EBUSY on mount

kernel version > 4.13rc1 support index=on feature, it will be failed
with EBUSY when trying to mount.
Related: https://github.com/moby/moby/pull/37993
Signed-off-by: Rudy Zhang<EMAIL_ADDRESS>

LGTM
Thanks!

We avoided porting this functionality over in the past because it was seen as an issue with the design of the Docker drivers, misuse of the snapshot, or a previous failure not being cleaned up. I think it is best to analyze the case that was causing the ebusy in the first place before making a global change like this. This is not the best way to solve the ebusy imo because it means that the snapshot is now mounted twice for write, a condition which can lead to undefined behavior in the overlay upperdir.

The root cause is that the snapshotter diff(Compare API) between idA and idB needs to do mount. If one of snapshotters is Active type and mounted for running container, for example it is idA, the upperdir of snapshotter idA will be mounted twice.
We can see that the common case is to commit running container into image. Basically, before committing container, we must pause the container to make sure that Active snapshotter is to be same during pause stage. And snapshotter diff is to read content only. It is safe to use index=off to fix ebusy issue.

This is not the best way to solve the ebusy imo because it means that the snapshot is now mounted twice for write, a condition which can lead to undefined behavior in the overlay upperdir.

I am agree with @dmcgowan . The index=off in overlayfs mount option will hide potential problems and make debugging hard. Maybe we can add index=off in snapshotter diff case only or introduce config option like asyncRemove.
cc @rudyfly

How to reproduce issue?
echo Y > /sys/module/overlay/parameters/index
ctr run -d docker.io/library/busybox:latest testing sleep 1d
ctr snapshot diff testing


You must add a reference to assembly 'System.Runtime, Version <IP_ADDRESS>'

Hi there,
I've been trying to implement your package but have hit a blocker.
Environment

Windows 11
.NET version 7.0.401
.NET Framework64 version 4.7.2

Approach

I've downloaded the packaged .dll file from the SpotifyAPI.Web-net7.0 zip on the releases page
The package is correctly referenced in my code using using SpotifyAPI.Web with the .dll file added as a reference
I'm trying to use the Request Token On-Demand approach of the Client Credentials auth flow
The code running this approach is as follows:

string spotifyClientID		= Environment.GetEnvironmentVariable( "SB_SPOTIFY_ID" );
string spotifyClientSecret	= Environment.GetEnvironmentVariable( "SB_SPOTIFY_SECRET" );

if( ( null == spotifyClientID ) || ( null == spotifyClientSecret ) ){
	// Some error reporting omitted here
}else{
	var config = SpotifyClientConfig.CreateDefault().WithAuthenticator( new ClientCredentialsAuthenticator( spotifyClientID, spotifyClientSecret ) );
	// Another step here using new SpotifyClient( config );
}

Issue
I've left out some of the particulars above to keep the code short, but that's how I'm using it. When I compile this code, I receive the following error 3x on the var config line, and once more on the new SpotifyClient( config ); line:
error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
From my past experience with class libraries etc. this is an issue with the .dll and not with my code (I'm using System at the top of the code, so there's not a directive missing there). Hopefully I've just missed something somewhere, but the moment I remove the SpotifyAPI-NET functions from my code the error goes away.
Thanks in advance
Cush

Hi, any luck with this yet?
Thanks

Second bump
Looks like this repo could be a good package, but if you're not sure how to fix this issue I can go a more manual route with my Spotify integration, it'd just be nice to know either way

Hi,
This is very likely not related to the library but your project setup. Did you download the correct library version for your specific .NET version? Please try a clean setup and also check if you can use nuget to install the package.

Hi there,
Unfortunately it's not related to the environment. I can use packages within the System.Runtime space, it's just erroring when this package attempts to do it.
Also I made my own package which had this issue and I can confirm this error happens when it's a package throwing the error, not the overall environment.
Thanks

Here are my steps trying to reproduce this:
Create a new project with net7.0
dotnet new console -f net7.0

Download the DLLs manually and add the following to the csproject
    <Reference Include="SpotifyAPI.Web">
      <HintPath>./SpotifyAPI.Web.dll</HintPath>
    </Reference>
    <Reference Include="Newtonsoft.Json">
      <HintPath>./Newtonsoft.Json.dll</HintPath>
    </Reference>

Update Program.cs
using SpotifyAPI.Web;

var config = SpotifyClientConfig.CreateDefault().WithAuthenticator(new ClientCredentialsAuthenticator("CLIENT_ID", "CLIENT_SECRET"));
var api = new SpotifyClient(config);

var album = await api.Albums.Get("4aawyAB9vmqN3uQ7FjRGTy");
Console.WriteLine(album.Name);

And run it, showing that it works.
❯ dotnet run
Global Warming

It seems like you're convinced it's an issue with the library, so feel free to remove the library and go the manual route.

Hi Johnny,
I'm convinced because it is, but the manual route is fine. Thanks for trying anyway!
Thanks

Hello again!
Humility where it's needed... my apologies; this was not your package. Once I manually added a reference to the System.Runtime.dll file in my .NET Framework folder to my references list this seems to work.
Honestly I didn't expect this to need to be a manual step, and the last time I had this issue it was to do with the third-party package, but I guess not all problems have the same solution... as a long-term dev I should probably know that by now!
Anyway, thanks for helping me debug this and sorry for falsely accusing the package!
Thanks

No worries, glad you found the issue and were able to resolve it! 👍


build-depends specifiy blaze-html < 0.8

I have tried compiling against blaze-html <IP_ADDRESS> and it works.

Fixed in <IP_ADDRESS>, thanks for reporting!

Wow, that was fast, must be some kind of record!
Thank's for great libraries!


Diverge Branch: @devmelon's Implementation

Going to try to commit this branch as my current master to continue developing it as an exercise in design and collaboration. While I started committing a few changes manually, there's too many to do manually. Hopefully this pull/merge will go smoothly :+1:  since it can't automatically merge.
My initial base implementation is "archived" in a branch playable/first-design-naive, branched off master.
This new base implementation will be the start of a second iteration in the game's design.

Done and done :+1:
I'm a merge pro now! :laughing:


feat: create input field for adding todos

Type
enhancement

Description

Introduced an input field in the UI for adding todos, enhancing the application's functionality.
Added JavaScript logic to handle the addition of todos when the Enter key is pressed.
Styled the new input field to align with the existing design, ensuring a consistent user experience.

Changes walkthrough
Relevant filesEnhancement

todoListUI.jsAdd Todo Input Handling in UI

js/todoListUI.js
Added a new property todoInput to select the todo input field.  Added an event listener to todoInput for handling todo addition on Enter key press.  Implemented handleAddTodo method to add a new todo and clear the input field.

+16/-0

index.htmlIntroduce Input Field for Todos

index.html
Added a new input field for adding todos with an accessible label.  Styled the input field to fit the application's design.

+7/-0

styles.cssStyle New Todo Input Field

css/styles.css
Added styles for the new todo input field to ensure it matches the app's design.

+6/-1

✨ PR-Agent usage:
Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Obfuscating cookies?

Would be nice if individual request cookies and response set-cookies can be obfuscated

Makes total sense. Obvious workaround right now would be to obfuscate the whole header.
From a quick look I found java.net.HttpCookie but that only provides support for parsing Set-Cookie headers. Any clue how to parse Cookie?

The next issue is that java.net.HttpCookie can parse a Set-Cookie header but can only produce values for Cookie. I guess we would need to parse it by hand using regular expressions.

According to https://stackoverflow.com/a/15747956/12075726 it looks like that doesn't work for all Set-Cookie cases. Maybe it's sufficient, though?
As for plain old Cookies, maybe it would be helpful to start reading:
org.apache.tomcat.util.http.parser.Cookie
from Apache Tomcat.


Create af.js

Added afrikaans language file
This pull request includes a

[X] Translation

This appears to have some syntax errors which is causing the build to fail.  Furthermore, there is another PR for Afrikaans at #4998.  Could @ettiennelouw and @pjjroux please resolve this together?


Add conditional writes

Amazon S3 now supports conditional writes (blog post). Docs indicate that s3:PutObject and s3:CompleteMultipartUpload now support the request header If-None-Match: *, in which case S3 will:

return a 200 if it created the object did not exist and was created as requested,
return a 412 Precondition Failed if the object already exists, or
return a 409 Conflict if the object is deleted before creation completes

This upstream change updates #218.

S3 expanded conditional writes to include compare-and-swap (blog post). Docs describe both conditionals together. Conditional overwrites are implemented by If-Match: <expected ETag>, e.g. on s3:PutObject.


IE9, Windows 7: Color palettes are vertically stacked instead of horizontal

In IE9, the color palettes are vertically stacked instead of being in a horizontal row. The expected behavior is to display as a horizontal row.
Current:

Expected:

This is because Flexbox isn't supported in IE9. This is also seen in the browser support for Bootstrap v4 -http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#internet-explorer-9

@RachelRVasquez It'd be great to add in a polyfill to make this work on Github

@fuhton I've added 10up's flexibility polyfill successfully. However it seems due to lint errors, it's not applying correctly for IE9 and the colors are displaying as dark grey while still not stacking.
Added the file to the linter when I realized it's been set up like this:
https://github.com/10up/flexibility/blob/master/dist/flexibility.js
The entire file is a single line. Can we exclude or somehow keep this file from breaking everything else due to the linter? Even if it's not added to the scripts-lint.js task, it won't work properly. Thoughts?

We should be requiring this like we've done prismjs.

This has been required like prismjs from the node modules. There is a console error that is likely the culprit however it is saying that requestAnimationFrame is undefined. Doing a search through all files, the only instances of this being used is in node_modules for babel-core and caniuse-db. Thoughts @fuhton?

Let's try a different jQuery version ( prefer jQuery 1.X.X ) to confirm it's not an issue with jQuery

Tried downgrading to 1.12.4 and it's still giving that error in IE9.

I'll do some digging into this issue.

While this is a "Nice to have", I don't think this ruins the ultimate experience in IE9.


No More Var

Replaced 40 vars with explicit types in 11 files.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Two player mode

While the game is in "launching phase", it's going to be hard to get to three players.
So, we will implement a two player random mode as follow:
While waiting in the queue, if two players are there and both agree, they should be able to launch a two-player version of the game.
In this version in each round the game randomly selects between the two players' suggestions.

Pushing this back, I'm concerned because the 2 player mode gameplay is so different.
Focusing on #65 instead.

Downgrading to enhancement.


Generate API spec from code

and publish it in gh-pages site using CI.
See ~Eth2~Web3Signer for a template

Now done in Tessera, see https://github.com/ConsenSys/tessera/blob/master/.github/workflows/update-openapi-doc.yaml


Trace recording interval

Please help
How to set the time interval to send SMS messages from the tracker to the platform

Traccar doesn't support SMS messages at the moment.


Web - Optimistic expense request page is broken

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Login account A with policyExpenseChat beta permission
Create workspace if not exist
Invite user B to workspace
Login user B on another device
On B, Go to invited A's workspace chat
Disable network
Request money
Click ReportPreview to go to expense report
Click IOUPreview to go to expense request

Expected Result:
Expense request page is correctly created optimistically
Actual Result:
Optimistic expense request page is broken (i.e. composer hidden)
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.47-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/a3dce83c-b1dc-4678-bfc9-7f3e82fceadb
https://github.com/Expensify/App/assets/93399543/b90eed5f-cd77-4682-a246-291a286ae657
Expensify/Expensify Issue URL:
Issue reported by: @situchan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690544874408279
View all open jobs on GitHub

All my permissions return true, yet I don't see Request money option. Though I do see Split Bill option. Or is this feature only available in a special room? It doesn't work in #announce or any other normal room. I can currently only request money in 1-1 chat

Thanks @bernhardoj! I'll watch https://github.com/Expensify/App/pull/23815 is to see if it resolves this issue

Thanks @bernhardoj! I'll watch #23815 is to see if it resolves this issue

FYI: https://github.com/Expensify/App/pull/23815#issuecomment-1660110273

Awesome! Thank you @rezkiy37! I'll close this as fixed based on https://github.com/Expensify/App/pull/23815#issuecomment-1660110273

@Christinadobrzyn I might be eligible for reporting bonus and this bug was reported on slack before that PR.

Hey @situchan can you give me the details of the timeline so I can review it? I need to remember our guidelines on reporting bonus for regressions...

I reported on slack on Jul 28 11:47
PR which fixes this issue was opened on Jul 28 18:13
It seems no one was aware that this happened on expense request page before this comment

Thanks @situchan our guidelines [internal doc added for reference] do allow for me to pay you as the reporter on the regression. Would you like for me to pay you through Upwork?

yes upwork. thanks

Adding External label to create Upwork job to pay @situchan for reporting based on - https://github.com/Expensify/App/issues/23847#issuecomment-1662942237
Feel free to ignore @mollfpr

Upwork job here
Internal: https://www.upwork.com/ab/applicants/1687243446963855360/job-details
External: https://www.upwork.com/jobs/~01414f6ff1313a444f
Feel free to accept the offer when you can @situchan

Paid @situchan in upwork - closing this!


Delivery for Reporter AGOL-2024.R03 - UAT

Implemented

#547
#947
#948

Tested on following platforms:

QA Checklist:
QA_Checklist-CrowdSourceReporter_Instant_web_app-2024.R03__V_3.12.xlsx
Test cases & Execution report:
ESRILG-Test_Scenarios_and_Test_Cases_-Crowd_Source_Reporter-2024.R03__v_3.12.xlsx

@pratiksabale07 @sumitzarkar Please refrain from using the word fixed in PRs. We noticed that git automatically closes the issue after merging the PR and it appears to be picking it up from the word fixed.
cc @jmhauck

This occurs when you use the word fixed followed by issue# in either a commit or pr. You can still reference the issue # in either just not fixed followed by issue #.

@skrishn @jmhauck
Noted, we will make sure from the next deliveries


 These emitters are never disposed and are therefore leaking. The following can use

"owner" creates an event
consumer subscribes to event and never disposes it
owner is being disposed
event listener is still there and leaks whatever is "connected" to the emitter

[x] domEvent
[ ] snapshot
[ ] debounce
[ ] buffer
[ ] fromNodeEventEmitter
[ ] fromDOMEventEmitter
[x] fromPromise

I have removed all usages of domEvent and replaced them with:

addDisposableListener, whenever no events were really needed
DomEmitter, whenever some event logic was in use

Interesting. Let me know if you want help, I've worked a lot on rxjs which has similar semantics and requirements in its subscribers and observers.


PRs Welcome, Readme.md

https://github.com/SuyashMore/MevonAI-Speech-Emotion-Recognition/blob/master/pullreq-url this link is borken

Fixed!


Docker container for Gin

I tried to install Gin on my Macbook without success (for example, brew pcre fails).
After I tried to install it on Linux and it was even worse.
A docker container would be very useful because someone can start using Gin without caring about the complications or installs and configurations.

Thank you for the suggestion. How would you recommend to allow users create and edit gin apps? Add an editor in the container (vim for instance)? Mount the volume in the host?

I don't know Gin enough to suggest an ideal solution. My goal would be keeping the Gin container as independent as possible from the app and the database.
So, I would add a local volume containing the source code. Since the initial code is generated by gin with a command like gin new app this should be possible using the container. So, let's say that the default source code folder for Gin is /var/gin/src, I would expect that I create locally a folder like ~/myapp for my source code and, after running a container for the db, let's say mysql, I run the container with a command like
docker run -d --name ginapp -v ~/myapp:/var/gin/src --link some-mysql:mysql gin

After I can initialize the app running
docker exec -it ginapp gin new app

this should create the app in the /var/gin/src that means that it actually creates the app in my local ~/my-app folder. At that point I can modify my code while this is used by the container.
What I don't know is if OpenResty watches the code and updates the output in real time or has to be restarted in some way. In the second case, the approach would require something like
docker exec -it ginapp gin restart

Anyway, this is pure speculation. I don't really know how Gin works because I was unable to install it. Consider it just as a general suggestion.

Also, I guess that you can build the docker container starting FROM the openresty container

I did some work on this. It did require making some changes to Gin to accommodate running in a Docker container.  My changes can be viewed here https://github.com/ostinelli/gin/compare/master...StevenWarren:docker
I would like to make this an alpine image but had some build issues so used Unbuntu Xenial instead. This brings the image to around 550mb. Will look at reducing that later.
NOTE: This is still very much a WIP
Docker image: https://hub.docker.com/r/manicapps/gin/
Create new app
docker run -v {{absolute_path_to_your_app_folder}}/app:/app --entrypoint "gin" manicapps/gin new app

Run tests
docker run -v {{absolute_path_to_your_app_folder}}:/app --entrypoint "/bin/sh" manicapps/gin -c "cd /app && busted"

Gin will complain about port 7021 but still runs the tests properly. Need to investigate further to see why the error is thrown.
Docker-compose example
version: "3"
services:
  gin:
    container_name: gin
    image: manicapps/gin
    volumes:
      - ./app:/app
    ports:
      - 7200:7200
    entrypoint: /bin/sh -c "cd /app && gin start --trace"

  postgres:
    container_name: postgres
    image: postgres:9.6
    restart: always
    volumes:
      - ./data:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: password
      POSTGRES_USER: appuser

Apologies to anyone who already tested the image, I accidentally pushed the wrong image to docker hub. It has been corrected and the proper image is now available.

@StevenWarren Do you mind sharing your Dockerfile please?


Help!!! please help me solve a simple question

if api.Cmp(hidden1, circuit.CZero) == 1 {
api.Println("xxx")
hidden1 = api.Sub(hidden1, hidden1)
} else {
api.Println("yyy")
}

what is the return-type of api.Cmp( ) ?
I know there notes in the api.go, but the code above always ouput "yyy"
Please tell me how to use the func correctly Thanks!!!

I can pay $$$ for your great help!

Sorry, we do not offer paid support. We try to respond to the issues in timely manner, but don't promise any response time.
api.Cmp returns a frontend.Variable which is not a fixed value. It is initialized during proving time. So it is incorrect to use if-else clause for deciding the proceeding computation.
Instead, you should use the returned value to compute the next variable a la
cmpRes := api.Cmp(hidden1, circuit.CZero)
cmpIsOne := api.IsZero(api.Sub(cmpRes, 1))
hidden1 := api.Select(cmpIsOne, X, 0)

It is indeed useful thank you
---Original---
From: "Ivo @.>
Date: Wed, Jul 24, 2024 16:38 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [Consensys/gnark] Help!!! please help me solve a simple question(Issue #1210)
Sorry, we do not offer paid support. We try to respond to the issues in timely manner, but don't promise any response time.
api.Cmp returns a frontend.Variable which is not a fixed value. It is initialized during proving time. So it is incorrect to use if-else clause for deciding the proceeding computation.
Instead, you should use the returned value to compute the next variable a la
cmpRes := api.Cmp(hidden1, circuit.CZero) cmpIsOne := api.IsZero(api.Sub(cmpRes, 1)) hidden1 := api.Select(cmpIsOne, X, 0)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


ValidatingAdmissionPolicy for C-0013

Control C-0013
Related Resources: CronJob, DaemonSet, Deployment, Job, Pod, ReplicaSet, StatefulSet
Control Docs: https://hub.armosec.io/docs/c-0013
Control Rego: https://github.com/kubescape/regolibrary/blob/master/rules/non-root-containers/raw.rego

There is one more issue. PodSecurityContext does not support allowPrivilegeEscalation.
For more details, see this issue: https://github.com/kubescape/regolibrary/issues/186

Keeping that in mind, I've written CEL such that it directly checks if each container set the securityContext.allowPrivilegeEscalation to false. Even if one container did not set it, the control returns false.

This is a very complex control, I will review a bit later

Hi @suhasgumma
Please note that the if and else statements are evaluated in order (https://www.openpolicyagent.org/docs/latest/policy-language/#else-keyword).
That means that first we check the container security context for the given fields, and only if they are not present there, we check the Pod security context. The reason for that being that the container security context takes precedence over the Pod security context (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#securitycontext-v1-core).
This behavior needs to be reflected on your check as well. For example, it is possible that runAsNonRoot will be set to true in the Pod security context, and runAsUser will be set to non-zero in the container security context, and so on.

Thank you @Daniel-GrunbergerCA . ContainerSecurityContext takes precedence. Only if the values are not set, we should check in PodSecurityContext.  I will implement the control according to this logic and get back to you.

Hi @Daniel-GrunbergerCA, this is what I have done:

Check if allowPreviligeEscalation is set to false in ContainerSecurityContext. Only if it is not set, check for it in PodSecurityContext. The control fails if it is not set to false.

Check either runAsNonRoot is set to true or runAsUser is non-zero. Only if they are not set in ContainerSecurityContext, fetch their values from PodSecurityContext if they are set there.

@slashben can you have a look, Daniel did approve in the past, but a second review before merging would be good

@matthyx I came across this as I was looking at a similar problem, but wonder if it's not possible to simplify the validations to a single expression by using variables to standardise the podSpec, something like this:
  variables:
  # Extract podSpec from Pod, Deployment, ReplicaSet, DaemonSet, StatefulSet, Job, CronJob
  # CronJob has podSpec in object.spec.jobTemplate.spec
  - name: cronjobPodSpec
    expression: |
      object.kind == 'CronJob' ? object.spec.jobTemplate.spec : null
  # Pod is found directly in object.spec and all reminding kinds is found in object.spec.template.spec
  - name: otherPodSpec
    expression: |
      object.kind == 'Pod' ? object.spec : object.spec.template.spec
  # Pass the the correct podSpec based on the object kind
  - name: podSpec
    expression: |
      object.kind == 'CronJob' ? variables.cronjobPodSpec : variables.otherPodSpec

  validations:
    - expression: >
        variables.podSpec.containers.all(container,
          (
            (
              has(container.securityContext) &&
              has(container.securityContext.allowPrivilegeEscalation) &&
              container.securityContext.allowPrivilegeEscalation == false
            ) ||
            (
              (
                !has(container.securityContext) || !has(container.securityContext.allowPrivilegeEscalation)
              ) &&
              (
                has(variables.podSpec.securityContext) &&
                has(variables.podSpec.securityContext.allowPrivilegeEscalation) &&
                variables.podSpec.securityContext.allowPrivilegeEscalation == false
              )
            )
          ) &&
          (
            (
              (
                has(container.securityContext) &&
                has(container.securityContext.runAsNonRoot) &&
                container.securityContext.runAsNonRoot == true
              ) ||
              (
                (
                  !has(container.securityContext) || !has(container.securityContext.runAsNonRoot)
                ) &&
                (
                  has(variables.podSpec.securityContext) &&
                  has(variables.podSpec.securityContext.runAsNonRoot) &&
                  variables.podSpec.securityContext.runAsNonRoot == true
                )
              )
            ) ||
            (
              (
                has(container.securityContext) &&
                has(container.securityContext.runAsUser) &&
                container.securityContext.runAsUser != 0
              ) ||
              (
                (
                  !has(container.securityContext) || !has(container.securityContext.runAsUser)
                ) &&
                (
                  has(variables.podSpec.securityContext) &&
                  has(variables.podSpec.securityContext.runAsUser) &&
                  variables.podSpec.securityContext.runAsUser != 0
                )
              )
            )
          )
        )
      message: "Workload contains container/s which have the capability to run as root! (see more at https://hub.armosec.io/docs/c-0013)"


Data privacy when using the API

Hello,
First, incredible model and great blog post/paper.
I’d like to try the API but I’m just curious what the data terms are when using it?
If I send an image to the API, is that image stored and used for future models?
Or does it only get used for inference?
Thank you

Hi @mrdbourke , sorry for the late reply! Thank you for your kind words—we're thrilled to hear that you found our model and blog post helpful!
Regarding your questions about data usage:
Inference Only: Any images you upload to the API are used solely for inference. We do not store these images permanently, nor do we incorporate them into future model training.
Data Handling and Storage: We adhere to industry-standard practices for data handling and storage to ensure your data remains secure.
Upcoming Data Terms: We're currently working with our legal team to finalize a formal set of data terms. This will provide detailed information about how we manage and protect user data.
We appreciate your interest and patience. If you have any more questions or need further clarification, please don't hesitate to ask!


where is the NDS score for car only?

I have seen that the nds score reported is for all the categories, not for the car only.

I have seen that the nds score reported is for all the categories, not for the car only.

Actually, the reported NDS is just calculated on the car only, because we only detect the car category.

Is multiplying the resulting NDS by 10 the way to obtain the NDS result for cars? This is because the 10 classes in nuScenes only considered cars.

Is multiplying the resulting NDS by 10 the way to obtain the NDS result for cars? This is because the 10 classes in nuScenes only considered cars.

Exactly.

That helps a lot. Thank you very much!


fix: add descriptive pull request title

Closes https://github.com/open-component-model/mpas-product-controller/issues/47

I'll attach an output of this to see it in action. ;)


DenseMapSIMD Throws IndexOutOfRangeException inside Contains

DenseMapSIMD Throws IndexOutOfRangeException inside Contains when small length was passed into constructor.
Minimum working example:
var fmap = new DenseMapSIMD<long, long>(1);
fmap.Emplace(0L, 0L);

var r = fmap.Contains(1);

The piece of code above throws IndexOutOfRangeException inside GetArrayEntryRef
Most likely the reason is length instead of  _length here:
https://github.com/Wsm2110/Faster.Map/blob/27ede7ac7717dfc54c9d81e99e76f5e859ba69d7/src/DenseMapSIMD.cs#L174-L177

Fixed


Online documentation update

This will fix #83 and changes the documentation to point to the new registry (#84).

maybe also worth explicitly commenting on the fact that this is still under development and only the dev version of the documentation is up to date.


Coveralls support for multi-project

The multi-project build is only publishing the core project to coveralls. There is additional configuration required to support multi-project builds; however, the example is more complex than I want to deal with right now. Shelving it for later - contributions welcome. :-)

This has been implemented in development and will be in the 0.14.0 release.


Add vital option to playback video while it is downloading: this is the most important feature the biggest challenge problematic capital vital life saver for users who have weak weak internet connection please : the sequential download feature to watch temporary video while downloading !

Hello, I don't know what happens with chromium, this is sad, this is absolute disaster catastrophe, i can't no more playback video while downloading in recent update of chromium kernel 131!
in chromium 124, i can see the temporary video in donwload folder and i can can playback temporary video while downloadig (in Thorium legacy browser), but i can't no more see the temporary video in donwload folder in the updated chromium 126 kernel used by Supermium .....
so sadly I no longer see the temporary video in the download folder, it is vital for me because my internet connection is very weak and online streaming videos jerk lag in the browser and the download of the video can be very slow and I do not want wait for the video to finish downloading....
so i have found solution : my secret was to go to the m3u8 parser settings of Cat-Catch extension, I activate the "stream download" option and I deactivate "ffmpeg transcod" but my trick no longer works in the recent update of chromium kernel 131 i.e. in Catsxp browser.....
so  we hope please that the generous compassionate magnificent Mr @puemos  will invent a trick, a way, an option for Live-Stream-Downloader to show us the temporary video being downloaded so that we can playback it while its sequential download, or display a temporary folder where we can see the temporary video please, because even preview setting of Cat-Catch with potlayer in firefox ou preview with vlc with Open in vlc extension lags jerks because my internet connection is so weak, it's the only solution please ie display the sequential download of the temporary video in the download folder, thank you!
maybe it will even be useful to contact @chromium @google  teams, I am not not a developer, so I don't know how to discuss with ex about the technical details of this problem, thanks!
in June before my main laptop broke down (I'm currently using catsxp web browser in my old eee pc windows 7 os 32 bts ), I was using Coo Coc browser which has an internal media downloader that allowed sequential download and I could see the temporary video in the download folder, i.e. I can see the temporary hls video with a lot of video fragments that coc coc browser unifies them into a single temporary video file that I could playback while it was downloading, so this is the technical proof that it is possible to display the temporary hls video while it is downloading in the download folder!!!
@chrome @MicrosoftEdge @chromium  please you risk losing market share to formidable competitors like Coc Coc browser, please help extension developers like Mr @puemos  to fix this vital issue to display temporary video in folder download so that we can playback the video while it is downloading, thank you!

UPDATE :
concerning display temprary video using cat catch extension and live stream donwloader extension,  I have been suffering from preview problems with potplayer, download bugs but recently i find  the solution : we should enable option "continue running applications in the background after closing chrome"
chrome://settings/system and we mast use chrome browser to avoid such bugs, we hople Hls-donwloader will be able also to display temporary video, thank you :)


Cleans up alert rules

What does this PR do?
A long due #102
Before

After  (only watchdog alert)

More

[x] Yes, I have tested the PR using my local account setup  (Provide any test evidence report under Additional Notes)
[x] Yes, I ran pre-commit run -a with this PR
[x] Yes, I have added a new example under examples to support my PR (when applicable)
[x] Yes, I have updated the Pages for this feature

Note: Not all the PRs required examples and docs.
For Moderators

[x] E2E Test successfully complete before merge?

Additional Notes

@elamaran11 @lewinkedrs can someone review pls, I would like to have this is in the next release


Add site external users report. Closes #2277

Add site external users report. Closes #2277

Merged manually. Thank you! 👏


[TASK]: Add observables to optimize constraint options.

Describe the task

[ ] Update optimize drilldown:
Allow for user to select these observables: (Essentially uncomment out some code)
https://github.com/DARPA-ASKEM/terarium/blob/main/packages/client/hmi-client/src/components/workflow/ops/optimize-ciemss/tera-optimize-ciemss-drilldown.vue#L661-L665

if (model.value?.semantics?.ode.observables) {
		modelStateAndObsOptions.value.push(...model.value?.semantics?.ode.observables.map((observable: any) => observable.id));
	}

[ ] Update pyciemss-service/hmi-client:

Needs to add _state when provided a state
Needs to add _observable when provided an obs
Currently this is done here: https://github.com/DARPA-ASKEM/pyciemss-service/blob/main/service/models/operations/optimize.py#L31
Here is a very minimal test case ran with hard coded _observable in pyciemss-service:

Pending 601-add-observables-to-risk-results being merged


Remove edit application feature

Context
This feature was never turned on in production, for reasons outlined in the design history:
https://bat-design-history.netlify.app/apply-for-teacher-training/amending-mvp
Changes proposed in this pull request
This removes the feature altogether. It renames the main before_action to redirect_to_dashboard_if_submitted, which is what it was before the feature was introduced. It also adds it to some missing controllers (it was easy to see here which controllers didn't have changes made to them when doing a project search-replace).
Guidance to review
Does it remove everything? Does it accidentally remove other functionality?
Link to Trello card
https://trello.com/c/r6ieKOuA
Things to check

[x] This code doesn't rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

Updated, I also found some i18n keys and a template that wasn't used anymore.


feat(e2e): Support multiple load instances

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[ ] Updated relevant documentation (docs/ or spec/) and code comments
[X] Title follows the Conventional Commits spec

@hvanz does this still make sense to have in the backlog for the next QA iteration?


Pass sample weights to custom objective functions in the python sklearn interface

Currently, the python sklearn API for XGBRegessor works by passing the expected arguments for the sklearn-formatted objective function (ylabel, ypred) via the decorator _objective_decorator(func). This function does not allow for passing sample weights (dmatrix.get_weight()) to the custom objective function.
I suggest changing the _objective_decorator to allow for custom objective functions that make use of sample weights.

That way all objective defined in scikit learn will break ... Maybe we need to have 2 different decorators.

I was thinking the the decorator would check whether or not the user-defined objective accepts a weights argument and if so, passes the sample_weight to it, otherwise it will work as it is currently defined.

As far as I understand, applying sample_weight only consist of multiplying the gradient and the hessian by the sample_weight (this is how it is done on c++ side). So we can just modify the decorator as suggested.
Here is my proposal:
def _objective_decorator(func):
    def inner(preds, dmatrix):
        """internal function"""
        labels = dmatrix.get_label()
        grad, hess = func(labels, preds)

        weights = dmatrix.get_weight()
        if weights.shape[0] > 0:
          if weights.shape[0] != labels.shape[0]:
            raise Exception("Number of weights should be equal to number of data points.")
          grad *= weights
          hess *= weights
        return grad, hess
    return inner

Thus we don't have to modify sklearn API.

As far as I understand, applying sample_weight only consist of multiplying the gradient and the hessian by the sample_weight (this is how it is done on c++ side). So we can just modify the decorator as suggested.
Here is my proposal:
def _objective_decorator(func):
    def inner(preds, dmatrix):
        """internal function"""
        labels = dmatrix.get_label()
        grad, hess = func(labels, preds)

        weights = dmatrix.get_weight()
        if weights.shape[0] > 0:
          if weights.shape[0] != labels.shape[0]:
            raise Exception("Number of weights should be equal to number of data points.")
          grad *= weights
          hess *= weights
        return grad, hess
    return inner

Thus we don't have to modify sklearn API.

As far as I understand, applying sample_weight only consist sof multiplying the gradient and the hessian by the sample_weight (this is how it is done on c++ side). So we can just modify the decorator as suggested.
Here is my proposal:
def _objective_decorator(func):
    def inner(preds, dmatrix):
        """internal function"""
        labels = dmatrix.get_label()
        grad, hess = func(labels, preds)

        weights = dmatrix.get_weight()
        if weights.shape[0] > 0:
          if weights.shape[0] != labels.shape[0]:
            raise Exception("Number of weights should be equal to number of data points.")
          grad *= weights
          hess *= weights
        return grad, hess
    return inner

Thus we don't have to modify sklearn API.

As far as I understand, applying sample_weight only consist sof multiplying the gradient and the hessian by the sample_weight (this is how it is done on c++ side). So we can just modify the decorator as suggested.
Here is my proposal:
def _objective_decorator(func):
    def inner(preds, dmatrix):
        """internal function"""
        labels = dmatrix.get_label()
        grad, hess = func(labels, preds)

        weights = dmatrix.get_weight()
        if weights.shape[0] > 0:
          if weights.shape[0] != labels.shape[0]:
            raise Exception("Number of weights should be equal to number of data points.")
          grad *= weights
          hess *= weights
        return grad, hess
    return inner

Thus we don't have to modify sklearn API.

That's not necessarily true for all objectives.  Also there are other meta information like group for ranking, label_upper/lower_bound for survival.  I think for these cases, using plain train function instead of scikit-learn wrapper might be a better way to go, at least for now.

That's not necessarily true for all objectives.  Also there are other meta information like group for ranking, label_upper/lower_bound for survival.  I think for these cases, using plain train function instead of scikit-learn wrapper might be a better way to go, at least for now.


Formatted Storage (again)

We continue the formatting of Storage. These files contain undesirable ViewModels and App dependencies. These dependencies will be removed in a future pr.
Validation
How did you test these changes?

[ ] Built and ran the app
[ ] Tested the changes for accessibility

Fix merge #8952.

@yaichenbaum @gave92 I allow myself to ask if a review of this PR is in progress. I need this to progress with ListedItem refactoring.

We're still waiting for verification that the branch was tested and ran.