IMN-624 - Implementing Redis rate limiter

Closes IMN-624
Tested on local BFF
To test it, I configured it as follows (2 max requests every 10 seconds) and sent 3 requests in 10 seconds:

Request 1

Request 2

Requests 3 and 4
The burst rate limiter kicks in, and the burst percentage is 1.0 so two more requests are allowed (same amount).

Request 5

Testing Redis timeout
Setting Redis timeout to 0 milliseconds:

Request passes:

🪄 Apparently, the rate limiter still has some internal logic to limit somehow the requests, because if I send many fast requests it still gives me the 429 error.

@galales addressed all comments and added an automated test also to test the behavior of the "bursty" rate limiter as implemented by the library. Could you review the PR again and check the test file to see if it is the expected behavior?

@galales / @Viktor-K As suggested by Vittorio, I changed the PR to use 'redis' instead of ioredis as the Redis client, since it is the one officially supported and maintained (even though the difference is confusing, being also ioredis in the Redis organization on GH. See: https://github.com/redis/node-redis/issues/2658#issuecomment-1887863434)
I think code also looks better...


Fix dependencies on vanilla Ubuntu install

fixes #347

The script 'install_ansible.sh' is for installation of ansible and re-installation of different version of ansible (depending on the CEPH requirement). Adding docker installation or dependancy installation steps to this script may not be a good idea. If needed, you can create a new script for installation of docker/dependancies.

Hello,
Thank you for the suggestion. I have moved the script to an appropriate file. Please take a look at it.

@joseph-v please check now

LGTM

@CruciformHawk7 , next time please give the PR in the template with necessary information. Thanks for your contribution. Merging it :)


Update targetSdk version to 30

Starting on August 2021, new apps will be required to use targetSdk 30 and starting in November 2021, the same will be true for updates. More details at https://developer.android.com/distribute/play-policies#APILevel30

currently 30 is a default version for the freshest Android Studio as far as I am aware

Closed via #463


Code release for scene editing

Thanks for the paper!
When are you planning on releasing the code for scene editing?

Great paper. I'm curious is there any update here? If you're not able to release the code, could you elaborate on how scene editing works? Thank you!


Missing gRPC configuration sample code

The gRPC section does not display the "GrpcGreeter" sample code for

AddGrpc
MapGrpcService
ServerCallContext

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

ID: 4e072aff-35c1-1fc2-3f94-97dc7a809414
Version Independent ID: 2f05b9da-0d50-ce84-d6af-332da7d9d625
Content: gRPC services with ASP.NET Core
Content Source: aspnetcore/grpc/aspnetcore.md
Product: aspnet-core
GitHub Login: @JunTaoLuo
Microsoft Alias: johluo

Was just about to add same comment :D

Broken with this change - https://github.com/aspnet/AspNetCore.Docs/pull/12522

@Rick-Anderson

Sorry guys :(


Main 3D View Anti-Aliasing Preference Should be a Checkbox

Describe the Bug
The main 3d view anti-aliasing preference should be a checkbox since the only options are 'enabled' or 'disabled'.
Screenshots

This should be cleaned up when we implement camera post-processing (including GTAO). Also, I believe we should remove the distinction between camera and main view. The new preferences should simply offer to enable shadows, GTAO, SMAA and texture quality. This will affect both the main view and robot cameras.

This should be cleaned up when we implement camera post-processing (including GTAO).

This is already implemented on develop.

believe we should remove the distinction between camera and main view.

:+1:


[Egg Request]: Zombie Survival Game Online (ZSGO)

Does this expand an already existing service
No
Link to a game or software
https://store.steampowered.com/app/2268560/Zombie_Survival_Game_Online/
Links for the download
https://steamdb.info/app/2536350/
Links for the install docs
https://zsgo.fandom.com/wiki/Dedicated_Server_Setup

@engels74 Please test the linked pull request.

I can test it properly once https://github.com/pelican-dev/panel/pull/313 has been merged

I can test it properly once pelican-dev/panel#313 has been merged

you can test it with ptero too, so no need to wait for the docker image


beyond 7.0.3

closes https://github.com/aegershman/splunk-helm-chart/issues/4

https://github.com/splunk/splunk-operator/blob/master/docs/Examples.md
https://splunk.github.io/splunk-ansible/ADVANCED.html#inventory-script
https://github.com/splunk/docker-splunk/blob/develop/docs/SETUP.md
https://hub.docker.com/r/splunk/splunk/tags
https://github.com/splunk/splunk-ansible/blob/develop/docs/advanced/default.yml.spec.md
error
TASK [splunk_common : Hash the password] ***************************************
fatal: [localhost]: FAILED! => {
    "changed": false,
    "cmd": [
        "/opt/splunk/bin/splunk",
        "hash-passwd"
    ],
    "delta": "0:00:00.788844",
    "end": "2019-10-31 02:39:12.503162",
    "rc": 1,
    "start": "2019-10-31 02:39:11.714318"
}

STDERR:

ERROR: Received 0 arguments, expected 1.
usage: hash-passwd PASSWORD
options:
-                   Dash '-' Indicates password is being passed via stdin.
examples:
splunkd hash-passwd SomePassW0rD
cat passwd.txt | splunkd hash-passwd -

MSG:

non-zero return code

8.0.0 appears to want some different stuff with the file config and such

  ##
  ## global enable/disable of HEC SSL
  ## set off if using an ingress
  ## that's performing TLS termination for you
  ##
  ## otherwise, if you're using a service: loadBalancer
  ## or your ingress is doing TLS passthrough since
  ## you want to do your TLS termination on Splunk itself,
  ## you'll probably want to set this on
  ##

  ## turn off splunk HEC's SSL requirement since
  ## we're doing TLS termination at the ingress

Splunk configuration files
You can include any kind of *.conf file

conf:
# indexes.conf: |
#   [exampleIndex]
#   homePath = $SPLUNK_DB/exampleIndex/db
#   coldPath = $SPLUNK_DB/exampleIndex/colddb
#   thawedPath = $SPLUNK_DB/exampleIndex/thaweddb
# outputs.conf: |
#   [some-example]
#   example one two three

todo:

document
apps pulled from splunkbase should be improved


Added GasTipCap method

Hello, @lmittmann,
I'm not entirely sure if this method is necessary because it's not mentioned in the specification: https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods
However, we do have the same method in ethclient: https://github.com/ethereum/go-ethereum/blob/v1.13.5/ethclient/ethclient.go#L564
This method facilitates the sending of transactions without relying on additional libraries or etherscan.

@lmittmann, thank you for your review! I fixed what you mentioned.


Update docs with yarn option

What are you trying to accomplish with this PR?
https://github.com/Shopify/slate-cli/issues/123
Adds docs for the new yarn option here: https://github.com/Shopify/slate-cli/pull/124
Checklist
For contributors:

[x] I have updated the docs to reflect these changes, if applicable.

For maintainers:

[x] I have :tophat:'d these changes.
N/A I have bumped the package.json version in a separate PR, if applicable.

@cshold and @NathanPJF updated! Good to go?


Run link command test in parallel

What is the purpose of this change? What does it change?

Was the change discussed in an issue?
fixes - part of #1473

How to test changes?

make test-link-e2e

[odo]  ✗  Unable to connect to OpenShift cluster, is it down?

/test integration

/test integration

/retest

/test integration

/test integration


Implement contextual Badger pfps, organization and badge images

This PR introduces the ability to drop the requirement of being able to provide an image when creating an Organization or Badge. Instead, all users will be assumed to just be entering their information while the minority of users can maintain the ability to use the custom image if they prefer.
The focus of this PR is to enable a massive increase in usability for 'average joes' and experts using Badger every day.
The usage of the art API is only limited by authentication within the app. Once authenticated, any art API can be called without limit as long as the argument specification has been met. This PR introduces the ability to drop the requirement of being able to provide an image when creating an Organization or Badge. Instead, all users will be assumed to just be entering their information while the minority of users can maintain the ability to use the custom image if they prefer.
The usage of the art API is only limited by authentication within the app. Once authenticated, any art API can be called without limit as long as the call specification has been met.
When called with the proper parameters, the API will return a base64 encoded version of the data so that we can simply append it to the URI that we are already uploading instead of needing to upload the image somewhere or maintain an API.
This also makes it far easier to focus on permanence when that enters the feature scope.
API Postman that contains the new calls.
No migrations to the database need to be applied as we are not storing anything. Eventually, it would be nice to begin storing the base64 version of the hash in the database rather than the IPFS hash. However, this PR does not address that and maintains the current functionality.

Okay this bent me over a barrel today.. Spent way too long on it but hey it's functional.
Badge images generate live as the Badge Name is edited. Organizations have their preview image as the first letter of the Org Name. PFP's I took a little bit of a liberty on and if they don't have an ENS name then the character we use for the PFPs is a random animal emoji that is tied to their address. (The same address will always return the same animal).
The Badge Form has been updated to the v5 version with claimable, signer, attributes, and badge preview. (Attributes seem to be good but need to test this in prod just to be sure.) Org and Badge forms have the category Accordions implemented.
I've tested everything for about an hour or so but I'd like a chance to play with it more (or confirm Drake will break it for me), before merging to main.


feat: at i18n namespace to UI

Adds i18n to UI, allowing for translating resources.
Adds i18n.t(string, string) alias for i18n.translate(string, string).
Bumps dependency of @elgato/schemas.

How about adding an tr alias (instead of t only). That's what we use in other projects/languages as well..

The t naming is based on the popular i18next library.


Can't reproduce the same result: tensorflow/tensorflow/lite/micro/examples/person_detection_experimental/ model.

@tensorflow/micro
System information

Host OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18
TensorFlow installed from (source or binary): binary
Tensorflow version (commit SHA if source): 1.14
Target platform (e.g. Arm Mbed OS, Arduino Nano 33 etc.): Arduino Nano 33

Describe the problem
I am trying to reproduce the same result for a person detection by following all instruction in this readme doc successfully. But, I can't get the expected result.
Here is the output of the serial monitor:
Starting capture
Image captured
Reading 3080 bytes from ArduCAM
Finished reading
Decoding JPEG and converting to greyscale
Image decoded and processed
Person score: -1 No person score: 1

For all capture frame, the model gives the same output Person score: -1 No person score: 1 even there is a person on a frame.
Please help to resolve this issue.
Thanks
Bhavika
Please provide the exact sequence of commands/steps when you ran into the problem

Hi There,
We are checking to see if you still need help on this, as you are using an older version of tensorflow which is officially considered end of life . We recommend that you upgrade to the latest 2.x version and let us know if the issue still persists in newer versions. Please open a new issue for any help you need against 2.x, and we will get you the right help.
This issue will be closed automatically 7 days from now. If you still need help with this issue, please provide us with more information.


Moved Qt installation to vcpkg.json

Separated src and test directories

Created a dummy test and added unit tests to build job

Build, code analysis and unit test will work for linux/mac/windows and now it's under 3 min


Update spack.yaml

Test openmpi 4.1.7

@harshula @CodeGat - I guess we need to add openmpi 4.1.7 to the access-nri spack-config to use it ?
https://github.com/ACCESS-NRI/spack-config/blob/2ee50c69d2dfa9e024b47dc92d617f3aa7dcdd37/common/gadi/packages.yaml#L280

Hi @anton-seaice, The version of spack-config can no longer be modified by users via the model deployment repository.
Hi @CodeGat , I've reviewed and merged https://github.com/ACCESS-NRI/spack-config/pull/49 and tagged it 2024.11.27.

@benmenadue - I built & ran some code with openmpi 4.1.7, and it gives me lots of these messages (and runs) :
[gadi-cpu-clx-2975:103:3614375 - context.c:307][2024-11-28 17:03:48] ERROR failed to initialize sharp
Is this related to the new openmpi build? I'm pretty sure that the only thing that changed

@anton-seaice Yes, it's using a newer version of UCC that has support for SHARP. But we haven't set the needed bits for that up on the fabric yet. I was going to disable it at the module level for now but forgot, sorry. Using
mpirun -x UCC_TLS=^sharp

will silence those messages until I can update the module.

Ok thanks - no worries

Hey, due to https://github.com/ACCESS-NRI/build-cd/issues/173 we have had to update the infrastructure in this repository, as well - see https://github.com/ACCESS-NRI/ACCESS-OM3/pull/28.
We try and keep these kinds of updates to a minimum, and, starting from this one onwards, it will no longer be a hard requirement to update PR branches to incorporate infrastructure changes in order for the infrastructure to work - as you need to for this one.
To update this PR to the new origin/main, do the following:
git pull
git rebase origin/main
git push --force

to incorporate CI changes into the PR.
Your PR may redeploy, but that is okay - it should be identical to the last deployment. Let me know if you have any questions or issues.


Add subnet maininet resources to docs

Add Subnet Participants, Miner Incentives + Resources to Docs

PR: https://github.com/hirosystems/stacks-subnets/pull/316
PR: https://github.com/hirosystems/stacks-subnets/pull/318
The above PR's are ready for review. Please let me know if there is more Subnet doc updates required. Thanks! @saralab @jbencin @obycode

Docs PR: https://github.com/hirosystems/docs/pull/401.
@jbencin and @saralab, I see a few other doc requests in this issue. 1. Miner incentives + resources 2. Technical documentation for running a subnet. Please let me know if I am missing something here. Thanks!

Per conversations on Slack, I am marking this issue as complete.


Error when  ./configure --prefix=/usr/local/odp

checking for EVP_EncryptInit in -lcrypto... yes
checking pcap/pcap.h usability... no
checking pcap/pcap.h presence... no
checking for pcap/pcap.h... no
checking for realpath... no
configure: error: Could not find 'realpath'
Ubuntu 14.04

Hello?
Anyone here would help?
Thanks.

I forget checkout to v<IP_ADDRESS>


chore(deps): bump https://github.com/jenkins-x/jx-cli to 3.0.116

Update jenkins-x/jx-cli to 3.0.116
Command run was ./promote/main

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign ccojocar
You can assign the PR to them by writing /assign @ccojocar in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

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

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gke
01242344d7099d5b39386ff052042d8f280cb608
link
/test gke

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.


go-restful  https://github.com/emicklei/go-restful/issues/497

module prior to v3.10.0 is vulnerable to Authentication Bypass by Primary Weakness. There is an inconsistency in how go-restful parses URL paths. This inconsistency could lead to several security check bypass in a complex system.

see previous responses to this at https://github.com/kubernetes/client-go/issues/1254#issuecomment-1549999313
client-go does not use the impacted functionality, and there are compatibility issues that need resolving before the module can be updated in master (currently targeting 1.28 release)


on home page, should re-enable call buttons after hangup

if you call from the page, and then the support agent hangs up, the call buttons remain disabled on the customer view.

Fixed! Feel free to re-open if it's not working for you.


Bioconda recipe feedback needed

Hello!
We currently have 2 recipes for TREE-QMC on Bioconda: treeqmc and tree-qmc
https://bioconda.github.io/recipes/treeqmc/README.html
https://bioconda.github.io/recipes/tree-qmc/README.html
Is there a need for both, or can we just use one since they are identical? If OK, with one, which would you prefer?
Thank you for your help!
Robert

Hi Robert,
My student is updating the bioconda receipe for https://github.com/bioconda/bioconda-recipes/tree/master/recipes/tree-qmc
so I think we want to use this link https://bioconda.github.io/recipes/tree-qmc/README.html
Thank you!
Erin

Thank you! I'll get the treeqmc to stop receiving updates


[DOC] Fix some incorrect config links in doc [skip ci]

Closes #9320
This PR fixes some incorrect config links in the doc that lead to a non-existing section of config.md, because those sections have been moved to advanced_configs.md.
Tested doc jumping in my forked repo.

LGTM

build

We should have some PR check testing local links as well.


add Koa logo

see here https://github.com/koajs/koa
need clip maybe :)

Added in d108849295d8d92cef1581142d8b012fe34a8e72


Please provide the documentation how to install in neovim or vim

Hello please provide the documentation how to install this with vim or neovim with package managers like lazy.

sorry, the install instructions are on the https://github.com/jake-stewart/jfind.nvim repo.
i will add this to this repo's readme.


Audit scanner does not update timestamps

Resource age shows time of the first audit scanner check (when it was created).
I suggests resource is not recent, it should show time of last update instead.
To reproduce:
I changed audit scanner cronjob to run every minute, then display reports.
Even if there is change in results timestamp stays the same.
ε k get cronjobs.batch -n kubewarden                                                                                0.104s
NAME            SCHEDULE      SUSPEND   ACTIVE   LAST SCHEDULE   AGE
audit-scanner   */1 * * * *   False     0        34s             15m

ε k get policyreports.wgpolicyk8s.io -A                                                                                0.079s
NAMESPACE   NAME            PASS   FAIL   WARN   ERROR   SKIP   AGE
thens       polr-ns-thens   6      0      0      0       0      4m42s

ε k get clusterpolicyreports.wgpolicyk8s.io                                                                                0.090s
NAME               PASS   FAIL   WARN   ERROR   SKIP   AGE
polr-clusterwide   0      0      0      0       0      8m

# Create resource that fails does not update timestamp
ε k get policyreports.wgpolicyk8s.io -A                                                                                0.088s
NAMESPACE   NAME            PASS   FAIL   WARN   ERROR   SKIP   AGE
thens       polr-ns-thens   11     1      0      0       0      11m

I suspect this is fine, because the AGE is about the creation time. I assume (please @viccuad / @jvanz  correct me if I'm wrong) we keep updating the contents of the PolicyReport objects, hence it's expected to not have this field changed.

The AGE is indeed about creation time.
The (Cluster)PolicyReports have metadata.managedFields[]apiVersion.time and metadata.resourceVersion that tells us if it was updated. The contents PolicyReportResults don't have any.
E.g, doing a describe:
Name:         polr-ns-default
Namespace:    default
Labels:       app.kubernetes.io/managed-by=kubewarden
Annotations:  <none>
API Version:  wgpolicyk8s.io/v1beta1
Kind:         PolicyReport
Metadata:
  Creation Timestamp:  2023-09-07T13:54:07Z
  Generation:          14
  Managed Fields:
    API Version:  wgpolicyk8s.io/v1alpha2
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .:
          f:app.kubernetes.io/managed-by:
      f:results:
      f:scope:
        .:
        f:name:
        f:resourceVersion:
        f:uid:
      f:summary:
        .:
        f:error:
        f:fail:
        f:pass:
        f:skip:
        f:warn:
    Manager:         audit-scanner
    Operation:       Update
    Time:            2023-09-08T08:53:50Z                <----
  Resource Version:  19146                                  <----
  UID:               aba18ff3-19af-4927-8c20-c215f4745455

Closing, as this is expected behaviour.


[A] Add function ft_row_count

Adds useful functions suggested in https://github.com/seleznevae/libfort/issues/26


Dynamics 365 Business Central Wave 2: customizing the Base Application Error

Describe the bug
Error during  Publish-NAVApp: Publish-NAVApp : Extension compilation failed
To Reproduce
Steps and to reproduce the behavior:

Get Docker container mcr.microsoft.com/businesscentral/onprem:ru.

Export Base Application Create-AlProjectFolderFromBcContainer.

Open VS Code, made some modifications.

Put "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Tools.Excel\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\Microsoft.Office.Tools.Excel.dll" to "C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\Add-ins\Microsoft.Office.Interop.Excel.dll".

Compile project. Warning exists, no errors.

Use Publish-NAVApp in PowerShell ISE. Error exists:

src/dotnet_RU.al(3,14): error AL0451: An assembly named 'Microsoft.Office.Interop.Excel, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be found in the assembly probing paths 'C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\Add-Ins, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\Microsoft Dynamics NAV\Add-Ins\15.0.36510.0, C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service, C:\Windows\Microsoft.NET\assembly'

src/XMLElementLine.Table.al(346,31): error AL0185: DotNet 'XlRangeValueDataType' is missing

AL Code to reproduce the issue
Test Publisher_Base Application_15.1.36560.36649.app.zip
5. Versions:

AL Language: 4.0.0

Thank you for reporting this issue! What happens if you copy the dll in one of the folders in the probing paths inside the Docker image and then restart the NST? Does publishing succeed in this case?

Hello Alexandru,Thank you very match, it's work.I didn't expect such
behevior.
Can I influence the search paths for .net assemblies that the
Publish-NAVApp function uses (pass some parametrs)?
ср, 16 окт. 2019 г. в 21:34, Alexandru Toader<EMAIL_ADDRESS>
Thank you for reporting this issue! What happens if you copy the dll in
one of the folders in the probing paths inside the Docker image and then
restart the NST? Does publishing succeed in this case?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/AL/issues/5362?email_source=notifications&email_token=ADA24WTLGODJT6RU2B2GUA3QO5NCFA5CNFSM4JBLPJC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBNP6UY#issuecomment-542834515,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADA24WSHAXANDHXILAY25HLQO5NCFANCNFSM4JBLPJCQ
.

Hi! You cannot influence the search paths, but you can add DLLs in the existing probing paths.


Visualize material assignments in matl editor

Mesh Assigned Material Visualizer:
Way of easily seeing which material is assigned to meshes Ala Crossmod

Parameter Editing Tweak:
Make single left click open the text parameter for editing rather than setting value.
Current: Left clicking changes value before text editing can occur

Suggested: Left click opens text for manual editing, left click and drag allows for easy tweaks (like Blender)

In the future, please create separate issues if there are two feature requests. This makes it easier to track on my end.
Showing what material is selected in the viewport is planned for the next release. I won't be using the exact same system as Cross Mod since it stops working well after about a dozen materials. Numatb files can easily have hundreds of materials for stages.

Your second suggestion is tracked in #45.

Got it noted. Thanks for the feedback


Follow "More flexible cluster configuration".

Description
Follows "More flexible cluster configuration" at dbt-labs/dbt-spark#467.

Reuse dbt-spark's implementation
Remove the dependency on databricks-cli
Internal refactorings

Thanks! merging.


Implement seed argument for generating identical final images if set

Optional seed argument on functions glitch_gif and glitch_image, added function __reset_rng_seed for easy resetting Python's random module rng seed.
seed sets Python's builtin random module to that given seed so next calls of randint will yield the same value on every run, so we can generate the same "structure" of glitch (ie. horizontal shifting, color offset) but on different glitch amounts.
Does not change old code flow as if default seed=None is set, __reset_rng_seed doesn't call random.seed(), leaving a Python's chosen random seed as expected.
Commented what added lines do and why they need to be there as well, tried to follow code style as much as I could.

Code looks good, I've changed the target branch to not be master as I'll need to set up a few more stuff before fully deploying. Thanks for your contribution!

Thanks for this script as well :)


Project Page Mini-Refactor

Let's simplify the project page.
A feature sanity check:

do people use multiple Resource Lists
do people need more than one Studio per project?

Possible next tasks:
Refactor Easy Mode:

Remove "Add List" button
Put "Resource" overlay into a column, just like the Studio List


Relationship b/w this package's solvers and Optim.jl's solvers

A quick look at solve.jl gave me the impression that this package's optimization routine are generic implementations (not taking advantage of the specific linear regression setting). Could you comment on why you did not use Optim.jl's solvers and whether/under which conditions one might want to use this package's routines for generic optimization?
Thank you.

I can't speak for the author, but given that I spend quite some time digging around in both code bases my current interpretation is the following:
Optim.jl, while currently being re-factored, used to focus on optimizing Julia functions directly. That means that it didn't (and currently still doesn't) offer a possibility to dispatch on the optimization problem, which in turn doesn't allow to make use of domain knowledge about the problem. For example, in Machine Learning the optimization problem usually depends on some fixed external parameters (i.e. the data). The current way to address this in Optim.jl is with closures, which are inconvenient to use and used to be painfully slow (I think there are some big changes coming up in 0.5).
I suspect that Optim.jl will move more and more into the direction of how Regression.jl approaches this aspect of the problem, but in a more general purpose optimization way (see https://github.com/JuliaOpt/Optim.jl/pull/128#issuecomment-174908401).

This package has the idea that the objective function is the sum of n terms -- this enables the technique such as stochastic gradient descent. Actually, it also provides SGD as an option.

I think you are thinking of your other package SGDOptim.jl ?

@Evizero thanks, very useful explanation and pointer. I am living open in case @lindahua wants to add his thoughts on the content of Regressions.jl/src/solve.jl now and looking forward when/if Optim.jl matures in the direction you are outlining.


[UI] Fix #112 Fix #111: Update support library to 23.1.1 & fix intermittent bug when collapsing a comment

For #111, seems to be fixed by updating the support libraries to 23.1.1
However, because of it, #112 happens, so I fixed them altogether in this pull request.
@timotiusnc please review and test #111 rigorously

Worked! Merged!


drop support for django 1.5 and 1.6

Coverage remained the same at 71.43% when pulling c13bdbbb0d1d0f8bf1e23c95a75d9fea33fa7ac2 on drop-test-support into 5b51a02986bd1c25e5f7ed24aa1049de8801d97f on master.


oauth2 logging in in one tab does not fire a restore on a second in Edge browser with localstorage

Just noticed this on two of my sites using 1.1. Can anyone confirm?

Please upgrade to the latest release and reopen if this is still an issue.


[BUG]Destroying the launch pad of the mining rocket will drop the cargo rocket.

Destroying the launch pad of the mining rocket will drop the cargo rocket.

Destroying the launch pad of mining rocket will not only drop mining rocket and launch pad, but also drop automatic cargo rocket.


Editor Page -> Context panel -> Save Modal

Save will no longer have a modal.  Instead save will just save the content (to the local browser).


It is not work on dom which is new

egg..
I find that when I $('.tooltip').tooltipster() after $(document).ready(),it is work fine.but it is not work on a insert DOM.How can I add the new DOM into the old context ?

Hello, please see https://github.com/iamceege/tooltipster/issues/499

Thank you !  It is awesome.I am happy to fix it.


Crash at runtime when using typed throws

Description
No response
Reproduction
The following snippet crashes with EXC_BAD_ACCESS (code=1, address=0x0) in swift_willThrowTyped:
enum MyError: Error {
    case failed
}

func foo() throws(MyError) {
    throw MyError.failed
}

try foo()

Stack dump
Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [37760]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   ???                           	               0x0 ???
1   TypedThrows                   	       0x10022f6cc $s11TypedThrows3fooyyAA7MyErrorOYKF + 40 (main.swift:7)
2   TypedThrows                   	       0x10022f64c main + 32 (main.swift:10)
3   dyld                          	       0x19404e0e0 start + 2360

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000016fbd3430   x1: 0x00000001002300f0   x2: 0x00000001fc18c030   x3: 0x00000001fc18c030
    x4: 0x00000001a45cb7d4   x5: 0x0000000200c13ad8   x6: 0x7366657272657075   x7: 0x0000000000000000
    x8: 0x000000000000270f   x9: 0x0000000100234000  x10: 0x0000000000000004  x11: 0x00000001fc18c030
   x12: 0x0000000000000000  x13: 0x000000010022fee0  x14: 0x000000010022fee4  x15: 0x00000001fc18c050
   x16: 0x0000000000000000  x17: 0x000000010022f888  x18: 0x0000000000000000  x19: 0x0000000100645fb0
   x20: 0x000000010022f62c  x21: 0x0000000000000000  x22: 0x0000000100645910  x23: 0x000000016fbd3430
   x24: 0x000000016fbd3470  x25: 0x00000001940c22db  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016fbd3330   lr: 0x000000010022f8e8
    sp: 0x000000016fbd3310   pc: 0x0000000000000000 cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0x82000006 (Instruction Abort) Translation fault

Expected behavior
Then snippet should not crash when trying to use typed throws.
Environment
Apple Swift version 6.0-dev (LLVM c5ac128e678cf31, Swift 59748d9cf60064b)
Target: arm64-apple-macosx14.0
Additional information
No response

Appears to be fixed in the Xcode 16.0 beta 4 toolchain.


update clrdbg package reference

This brings in the first set of clrdbg packages that are based on dev15 concord.

@gregg-miskelly @caslan

I smoke tested this on windows, mac, and ubuntu 14.04 and verified that we can launch and hit a breakpoint in hello world.

:+1:

👍


Team Permissions, Repo types, organizations

Hi Stakebuilders
The pull request may not be suitable as-is, but it has made it possible for me to proceed with my project. The key functionality required is:

access to the team permission information
access to GitHub repository objects
listing all the organizations

The patch also changes some of the cabal bounds so that it builds against the LTS Haskell 2.1. I don't think they will be serious.
There are tests for the new functions, and a new "TEST_REPO" to allow testing.
I am interested in continuing to use the library, and expanding it as I require. Let me know if you think I can help / coordinate with you guys.
Finlay

Oh, I forgot to mention that there is one function signature change:
addTeamToOrganization :: TeamName -- ^ Name of new team
                      -> T.Text  -- ^ Description of new team
                      -> TeamPermission -- ^ Permission setting for team (push, pull, or admin)
                      -> OrganizationName -- ^ Organization name where the team will be created
                      -> GitHub Team

Now requires "Team Permission". There is a default on the GitHub API call for this option, but not sure what your usual pattern is regarding optional arguments ?

Hi
Not sure how to get the Travis test to pass. I think you need to put the GITHUB_TOKEN into the .github-sandbox file. But I don't think I can generate it.
Finlay

Thanks @finlay. It looks like the tests aren't passing for you since we are using our travis account to encrypt certain keys. Your code passes tests for us locally, though, so should be fine once we merge.
I'll have @jsantos17 take a look at the code before we merge, but looks good to me.
Thanks again!


Update Do you have an app sec team.md

Hi, I'm prefer to use AppSec (instead of Application Security)

Thanks for that. Do you need me to go back in to the file and make that change? I also changed info sec to Information Security--do you prefer if I leave all those phrases in their shorter form?

yes can you please make the changes, since you already have a PR (Pull Request) the changes will automatically appear here (i.e. no need to send another PR)

Hi, yes I can see both commits on this PR


Two strange issues (zoho email, one with pop-before-smtp, one with SSL SMTP)

Hi!
I'm trying to use your proxy to get a stubborn stupid IOT device that only does unencrypted SMTP to send emails to Zoho via protected SMTP
Problem one: pop before SMTP plain doesn't work, with a strange error that kind of suggests that it expects "pop check delay" to be a boolean (its default, which I didn't change, is indeed not a boolean)
Traceback (most recent call last):
File "smtpproxy.py", line 504, in
if readConfig() == False:
File "smtpproxy.py", line 428, in readConfig
account.rpopcheckdelay = smtpconfig.getboolean(s, 'popcheckdelay', account.rpopcheckdelay)
File "/root/smtpproxy/config.py", line 42, in getboolean
res = ConfigParser.getboolean(self, section, option)
File "/usr/lib/python2.7/ConfigParser.py", line 370, in getboolean
raise ValueError, 'Not a boolean: %s' % v
ValueError: Not a boolean: 60
Problem two:
it does not properly work with SMTP servers that use SSL (NOT TLS) auth.
Zoho's TLS SMTP is notoriously broken , and doesn't work with this proxy (rejected with "authentication required").
Dunno why (it would be very kind of you if you tested this, but many, many softwares fail to work with Zoho TLS SMTP)
From prior experience with zoho, I have tried going the SSL (port 465) way (several ERPs I've worked with failed to connect to Zoho SMTP via TLS but succeeded with SSL SMTP) , but connection just times out.

Thank you for your report.
Problem one: I confirm this bug. I'll fix it.
Problem two: I will check how much work this will be and whether I have access to an SMTP server that supports SSL. Perhaps I need your help to test this.

I've managed to figure out settings that work for Zoho SMTP via trial and error (posting here in case anyone else in the world is trying to get Zoho and SMTP proxy going)
<EMAIL_ADDRESS>localhostname=ubuntu smtphost=smtp.zoho.com smtpport=587 smtptls=true<EMAIL_ADDRESS>smtppassword=82j02j9c077k57xjdw popbeforesmtp=1 pophost=pop.zoho.com popport=995 popssl=true<EMAIL_ADDRESS>poppassword=82j02j9c077k57xjdw popcheckdelay=1<EMAIL_ADDRESS>

<EMAIL_ADDRESS>localhost=debian #(domain.com DOES NOT WORK!)
smtphost=smtp.zoho.com
smtpport=587
smtptls=true
<EMAIL_ADDRESS>#(assuming you use zoho to host a domain email)
smtppassword=your-password
popbeforesmtp=1
pophost=pop.zoho.com
popport=995
popssl=true
<EMAIL_ADDRESS>#(assuming you use zoho to host a domain email)
poppassword=your-password
popcheckdelay=1 #(it seems enough to get Zoho going and works around that "boolean thing")
<EMAIL_ADDRESS>

I just pushed version 1.5. This fixes the reported configuration error as well as supports smtp over ssl.
Please note, that the configuration entry 'smtptls' is replaced by the new configuration option 'smtpsecurity'. Please see the documentation for that setting.


add - to options for yq

what

add required '-' to options for the yq command

why

script fails to run without them

@fcooper-spoton Thank you for this contribution.
Unfortunately, the interface for yq changed significantly between now and the time these scripts were written. Adding a - to the r may cause the commands to not error out, but does not cause them to work as intended.
We will fix our scripts in a future PR.


Delay for password spraying

Netexec is great for password spraying, but it'd be amazing if there was a way to specify a delay between each authentication attempt.
There are some workarounds, but it'd really nice if this was a native feature in nxc.

I think it's not that easy because of the "threading" of each target connection. Would throttling per target be enough? Or is there a use case where you would want to throttle, while still attacking multiple hosts?

That makes sense.  When I'm password spraying I'm always doing it against the domain controller, or an individual host.  For spraying, yeah, throttling per target would be adequate.

You can use --jitter it's kind of what you want but not exactly

+1

@mpgn --jitter doesn't appear to help for this situation.  When spraying against a single server (which is the use case I was talking about), it appears the initial connection is delayed, but each password attempt has no delay between them.

As many people have requested this feature in the past, I have changed the jitter function from what I believe was a connection throttle back when CME was single threaded, to an authentication throttle.
You can install it from the neff-jitter branch. Try it out and leave some feedback, if that's what you are looking for.
Installation: pipx install git+https://github.com/Pennyw0rth/NetExec@neff-jitter
Syntax:

nxc --jitter 3 smb... will do a random 0-3 seconds delay
nxc --jitter 2-5 smb... will do a random 2-5 seconds delay
nxc --jitter 5-5 smb... will do an exact delay of 5 seconds

Keep in mind, this only works on a per-target basis!

Thank you!  Tried it out and that's working as I was hoping.


docs: add a section on the plugin API

No change to logic, docs change only.
Now that the plugin API is finalized, we should link to the wiki page
documenting the plugin API.
Fixes #391

@freitagbr can you also give thoughts on this section?
My concerns:

it's weird that cmdOptions is 2 different types. Maybe we can use {} to signal "no options"
unix is an awful property name. I'm not even sure this functionality should be exposed publicly.
We should fail loudly during plugin registration an unknown plugin-option is used.

Also fail loudly for bad values (e.g. globStart: true)
Also fail loudly for invalid combos (e.g. globStart: 2 with allowGlobbing: false)

We should consider auto-generating this table from in-line documentation (this would require moving it to the README, but I don't think this needs to block release).

Nice, I like this change.
Regarding the wiki section:

For cmdOptions, using a boolean usually indicates that true and false are both accepted values. In the case of cmdOptions, passing true doesn't really make sense. Perhaps null would be a better fit here. Or, as you mentioned, and empty object. Also, are we trying to distinguish between "ignoring any flags passed" and "not allowing any flags to be passed"? null and {} might indicate the latter, but not passing cmdOptions at all might indicate the former.
Yeah, unix isn't super descriptive, and it sounds like we don't remember it's purpose. I would err on the side of removing it, we can always add it later in a minor update.
Yeah, failing loudly is a good thing to do for plugin instantiation.
I agree, the documentation should be auto-generated, just like the other APIs.


[v4] Implement component id lookup support for System.Type

It would be useful in reflection scenarios to allow the user to lookup component ids and execute ECS operations using System.Type. This functionality is required for automatic member registration/serialization/deserialization support. Needs to also support NativeAOT with trimming which might not be possible with the way component registration currently works.
// Example of registering all types in an assembly through reflection.
foreach (Type type in Assembly.GetExecutingAssembly().GetTypes())
    world.Component(type);

I messed around with trying to implement this and it seems like there's no way to get the size of the component without breaking NativeAOT.
You can construct an instance of T using Activator as long as you annotate the type properly. However, there's no way to size it directly since you can't access Marshal.SizeOf in AoT.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields)]

You might be able to hack some sort size estimator by walking the fields and using known sizes for base types but that would get very messy.
Might be out of scope but you could consider splitting into a Flecs.Core package with AoT support and a Flecs package without that adds support for dynamic registration and types. Alternatively you could use defines for gating off non-aot compatible code.

Worth noting, it seems Type currently isn't AoT compatible. Its usage of GetEnumValues throws an AoT warning.
Adding true to the Examples project and running
dotnet publish --property:Example=Reflection_BasicsEnum -r osx-arm64
./bin/Release/net8.0/osx-arm64/publish/Flecs.NET.Examples

Unhandled Exception: System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.
 ---> System.NotSupportedException: '<BasicsEnum>FD8BE5548CB1ACE8A8CBC7E39E2FB23FDF52B13BA421B001B7B83140A7A1DF813__Color[]' is missing native code or metadata. This can happen for code that is not compatible with trimming or AOT. Inspect and fix trimming and AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility
   at System.Reflection.Runtime.General.TypeUnifier.WithVerifiedTypeHandle(RuntimeArrayTypeInfo, RuntimeTypeInfo) + 0x70
   at System.Array.InternalCreate(RuntimeType, Int32, Int32*, Int32*) + 0x78
   at System.Array.CreateInstance(Type, Int32) + 0x48
   at System.RuntimeType.GetEnumValues() + 0x64
   at Flecs.NET.Core.Type`1.InitEnumCacheIndexes() + 0x64
   at Flecs.NET.Core.Type`1..cctor() + 0x128
   at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xbc
   --- End of inner exception stack trace ---
   at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x15c
   at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnNonGCStaticBase(StaticClassConstructionContext*, IntPtr) + 0x14
   at Flecs.NET.Core.Component`1..ctor(flecs.ecs_world_t*) + 0xa4
   at Reflection_BasicsEnum.Main() + 0x44
   at Flecs.NET!<BaseAddress>+0x171fb4

Worth noting, it seems Type currently isn't AoT compatible. Its usage of GetEnumValues throws an AoT warning.

I wonder if switching to Enum.GetValuesAsUnderlyingType fixes AOT compatibility. I dropped support for versions below .NET 8 in the type-safe-queries branch so we have access to this function now.

Yup that fixes it! AoT still gives off a warning about the
            if (RuntimeFeature.IsDynamicCodeSupported)
            {
                FieldInfo[] fields =
                    type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
                size = fields.Length == 0 ? 0 : size;
                alignment = size == 0 ? 0 : alignment;
            }

but seems fine since its gated. You could annotate it but it looks like you'd have to bubble up that annotation to 50+ other generic methods that call Type<T>

In the meantime, would you have any qualms with storing the reflection Type on the component entity? I have a usecase for going from the component entity Id to knowing its type for runtime reflection.
I figure easiest solution would be to just do
world.Entity(component).Set(typeof(T));

in Type::RegisterComponent

See https://github.com/BeanCheeseBurrito/Flecs.NET/pull/41


Secrets Encryption: Implement beta automatic config reloading

Is your feature request related to a problem? Please describe.

Kube-apiserver must currently be restarted multiple times during the k3s secrets-encryption key rotation process.
Describe the solution you'd like
KMS v2 (which is in beta as of k8s v1.27) has introduced an automatic config reloading for the SE configuration file. We need to incorporate this improvement into our K3s configuration. This should simplify the process of SE rotation for single-node servers.

Describe alternatives you've considered

Additional context

Validated as shared in the PR using v1.28.1-rc2+k3s1
echo "this is a file" > file.txt && for i in {1..500}; do echo test$i >> file.txt; kubectl create secret generic test$i --from-file=file.txt; done
secret/test1 created
secret/test2 created
...
secret/test498 created
secret/test499 created
secret/test500 created

> sudo k3s secrets-encrypt rotate-keys
keys rotated, reencryption started

> sudo k3s secrets-encrypt status
Encryption Status: Enabled
Current Rotation Stage: reencrypt_active
Server Encryption Hashes: All hashes match

Active  Key Type  Name
------  --------  ----
 *      AES-CBC   aescbckey-2023-09-06T18:00:14Z
        AES-CBC   aescbckey

> sudo k3s secrets-encrypt status
Encryption Status: Enabled
Current Rotation Stage: reencrypt_finished
Server Encryption Hashes: All hashes match

Active  Key Type  Name
------  --------  ----
 *      AES-CBC   aescbckey-2023-09-06T18:00:14Z

 From the logs:
 Sep 06 18:02:01 ip-172-31-8-133 k3s[23518]: I0906 18:02:01.977845   23518 event.go:307] "Event occurred" object="ip-172-31-8-133" fieldPath="" kind="Node" apiVersion="" type="Normal" reason="SecretsUpdateComplete" message="completed reencrypt of 506 secrets"

Update: KMSv2 goes GA in 1.29, so we are removing the experimental tag then.


what's  the different between  prestodb  with  prestosql?

prestodb project website is https://prestodb.github.io/

Duplicate of https://github.com/prestosql/presto/issues/380

@newluhuibiao please see #380. It gives high overview of the differences.
If you have further questions, please join Presto Slack (https://prestosql.io/community.html) where you can learn more. See you there!


Close picker after click on area

Could we automatically close picker after click on text area? I did not found any corresponding option.

ref https://github.com/mervick/emojionearea/issues/265#issuecomment-378177940


New version: JackieLiu.NotepadsApp version <IP_ADDRESS>

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 442
Microsoft Reviewers: Open in CodeFlow

@wingetbot run

Draft


docs: reword the FAQ regarding table changes

So we stop confusing people that thinks we do DDL.
Fix #3761

Coverage remained the same at 71.271% when pulling f2e6c2c325f9067c6677a74e8ab1186cbb06c47d on xrmx:addcolumnfaq into 5c0316794839e753070d7c364985e2d3bd8d5562 on apache:master.

Coverage remained the same at 71.271% when pulling f2e6c2c325f9067c6677a74e8ab1186cbb06c47d on xrmx:addcolumnfaq into 5c0316794839e753070d7c364985e2d3bd8d5562 on apache:master.


Ignore lazy-lock.json

So that it won't be marked as ? when submoduled in ~/.config/nvim.

And why would you do that?
You did not follow/read the installation instructions.
This starter repo does not contain any actual code. You are even supposed to delete its '.git' folder so you can add it under your own version control.
It's pretty important to also add the lock file to git.


ConfigureAwait

Seems like I forgot to add ConfigureAwait(false) to all async calls, we need to add them just to be sure.

Fixed in https://github.com/joakimskoog/Cashew/commit/f5e3add268c9a2550a57cb1bf8774c62a5f3843b


Update README to remove note

Issue #, if available:
Description of changes:
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


Improve social link accessibility

Keep in spirit with https://medium.com/@svinkle/why-let-someone-know-when-a-link-opens-a-new-window-8699d20ed3b1 but address issue #145

n.b. a continuation of the conversation in #143


Add subscription field

To keep track of subscirptions

@ChaituVR We don't need this, we keep track of this in Notion with others infos


Update partners.md

@sthirthala : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @sthirthala - This pull request was opened in the public repo. PMs should work in the private repo, per the Microsoft Docs contributor guide. We can keep this PR open for review and merge, but would you make future content updates in the private repo? Thank you!

Being fixed in https://github.com/MicrosoftDocs/azure-docs-pr/pull/147734.  #please-close


python-http to 0.0.19

Promote python-http to version 0.0.19

:star: PR built and available in a preview environment francesco-beccaria-python-http-pr-14 here


sap_vm_provision: GCP improvements

Description:

Replaced 90 second pause with wait for ssh connection
Added fail if resources were not found (OS Image, VPC, VPC Subnet, DNS) and catch it with rescue block
Enable post provisioning steps which were blocked by incorrect variable name
Documentation improvements to include detailed breakdown of required permissions and guide for Cloud NAT port blocking issue.

NOTE
Further improvements to HA provisioning might be needed after sap_ha_pacemaker_cluster role is reworked due to haproxy.

@sean-freeman Updated based on comments and added fix for typos in HA code, which tried to call loop var in tasks without loop.


chore: disable the Owl Bot post-processor

via deleting .OwlBot.lock.yaml (context)

do not merge until https://github.com/googleapis/java-logging/pull/1654 is merged


Rename .devcontainer/devcontainer.json to .devcontainer/mustafacco7/f…

…eatures
Hi

Looks like this may not have been created intentionally - please feel free to reopen if you have other changes in mind!


B 21336 int Add bulk assignment button and modal creation

Agility ticket
Summary
Create new feature flag called "FEATURE_FLAG_BULK_ASSIGNMENT."
Add a feature flagged button to the SC/TOO/TIO queues, only visible to supervisors.
Clicking the button will open a Bulk Assignment modal with just the Title, Save and Cancel button.
How to test
1.With the FEATURE_FLAG_BULK_ASSIGNMENT OFF Check the SC/TOO/TIO and verify the bulk assignment Button is not visible
2. Turn the FEATURE_FLAG_BULK_ASSIGNMENT ON and create a TOO/SC/TIO all without supervisor privileges
3. check the SC/TOO/TIO queues and verify the bulk assignment button is not visible
4. create a TOO/SC/TIO all with supervisor privileges
5. check the SC/TOO/TIO queues and verify the bulk assignment button is visible
6. Click the bulk assignment button and verify the bulk assignment modal pops up with a title save and cancel button
Screenshots

Warnings

:warning:

Files located in legacy directories (src/shared or src/scenes) have
been edited. Are you sure you don’t want to also relocate them to the new file structure?
View the frontend file org ADR for more information

  Generated by :no_entry_sign: dangerJS against a6c3f1b4a86ff2b626f98eb467d218b47aa9a165

2 Happo diffs showing that are not related to this story??

Have you created the file changes to checkin for the FF into the milmove-feature-flags repo?  if so, can you link it here.

HQ supervisor should not see this Bulk Assignment button at any time. This is failing the AC.

well, disregard, for some reason when I created my HQ role, it also gave me an SC role.  This is working as expected for the HQ role.

Tested and all matches up to the testing steps.
(NOTE - "Destination Requests" queue does not show button)

The "Destination Requests" queue for the TOO was added this PI. From a quick search on VersionOne, I do not see any AC in those stories for the bulk assignment addition.
Wanted to make sure you're aware and can coordinate with Mountain Movers on the original feature for the queue E-05336, or Go-Rillaz for the related "assigned column" OBE feature E-06095.
Destination Requests queue

Good call - will make a note to chat with team about it during team sync tomorrow, or later this week if tomorrow's team sync is sparsely attended


[Feature] Build Status

Feature

Run first build
Added status badges

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@79b93d8). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage        ?   98.46%
  Complexity      ?       50
=======================================
  Files           ?       19
  Lines           ?      130
  Branches        ?        0
=======================================
  Hits            ?      128
  Misses          ?        2
  Partials        ?        0

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 at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Training time?

Hi. How much time does it usually take to train on the SONY model using the specified configuration. Thanks.

one day

How about Fuji model?


clientv3: move health balancer to "balancer"

Preparing balancer rewrite with new gRPC.

Codecov Report

Merging #9462 into master will increase coverage by 0.04%.
The diff coverage is 87.05%.

@@            Coverage Diff             @@
##           master    #9462      +/-   ##
==========================================
+ Coverage   72.51%   72.56%   +0.04%
==========================================
  Files         364      364
  Lines       30874    30890      +16
==========================================
+ Hits        22389    22416      +27
+ Misses       6855     6854       -1
+ Partials     1630     1620      -10

Impacted Files
Coverage Δ

clientv3/retry.go
94.86% <100%> (ø)
:arrow_up:

clientv3/balancer/grpc1.7-health.go
86.33% <85.5%> (ø)

clientv3/client.go
84.74% <91.66%> (+0.97%)
:arrow_up:

pkg/adt/interval_tree.go
81.68% <0%> (-6.91%)
:arrow_down:

auth/simple_token.go
87.03% <0%> (-6.49%)
:arrow_down:

clientv3/namespace/watch.go
72.72% <0%> (-6.07%)
:arrow_down:

clientv3/txn.go
95.55% <0%> (-4.45%)
:arrow_down:

etcdserver/cluster_util.go
76.64% <0%> (-1.46%)
:arrow_down:

etcdserver/api/v2http/client.go
90.33% <0%> (-0.45%)
:arrow_down:

proxy/grpcproxy/watcher.go
89.79% <0%> (ø)
:arrow_up:

... and 16 more

Continue to review full report at Codecov.

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


SQL: Multi-column ORDER BY does not default to ASC and throws Exception

OrientDB v.1.6.3
If an SQL command contains a multi-column ORDER BY, an exception will be thrown if the direction is omitted for any but the last entry.

orientdb> SELECT FROM OUser ORDER BY status, name

Error: com.orientechnologies.orient.enterprise.channel.binary.OResponseProcessingException: Exception during response processing.
Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #33: Ordering mode 'NAME' not supported
. Valid is 'ASC', 'DESC' or nothing ('ASC' by default)
Command: select FROM OUser ORDER BY status, name
-----------------------------------------^

orientdb> SELECT FROM OUser ORDER BY status ASC, name
...
3 item(s) found. Query executed in 0.007 sec(s).

fixed in 2.1 snapshot


Fabric called multiple times

Nothing happens when i try to login, except the message below in log:
[Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize
Earlier everything worked perfectly, but then i had an error in other package and while i was fighting it, i have made npm update , react-native link and also included Pod system
Googling doesn't helped, it seems i'm the first with this error

You should call multiple Fabric like this [Fabric with:@[[Crashlytics class], [RNBranch class]]];


Webm support and etc

Currently there is no Webm/mp4 support and some other formats.
Formats that could be added in the future: webm, mp4, mp3, ogg, flac, and apng.

Implemented with https://github.com/smugdev/smugboard/commit/0a1d89c41a595131304b7d9eb6beac623b56e29a
Embedding a vichan-style player in the page will happen later, for now webms will show up as links.

Note that smugchan won't support these uploads until I get around to upgrading the live install, which should happen within the next few days.

Note that smugchan won't support these uploads until I get around to upgrading the live install, which should happen within the next few days.


Release strava-java-client and publish in github maven registry

The artifact is required in CI thus needed to be fetched by any package registry

Fixed the major issues and config settings so release basically works.
One problem still exist without proper solution. The POM of sub-module strava-java-client is auto-generated without distributionManagement info. Therefore the maven deploy command fails for this module.
I added release "manually" using gh cli at the moment.

Find solution by adding parent to generated pom.


Flutter is only using one CPU Core on certain Android phones (Pixel 8...) for UI, Raster and Isolates

Steps to reproduce
For instance, using a Pixel 8:

have a continuously running animation
have some isolates running with compute(calculation, null)
run a perfetto trace with:

Perfetto command
adb shell perfetto \
  -c - --txt \
  -o /data/misc/perfetto-traces/trace \
<<EOF

buffers: {
    size_kb: 63488
    fill_policy: DISCARD
}
buffers: {
    size_kb: 2048
    fill_policy: DISCARD
}
data_sources: {
    config {
        name: "android.packages_list"
        target_buffer: 1
    }
}
data_sources: {
    config {
        name: "linux.process_stats"
        target_buffer: 1
        process_stats_config {
            scan_all_processes_on_start: true
        }
    }
}
data_sources: {
    config {
        name: "linux.ftrace"
        ftrace_config {
            ftrace_events: "sched/sched_switch"
            ftrace_events: "power/suspend_resume"
            ftrace_events: "sched/sched_wakeup"
            ftrace_events: "sched/sched_wakeup_new"
            ftrace_events: "sched/sched_waking"
            ftrace_events: "sched/sched_process_exit"
            ftrace_events: "sched/sched_process_free"
            ftrace_events: "task/task_newtask"
            ftrace_events: "task/task_rename"
            ftrace_events: "power/cpu_frequency"
            ftrace_events: "power/cpu_idle"
            ftrace_events: "cpu/cpu_topology"
            # atrace_apps: "com.example.flutter_threads"
        }
    }
}

data_sources {
  config {
    name: "track_event"
  }
  producer_name_filter: "com.example.flutter_threads"
}

duration_ms: 10000

EOF

Expected results
Running a perfetto trace should reveal that UI thread, Raster thread and all Isolates should run on separate CPU cores.
Actual results
UI, Raster and DartWorker threads are all using the same CPU core
In Perfetto, hovering over a CPU sched slice reveals that all the slices for my app run on CPU 8

Zooming in, we can see that ui, raster and DartWorker are being scheduled on the same thread

Cause
https://github.com/flutter/engine/pull/45673 is the PR introducing this change.
Of course, it's a great idea and implementation for most phones to improve the performance of Flutter! 🥳
However, I found 2 issues with this:

some phones have only 1 core that gets recognized as performance core

for instance the Pixel 8 has 9 cores

1 very fast
4 fast
4 quite slow

DartWorkers spawned from the UI thread can't set an affinity (https://github.com/dart-lang/sdk/issues/53748) so by default they will inherit the affinity of the main thread, and also run on the same core

even for phones with multiple cores defined as "performance", Isolates will never use all the cores on the phone, only the ones marked as performance

for instance, I have a Samsung A10s with 8 cores, including 4 marked as performance. If I spawn 4 isolates, then I might block the UI thread even though I have 4 more cores to use on the phone for background tasks

I think the Flutter team is aware of this already since @jonahwilliams tried a fix here https://github.com/flutter/engine/pull/53136 but I think the impact is a bit more critical especially for apps running several isolates.
I'd be really happy to help with this in any way I can (submitting PRs for instance)! I think:

Dart should indeed have a way to set the CPU affinity, and the Dart workers should be marked as "non performance cores"
If a phone has only 1 big core, we also mark at least the 2nd fastest core as performance, so that UI and raster threads are guaranteed to run on separate cores

Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';

void main() {
  runApp(const MyApp());
}

int complexLoop(int? message) {
  int startTime = DateTime.now().millisecondsSinceEpoch;

  int sum = 0;
  for (int i = 0; i <<PHONE_NUMBER>; i++) {
    sum += i;
  }

  int endTime = DateTime.now().millisecondsSinceEpoch;
  print("TIME: ${endTime - startTime}");

  return sum;
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
          floatingActionButton: FloatingActionButton(
            onPressed: () async {
              compute(complexLoop, null);
            },
            tooltip: 'Run calculation',
            child: const Icon(Icons.play_arrow),
          ),
          body: const Center(
            child: FadeSquare(),
          )));
  }
}

class FadeSquare extends StatefulWidget {
  const FadeSquare({super.key});

  @override
  State<FadeSquare> createState() => _FadeSquareState();
}

class _FadeSquareState extends State<FadeSquare>
    with SingleTickerProviderStateMixin {
  late AnimationController _controller;
  late Animation<double> _animation;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(
      duration: const Duration(milliseconds: 1000),
      vsync: this,
    )..repeat(reverse: true);

    _animation = CurvedAnimation(
      parent: _controller,
      curve: Curves.ease,
    );
  }

  @override
  Widget build(BuildContext context) {
    final width = MediaQuery.sizeOf(context).width;

    return FadeTransition(
      opacity: _animation,
      child: Container(
        width: width,
        height: width,
        color: Colors.green,
      ),
    );
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }
}

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.2.1 23C71 darwin-arm64, locale en-US)
    • Flutter version 3.24.0 on channel stable at /Users/almouro/dev/tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (3 weeks ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/almouro/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/almouro/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/almouro/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.92.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.2.1 23C71 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.2.1 23C71 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 127.0.6533.120
    ! Error: Browsing on the local area network for iPhone de Inès Ryder. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Salle de jeux. Ensure the device is unlocked and associated with the same local area network as this Mac. (code -27)
    ! Error: Browsing on the local area network for iPhone de BAM. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

We should just reland https://github.com/flutter/engine/pull/53136


Error running yarn hardhat get-address

Got the following error after running yarn hardhat get-address:
yarn hardhat get-address

> yarn run v1.22.19
> $ /Users/johnny/FEVM-Hardhat-Kit/node_modules/.bin/hardhat get-address
> You have both ethereum-waffle and @nomicfoundation/hardhat-chai-matchers installed. They don't work correctly together, so please make sure you only use one.
>
> We recommend you migrate to @nomicfoundation/hardhat-chai-matchers. Learn how to do it here: https://hardhat.org/migrate-from-waffle
> nonce: undefined
> Send faucet funds to this address (f1): f1oc2bpna6gq5zthvsuzt3dcprq5pdwosu7ml2o5i
> An unexpected error occurred:
>
> TypeError: Cannot read properties of undefined (reading 'slice')
>     at SimpleTaskDefinition.action (/Users/johnny/FEVM-Hardhat-Kit/tasks/get-address.js:48:35)
>     at processTicksAndRejections (node:internal/process/task_queues:95:5)
>     at Environment._runTaskDefinition (/Users/johnny/FEVM-Hardhat-Kit/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14)
>     at Environment.run (/Users/johnny/FEVM-Hardhat-Kit/node_modules/hardhat/src/internal/core/runtime-environment.ts:156:14)
>     at main (/Users/johnny/FEVM-Hardhat-Kit/node_modules/hardhat/src/internal/cli/cli.ts:272:7)
> error Command failed with exit code 1.
> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Something to do with slice? Not sure if that's a package I need to install, or if it's an internal dependency that's borked. Running an MacOS on Apple silicon.

Have a look at get-address.js file. Line number 46 mentions that this behaviour is expected if the address has not received Filecoin yet.
Once you deposit Filecoin on f1 address and try to rerun the command : yarn hardhat get-address, you should be all fine.

mentions that this behaviour is expected if the address has not received Filecoin yet.

Ah, does that mean that the README isn't up to date then? It says to grab an address from Metamask, add that private key as an env variable, and then run yarn hardhat get-address.
Does this project expect a FIL address or an ETH address?

Yeah. Since the repo is currently under development, the README is for the final version which they will release soon.
You need to provide the private key of Ethereum address. The code is self-sufficient to generate FIL address for you.

You can refer my article for more details.

Ok nice! I was able to run through things using your tutorial. Thanks!


Pointer constraints being immediately removed after creation on native Wayland windows

When a Wayland-native application (in my case, Looking Glass) attempts to constrain the mouse, the constraint seems to be removed immediately on moving the mouse. Hyprland logs while attempting to reproduce this show the following:
[LOG] New mouse constraint at 25006c0
[LOG] Registered signal for owner 25067d0: 25007c8 -> 2506848 (owner: Constraint)
[LOG] Registered signal for owner 25067d0: 25007b8 -> 25067e0 (owner: Constraint)
[LOG] Constraint rechecked: 0, 0 to 1169, 609 for 2450050 (window name: )
[LOG] Registered signal for owner 1e584e0: 2450310 -> 1e58538 (owner: Mouse constraint commit)
[LOG] Constrained mouse to 25006c0
<move mouse here>
[LOG] Callback 1e58560 -> 1e58558, Mouse constraint commit removed.

Based on that final log message, it appears to me as if this call to unconstrainMouse is being fired before it should, especially since it isn't accompanied by a [LOG] Unconstrained mouse from <id> message that I observed when testing similar functionality in Minecraft, which uses XWayland.
Reproduction might be tricky for this one, as Looking Glass requires a whole host of complicated VM and PCI passthrough setup to get working, and I'm unaware of any other Wayland-native apps with similar mouse capturing behaviour. although according to #536, SDL applications seem to be exhibiting similar behaviour, so that could be another way to test this. I'm unaware of any SDL apps that try to grab the pointer off the top of my head though. In any case, reproduction should look something like:

Open a Wayland-native application that tries to grab the cursor
Try to move the mouse outside of the window

Expected: The mouse cannot be moved outside the window.
Actual: The mouse moves outside the window.

fixed in 83e4006b16e79e747888c507243c37eefabe9790

Tested, can confirm that commit fixes this issue. Thanks!


support for unprompted

I can have a look at it after the holidays, but it won't be covering much since Unprompted relies on syntax - this autocomplete script doesn't care / know about the position of tags in the prompt during completion or build a parse tree, so syntax suggestions would be very hacky and in some cases impossible with the current system.
Completion for template references like the file includes would be possible, but the rest of the shortcodes like conditions, loops, nested statements etc. not so much or at least not in an intuitive way.


Fixing bug #95

Don't think key.close(fast=True) is doing what it is supposed to do, I could not find anything on s3 object that could possible do what is needed in this case, so I just delete and create the key object again, fixing the bug

I don't understand -- what is the actual bug? How does it manifest as exception/unwanted behaviour?
Documentation for close(fast=True) is in the boto docs.

I didn't dig into the boto code but the current seek(0) is broken, I might dig into the boto code later, meanwhile if you get a chance, please have a look as well. I will monkey patch this for the time being, since I need this functionallity

Already fixed in current master fbc82cc04bf92e8c588c49c43ff5aff8234ea87d


ReptitionTime Rounding in NifTIs

Another thing I've noticed when running the validator is that very often I'll get warnings like the following:
    1: Repetition time did not match between the scan's header and the associated JSON metadata file. (code: 12

)
///func/<func_scan_name>_bold.nii.gz
Repetition time defined in the JSON (2.0 sec.) did not match the one defined in the NIFT
I header (2.01 sec.)
When I inspect the NifTI headers with 3dinfo, I do indeed get 2.01 seconds.  However, when I open up the original DICOM headers I get 2000 ms.  My guess is that there is some sort of rounding error when the NifTI headers are created (we've been using mcverter).  Would it be possible to make the validator more robust to this sort of scenario (maybe using something similar to numpy's isclose method?).

Why not fixing the TR in NifTI headers instead?

Because that would be too straightforward.


New package: Information v0.1.0

Registering package: Information
Repository: https://github.com/KwatME/Information.jl
Created by: @KwatME
Version: v0.1.0
Commit: 15ebda14ff5554e12893cc599b8810b44d7c784a
Git reference: master

This is a very generic package name, also most of the functions seem to do nothing, e.g.:
https://github.com/KwatME/Information.jl/blob/master/src/compute_mi.jl
https://github.com/KwatME/Information.jl/blob/master/src/compute_s.jl
https://github.com/KwatME/Information.jl/blob/master/src/compute_ic.jl

This is a very generic package name, also most of the functions seem to do nothing, e.g.:
https://github.com/KwatME/Information.jl/blob/master/src/compute_mi.jl
https://github.com/KwatME/Information.jl/blob/master/src/compute_s.jl
https://github.com/KwatME/Information.jl/blob/master/src/compute_ic.jl

I plan to write those functions gradually.

I plan to write those functions gradually.

@fredrikekre , I hope to keep this one. This name is general because information theoretic things are general to begin with, like Matrix.jl. I hope to keep this one.

@fredrikekre , I hope to keep this one. This name is general because information theoretic things are general to begin with, like Matrix.jl. I hope to keep this one.


Some datasets are not rendering properly with error ValueError on the Transform

Example: https://explorer.digitalearth.africa/products/s1_rtc/datasets/e17eb3ca-4fb7-59c6-ab8d-f0dd475b5a4f
Error is:

The exception is:
TemplateNotFound: _themes/deafrica/dataset.html
(3 additional frame(s) were not displayed)
...
  File "jinja2/environment.py", line 997, in get_template
    return self._load_template(name, globals)
  File "jinja2/environment.py", line 958, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
  File "jinja2/loaders.py", line 125, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "flask/templating.py", line 59, in get_source
    return self._get_source_fast(environment, template)
  File "flask/templating.py", line 95, in _get_source_fast
    raise TemplateNotFound(template)

ValueError: Expected 9 coefficients in transform. Got [40.0, 0.0002, 0.0, -2.0, 0.0, -0.0002]
(19 additional frame(s) were not displayed)
...
  File "cubedash/_dataset.py", line 87, in dataset_full_page
    return utils.render(
  File "cubedash/_utils.py", line 84, in render
    return render_theme_template(
  File "cubedash/_filters.py", line 112, in _dataset_file_paths
    return utils.get_dataset_file_offsets(dataset)
  File "cubedash/_utils.py", line 103, in get_dataset_file_offsets
    dataset_doc = serialise.from_doc(dataset.metadata_doc, skip_validation=True)

How was this dataset generated? The error is coming from validation.
Note that the eo3 spec says that transform is a 9-element tuple: https://datacube-core.readthedocs.io/en/latest/ops/dataset_documents.html
But that one is six elements.

Ok, so the Sentinel-1 documents from Sinergise only have 6 parameters, like this:
    "vh" : {
      "href" : "s3://deafrica-sentinel-1/s1_rtc/N14E000/2021/06/06/0482C8/s1_rtc_0482C8_N14E000_2021_06_06_VH.tif",
      "title" : "s1_rtc_0482C8_N14E000_2021_06_06_VH",
      "type" : "image/tiff; application=geotiff; profile=cloud-optimized",
      "description" : "polarization VH",
      "roles" : [ "data" ],
      "proj:shape" : [ 5000, 5000 ],
      "proj:transform" : [ 0.0, 0.0002, 0.0, 15.0, 0.0, -0.0002 ],
      "sar:polarizations" : [ "VH" ]
    },

(Doc is here)
I thought they could be 6 or 9 parameters, since the last three usually don't change.

Hey @Kirill888 does Datacube support 6 parameter transforms? I guess it does, since we're using the S-1 data that was indexed with 6!


Type errors from type.ts

Hi, I installed this package as it is a dependency of pjax-api. When trying to process it with TypeScript, below errors arose.
Error 1
ERROR in ./node_modules/spica/type.ts:242:7
TS2304: Cannot find name 'assert'.
    240 |     case 'object':
    241 |       if (value === null) return 'null';
  > 242 |       assert(value = value as object);
        |       ^^^^^^
    243 |       const tag: string = (value as object)[Symbol.toStringTag];
    244 |       if (tag) return tag;
    245 |       switch (ObjectGetPrototypeOf(value)) {

I am wondering where the assert came from and why was it expected to be globally available.
Error 2
ERROR in ./node_modules/spica/type.ts:243:27
TS7053: Element implicitly has an 'any' type because expression of type 'unique symbol' can't be used to index type '{}'.
  Property '[SymbolConstructor.toStringTag]' does not exist on type '{}'.
    241 |       if (value === null) return 'null';
    242 |       assert(value = value as object);
  > 243 |       const tag: string = (value as object)[Symbol.toStringTag];
        |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    244 |       if (tag) return tag;
    245 |       switch (ObjectGetPrototypeOf(value)) {
    246 |         case ArrayPrototype:

I tried to switch to the same TypeScript version as this project is using (5.4.5) but the error still exists.

BTW, I see lots of *.test.ts files, readme files, and webpack config files of this project published onto NPM. Is that expected as well?
https://www.npmjs.com/package/spica?activeTab=code

Fixed.


Show flash usage

#136 had to be reverted due to issues with file browser, restore feature with more testing. Original commit: 58f6ab9785f84d38959f86c2c6192cd244ba34d9
Issue reported on #152

I'll just repeat here what I commented on in #152:
@democloid yes all good. I'm not sure how its linked to the changes, I suspect maybe something to do with reading the filesizes from the sdcard, but I'll need to debug it properly. I'll try to get to it soon, as I find especially the filesize display if not the flash remaining an invaluable feature. I might try to tackle this as part of adding the FS in https://github.com/democloid/picoTracker/issues/171

obsolete


adding a "retryable fail" event for a test that fails but can be retried; closes #2592

Continuation of #2926.
Addresses issue #2592 by allowing reporters to take action on tests that have failed but can be retried
cc @catdad

Coverage increased (+0.005%) to 90.023% when pulling db0ace58c22294eb575fa07981a6b3f511d0c985 on issue/2529-retryable-fail-event into eeccd053b18361c342dff02d4f728bd439c7f277 on master.

I think #2529 is the right issue.

BTW, is there documents for events?
I couldn't find them in our API document.

Hiii! I'm really excited by this commit. Any chance it will be merged soon?

Even if our reporters don't support the event, shouldn't the statistics collector do so?

Perhaps the event name should also be changed - maybe "test retry" is more appropriate?

@outsideris wrote:

BTW, is there documents for events?
I couldn't find them in our API document.

Have work in progress for API event documentation.
Working with @Munter on some Jekyll (??) issues generating event-related JSDoc for site correctly.

Looks like jsdoc generates broken output when using their @events syntax :'(

@plroebuck I am not familiar with the statistics collector. I'd be happy to update it if you can point me in the right direction.
As for the event name, I tried following the convention of some other names I saw, but this was a very long time ago. I'd be happy to change that as well. I don't know that "test retry" totally represents what the event is. The event specifies that a test failed, but will be retried. To me, "test retry" means that a retry has occurred (which isn't false), rather than that a retryable test has failed and is providing me with the failure information.

Any update on this feature? Is this getting merged?

renamed this event to retry and fiddled with the tests

the coverage decrease is nonsensical


Typed Transaction Envelope: EIP-2718 for Berlin

Implement https://eips.ethereum.org/EIPS/eip-2718 for Berlin

This depends on finding a solution for: https://github.com/ethereum/pyrlp/issues/112#issuecomment-785326962 which may or may not include pyrlp changes.


Rereading zone files without...

I was wondering if you have a way to reread the zone files on a running bind container without webmin -> our zone files are managed in a git repo and installed with a Makefile.  Currently we restart bind.
I would like to just do a command line to tell the bind container to reread.  I thought I would ask you to see if you had done something like that or had any ideas before I set out to compose a way.  Thanks!

@pnelsonsr send the HUP signal to the container docker kill -s HUP bind to reload bind.

Oh yeah...  That's perfect!  Just tried it and I see a reload.  I'm glad I asked because I was going down the rndc road.  This is what I hoped for.  Thanks!


Minecarts don't smoothly transition through portals

I have a feeling that this is more of an issue with how Minecraft handles moving minecarts but it'd be sick if you could fix this somehow.

@qouteall  Why is this marked low prio? This seems like it could be another defining feature of this mod. Vanilla notoriously doesn't allow minecarts with entities to pass for example and fixing that in IP could enable smooth nether-enabled fast transportation networks (like the one I'm building :).

Or maybe you have some pointers on why it's hard to fix? like notes or something (relevant methods/classes). I could try to research and make a PR for that myself if given some hints (I never wrote any Java in my life but did modify several Java programs on bytecode level).

In MC, the client player's movement is mainly determined by client side and synchronized to server side (server side validates the movement and send teleport packet to client if invalid). The position of non-client-player entities are determined by server side and is interpolated. So making non-client-player-entity to smoothly transition through portal requires different techniques than client player.

Makes sense. I can see how player entities might be an issue, but for example mobs would not have this problem right? I assume they are controlled by server.
If a minecart can pass through portal OK and a sheep can do the same, then both of them together should be able to? Or are there similar hidden issues?

oh yeah... I just realized I started this discussion in the wrong issue haha

Now that the support is apparently in with the vanilla portals in 1.21, is it possible to make this work with Immersive Portals?
I tried and the cart kind of goes half way through and gets stuck. No weird visual glitching however. :)


table can't be parsed well

@ddove one of the tables in this article has format issue. Even GITHUB can't parse well.  I made a <!-- Loc comment in the .md text. Could you please check further? Thanks!
@v-jacard for tracking.

Hi @SunnyDeng, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@SunnyDeng : Thanks for your contribution to the Azure documentation! The author, @ddove, has been notified to review your proposed change.

Hi @SunnyDeng , please merge with your fix. #Merge-as-is #sign-off

@SunnyDeng @ddove
The edit is a loc comment, and shouldn't be published. Please provide a fix that is appropriate to merge.
Thanks!
--Carolyn


Add support for the Julia programming language.

Continues discussion at Twitter:

https://twitter.com/ismael_vc/status/702684671293857792

There is a very active chat room for the Julia language, here!

https://gitter.im/JuliaLang/julia

OK, Thank you moving from twitter to here.
I think julia maybe work with SL4A,
Because SL4A just launch the language binary in terminal app
and you said
"I can run Julia from Arch Linux Linux Deploy app in my rooted cellphone" in your tweet.
Next, you need to package the deploy app and
register it to SL4A system as android application like py4a.
Please fork this project or SL4A language branch,
or copy them for julia.

@Ismael-VC
Are you familiar with the language? I can add the hook inside SL4A to recognize the language but I am pretty sure you will need a module on the Julia said to talk back to the rpc server. I can help you out with that but I don't know julia syntax...

@ainsophical yes definitely! Thank you so much, that would be awesome, please let me know what I can do from the Julia side in order to help you make this possible. :+1:
The Julia syntax is easy! :smile:

https://learnxinyminutes.com/docs/julia

It's a little outdated (v0.3) but for that introductory tutorial, syntax has remain the same AFAIKT.

@Ismael-VC
not really interested in julia but i think it would be cool to get more interpreted languages hooked into SL4A for a broader audience of this really cool app...
we need to hooked julia into the known language list in SL4A. (Took care of this.... easy)
We need to compile Julia into an arm executable so it can run on android, and add any modules that are not c based. Then package this all up in an apk. I can start working on this as I want to get the process down so I can get other languages working in the future...
We also need an android module for julia. If you want you can convert this python module to julia. Once I get the template going we can test it and see how it works...
import collections
import json
import os
import socket
import sys

PORT = os.environ.get('AP_PORT')
HOST = os.environ.get('AP_HOST')
HANDSHAKE = os.environ.get('AP_HANDSHAKE')
Result = collections.namedtuple('Result', 'id,result,error')

class Android(object):

  def __init__(self, addr=None):
    if addr is None:
      addr = HOST, PORT
    self.conn = socket.create_connection(addr)
    self.client = self.conn.makefile()
    self.id = 0
    if HANDSHAKE is not None:
      self._authenticate(HANDSHAKE)

  def _rpc(self, method, *args):
    data = {'id': self.id,
            'method': method,
            'params': args}
    request = json.dumps(data)
    self.client.write(request+'\n')
    self.client.flush()
    response = self.client.readline()
    self.id += 1
    result = json.loads(response)
    if result['error'] is not None:
      print result['error']
    # namedtuple doesn't work with unicode keys.
    return Result(id=result['id'], result=result['result'],
                  error=result['error'], )

  def __getattr__(self, name):
    def rpc_call(*args):
      return self._rpc(name, *args)
    return rpc_call

@ainsophical where does self._authenticate comes from? I think the code snippet above is incomplete.

Oh ok, I found it at:

https://github.com/cuckoosandbox/community/blob/master/agent/android/python_agent/python/extras/python/android.py

If HANDSHAKE is not None, calling Android() would raise an: AttributeError: 'Android' object has no attribute '_authenticate'
Is this a :beetle:?

Julia ARM executable, the one I've tested on Android, just untar and run:

https://status.julialang.org/download/linux-arm

Three Julia packages would be needed, all are 100% julia code:

https://github.com/JuliaLang/JSON.jl
https://github.com/JuliaLang/Compat.jl (required by JSON)
https://github.com/blackrock/NamedTuples.jl

@Ismael-VC
i see what you mean and it didn't make much sense to me either. it's not a bug but i can't honestly say i know exactly how it works with a bit of prying into the code yet.
i ran the android.py module with that conditional commented out and got this error in logcat.
V/sl4a.JsonRpcServer:117: Sent: {"id":0,"result":null,"error":"java.lang.SecurityException: Authentication failed!"}

i found this in JsonRpcServer.java
private boolean checkHandshake(String method, JSONArray params) throws JSONException {
        return method.equals("_authenticate") && this.mHandshake.equals(params.getString(0));
    }

inherited through the socket connection? not sure but yes that part is needed...

@ainsophical based on the python and ruby versions, I've come up with this:
__precompile__()    # Allow for whole module precompilation.

module AndroidConnection

# It seems only this package is needed.
using JSON

export Android

# Types don't own function methods.
type Android
    client::TCPSocket
    id::Int
end

# Type constructor
function Android()
    host = ENV["AP_HOST"]
    port = ENV["AP_PORT"]
    handshake = ENV["AP_HANDSHAKE"]
    client = connect(host, port)
    id = 0
    _authenticate(handshake)    # WTF!?
    new(client, id)
end

function _rpc(a::Android, method::Symbol, args...)
    a.id += 1
    request = JSON.json(Dict(
        "id" => a.id,
        "method" => method,
        "params" => args
    ))
    println(a.client, request)
    flush(a.client)
    response = readline(a.client)
    JSON.parse(response)    # Last value is returned.
end

# In Julia `Base.getfield` (`foo.bar`) can't be extended "yet", instead
# `Base.getindex` (`foo[bar]`) is used.
Base.getindex(a::Android, method::Symbol) = (args...) -> _rpc(a, method, args...)

end    # End module.

Still I can't understand how does self._authenticate works, @kuri65536 could you give me a hint on this?

This is the Ruby version:
AP_PORT = ENV['AP_PORT']
AP_HOST = ENV['AP_HOST']
AP_HANDSHAKE = ENV['AP_HANDSHAKE']

require 'json/pure'
require 'socket'

def trap(*ignore)
  # Trap does not work on Android.
end

class Android

  def initialize()
    @client = TCPSocket.new(AP_HOST, AP_PORT)
    @id = 0
    _authenticate(AP_HANDSHAKE)
  end

  def rpc(method, *args)
    @id += 1
    request = {'id' => @id, 'method' => method, 'params' => args}.to_json()
    @client.puts request
    response = @client.gets()
    return JSON.parse(response)
  end

  def method_missing(method, *args)
    rpc(method, *args)
  end

end

I would expect this to fail like this:
julia> ENV["AP_HOST"] = "google.com"
"google.com"

julia> ENV["AP_PORT"] = 80
80

julia> ENV["AP_HANDSHAKE"] = :whatever
:whatever

julia> using AndroidConnection

julia> Android()
ERROR: UndefVarError: _authenticate not defined
 in call at none:21

I'm also unsure as to when to increment id since Python does it after the response line, but Ruby does it before the request line! :worried:

i dont have it figured out yet either but one thing you should know that there is a language class in SL4A that can be extended for each new language. Each one has to have something that looks for the import statement and the initialization of the droid object like so... it might be overriding the error as sl4a controls the interpreter as well and handles the statement itself. ive only been working on this project for a couple months now and its a bit to get a good handle on the internals so pardon not having a definite answer yet.
public class PythonLanguage extends Language {
    public PythonLanguage() {
    }

    protected String getImportStatement() {
        return "import android\n";
    }

    protected String getRpcReceiverDeclaration(String rpcReceiver) {
        return rpcReceiver + " = android.Android()\n";
    }

ill report back when i find out where this leads to get to that snippet i showed you before as it was the only line in the code that was _authenticate
as far as the increment, i dont think it matters much whether it starts at zero or one / before or after the request. it was probably just the preference of the person that coded the specific language module.. the rpc receiver loop doesnt look like it cares just so long as it has an id to pass as a param with each call to it..

This file has tests for the handshake:

https://git.io/vatbN

This lines are also relevant, inside JsonRpcServer.java:

https://git.io/vatbF

Ok, I think I got this:

SL4A.jl:

__precompile__()

module SL4A

import JSON

export Android

const HOST = ENV["AP_HOST"]
const PORT = parse(Int, ENV["AP_PORT"])
const HANDSHAKE = ENV["AP_HANDSHAKE"]

typealias String AbstractString

type Android
    client::TCPSocket
    id::Int

    function Android()
        droid = new(connect(HOST, PORT), 0)
        droid(:_authenticate, HANDSHAKE)
        return droid
    end
end

function Base.remotecall_fetch(droid::Android, method::String, params...)
    request = JSON.json(Dict("id" => droid.id, "method" => method, "params" => params))
    println(droid.client, request)
    flush(droid.client)
    response = readline(droid.client)
    result = JSON.parse(response)
    droid.id += 1
    return result
end

Base.call(droid::Android, method::String, args...) = remotecall_fetch(droid, method, params...)
Base.call(droid::Android, method::Symbol, args...) = call(droid, string(method), params...)

end

JuliaLanguage.java:

package com.googlecode.android_scripting.language;

public class JuliaLanguage extends Language {
    @Override
    protected String getImportStatement() {
        return "using SL4A\n";
    }

    @Override
    protected String getRpcReceiverDeclaration(String rpcReceiver) {
        return rpcReceiver + " = Android()\n";
    }

    @Override
    protected String getNull() {
        return "nothing";
    }

    @Override
    protected String getApplyOperatorText() {
        return "(";
    }

    @Override
    protected String getLeftParametersText() {
        return ", ";
    }
}


Fix DOMDocument's incompatibility with HTML5

DOMDocument never use constructor specified charset, instead meta-tag or XML-PI are used absolutely.
So <meta charset="UTF-8" /> and detected charset from HTTP header was totally ignored by DOMDocument.
See: http://www.php.net/manual/ja/domdocument.loadhtml.php#95251

Sorry, I didn't know that this repository is not for development.


Gitea broken in latest commit

Description
In the latest commit, Gitea is complete broken (see Screenshot).  It looks like the assets file serves no content.
Gitea Version
288c2e8c48991e5e425fd5ffe1959f4b3d0b675a
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/JakobDev/f8438f293ae4ea7fba877896f572914e
Screenshots

Git Version
2.39.2
Operating System
Manjaro
How are you running Gitea?
Build with TAGS="bindata sqlite sqlite_unlock_notify" make build
Database
None

I've been experiencing the same thing. Running without the bindata tag serves as a workaround for now.

I cannot reproduce this on my local machine.

I can reproduce, need move the binary out of the code repo and start it.

I can now reproduce it. It's only for the installation page. After installation is finished, it will become normal.

Caused by #23495, 1.19 branch is also affected. @wxiaoguang

See:  Fix incorrect CORS failure detection logic #23844
1.19 is not affected.


Make sure sbJoin programming rollback happens on each error

This is a follow-up of #1716 fix after https://github.com/docker/libnetwork/pull/1716#discussion_r111647318 revealed  the logic was broken in another error path by a recent change.

Moved the sbJoin function to use named return error variable, to avoid to break the logic again in future
Improved the error messages

SGTM (not a maintainer)

LGTM


Composition design review

Most changes are targeting back-wards compatibility.

@coroa I don't know if you even have time to review this. Otherwise I'd just merge this. The only thing that I was wondering about: was there any reason for not defining LinearExpression as a dataclass?

Agreed, I had quite some time issues the last week. Not much better this week though :).
I didn't dataclass some of the things because, i had intended to write actual __init__ functions as well as __repr__, so that there is not much benefit to dataclasses left. But it was all just on a whim.


Port JavaMapForEachInspection

#35  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ermattt and the rest of your teammates on  Graphite