rule(Container Drift Detected): detect new exec created in a container

What type of PR is this?
/kind rule-create
Any specific area of the project related to this PR?
/area rules
What this PR does / why we need it:
The PR adds the ability to identify exec drift in containers and targets RCE use cases. Full explanation can be found in issue 1248.
Which issue(s) this PR fixes:
https://github.com/falcosecurity/falco/issues/1248
Does this PR introduce a user-facing change?:
New drift detection rules added
rule(Container Drift Detected): detect new exec created in a container
Special notes for your reviewer:
Using this rule will require Falco engine version 6. Any attempt to copy paste the rules to an older Falco version will result in rules compilation errors.
In addition, the rule was built to address container run-time use cases, and will be a bit noisy in build environments that levreage containers.

Was this tested on a vanilla K8s?

I will run a few tests a update the output message to include the container information.

I'm using this image for testing it in case it makes easier for you all to test on k8s docker.io/fntlnz/falco:pr-1254

Here the artifacts built by the CI

https://2627-49986046-gh.circle-artifacts.com/0/packages/falco-0.23.0-29%2B041a16f-x86_64.deb
https://2627-49986046-gh.circle-artifacts.com/0/packages/falco-0.23.0-29%2B041a16f-x86_64.rpm
https://2627-49986046-gh.circle-artifacts.com/0/packages/falco-0.23.0-29%2B041a16f-x86_64.tar.gz

Thanks - I want to make sure I cover GKE and OpenShift before merging this one, since we'll likely need to add more exceptions.

Testing it in multiple environments takes some time. Does it make sense to push it in disabled by default for now?

LGTM label has been added.  Git tree hash: b53275d01b60ffc9d400cb992d7af926f1ef20d8

LGTM label has been added.  Git tree hash: b53275d01b60ffc9d400cb992d7af926f1ef20d8

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz, leodido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [fntlnz,leodido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


feat: multi-config + azure ml + script init

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

GitHub release
v1.4.0

Your semantic-release bot :package::rocket:


Fix print() function on Python 2

Fixes #752

Pull Request Test Coverage Report for Build 964

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at ?%

Totals

Change from base Build 960:
0.0%

Covered Lines:

Relevant Lines:
0

💛  - Coveralls

Pull Request Test Coverage Report for Build 964

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at ?%

Totals

Change from base Build 960:
0.0%

Covered Lines:

Relevant Lines:
0

💛  - Coveralls


Choosing different shifts

One useful feature would be the possibility of choosing to be in both Alameda and Tagus shifts for the theoretical classes of the same course. For example, if a given course has 2 theoretical classes with 2 pairs of shifts, 1 pair in Alameda and the other pair in Tagus, it would be nice to choose one shift from one pair (Alameda) and choose the other shift from the other pair (Tagus).

We don't really think it makes sense to allow for selecting lessons individually, even though we understand the reason why you might want to do so. What we might try to add is the ability to select two shifts without replacing by pressing shift+event or something. This would be different than your request because all 4 lessons would appear on the schedule, but I think it's the best we can do considering the domain.


Error thrown running storybook-to-ghpages as a Github Action

I'm running the following npm script from a Github Action:
"deploy-storybook": "storybook-to-ghpages -p packages -o=storybook-static --ci"
When npm run deploy-storybook is executed locally, it runs successfully.
When run as part of my Github Action, it fails with a generic error message. Running build-storybook from CI has no issue.
Step:
      - name: Deploy to GH Pages
        env:
          GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
        run: npm run deploy-storybook

Error from Logs:
=> Deploying storybook
   executing: git push --force --quiet<EMAIL_ADDRESS>master:gh-pages
/home/runner/work/petra/petra/node_modules/@storybook/storybook-deployer/src/utils.js:14
  throw new Error(
  ^

Error: Exec code(128) on executing: git push --force --quiet<EMAIL_ADDRESS>master:gh-pages
undefined
    at Object.exec (/home/runner/work/petra/petra/node_modules/@storybook/storybook-deployer/src/utils.js:14:9)
    at Object.<anonymous> (/home/runner/work/petra/petra/node_modules/@storybook/storybook-deployer/bin/storybook_to_ghpages:69:14)
    at Module._compile (internal/modules/cjs/loader.js:955:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
    at Module.load (internal/modules/cjs/loader.js:811:32)
    at Function.Module._load (internal/modules/cjs/loader.js:723:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
    at internal/main/run_main_module.js:17:11
npm ERR! code ELIFECYCLE
npm ERR! errno 1

this can be further improved through the provided GITHUB_ACTOR env var
- name: Deploy storybook to Github Pages
  run: npm run deploy-storybook -- --ci
  env:
    GH_TOKEN: ${ GITHUB_ACTOR }:${{ secrets.GITHUB_TOKEN }}

@woozyking try this instead:  GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

@oanylund this works, thank you! Just curious, where was this documented?

No problem.
Here: https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions
I think all default environment variables are in the context aswell.
Here is the list of default env variables aswell:
https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables

I found that I needed to follow this:
https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation
GH_TOKEN: x-access-token:${{ secrets.GITHUB_TOKEN}}

In my case, I have a private repo and even using  GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} did not work.  It would correctly push to gh-pages branch, but it wouldn't trigger a deployment to github pages. I created a PAT on my own account and set it as a secret on the repo. Then I used that PAT secret instead of GITHUB_TOKEN and it was able to push to gh-pages and deploy the static changes to github pages.

I keep getting
Error: Exec code(128) on executing: git push --force --quiet https://github.com/agilemd/project-name master:gh-pages
fatal: could not read Username for 'https://github.com': No such device or address

With
      - name: Deploy to GitHub Pages
        run: npm run deploy -- --ci
        env:
          GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

I keep getting
Error: Exec code(128) on executing: git push --force --quiet https://github.com/agilemd/project-name master:gh-pages
fatal: could not read Username for 'https://github.com': No such device or address

With
      - name: Deploy to GitHub Pages
        run: npm run deploy -- --ci
        env:
          GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

Don't use the Github token, use a Personal Access Token

Actually it turns out that because of a build tool I was using (lerna) the --ci flag was not being passed into storybook-to-ghpages. You know storybook-to-ghpages should be smart enough to set itself to CI mode if the CI env variable is set (most CIs have that set to a truthy value). Would be a nice to have.


Use localStorage instead of a js array

[x] move toggleTimer outside of the document.ready
[x] Pass in the timerData and toggleTimerButton to toggleTimer()
[x] move from using .length to having a counter in timerData that tracks the current item being worked on
[x] move from using the toggleTimerButton.hasclass to using a status tracker in the timerData
[x] If there is data in the localstorage, provide a button to let someone clear it out (At the bottom of the page, I guess?)
[x] Move current data to localStorage during operation
[ ] When the page is loaded, if there is data in localStorage then use it to populate the table

:+1:

I broke this down into a few steps. The remaining piece is synching the state from the localStorage into the DOM if the page is refreshed. A lot of the underlying work for that is done, so shouldn't be too much more.

Done!


Bumps versions update for AFox

target + compile SDK versions updated
Kotlin and gradle plugin version updated
android:exported="true" in Manifest set
library version numbers updated
jcenter() removed

Please don't merge this. I'll rebase the branch unto the main branch once that has the changes merged.

Closing this as the rebase rewrote the git history.


ADD

Would it be possible to place other types of shorteners like adfly and others?

sure you can
if these website their api


Support for nested .eslint files?

I'm working on a Node.js project, which also includes client side code. All general rules are set in the .eslintrc file in the project's root, client side rules (e.g. jQuery env) are stored in client/.eslintrc:
├── client
│   ├── client.js
│   └── .eslintrc
└── .eslintrc

When I run the eslint CLI command, rules in client/.eslintrc are processed correctly, however in Sublime Text, those rules don't seem to be applied.
Tested with eslint v0.16.1 and v0.18 (running on io.js v1.6.2), latest SublimeLinter-eslint, Sublime Text 3 Build 3082 (Dev Channel)

Sorry, seems to have been a hiccup in Sublime Text.

I'm having this issue. Do you remember how you resolved it?

Simply restarting ST worked for me at that time.


size_t and ptrdiff_t need special treatment on OSX

The types do not resolve to ulong and long on OSX, as opposed to other platforms.
See ddemidov/vexcl#222

Unfortunately, I don't have access to OSX, so I am not able to test this. @chrism0dwk, would you mind copying compute/types/size_t.hpp to your OSX machine and testing if the following  compiles:
#include <iostream>
#include <boost/compute.hpp>
#include "size_t.hpp"
#define VEXCL_BACKEND_COMPUTE
#include <vexcl/vexcl.hpp>

int main() { }

@ddemidov yes, your test program compiles on my OSX machine with the size_t.hpp file present on the include path.

Coverage remained the same at 83.739% when pulling c9522ad4c0f231bbaa626164cd0741f5783a42d7 on ddemidov:osx-size_t into 0c2f749fb82dbc482e0d1c77996c010ce2631bb3 on boostorg:develop.

Travis fails, but it does not seem related to the PR.


Improve description of Waypoint: Find Numbers with Regular Expressions

closes #5892
Waypoint: Find Numbers with Regular Expressions
Current Description:
"We can use special selectors in Regular Expressions to select a particular type of value.",
"One such selector is the digit selector \\d which is used to retrieve the numbers in a string.",
"It is used like this: /\\d/g.",
"For numbers this is often written as /\\d+/g, where the + following the digit selector allows this regular expression to match one or more numbers.",

Improved Description:
"We can use special selectors in <dfn>Regular Expressions</dfn> to select a particular type of value.",
"One such selector is the digit selector \\d which is used to retrieve one digit (e.g. numbers 0 to 9) in a string.",
"In JavaScript, it is used like this: /\\d/g.",
"Appending a plus sign (+) after the selector, e.g. /\\d+/g, allows this regular expression to match one or more digits.",
"The trailing g is short for 'global', which allows this regular expression to find all matches rather than stop at the first match",

@erictleung done.

:+1:


Use go 1.17 in our build environments

This fixes the make presubmit failures.
Use Docker builds elsewhere by default.
Build managed collection images as part of presubmit.
Add documentation fixes.

Cool - I also spot checked this by deploying manually and doing various e2e tests in addition to the automated tests, as this involves bumping our build base images. Thanks for the reviews!


Documentation sync

Closes #663

Introduced docs for the /safe-apps endpoint
Adjusted json for the estimation endpoint
Fixed various types and formatting issues

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 84.106%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
7181

Relevant Lines:
8538

💛  - Coveralls


Submit to EBI non QC data

From @rob-knight. Currently we are submitting after split libraries data and we should be submitting demultiplexed non QC data.

We discussed this during qiita meetings and also directly with EBI and the conclusion was that submitting minimal QC files is fine. The QC by default in QIIME is not stringent so basically is removing really bad data, which is fine with EBI. Thus, closing this issue.


Fixed Errors for signup login

FIXES: #570
There were some duplicate divs and some open components. in jsx

YES

Merge conflict


Duplicate puns!

I can see a very funny one 3 times in the pun list. Is this a pun too, but I hardly laughed at it being duplicated thrice..
#titanic {
  float: none;
}

I'll work on this if you approve @cmcodes1

Hey there! I want to add a pun and make others laugh ;)

Hello @cmcodes1 C M Pandey
There are around 23 duplicate puns in the list, can I work on this by removing duplicate puns, please assign to me


Problem running under Apache? or perhaps some bug?

I'm not sure if this is a problem with running your code under Apache mod_wsgi or if it is an actual bug.
Some times it works when I use the skill, but other times I get this;
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552] mod_wsgi (pid=22558): Exception occurred processing WSGI script '/var/www/kodi-alexa/wsgi.py'.
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552] Traceback (most recent call last):
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/var/www/kodi-alexa/wsgi.py", line 673, in application
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     output = h[1](environ, start_response)
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/var/www/kodi-alexa/wsgi.py", line 643, in do_alexa
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     response = one_intent1
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/var/www/kodi-alexa/wsgi.py", line 213, in alexa_play_pause
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     kodi.PlayPause()
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/var/www/kodi-alexa/kodi.py", line 161, in PlayPause
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     playerid = GetPlayerID()
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/var/www/kodi-alexa/kodi.py", line 65, in GetPlayerID
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     info = SendCommand(RPCString("Player.GetActivePlayers"))
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/var/www/kodi-alexa/kodi.py", line 51, in SendCommand
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     return json.loads(r.text)
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/usr/lib/python2.7/json/init.py", line 338, in loads
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     return _default_decoder.decode(s)
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]   File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552]     raise ValueError("No JSON object could be decoded")
[wsgi:error] [pid 22558] [client <IP_ADDRESS>:10552] ValueError: No JSON object could be decoded
Funny thing is if I keep trying the request it will eventually work.
What do you think?
Oh, and thanks for what looks like a very nice skill - except for that problem I'm having:)

What command are you trying? Is it only one that is struggling?

Actually it seems it might only be the pause/resume/play command that fails.
I'm watching a movie right now so will get back to you with result of further testing.

Might be the way Amazon hears what you are saying. Try changing the utterance for a random word you can test.

Hey,
I solved my problem :) It seems it was a local problem with my kodi, and actually it was solved after restarting kodi.. :/ Didn't look there since it worked fine using the http control from both Yatse and the webinterface and kodi-send..
Might I suggest a feature that plays only movies that are not already seen ?
Again thanks for a very nice skill.

Actually that's a pretty good idea. I was watching random episodes of a TV show today and got the same one once. Should be a pretty simple modification.

I've updated it so it only pulls unwatched files now.


Enhance Audio

Hi,
would be great if there was an output volume variable for the TTS sytem via ALSA or sounds in general. I have passive speakers and almost here nothing but when bumping up the volume to 200% it works quite fine.
also, because I struggled for a log time t see if my settings are right or wrong, it would be nice to have a quick soundcheck and mic check button to support debugging during installation.
Thanks, great tool!
T

There is a button to test the microphones on the Settings page. Nothing for audio output, but I usually just use the "Speak" button on the main page to do a test text to speech.
Were you meaning something different?

As of 2.4.17 there is a button in the web UI to play back the last recorded voice command for testing.


Add placeholder logging functions

Description of changes:
Placeholder logging functions, so we can start using them in PRs. They're no-op as of now.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Logger is being implemented here: https://github.com/awslabs/aws-c-common/pull/131

Well, the memory pool is implemented there. The logger is, for now, being implemented in the mini_logger branch: https://github.com/awslabs/aws-c-common/tree/mini_logger


Validation rule bail not working

Laravel Version: 5.4.7
PHP Version: 7.1.0
Database Driver & Version: 5.7.16

Steps to reproduce

Make validator with rules [ 'email' => 'bail|required_if:status_id,2|email' ];
Submit form with status_id = 3 and wrong format email

What is Expected?
Validation passes succesfully.
What is actually happening?
Validator throws error The email must be a valid email address.

Why do you think the validator should pass? Bail stops further validation if the first rule fails, in your example the first rule was skipped because status_id <> 2, so the actual first rule hit was email since the required_if was skipped.

But, how i can check email only if previous rules passed, i.e i want to check email only if status_id = 2?

take a look at: http://themsaid.com/laravel-advanced-validation-conditionally-adding-rules-20170110/
;)

@themsaid Thanks, but if i use FormRequest, how i can apply sometimes extended rule?


If file not choosen getFile() should return null

Hello. Glad you’ve spotted it. Can you please change the base branch to beta instead? Thank you.


dependency issues

I like what you are doing here, but I keep running into dependency issues while trying to use this package in my projects. It seems that the specified ranges for certain dependencies is very narrow, causing conflicts down the line with packages like pydantic, openai, etc. This has rendered your package basically unusable to me at this point.
Can you please expand the ranges on some of these dependencies? I am confident there won't be any breaking changes, and it will greatly improve adoption of this tool.

Thanks @ehutt for opening the issue.
Do you mind explaining a bit more about your use-case? Where and how are you trying to pull in the packages/modules? If possible, can you provide an example of where our dependency ranges are too narrow (eg: some pip install output showing the error?)
I agree that we can probably relax some of the constraints, but want to make sure we understand where there are issues so that we get it right.

@fryz Joining this issue since I have similar problems.
For one, I see that this is the version for langchain in the .toml file:
'langchain~=0.0.170, but it seems that I get 0.0.354 installed instead.
However, langchain is now at 0.1.16, so it is behind and there have been significant changes since, which are breaking changes (langchain.chat_models going to langchain_openai, different variable names like OPENAI_API_BASE etc) meaning it's difficult to use Arthur Bench at the moment.

Pydantic: 2.7.0 -> 1.10.15
openai 1.23.2 -> 0.28.1
langchaincommunity 0.0.34 ->0.0.20
langsmith...
langchain-core...

  Attempting uninstall: wcwidth
    Found existing installation: wcwidth 0.2.5
    Uninstalling wcwidth-0.2.5:
      Successfully uninstalled wcwidth-0.2.5
  Attempting uninstall: tokenizers
    Found existing installation: tokenizers 0.15.2
    Uninstalling tokenizers-0.15.2:
      Successfully uninstalled tokenizers-0.15.2
  Attempting uninstall: pydantic
    Found existing installation: pydantic 2.7.0
    Uninstalling pydantic-2.7.0:
      Successfully uninstalled pydantic-2.7.0
  Attempting uninstall: pandas
    Found existing installation: pandas 2.2.0
    Uninstalling pandas-2.2.0:
      Successfully uninstalled pandas-2.2.0
  Attempting uninstall: langsmith
    Found existing installation: langsmith 0.1.49
    Uninstalling langsmith-0.1.49:
      Successfully uninstalled langsmith-0.1.49
  Attempting uninstall: transformers
    Found existing installation: transformers 4.37.2
    Uninstalling transformers-4.37.2:
      Successfully uninstalled transformers-4.37.2
  Attempting uninstall: openai
    Found existing installation: openai 1.23.2
    Uninstalling openai-1.23.2:
      Successfully uninstalled openai-1.23.2
  Attempting uninstall: langchain-core
    Found existing installation: langchain-core 0.1.45
    Uninstalling langchain-core-0.1.45:
      Successfully uninstalled langchain-core-0.1.45
  Attempting uninstall: langchain-community
    Found existing installation: langchain-community 0.0.34
    Uninstalling langchain-community-0.0.34:
      Successfully uninstalled langchain-community-0.0.34
  Attempting uninstall: langchain
    Found existing installation: langchain 0.1.16
    Uninstalling langchain-0.1.16:
      Successfully uninstalled langchain-0.1.16

I am also having issues mostly with the following packages, where other nonnegotiable dependencies require updated versions:
pydantic = "^2.0.0"
openai = "^1.23.3"
tiktoken = "^0.3.3"

It also looks like langchain is outdated, but I personally don't have a conflict there.


[Feature Request] Add LavaLink statistics to built-in Prometheus provider

Add the existing stats object to the metrics endpoint for easy prometheus monitoring.
Any more stats on top of this would be neat to have also :D

I wrote an external tool in python which exposes a prometheus endpoint to do this however I've noticed that for some reason the playingPlayers stat is wildly incorrect (and always has been).


Commented entries in "env" object that are sandwiched between other entries cause failure

If you delete the entry before or after the commented one in env, it works, but otherwise it fails with:
unable to run program: Error: Invalid expression

  on pcl-158852422.pp line 1543:
1544: ]

apiVersion: apps/v1
kind: Deployment
metadata:
    name: auth
    namespace: default
    labels:
        app: auth
spec:
    selector:
        matchLabels:
            app: auth
    strategy:
        rollingUpdate:
            maxUnavailable: 0
    replicas: 1
    template:
        metadata:
            annotations:
            labels:
                app: auth
        spec:
            serviceAccountName: auth
            initContainers:
            containers:
                - name: auth
                  image: foo
                  env:
                      - name: SESSION_KEY
                        valueFrom:
                            secretKeyRef:
                                key: SESSION_KEY
                                name: secrets
                      #- name: SESSION_COOKIE_SECURE
                      #  value: "true"
                      - name: GITHUB_CLIENT_ID
                        valueFrom:
                            secretKeyRef:
                                key: GITHUB_CLIENT_ID
                                name: secrets
                  resources:
                      requests:
                          cpu: 50m
                          memory: 64Mi
                      limits:
                          cpu: 200m
                          memory: 128Mi

Fixed in #98


[Bug]: Links break when renaming a file

Check for existing bug reports before submitting.

[X] I searched for existing Bug Reports and found no similar reports.

Expected Behavior
Rename a element and all elements linked to it should update their links
Current behaviour
Rename an element, links get broken in other linked elements. The page then doesn't render.
Reproduction
Rename an element, in the case and adventure element. Linked sessions don't render afterwards.
Which Operating Systems are you using?

[ ] Android
[ ] iPhone/iPad
[X] Linux
[ ] macOS
[ ] Windows

Obsidian Version Check
1.4.16
Plugin Version
4.1.12
Confirmation

[X] I have disabled all other plugins and the issue still persists.

Possible solution
No response

Hi @krolloc1
I have noticed the issue you are reporting and I have already dug deeper into the it.
TL;DR
When obsidian sends a message that a file is updated, I update the links in the rest of the files, but they are being updated by obsidian themselves, so the two updates clash and the data loses some bits.
Solution
Migrate from using the file path as identifier for the element to a uuid based.
Challenges
Time
Priority
High


Image dimensions for theme_feature and theme_preview1

Do you have any suggestions for sizing (dimensions, ratio, etc.) for the theme_feature and theme_preview images? I am not really sure what to create for them (suggestions of what the images should contain for the end user)? as I don't use apex any help would be great. Also where should the images to placed in the res folder?
Thanks

I'm not sure. Most themer using a device screenshot with icon pack applied.

Thanks for the info


Cleanup

What problem does this PR solve?
Fixes #494
What is changed and how does it work?
Cleanup several duplicate assignments and unused parameters.
Also, improve the slice and map allocations.

/run-e2e-test

/run-e2e-test


Error while migrate

Plugin version
1.5.4
NetBox version
3.7.2
Python version
3.8
Steps to Reproduce
python3 manage.py migrate
Expected Behavior
Expected to migrate de DB
Observed Behavior
Traceback (most recent call last):
File "/opt/netbox/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/management/init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/management/base.py", line 106, in wrapper
res = handle_func(*args, **kwargs)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 100, in handle
self.check(databases=[database])
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/management/base.py", line 485, in check
all_issues = checks.run_checks(
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/checks/registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/checks/urls.py", line 14, in check_url_config
return check_resolver(resolver)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/checks/urls.py", line 24, in check_resolver
return check_method()
File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 494, in check
for pattern in self.url_patterns:
File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 715, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/netbox/netbox/netbox/urls.py", line 12, in
from netbox.plugins.urls import plugin_admin_patterns, plugin_patterns, plugin_api_patterns
File "/opt/netbox/netbox/netbox/plugins/urls.py", line 31, in
urlpatterns = import_string(f"{plugin_path}.urls.urlpatterns")
File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 15, in cached_import
module = import_module(module_path)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_config_backup/urls.py", line 2, in
from . import views
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_config_backup/views.py", line 14, in
from netbox_config_backup.git import GitBackup
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_config_backup/git.py", line 8, in
from pydriller import Git
ImportError: cannot import name 'Git' from 'pydriller' (/opt/netbox/venv/lib/python3.10/site-packages/pydriller/init.py)

This looks like something is wrong with your pydriller install.  I would remove and re-install it if possible.
Using the latest version I am able to import "Git"

Hi!
It worked for me.
pip install --force-reinstall pydriller


Change Database.set() signature

set([doc_id], data, callback[, attachments=None]) has a really strange signature. It is the only method in trombi, which has first optional positional argument. Arguments parsing is manual (which can be then simplified). The real reason to change it, however, is inability to pass callback keyword argument. This does not allow to use tornado.gen to simplify asynchronous code.
I guess it can't be handled without changing method's signature and breaking existing code. At least the first argument would become required: set(doc_id, data, callback[, attachments=None]).
Please, let me know if there is a clean way to get around this particular issue.

The first argument is intentionally optional. If it wasn't optional and you already had a Document instance, you'd have to say db.set(doc.id, doc, callback) instead of just db.set(doc, callback). Making the callback keyword arg is possible without making doc_id a required argument.

Yeah, an ugly workaround is to respect additional callback keyword argument and cowardly append it to the *args. Requires nothing but trivial changes at the top of set() method:
     def set(self, *args, **kwargs):
+        cb = kwargs.pop('callback', None)
+        if cb:
+            args = list(args)
+            args.append(cb)
+            args = tuple(args)
         if len(args) == 2:
             data, callback = args
             doc_id = None
         elif len(args) == 3:
             doc_id, data, callback = args
         else:
-            raise TypeError(
-                'Database.set expected 2 or 3 arguments, got %d' % len(args))
+            raise TypeError('Database.set is missing callback argument')

This kind of change looks not so terrible looking at how it is now. Cleaner but backwards-incompatible way would require to change order of arguments.

Here's a more compact version:
     def set(self, *args, **kwargs):
+        cb = kwargs.pop('callback', None)
+        if cb:
+            args += (cb,)
         if len(args) == 2:
             data, callback = args
             doc_id = None
         elif len(args) == 3:
             doc_id, data, callback = args
         else:
-            raise TypeError(
-                'Database.set expected 2 or 3 arguments, got %d' % len(args))
+            raise TypeError('Database.set is missing callback argument')

I think this is the way to go.
@nailor Comments?

@mikek Thanks for the bug report! Making everything work with tornado.gen is top priority before 1.0 release of trombi and it's more than desired that bugs like this surface!
@akheron Your patch seems fine, go ahead and commit :)

The proposed error message is bad. If called with e.g. set(a, b, c, callback=d), the error message is 'Database.set is missing callback argument'.


AttributeError: 'ASR' object has no attribute 'ctx'

Hello,
I'm block when I tried to launch the script. This is the message :

2024-05-08 21:51:50.1156801 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '620'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1194426 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '623'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1233524 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '625'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1269919 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '629'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1320727 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '628'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1362505 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '131'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1402363 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '134'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1440089 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '136'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1484948 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '140'. It is not used by any node and should be removed from the model.
2024-05-08 21:51:50.1522116 [W:onnxruntime:, graph.cc:3593 onnxruntime::Graph::CleanUnusedInitializersAndNodeArgs] Removing initializer '139'. It is not used by any node and should be removed from the model.
Traceback (most recent call last):
File "D:\Dev\GlaDOS\glados.py", line 555, in
glados = Glados.from_config(glados_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Dev\GlaDOS\glados.py", line 166, in from_config
return cls(
^^^^
File "D:\Dev\GlaDOS\glados.py", line 102, in init
self._asr_model = asr.ASR(model=str(Path.cwd() / "models" / ASR_MODEL))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Dev\GlaDOS\glados\asr.py", line 23, in init
self.ctx = whisper_cpp_wrapper.whisper_init_from_file(model.encode("utf-8"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'glados.whisper_cpp_wrapper' has no attribute 'whisper_init_from_file'
Exception ignored in: <function ASR.del at 0x000001FAFFBF3D80>
Traceback (most recent call last):
File "D:\Dev\GlaDOS\glados\asr.py", line 61, in del
whisper_cpp_wrapper.whisper_free(self.ctx)
^^^^^^^^
AttributeError: 'ASR' object has no attribute 'ctx'

Please help me...

  New code for that platiis being developed, should be ready soon I hope.

Yes, I forgot to tell, I'm on Windows. I will test on Linux in that case. Thanks for your quick reply.

There is now a windows branch in testing. There is a batch file that sometimes works.
If not, try the commands from in the batch file one at a time.


Can't retrieve 3rd tier item in a menu (item --> child --> child)?

I'm not familiar with timber at all, but am helping a friend finish up a project that was built with it. So any help would go a long way please!
Expected behavior
I have the menu in the structure I've built with all three tiers of the menu laid out.
Actual behavior
I have only the first two tiers showing up. Is there a way to call on the child of a child?
Steps to reproduce behavior
I'm using the code here, and added to it another tier under child https://timber.github.io/docs/guides/menus/
What version of WordPress, PHP and Timber are you using?

How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)

@klovrick What does your Twig file which displays the menu currently look like?

Issue is stale, closing it!


Error while processing file from main-is in a certain project structure.

If one has a project with a single executable and at least two modules and a cabal.project file, ghcide fails to process the file listed under main-is in the cabal file.
The error produced:
    ghcide version: 0.2.0 (GHC: 8.6.5) (PATH: /nix/store/f6hxh9b0679v0yl5amlmwcwfj21xm4rr-ghcide-0.2.0/bin/ghcide)
    Ghcide setup tester in <redacted>/minimal-example-c01.
    Report bugs at https://github.com/digital-asset/ghcide/issues

    Step 1/4: Finding files to test in <redacted>/minimal-example-c01
    Found 1 files

    Step 2/4: Looking for hie.yaml files that control setup
    Found 1 cradle

    Step 3/4: Initializing the IDE

    Step 4/4: Type checking the files
    [INFO] Consulting the cradle for "<redacted>/minimal-example-c01/src/Main.hs"
    > cabal: Unknown target '<redacted>/minimal-example-c01/src/Main.hs'.
    > The package minimal-example-c01 has no file target 'src/Main.hs'.
    >
    >
    File:     <redacted>/minimal-example-c01/src/Main.hs
    Hidden:   no
    Range:    1:0-100001:0
    Source:   compiler
    Severity: DsError
    Message:
      Failed to parse result of calling cabal

        cabal: Unknown target '<redacted>/minimal-example-c01/src/Main.hs'.
          The package minimal-example-c01 has no file target 'src/Main.hs'.

          Files that failed:
           * <redacted>/minimal-example-c01/src/Main.hs

           Completed (0 files worked, 1 file failed)

Example project: minimal-example-c01.

Might be relevant: Used cabal-install and Cabal version <IP_ADDRESS>

I think this is the relevant issue in cabal https://github.com/haskell/cabal/issues/6622 and the fix will be ported to cabal <IP_ADDRESS>, iirc.
Work around is an explicit hie.yaml:
cradle:
  cabal:
    - path: ./src
      component: "exe:minimal-example-c01"


Update audit-log-events.md

@robmazz
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

Hi @JohanFreelancer9  Thank you very much for helping review this. Do you know when will it take effect in the public doc?

Hi @JohanFreelancer9 Thank you very much for helping review this. Do you know when will it take effect in the public doc?

It is only a pleasure. Your changes will be live once they have been reviewed and merged by the doc author.

Hi @robmazz, could you pls help with a final review?

Gentle ping @robmazz  As we are waiting for this approval before we can release our feature. Thank you very much. CC @scanum

Gentle ping @robmazz As we are waiting for this approval before we can release our feature. Thank you very much. CC @scanum

@scanum - couple of things:

This information is already published (https://learn.microsoft.com/en-us/purview/audit-teams-audit-log-events#updates-app-in-teams-activities)
This topic is no longer in the Teams repo, it's in the Purview repo with all the other auditing topics

Recommend you close this PR.

Sounds good, thanks @robmazz !


Adding Auditlog to Installed Apps causes PostreSQL JSON fields to be re-encoded on model save, without explicity registering the model

Following Django's documentation for PostgreSQL's JSON field: https://docs.djangoproject.com/en/1.10/ref/contrib/postgres/fields/#querying-jsonfield
I get some weird behaviour after including AuditLog in my installed apps:
#models.py
from django.contrib.postgres.fields import JSONField
from django.db import models

class Dog(models.Model):
    name = models.CharField(max_length=200)
    data = JSONField()

    def __str__(self):  # __unicode__ on Python 2
        return self.name

#settings.py
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'audittest',
        'USER': 'audittest',
        'PASSWORD': 'audittest',
        'HOST': 'localhost',
        'PORT': '',
    }
}

# pip freeze
(venv) jwe in ~/Documents/audittest λ pip freeze
Django==1.10.1
django-auditlog==0.4.0
django-jsonfield==1.0.1
psycopg2==2.6.2

./manage.py shell
(venv) jwe in ~/Documents/audittest λ ./manage.py shell
Python 3.4.2 (default, Oct  8 2014, 10:45:20)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from jsontest.models import Dog
>>> Dog.objects.create(name='Meg', data={'breed': 'collie'})
<Dog: Meg>
>>> Dog.objects.first().data
'{"breed": "collie"}'
>>> Dog.objects.first().save()
>>> Dog.objects.first().data
'"{\\"breed\\": \\"collie\\"}"'
>>> Dog.objects.first().save()
>>> Dog.objects.first().data
'"\\"{\\\\\\"breed\\\\\\": \\\\\\"collie\\\\\\"}\\""'
>>> Dog.objects.first().save()
>>> Dog.objects.first().data
'"\\"\\\\\\"{\\\\\\\\\\\\\\"breed\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"collie\\\\\\\\\\\\\\"}\\\\\\"\\""'
>>>

Things to note:

I did not include 'auditlog.middleware.AuditlogMiddleware'
Issue occurs both before and after I run ./manage.py migrate
I did not register the model to log for changes with auditlog.register(Dog)

I'll try snooing around the code base this weekend to figure out what's going on, but I can't garuntee anything. Just thought I make this known incase any other people encouter the issue.
Cheers, Jack

Are you sure that auditlog caused this weird behaviour? I can personally guarantee that the Auditlog code does not "hack" (or: monkey patch) any Django code. I recommend you try this again with only django-jsonfield installed.

I'm probably completely missing something here...
Starting afresh with just django-jsonfield I get the following behaviour
(venv) jwe in ~/Documents/audittest λ pip freeze
Django==1.10.1
psycopg2==2.6.2
(venv) jwe in ~/Documents/audittest λ pip install django-jsonfield
Collecting django-jsonfield
Installing collected packages: django-jsonfield
Successfully installed django-jsonfield-1.0.1
(venv) jwe in ~/Documents/audittest λ pip freeze
Django==1.10.1
django-jsonfield==1.0.1
psycopg2==2.6.2
(venv) jwe in ~/Documents/audittest λ ./manage.py shell
Python 2.7.9 (default, Mar  1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from jsontest.models import Dog
>>> Dog.objects.create(name='Meg', data={'breed': 'collie'})
<Dog: Meg>
>>> Dog.objects.first().data
{u'breed': u'collie'}
>>> Dog.objects.first().save()
>>> Dog.objects.first().data
{u'breed': u'collie'}
>>>

This version seems to be the exact same version pulled by django-auditlog, but the behaviour I experience is different. Am I missing a step?
(venv) jwe in ~/Documents/audittest λ pip freeze
Django==1.10.1
psycopg2==2.6.2
(venv) jwe in ~/Documents/audittest λ pip install django-auditlog
Collecting django-auditlog
Requirement already satisfied (use --upgrade to upgrade): Django>=1.8 in ./venv/lib/python2.7/site-packages (from django-auditlog)
Collecting django-jsonfield>=1.0.0 (from django-auditlog)
Installing collected packages: django-jsonfield, django-auditlog
Successfully installed django-auditlog-0.4.0 django-jsonfield-1.0.1
(venv) jwe in ~/Documents/audittest λ pip freeze
Django==1.10.1
django-auditlog==0.4.0
django-jsonfield==1.0.1
psycopg2==2.6.2

# After adding 'auditlog' to installed apps and migrating

(venv) jwe in ~/Documents/audittest λ ./manage.py shell
Python 2.7.9 (default, Mar  1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from jsontest.models import Dog
>>> Dog.objects.create(name='Meg', data={'breed': 'collie'})
<Dog: Meg>
>>> Dog.objects.first().data
'{"breed": "collie"}'
>>> Dog.objects.first().save()
>>> Dog.objects.first().data
'"{\\"breed\\": \\"collie\\"}"'
>>>

Maybe I'm missing something here. Auditlog should never change the contents of model fields, especially when a model is not registered to be logged.
Looking at the 'auditlog-included' example it seems that the data is not decoded but continuously re-encoded to json, which is very strange.
One thing I can say is that Django's postgres-specific JSONField class has the same name as the one from django-jsonfield, but that really should not be a problem considering their import paths are different.
To summarize, I have no clue what's going on here. Additionally, I'm quite busy so I would appreciate if you want to look into this.

As I am writing this I suddenly realize that importing something from the django-jsonfield package could be key here. At least, it is a factor which differs between your two examples. Maybe this package alters the default field for some reason? (That would be very bad though...)

I'll take a snoop around and see if I can find anything this weekend. All signs point towards some weird package name conflict behaviour
Cheers, Jack

I am also having same issue

I have the same problem :(

The problem is that if your project uses django-jsonfield (which django-auditlog uses), you cannot use Django's native JSONField anywhere else in your project. For more details, see https://bitbucket.org/schinckel/django-jsonfield/issues/57/cannot-use-in-the-same-project-as-djangos.
I had been meaning to figure out a decent solution to this problem, as several 3rd-party libraries we bring in use django-jsonfield for better portability across databases.

I created an experimental PR #81 to fix this issue. After using this branch, add
USE_NATIVE_JSONFIELD = True

to your project's settings, and then run python manage.py migrate.
This will update auditlog's LogEntry model to be a native JSONField type. You can switch everything back by changing the above setting to False, just be sure to run migrations afterwards.
The underlying compatibility layer has not been fully tested yet, so please don't run this in production until you're sure it works for your use case!

@kbussell I have copied your comments about your solution to the PR description as well.

Can somebody explain, how to use native JSON fields of Postgres in custom models while django-auditlog app is installed without touching its code, please?

ok I know


[CARBONDATA-3732] Fix ClassCastException with rand() udf function

Why is this PR needed?
ClassCastException is thrown, while running queries with cast of rand() function. This is because, while making a deterministic expression, we are converting an alias of CustomDeterministic expression to CustomDeterministic expression again, which is not needed.
What changes were proposed in this PR?
Do not convert an Alias of CustomDeterministic expression to CustomDeterministic expression again
Does this PR introduce any user interface change?

No

Is any new testcase added?

Yes

Build Success with Spark 2.4.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.4/559/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2260/

retest this please

Build Success with Spark 2.4.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.4/595/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2302/

LGTM


disable csp headers

Description:
Disabling adding/modifying CSP headers for now - will need much deeper testing before it is re-enabled.
Fixes #322, #323

@azuroff - we’ve run into many instances of sites that appear to work properly over https when we crawl them, but then break when we upgrade them to https due to either
A) http requests for mixed content being blocked at the browser level before they can be upgraded to https, or
B) requests containing an Access-Control-Allow-Origin header that specifies the http version of the site, which we’ve upgraded to https.
This change was an attempt to mitigate this breakage, but unfortunately had some unintentional side effects.

(A) makes perfect sense, as browsers throw all kinds of hissy fits if you request insecure content while on a secure page.
With (B), though, are you seeing requests with that particular header?  I've never seen it as a request header.  I suppose there could be servers (that aren't following the CORS spec) that look at that header, but I know that if I saw that header on the server side, I would just ignore it - it's the Origin request header I care about.  If there are servers using looking at that header in the request, it would made sense to modify it if you've upgraded the server to https, but don't modify the response header - that breaks things.  :)
You could always "encourage" adherence to the spec by deleting the Access-Control-Allow-Origin header if you see it in a request.  ;)


logical types support

Hi,
avsc supports logicalTypes:
https://github.com/mtth/avsc/wiki/Advanced-usage#logical-types
However, I've noticed that when I try to deserialize a date object into an int field on the schema (that has logicalType: "timestamp-millis") that fails.
Is there a way to pass some some information to avsc to support this?
Thanks

Sorry - I checked and it's easilly supported with adding such a json as the last parameter of encodeMessage:
{ logicalTypes: { "timestamp-millis": DateType } }.
All good here, thanks.


Support for AWS SSM / Secrets Manager for Spring parameters.

If possible, add support to AWS SSM and Secrets Manager for all parameters.
This can be done by using spring cloud dependency: https://cloud.spring.io/spring-cloud-static/spring-cloud-aws/2.2.0.RELEASE/reference/html/#integrating-your-spring-cloud-application-with-the-aws-parameter-store
Dependency: org.springframework.cloud
I can send the PR, just to confirm that this is the only place where dependencies should be specified: https://github.com/datahub-project/datahub/blob/master/build.gradle

Issue is not stale, it still being worked on.

@david-leifker, can you please check the PR and let me know if this is the correct way of proceeding?

Issue is not stale, it still being worked on.

This still waiting for review.

This still waiting for review.


AutoML Docs Restructure

Update to AutoML documentation to reflect new graphing structure and updates to code.

Please see message in Slack.

Please see message in Slack.


Using "If" statements in template

Hey there,
How can I use "if" statements like this?
When I do this
	<%= if (ENV === 'development') { =%>
      <script>
        trackingCode = 'xxxxx';
      </script>
	<%= } =%>

I get this error
Module build failed: SyntaxError: Unexpected token if

Thank you in advance :)

I think some of the syntax and setup of that has changed in the newer releases of webpack...also with how the project is currently setup, that would only be readable when using the dev server as in production builds the index.html file is copied over and not generated with the HtmlWebpackPlugin


Common color bar for multiple plots

This feature is enabled in cf-view 1.0.3.  When making a multi-panel plot go to the Configure -> Contour Levels section and set the levels and tick the common colorbar tickbox.


Find the Length of a String

Challenge Find the Length of a String has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Example
var firstNameLength = 0;
var firstName = "Ada";

firstNameLength = firstName.length;

// Setup
var lastNameLength = "omaisala";
var lastName = "Lovelace";

// Only change code below this line.

lastNameLength = lastName.length;

Hi @omaisalam, it looks like you have change some code above the line // Only change code below this line.
Reset your code and try again. If you need assistance, visit the Help chat room.
Happy coding!


add Saturday dinner information

Saturday Evening Dinner
Everyone will be "on their own" for Saturday dinner. This is an opportunity to enjoy more intimate conversation with colleagues and friends at the dining establishment of your choice. We hope you will take advantage of it!

I didn't put that much detail but it is on the schedule now.


TEST-#3729: Delete the failed attempt to retry setup-miniconda.

Signed-off-by: mvashishtha<EMAIL_ADDRESS>
What do these changes do?
Delete the failed attempt from #3760 to retry setup-miniconda. The new arguments don't do anything as explained here.

[x] commit message follows format outlined here
[x] passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] signed commit with git commit -s
[x] Addresses #3729 but does not fix it
[x] tests added and passing
[x] module layout described at docs/developer/architecture.rst is up-to-date

I think setup-miniconda often issues this warning. I encountered it when I had dependencies conflict (for example, here).
Warning: Unexpected input(s) 'max_attempts', 'retry_on', valid inputs are ['installer-url', 'miniconda-version', 'miniforge-variant', 'miniforge-version', 'conda-version', 'conda-build-version', 'environment-file', 'activate-environment', 'python-version', 'add-anaconda-token', 'add-pip-as-python-dependency', 'allow-softlinks', 'auto-activate-base', 'auto-update-conda', 'condarc-file', 'channel-alias', 'channel-priority', 'channels', 'show-channel-urls', 'use-only-tar-bz2', 'remove-profiles', 'mamba-version', 'use-mamba', 'architecture', 'clean-patched-environment-file']

The link to the job (link) that you specified in the issue (link) apparently failed because of a different problem. If you open logs of the job by clicking on Updating 'modin' env from conda env update..., you will see the following message.
Pip subprocess error:
    Running command git clone --filter=blob:none -q https://github.com/airspeed-velocity/asv.git 'C:\Users\RUNNER~1\AppData\Local\Temp\pip-req-build-lxxtox60'

    fatal: unable to access 'https://github.com/airspeed-velocity/asv.git/': Could not resolve host: github.com

  WARNING: Discarding git+https://github.com/airspeed-velocity/asv.git@ef016e233cb9a0b19d517135104f49e0a3c380e9. Command errored out with exit status 128: git clone --filter=blob:none -q https://github.com/airspeed-velocity/asv.git 'C:\Users\RUNNER~1\AppData\Local\Temp\pip-req-build-lxxtox60' Check the logs for full command output.

  ERROR: Command errored out with exit status 128: git clone --filter=blob:none -q https://github.com/airspeed-velocity/asv.git 'C:\Users\RUNNER~1\AppData\Local\Temp\pip-req-build-lxxtox60' Check the logs for full command output.

  Ran pip subprocess with arguments:
  ['C:\\Miniconda\\envs\\modin\\python.exe', '-m', 'pip', 'install', '-U', '-r', 'D:\\a\\modin\\modin\\condaenv.5aihe_dy.requirements.txt']
  Pip subprocess output:
  Collecting git+https://github.com/airspeed-velocity/asv.git@ef016e233cb9a0b19d517135104f49e0a3c380e9 (from -r D:\a\modin\modin\condaenv.5aihe_dy.requirements.txt (line 4))

    Cloning https://github.com/airspeed-velocity/asv.git (to revision ef016e233cb9a0b19d517135104f49e0a3c380e9) to c:\users\runner~1\appdata\local\temp\pip-req-build-lxxtox60

  failed
  Warning:
  CondaEnvException: Pip failed


Info Panel shows incomplete generics signature

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behaviour:

init a fake script
add paket hopac
add some code with complex generics, like from here: https://www.demystifyfp.com/fsharp/blog/concurrent-programming-in-fsharp-using-hopac-part-4/
Open Info panel on the side
Hower over the same function, which is currently displayed in the info panel

Expected behaviour
The same signature what is in tooltip looks like? with input ant output type parameters
Screenshots

Environment (please complete the following information):

OS: MacOS Catalina
Ionide version: 4.5.0
VSCode version: 1.42
dotnet SDK version: 3.1.101
mono / .Net Framework version: .NET Core

Duplicate of https://github.com/ionide/ionide-vscode-fsharp/issues/1252


Windows Terminal Status Updates

This issue contains all of the status updates for Windows Terminal. This helps provide insight into where the project is at between releases.
Feel free to subscribe to this issue to receive updates whenever we post another status update.
Comments have been disabled for this issue in order to reduce noise. Please use this issue for any discussion relating to status updates.

October 25, 2019 Status
Recent News / Releases
Terminal 1910 was released on Wednesday

Announced dynamic profiles and cascading settings
New tabs from WinUI

These look very much like our original mockups from March :)

Current Status
Plan for 1911 is in place

Accessibility improvements
Suppress application title
Progress on search functionality
UI tweaks
Bug fixes
(Fewer features because of Ignite)

Cascadia Code

Features currently in scope:

UFO conversion
Character extensions (Cyrillic, Greek, and Vietnamese)

Ignite Session

Carlos and Kayla are delivering a 45-minute breakout session at Ignite

Windows In-box Console/ConHost 20H1 Issues
Terminal 1911 Work
Terminal Roadmap

November 15, 2019 Status
Recent News / Releases
Terminal 1911 will be released in 2 weeks

Terminal 1911 (v0.7) was released to selfhosters yesterday and another version will be released next week. The release will go out to the public on Tuesday, 11/26
Features include:

Tab reordering

You can now rearrange your tabs within the Terminal window!

Panes
Opening multiple terminal sessions within the same tab is supported!

Bug fixes

Line endings when pasting in WSL is fixed!
Profiles without starting directories won’t crash!
Using Alt+Arrow-Keys won’t print extra characters!

Ignite session

Carlos and Kayla delivered a 45 minute session at Ignite
Session link: https://myignite.techcommunity.microsoft.com/sessions/81329?source=sessions

Current Status
Planning for 1912 will occur on Monday, 11/18

We're planning to be feature complete in 1912

Cascadia Code

Additional features that have been approved:

UFO conversion
Character extensions (Cyrillic, Greek, and Vietnamese)
Aaron (our font designer) has a draft PR in covering both the UFO conversion and character extensions

Terminal 1911 Work
Terminal Roadmap

December 5, 2019 Status
Recent News / Releases
Terminal v0.7 was released on Tuesday 11/26

Features included:

Tab reordering
Panes (multiple terminal windows within the same tab)
Suppress application title (custom tab titles)
Bug fixes

Copying and pasting works better now :)

Terminal v0.8 is scheduled for 1/7

Planned features include:

Search (below are mockups)

Accessibility improvements
VT mouse mode
Tab sizing (below are mockups)

Servicing releases are scheduled for before the holidays

Bug fixes!

Cascadia Code

https://github.com/microsoft/cascadia-code/releases
New versions include:

Cascadia Code

Base version, includes coding ligatures, new version includes character tweaks

Cascadia Mono

Does not include coding ligatures

Cascadia Code PL

Base version with powerline glyphs

Cascadia Mono PL

No coding ligatures, with powerline glyphs

The newest base version of Cascadia Code was shipped inside the v0.7 Terminal release

Community News
Node+JS Interactive

Kayla is going to Node+JS Interactive in Montreal from December 10 - 12
Demo/Labs on Windows Subsystem for Linux 2 (WSL 2) and Terminal
20 minute lightning talk: The New Command Line Experience on Windows

Terminal 1912 Work
Terminal Roadmap

January 9, 2020 Status
Recent News / Releases
Terminal v0.8 will be released on Tuesday 1/14

Release candidate is going out to internal Microsoft employees today
Features include:

Search

Tab sizing

Retro-style CRT effects (experimental feature)

(font used is PxPlus IBM VBA8 from https://int10h.org/oldschool-pc-fonts/)
Enhanced panes and tabs key bindings

You can now specify a profile to open using custom key bindings
Ex:
{   "command": {   	"action": "newTab",   	"profile": "Ubuntu"   },   "keys": [ "ctrl+shift+u" ] }

Custom default settings

You can now apply one setting to all of your profiles in your profiles.json file

Terminal v0.8 Work
Terminal v0.9 Work
Terminal Roadmap

January 31, 2020 Status
Recent News / Releases
Terminal v0.9 is scheduled for 2/11

This is the last release that will have new features before the v1 release
Subsequent releases are strictly for bug fixes and polishing
Features include:

Command line arguments

new-tab, split-pane, focus-tab
Examples:

wt -d . (opens a new Terminal in the current working directory)
wt -p "profile name" (opens a new Terminal with the given profile)
wt; new-tab -p "profile name"; split-pane -V -p "profile name" (demonstrated below)

Accessibility improvements

Community News
One Dev Minute Videos

Kayla has recorded some One Dev Minute videos about the Terminal
Three have been released so far:

https://twitter.com/WindowsDocs/status/1220020741409837056
https://twitter.com/WindowsDocs/status/1221826568349196288
https://twitter.com/WindowsDocs/status/1222551369883832324

Terminal v0.9 Work
Terminal Roadmap

April 3, 2020 Status
Recent News / Releases
Settings changes are coming

The following changes have been made on GitHub and will be released via the Store in our next servicing release (v0.11):

Profiles.json has been renamed to settings.json
Ctrl+c/v will be shipped inside the settings.json file for copy and paste

Ctrl+shift+c/v will still be bound be default to copy and paste in the defaults.json file

The following settings have been deprecated on the master branch:

Deprecated Setting
Replacement Setting

copyTextWithoutNewlines
{ "command": { "action": "copy", "singleLine": true }, "keys": "ctrl+c" }

decreaseFontSize
{ "command": { "action": "adjustFontSize", "delta": -1 }, "keys": "ctrl+-" }

increaseFontSize
{ "command": { "action": "adjustFontSize", "delta": 1 }, "keys": "ctrl+=" }

moveFocusDown
{ "command": { "action": "moveFocus", "direction": "down" }, "keys": "alt+down" }

moveFocusUp
{ "command": { "action": "moveFocus", "direction": "up" }, "keys": "alt+up" }

moveFocusLeft
{ "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+left" }

moveFocusRight
{ "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+right" }

newTabProfile0 - newTabProfile8
{ "command": { "action": "newTab", "index": NUMBER }, "keys": "ctrl+shift+NUMBER" }

resizePaneDown
{ "command": { "action": "resizePane", "direction": "down" }, "keys": "alt+shift+down" }

resizePaneUp
{ "command": { "action": "resizePane", "direction": "up" }, "keys": "alt+shift+up" }

resizePaneLeft
{ "command": { "action": "resizePane", "direction": "left" }, "keys": "alt+shift+left" }

resizePaneRight
{ "command": { "action": "resizePane", "direction": "right" }, "keys": "alt+shift+right" }

splitHorizontal
{ "command": { "action": "splitPane", "split": "horizontal"}, "keys": "alt+shift+-" }

splitVertical
{ "command": { "action": "splitPane", "split": "vertical"}, "keys": "alt+shift+plus" }

switchToTab0 - switchToTab8
{ "command": { "action": "switchToTab", "index": NUMBER }, "keys": "ctrl+alt+NUMBER" }

trimWhitespace
{ "command": { "action": "copy", "singleLine": true }, "keys": "ctrl+c" }

Terminal v1.0 Work
Terminal Roadmap

We've kinda gone in another direction with posting status updates. I'm gonna close this one out for now.


Generated wsdl does not have soap:address tag

Generated wsdl does not have soap:address tag in wsdl:service tag and then the client can not consume service! i encounter following errors:
Invocation without a binding operation.

or
Unsupported endpoint address

+1 for this issue. I'm trying use bean configuration parameter "publishedEndpointUrl" but no success. It's still empty:
<wsdl:port binding="tns:ServiceImplServiceSoapBinding" name="ServiceImplPort"></wsdl:port>

I'll have a look at this.
In the meantime, using the WSDL-first approach for generating services should work around this issue since then you can manually edit the WSDL. I realize you'll probably need different WSDL per deployment environment, like development, ci, test, production, etc. You can manage it by having a copy of the WSDL file for each environment and using a solution similar to the MultiEnv sample to switch the wsdlLocation property.
Also, SOAP clients should be able to connect to an endpoint address that isn't in the WSDL. SoapUI is certainly able to do so.

+1 I'm also running into this issue.

+1 for this issue.


Add CII Badge Status

Signed-off-by: John Mertic<EMAIL_ADDRESS>

Thanks @jmertic, I just included this change in this PR - #409 so closing this out!


chore: release main

:robot: I have created a release beep boop
k8s-pod-mutator-webhook-helm: 0.1.1
0.1.1 (2024-07-18)
Bug Fixes

set new image repo (3315efb)

k8s-pod-mutator-webhook: 1.2.0
1.2.0 (2024-07-18)
Features

add renovate (13f18b4)

Bug Fixes

clarify fork (4cbca10)
Makefile IMAGE_REPO (f523d6b)
move renovate to root (facd240)
release-please (54033a0)
release-please config (c36007e)
release-please config (235a745)
release-please manifest (351106b)
renovate (63fc4b6)
renovate (5a3d935)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

k8s-pod-mutator-webhook-helm-v0.1.1
k8s-pod-mutator-webhook-v1.2.0
:sunflower:


100% test coverage

The latest commits have seriously lowered the test coverage... Need to be pretty close to 100% before v1.0.0 release.

PHPUnit can't find any class belonging to the phpgt\dom namespace when I try to run your tests.
The path is OK in composer.json, can you help me with the possible causes of this?

PHPUnit 5.3.2
PHP 7.0.4

Please run the PHP Unit supplied by Composer (vendor/bin/phpunit). I will look into what is causing a standalone version of PHPUnit to fail. Thanks for the report.
git clone https://github.com/phpgt/dom
cd dom
composer install
vendor/bin/phpunit

Works using the vendor dir binary.
Must be the version difference.
alvaro@alvaro-pc:~/Documents/dom$ phpunit --version
PHPUnit 5.3.2 by Sebastian Bergmann and contributors.

alvaro@alvaro-pc:~/Documents/dom$ vendor/bin/phpunit --version
PHPUnit 5.1.6 by Sebastian Bergmann and contributors.

Thank you.


Update ru_RU.lang

Also added pack.mcmeta

Thanks :) what's the pack.mcmeta for though?

It's just removes "missing a pack.mcmeta file" from logs. Nothing else I guess. Many mods missing it but some have.


AST: Improve accuracy of inferred availability for synthesized declarations

Previously, when creating availability attributes for synthesized declarations we would identify some set of reference declarations that the synthesized declaration should be as-available-as. The availability attributes of the reference declarations would then be merged together to create the attributes for the synthesized declaration. The problem with this approach is that the reference declarations themselves may implicitly inherit availability from their enclosing scopes, so the resulting merged attributes could be incomplete. The fix is to walk though the enclosing scopes of the reference declarations, merging the availability attributes found at each level.
Additionally, the merging algorithm that produces inferred availability attributes failed to deal with conflicts between platform specific and platform agnostic availability. Now the merging algorithm notices when platform agnostic availability should take precedence and avoids generating conflicting platform specific attributes.
Resolves rdar://106575142

@swift-ci please test Windows

@swift-ci please test macOS

@swift-ci please smoke test

@swift-ci please test


Missing export function?

https://gitee.com/masx200/leetcode-test/raw/4.0.3/mod.ts
https://doc.deno.land/https://gitee.com/masx200/leetcode-test/raw/4.0.3/mod.ts
Missing export function?
merge_Sorted_Array ,pow_x_n ,html_Entity_Parser

The symbols are being imported and then re-exported using an export statement.  Seems like we aren't identifying those when flattening re-exports.


Toggling for MdSort switching between three values instead of two ("asc", "desc" and "")

Bug, feature request, or proposal:
Bug
What is the expected behavior?
When clicking on md-header-cell, toggle should occur between "asc" and "desc".
What is the current behavior?
Toggle is occurring between "asc", "desc" and "" (three states rather than two).
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
package.json
"dependencies": {     "@angular/animations": "^4.3.6",     "@angular/cdk": "^2.0.0-beta.8",     "@angular/common": "^4.2.4",     "@angular/compiler": "^4.2.4",     "@angular/core": "^4.2.4",     "@angular/flex-layout": "^2.0.0-beta.9",     "@angular/forms": "^4.2.4",     "@angular/http": "^4.2.4",     "@angular/material": "^2.0.0-beta.8",     "@angular/platform-browser": "^4.2.4",     "@angular/platform-browser-dynamic": "^4.2.4",     "@angular/router": "^4.2.4",     "core-js": "^2.4.1",     "rxjs": "^5.4.2",     "zone.js": "^0.8.14"   },
How did I find the bug?
export class ExampleDataSource extends DataSource<any> {

  constructor(private data, private paginator: MdPaginator, private sort: MdSort) {
    super();
  }

  connect(): Observable<Element[]> {

    const displayDataChanges = [
      this.data,
      this.paginator.page,
      this.sort.mdSortChange
    ];

    const mergeObservable = Observable.merge(...displayDataChanges);

    return mergeObservable.map((item: any) => {
      if (item.direction) debugger; //<--------------------------------------------

      const data = this.data.slice();

      const startIndex = this.paginator.pageIndex * this.paginator.pageSize;
      return data.splice(startIndex, this.paginator.pageSize).sort(function (a, b) {
        if (item.direction === "")
          return;

        //Works for number only for now
        return item.direction === "asc" ? a[item.active] - b[item.active] : b[item.active] - a[item.active];
      });
    });
  }

  disconnect() { }
}

Is there anything else we should know?
Is it a normal behavior?
If so, how do I make the possible values of MdSort.mdSortChange: Observable to be twofold only?
Kind Regards

This is normal behavior. "" is the state for unsorted.
Please see mdSortDisableClear in the docs.

As @willshowell described, working as intended.


Add script to back populate sequnce meta.library_type based on file names (when possible).

Codecov Report
Patch and project coverage have no change.

Comparison is base (552a331) 65.25% compared to head (a01bc00) 65.25%.

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

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #448   +/-   ##
=======================================
  Coverage   65.25%   65.25%
=======================================
  Files          73       73
  Lines        6272     6272
=======================================
  Hits         4093     4093
  Misses       2179     2179

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


React to breaking changes in OpenIddict

I had to introduce a contract change when addressing https://github.com/openiddict/openiddict-core/issues/440. This PR fixes that and moves to the latest OpenIddict version.

@jersiovic thanks for the review.


WIP multithread import

use multiple threads to import fafnir.
This needs https://github.com/CanalTP/mimirsbrunn/pull/224 to be merged
For the moment the library used for the parallelization (par-map) uses nb_cpu * 2. The library will need to be updated in another PR to better configure this.
Note 2: this PR includes a commit "Define poi id using osm types" not really related to it, but needed for the moment for fafnir to continue to work properly.

superseeded by #15


Building with docker generates a binary for linux regardless of the host

USE_CONTAINER=true make will generate a single binary for linux, even if you are running on OSX.
This is contrary to the user expectations.
We should make the makefile smarter to detect the host ARCH and OS (if TARGET_* are not explicitly specified by the user), in the case where we build with docker.
Assigning @dgageot and @jeanlaurent ;)

dibs

@dmp42 Let's close this one since it's not really a pain and there are bigger fish to fry :-)

Agreed. Also, it's not simple to solve, since testing can happen inside the container.


Add support for Deno

Title speaks for itself (I believe). It would largely just work by using esm

@Qix- publish rights need to remain with Vercel employees (sorry 😢). Would still love to have you here as a contributor, but I understand (and you probably don't want the notifications). Will remove you now.

A bit sad seeing as how I literally wrote this package from scratch while I worked there, but I suppose I understand. What I don't really get is how having...
document.querySelectorAll('.cf > *').length

... 179 collaborators with write access on npm is considered secure by Vercel's standards, and why the original author of the package, a former Vercel employee and established member of the Node.js community, is unable to have access to one or two packages to help maintain them.
A bit sad to see an end of an era. Sorry to @vixalien to derail the issue a bit but it seems my old colleagues at Vercel don't like responding to me in other channels anymore, either.
If this is truly the case, can you please remove me from the other repositories in the Vercel org, too?

Thanks for the shout on others with write access – I will review that list as well too and ensure they are all Vercel employees. I do appreciate all of your work here (and your work during your time at Vercel) and you'll remain the author for the package 🙏
@vixalien I'm going to open an issue for ESM support - thank you!


[RFC] Deprecate callback hooks on_init_start and on_init_end

Discussed in https://github.com/PyTorchLightning/pytorch-lightning/discussions/10677
Part of #7740

Originally posted by daniellepintz November 22, 2021
These hooks are called when trainer initialization begins and ends, before the model has been set, essentially allowing the user to modify the Trainer constructor.  Should we be giving the user this much control over Trainer constructor? Are there scenarios where this is needed? Or can we deprecate these hooks?
https://github.com/PyTorchLightning/pytorch-lightning/blob/338f3cf63686935355c749920b2f298f3d18a26f/pytorch_lightning/trainer/callback_hook.py#L55-L63
@carmocca @tchaton @awaelchli do you know how these hooks are used? Have you seen any examples of these being used by the community? These hooks go way, way back, but I can't think of when they'd be needed given the user handles the Trainer initialization. It's also unclear when on_init_start actually happens: does that mean callbacks should be the first thing initialized?
We also have correctness issues for these hooks when callbacks are passed directly to the Trainer vs configured from the LightningModule: https://github.com/PyTorchLightning/pytorch-lightning/blob/f407a00cec59886cbaf8816630f6760e34926bd5/pytorch_lightning/core/lightning.py#L1140-L1142
Therefore, as a user, it seems more concise to write this:
trainer = Trainer(...)
run_all_my_fancy_logic_now(trainer)

# use the trainer here

vs this:

class MyCallback(Callback):
    def on_init_start(self, trainer) -> None:
        ...

    def on_init_end(self, trainer) -> None:
        ...

cb = MyCallback()
trainer = Trainer(callbacks=[cb])

cc @awaelchli @ananthsub @tchaton @carmocca @borda @ninginthecloud

I agree this part

We also have correctness issues for these hooks when callbacks are passed directly to the Trainer vs configured from the LightningModule:

is probably the strangest about these hooks. Currently on_init_start is used by none and on_init_end is used by three of our own callbacks in Lightning: EarlyStopping, ModelCheckpoint, Progress bar. The instructions in these hooks could probably also be move to another hook.
For context, the init hooks were introduced way back in #889

Is there a strategy for migrating away from these hooks? I've been using them to create a custom logger:
    def on_init_end(self, trainer: 'pl.Trainer') -> None:
        import pathlib
        self.log_dir = pathlib.Path(trainer.log_dir)
        self.log_fpath = self.log_dir / 'text_logs.log'
        self._log = _InstanceLogger.from_instance(trainer, self.log_fpath)
        self._log.info('on_init_end')
        self._log.info('sys.argv = {!r}'.format(sys.argv))
        trainer.text_logger = self
        if self.args is not None:
            self._log.info('args_dict = {}'.format(ub.repr2(self.args.__dict__, nl=1, sort=0)))

Am I SOL when 1.8 drops?

Have you tried the setup hook?

Hey!
Is there any solution for this?
AttributeError: 'EarlyStopping' object has no attribute 'on_init_end'
I am trying to implement early stopping.

@namanpundir Can you share more from that error message please? Please note that on_init_start and on_init_end have been deprecated and then eventually removed. So there is no way to "fix" it. If you needed that hook, an alternative is the setup() hook. Another option is to downgrade to Lightning version <= 1.7.x. Hope this helps.

@namanpundir Can you share more from that error message please? Please note that on_init_start and on_init_end have been deprecated and then eventually removed. So there is no way to "fix" it. If you needed that hook, an alternative is the setup() hook. Another option is to downgrade to Lightning version <= 1.7.x. Hope this helps.

ahh i figured. Anyways I am using huggingface trainer for earlystopping now. Its working. :) Thanks


chore(tests): add filters for state machine proptests

WIP
Tests are working right now but it needs a bit of polish
Fixes #7126

I wonder if with this tests I should just remove the old tests for filters, I think these should cover everything?
Though maybe when introducing the new resource selection algorithm this might get too complex with the whole range of filters.
What do you think @thomaseizinger

Finally tests with 10000 proptest cases are passing!
Needs a bit of polish but will be open for review soon,
Hardest issue was that we need to precisely track what resources the gateway knows at the time each packet is processed to determine what filters are applied.
Will get way easier with #4789 and packet buffering

Seems like there are non-deterministic failures? 😭


Support portal fixes

Various UI fixes and functionality fixes that aim to re-establish usage of the Support portal

Was this PR even properly looked at? 10 minutes after opening a PR on a 700+ line change is a little too quick.

Perhaps if more time was spent reviewing the initial project, my 700+ line changes wouldn't be necessary.


NCCL support

Fixed a few stuff from original PR
created a very shallow thread rank initializer

Linked to https://github.com/coreylowman/cudarc/pull/146

This looks good to me, just a couple of small changes and then I think we can merge 👍

Should be good now.
NCCL has a flag for BFloat16 support. I added it automatically (not sure it's an issue given the enum value is the last one, and the Dtype common is probably not really used).

Okay, after too much time investigating. It seems the Cuda Driver (not NCCL) is using a global MUTEX which makes multithread/multigpu quite useless.
https://forums.developer.nvidia.com/t/cuda-wont-concurrently-run-kernels-on-multiple-devices-from-within-same-process/240388
https://forums.developer.nvidia.com/t/multithreaded-tensorrt-performance-drops-dramatically/184882/8
https://forums.developer.nvidia.com/t/cuda-introduces-heavy-locks/61357
Basically all threads will contend for that lock not enabling the CPU to send kernels fast enough.
If there's any way to avoid that mutex as it makes the code significantly simpler to be multi thread rather than multiprocess.
But the tone in the related issues makes me think it's a known issue and nothing is going to be done about it.

Oh. Wait that's a pretty big deal if its at the driver level, isn't it? For DDP for instance I was hoping we could use multi threading, but that would incur some serious slow downs due to locking. 🤔

Thanks for finishing this! And sorry for the ghosting, life was getting in the way of open source 🙈


Java Lamda Explanation

I really like to this project, i couldn't find any examples of java lamda.
If you are ok, shall create PR for it ?

@dschandrasekara  yeah start working on them and create PR when you are done
Thanks Happy Coding <3

Yes sure, i will start working on this, feel free plz assign this issue.

Created PR - https://github.com/MLSA-Mehran-UET/Learn-to-code-java/pull/87 and please help to review and appreciate ur feedback.


[Feature Request] Add onCreate method

Feature Request
Add onCreate method to call when a new item is created. This would be useful for making a POST request on create.

Hi @chr-ge this is available in v4.13.0


[UT] regression in test_subprocess.py with the rolling stable release 821

12 tests cases are failing:
2024-04-02T21:44:57.4181029Z =========================== short test summary info ============================
2024-04-02T21:44:57.4181419Z FAILED language/test_subprocess.py::test_print[device_print-int16] - assert False
2024-04-02T21:44:57.4182039Z FAILED language/test_subprocess.py::test_print[device_print-long] - assert False
2024-04-02T21:44:57.4182626Z FAILED language/test_subprocess.py::test_print[print-int32] - assert False
2024-04-02T21:44:57.4183238Z FAILED language/test_subprocess.py::test_print[device_print-float32] - assert False
2024-04-02T21:44:57.4183857Z FAILED language/test_subprocess.py::test_print[device_print-int8] - assert False
2024-04-02T21:44:57.4184439Z FAILED language/test_subprocess.py::test_print[device_print-int32] - assert False
2024-04-02T21:44:57.4185023Z FAILED language/test_subprocess.py::test_print[device_print-float16] - assert False
2024-04-02T21:44:57.4185590Z FAILED language/test_subprocess.py::test_print[device_print-float64] - assert False
2024-04-02T21:44:57.4186209Z FAILED language/test_subprocess.py::test_print[device_print-uint8] - assert False
2024-04-02T21:44:57.4186820Z FAILED language/test_subprocess.py::test_print[device_print_hex-int16] - assert False
2024-04-02T21:44:57.4187416Z FAILED language/test_subprocess.py::test_print[device_print_hex-int32] - assert False
2024-04-02T21:44:57.4188022Z FAILED language/test_subprocess.py::test_print[device_print_hex-int64] - assert False
2024-04-02T21:44:57.4188461Z ======================== 12 failed, 21 passed in 24.07s ========================

Continue to fail with agama 821.32.

Blocked by new driver's bug. Already file a JIRA.

This should not be a driver's bug. Because driver team cannot reproduce it with oneapi 2024.0. I confirmed that in the same environment(should be 821.30), 2024.0 works, but 2024.1 fails. So this may be a compiler regression. Will file a new JIRA to compiler team.

Continue to fail with agama 821.35   6/12/2024

Continue to fail with agama 821. 6/17/2024

Continue to fail with agama 821.

@AshburnLee could you please retest with the Agama 914?

Continue to fail with agama 914.

Continue to fail with agama 914.

Continue to fail with agama 914.

Reminder: don't forget to remove: https://github.com/intel/intel-xpu-backend-for-triton/blob/fea510c02ff1bb7b82d2cef31a8ba5fadddf8916/python/test/unit/language/print_helper.py#L119-L122

With PTDB 0.5.3 and Agama 950 this issue is still reproducible without the repr fix, 29 test variants are failing
FAILED language/test_subprocess.py::test_print[device_print-int8]
FAILED language/test_subprocess.py::test_print[device_print-uint8]
FAILED language/test_subprocess.py::test_print[device_print-int16]
FAILED language/test_subprocess.py::test_print[device_print-int32]
FAILED language/test_subprocess.py::test_print[device_print-long]
FAILED language/test_subprocess.py::test_print[device_print-float16]
FAILED language/test_subprocess.py::test_print[device_print-float32]
FAILED language/test_subprocess.py::test_print[device_print-float64]
FAILED language/test_subprocess.py::test_print[device_print_scalar-int8]
FAILED language/test_subprocess.py::test_print[device_print_scalar-uint8]
FAILED language/test_subprocess.py::test_print[device_print_scalar-int16]
FAILED language/test_subprocess.py::test_print[device_print_scalar-int32]
FAILED language/test_subprocess.py::test_print[device_print_scalar-long]
FAILED language/test_subprocess.py::test_print[device_print_scalar-float16]
FAILED language/test_subprocess.py::test_print[device_print_scalar-float32]
FAILED language/test_subprocess.py::test_print[device_print_scalar-float64]
FAILED language/test_subprocess.py::test_print[print-int32]
FAILED language/test_subprocess.py::test_print[static_print-int32]
FAILED language/test_subprocess.py::test_print[no_arg_print-int32]
FAILED language/test_subprocess.py::test_print[print_no_arg-int32]
FAILED language/test_subprocess.py::test_print[device_print_large-int32]
FAILED language/test_subprocess.py::test_print[print_multiple_args-int32]
FAILED language/test_subprocess.py::test_print[device_print_multiple_args-int32]
FAILED language/test_subprocess.py::test_print[device_print_hex-int16]
FAILED language/test_subprocess.py::test_print[device_print_hex-int32]
FAILED language/test_subprocess.py::test_print[device_print_hex-int64]
FAILED language/test_subprocess.py::test_print[device_print_pointer-int32]
FAILED language/test_subprocess.py::test_print[device_print_negative-int32]
FAILED language/test_subprocess.py::test_print[device_print_uint-uint32]

@etiotto and @whitneywhtsang what are the next steps to resolve the issue?

@etiotto and @whitneywhtsang what are the next steps to resolve the issue?

There is a CMPLRLLVM ticket opened for this issue, and we should continue to follow up there to have it fixed.

@quintinwang5 The problem is still reproducible with Agama 1032.19, DLE 2025.0.0. Please take another look.

Update: DLE 2025.0.0 works for my reproducer. But triton UTs need an explicit event.wait to produce print result. torch.xpu.sychronize() does not work because it may have some semantic differences with what we thought(ex. synchronization on the full xpu device). WIP to investigate more.


Latest

This issue is open for future support, recommendations, and bugs.

HAS NOT YET BEEN RELEASED!.

so is this ready for usage?

@systemroot yes, but it's up to you how you use it.
It's not fully fully finished, but it work for what the doc shows/and the test. Fell free to submit PR's.

@systemroot please push recent update/changes I've made.

@systemroot in a few days or now, i'll release the full version.

okay.
ps i haven't test it yet. after that i'll if i can submit a PR or something..

@systemroot Just a curious question. What will you be using this for?

And if you would like to help in this project, the main work that needs to be done is the parser
https://github.com/LegitSoulja/SlickInject/blob/dev/lib/Parser.php
btw, I will be working in the dev branch for now until a stable release.

Just a curious question. What will you be using this for?
first thing https://github.com/systemroot/botneted
botnet'ed is a project who manages multiple vps. example you have 10 vps you install botneted somewhere add them all on it, and you can reboot all them from panel. you can get stats about space ram cpu etc. and you can send ex
"apt-get update" in all vps who you select from botneted panel :p

@systemroot do you know what SlickInject is used for? How is mysqli is needed with this?

because my project will use mysql. to send get or delete data.
i can't create my project without mysql.
example there will be a cron job who push vps informations from vps to botneted (mysql) and then SlickInject will be used as a class to show suff which is on database. because my project can't be done in real time. php can fail and dab error 500 server web panel is goes down..

@systemroot problems? There's non.
SlickInject illuminates duplicate code with sending, getting, deleting data from your database. SlickInject is also fast, and efficient.
Not only that, SlickInject can help prevent SQL Injections. Currently' SlickInject is only supported for MySQLI because I stopped working with  MySQL, and PDO, etc.

SQLObject can also be used stand-alone, if you're not interested in the SlickInject portion.
I updated SQLObject, and the docs for it https://github.com/LegitSoulja/SlickInject/blob/dev/README.md

nice

@systemroot @Andrews54757 Finally done.
Dev Branch : https://github.com/LegitSoulja/SlickInject/tree/dev
Example : https://github.com/LegitSoulja/SlickInject/blob/dev/test.php
Update poll : https://github.com/LegitSoulja/SlickInject/pull/3
Merging, and updating readme soon. Let me know of any bugs, as it has not been fully tested as of what is now released. Thanks. Enjoy SlickInject!.

Btw, any new names to call this project?

SlickInject sounds good for me

@LegitSoulja i'm doing something wrong or '11' is normal as output?
you can see it here
http://api.botneted.com/update.php?token=1&name=the&lastname=raw

@systemroot I don't see what you're seeing.

:confused:

@systemroot oh ok now I see. Can you provide some code? What are you doing exactly?

a simple test
<?php
namespace test;
function _load_all($a)
{
    foreach (glob($a) as $b) {
        if (is_dir($b)) {
            _load_all($b . "/*"); // recursive include.
            continue;
        } else {
            if (basename($b, ".php") == basename(__FILE__, ".php"))
                continue;

            if (pathinfo($b)['extension'] == "php")
                include $b;
        }
    }
}
_load_all("lib/*");

use SlickInject\SlickInject as SlickInject;

// Get info
$id=$_GET['token'];
$name=$_GET['name'];
$lastname=$_GET['lastname'];

// create a new SlickInject instance
$_slickinject = new SlickInject();

// connect to the database
$_slickinject->connect("localhost", "user", "passwd", "db");

// update
$_slickinject->UPDATE('vms', array("name"=>"$name"), array("id"=>1));
$_slickinject->UPDATE('vms', array("lastname"=>"$lastname"), array("id"=>1));

$sql->close();
?>

@systemroot in Parser/SQLObject remove any echo's or print_r's. Guess I didn't remove them all.

Also, new SlickInject() can take the connect params.

And also, I've made a few changes some hours ago. Update doesn't work.

And no quotes are needed when added variables to an array.

found it https://github.com/LegitSoulja/SlickInject/blob/dev/lib/SQLObject.php#L74

@systemroot thanks.

Oh, @systemroot $sql->close()?

https://github.com/LegitSoulja/SlickInject/blob/master/lib/SlickInject.php
$_slickinject->close();

Or rename $_slickinject to $sql 😛

was just a file which i was using before i forgot to remove it! http://imgur.com/a/tdq1w

@systemroot oh ok, it's because I never documented it. Just making sure :)

@systemroot In the Dev, SELECT has changed.
When you use select, an array of the rows will return. No need to do ->returnRows($.
I feel you however need to count rows, just simply make the 4th argument false for ex
$si->SELECT([], "table", array("id"=>1, false));
Using false, will return back the SQLResponse (w/ SQLObject). Store this response, or use a server so
$si->SELECT([], "table", array("id"=>1, false))->num_rows();
Or
$si->SELECT([], "table", array("id"=>1, false))->getResponce()->num_rows;
Hope you understand

returnRows still can be used if the 4th argument is false, BUT
returnRows is deprecated.
Use now getData()

i was using it like
$data = $_slickinject->SELECT([], "vms", array("id"=>1));
echo $data[0]['name'];

Another Dev addition
When using WHERE array("id"=>1, "userid"=>666), it will return
WHERE `id`=1 AND `userid`=666.

It automatically adds AND if you don't specify. I'm working more and more on making my Parser smarter

@systemroot Okay, now things are officially done.
https://github.com/LegitSoulja/SlickInject/releases/tag/1.0
Master branch has been merged. If you have any future problems just let me know.

@LegitSoulja no support for multi tables?
$_slickinject->connect("localhost", "dopehost_bot_us", "dab", "dopehost_bot");

// update
$_slickinject->UPDATE('vms, vms_1, vms_2', array("name"=>"$name"), array("id"=>1));

output
Error Table 'dopehost_bot.vms, vms_1, vms_2' doesn't exist

@systemroot I never knew you can update 2 tables at once.
Answer to your question is no. However, it can be implemented.

Actually, a quick fix.
Parser.php line 90 change
        $z = str_replace("%s", "`" . ($table) . "`", $z);

To
        $z = str_replace("%s", ($table), $z);

Be cautious not to use any operators as the table name.

And was array("name"=>"$name") a mistake?
Don't use variables as a string, instead, it should be
array("name"=>"(string)$name)

it won't work :confused: .
i still can get what i want done.. just i was thinking to use a small line of code!

@systemroot that fix didn't work? How so? Also, please update SlickInject. Updating/Inserting data with a number, as of 0 doesn't work.
Somehow, in php (empty(0)) = true.


🐞 [Bug] TFRobot: How to ssh to VM if I didn't selected a public ip

What happened?
How should I SSH to the VM if it doesn't have Ygg, IPV4, or IPV6??

which network/s did you face the problem on?
Dev
Twin ID/s
No response
Node ID/s
No response
Farm ID/s
No response
Contract ID/s
No response
Relevant log output
ok:
    group_a:
        - name: examplevm0
          publicip4: ""
          publicip6: ""
          yggip: ""
          ip: <IP_ADDRESS>
          mounts: []
error: {}

Planetary IP will be set to true

validated the automatic setting of planetary network ✅

Deploy a VM group without IPs


Zoom prevents scroll on desktop

Describe the bug
Let's say you're using this library to enable zoom in an ecommerce context.
On desktop, page scroll works as long as scroll is initiated outside of an image. (See first few seconds of linked video).
However as soon as the user begins zooming an image, a scroll lock is enabled. This provides a poor UX since the user expects to be able to always scroll through the page with a two finger gesture. Additionally, if they scroll through the page and their cursor lands on an image accidentally, frustration may ensue due to not being able to scroll up or down.
So the core issue is this: on desktop users are required to manually move their cursor outside of an image to continue scrolling down the page.
I'm using the useZoomImageMove React hook here.
I understand that this may be the expected behavior for some scenarios. However it would be nice to have the ability to disable scroll lock as well.
Reproduction
https://www.loom.com/share/4fa5224b4fbe46928b906b0e2ea5c603?sid=7f25084e-455c-452d-982b-31a3fa40876f
Used Package Manager
npm
Validations

[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] The provided reproduction is available

+1

Hi guys, I added disableScrollLock option to zoom images on move, please feel free to use it to tailor your specific use case ;)
https://willnguyen1312.github.io/zoom-image/api/createZoomImageMove.html#type-declaration

Hi @ChetSocio, please keep an eye on #232. Thanks 😉

Thank you you had already fixed it😅😅 .  Do you have any idea on how to make it responsive. When I decreasebthe browser size there is unknown space and when i hover on product image, the zoom div had taken that whole space and leaves the overflow when i decrease browser width. You can already see it on the previous reproduced containers.

Hi @ChetSocio. It's up to the developers to handle that. As library won't be able to solve everyone's problems but rather focus on specific jobs. You definitely can use media query for that purpose. That's how I did it for the doc site :)
P/s: Please open a new dedicated issue to discuss rather than comment on other issues like this in the future. Thanks so much :)


Terminology renamed

Renamed terminology and documentation.
I discovered that the bout_algorithm of Xinhui does not work anymore, see issue #14

Tried to resolve the conflicting files, mac specific? I added it to .gitignore file, but this does not seem to resolve the issue?


⚠ MineVN Website has degraded performance

In 9a3f385, MineVN Website (http://minevn.net) experienced degraded performance:

HTTP code: 200
Response time: 9822 ms

Resolved: MineVN Website performance has improved in e66201a after 21 minutes.


NIFI-1560 - Fixing a copy and paste error

Looks like when the original coder copied code from AuthenticationStrategy for the ReferralStrategy and did not change this reference for the error case.

Thanks @devin-fisher ! I've merged this into both the master and 0.x baseline. Just a heads, I noticed that the text of the message was also incorrect so I amended your commit to include those changes too. Thanks again!