error display with jquery validate, textbox and select

I'm seeing a strange issue with error display when there's a select box on the page. I'm using materializecss 0.97.0 and jquery.validate in an asp.net mvc app.
If I don't touch the select, everything displays fine on validation:

But as soon as I touch the select, the error displays incorrectly, and the select opens (even though it has no errors);

I don't think there's anything tricky in my code:
    <form id="testForm">

            <input id="last_name" type="text" class="validate" required>
            Last Name

            <input id="first_name" type="text" class="validate" required>
            First Name

        @Html.Partial("_LocationPartial")
        <input class="submit" type="submit" value="Submit">
    </form>

But I'm obviously doing something dumb, because this seems to obvious a problem for someone not to have run across it already.
Any ideas?

I applied some CSS and it appears to be working now, but I don't know if this can be improved or not:
label:after {
	transition-property: all !important;
	font-size: 0.8rem;
	transform: none;
}
label:not(.active):after {
	transform: translateY(-140%);
}

Essentially, the error message is just transitioned back to where it should be when the textbox is triggered.
Another option would be to 'force' the "active" class on elements with errors, but I couldn't quickly come up with a clean way to do this.

can you post a codepen so its easier for us to debug?

@DigiTechs css helped with the display issue (thanks!), but the select is still opening on validation. Here's a jsfiddle: http://jsfiddle.net/ce208m4L/

I am having the same issue with the select validation on angularjs. It seems that the input validation works correctly but the added element select-wrapper for view is not updating the validation classes.

Hey, I see you have used Jquery Vallidation Plugin!! I've been trying to use this, But it wont validate!! Can you guys help?

I have the same problem

This solves all problems!
$("select[required]").css({display: "inline", height: 0, padding: 0, width: 0});

I just want to add that if you include length attribute then after the validation occurs the control that had focus will gain it again which will result in validation removal. This is happening with v0.97.5

I'm from Ecuador, my English is not so good.
About your problem, you have to add the name attribute to the input to work!!
Saludos.

I think you should change your HTML markup:
https://jsfiddle.net/vnsb4udk/5/

@FabricioLugao  - How come the validation doesn't work on the first_name?  This is a problem I've run into.  One field works just fine but it seems like it ignores other "required" fields.

This issue should be resolved in the more recent versions, The demo by @FabricioLugao shows the layout on select working correctly.


ADBDEV-3201 6.22.1 sync

Here are some reminders before you submit the pull request

[ ] Add tests for the change
[ ] Document changes
[ ] Communicate in the mailing list if needed
[ ] Pass make installcheck
[ ] Review a PR in return to support the community

I'm going to revert a previous version #240 of the patch that was cherry-picked to our fork, but not committed to the upstream. The 6.21.1 release contains the finish version of the patch - c3bb04436d53bc4c5bd5e66373f60523c2d710a9. Thanks, @maksm90.


ko resolve support for label filtering

With ko apply I can supply a label filter to only deploy the pieces matching a particular label filter.
For example:
ko apply -f config -l "networking.knative.dev/ingress-provider!=istio"

Will install knative/serving without the Istio elements.  However, there are two problems with this:

This still builds filtered things (this is handled by kubectl).
This doesn't work with ko resolve.

I'd like to leverage the latter portion of this to enable us to release separate release bundles, e.g. config/ would contain all of the "default" implementations, but we can still create split release bundles for core, istio, cert-manager separately using the label filter.
cc @n3wscott @jonjohnsonjr @ImJasonH

If we can land this in the next week or so, we can use this to release 0.6 👍

Fixed by https://github.com/google/ko/pull/46


Add CORS for the feedback route

@Svenstar74 Could you please install black "pip install black" and lint all files with "black ."
Thanks


Add retry logic for 500 and 401 errors from CMR

We've been seeing a lot of 500 and 401 errors while testing for cloud downloads. This adds in some retry logic.
I'm not really sure of a great way to test this unfortunately.

Rebased onto develop

@mike-gangl did you have any comments on this one?


Local development runs of google-cloud-intellij don't always seem to re-deploy the 'google account' plugin

I frequently see the 'Google Plugin Compatibility Problem' when running our 'Cloud Tools on IntelliJ' run configuration for local development.  This shouldn't be possible as both plugins should be on the same version and deployed together.

This is driving me nuts.

if you run a gradle clean this should fix the problem. I agree though that we should figure out why it happens in the first place though

obsolete.


Not respecting pre-existing selection

Does not respect initial values. For instance I have a form which has a default selection (from a previous submission). This value is correct and present without the plugin. When I apply the plugin the selection is nulled and the .val() is incorrect.
It would be nice if the plugin respected preexisting values.
Here is my code.
<select class="form-control select width-150" id="RoleState" name="RoleState">
<option value="">Role State</option>
<option value="0">Pending</option>
<option selected="selected" value="1">Approved</option>
<option value="2">Rejected</option>
</select>

After I apply .dropdown() the selection becomes the first (RoleState).

Fix

                // If is a single select, selected the first one or the last with selected attribute
                if (!multi) {
                    var $selected;
                    if ($select.find(":selected").length) {
                        $selected = $select.find(":selected").last();
                    }
                    else {
                        $selected = $select.find("li").first();
                    }
                    methods._select($dropdown, $selected);
                } else {
                    methods._select($dropdown, $select.find(":selected"));
                }

Reopen, so this can be merged.

May you send a PR please?

Pushed. Please review. JS is not my strongest language.

+1 , with the fix of FezVrasta/dropdown.js#15 still without work

line 293


Various improvements to test-compress cmake script.

PR #939 should be merged first.
This adds writing of file differences using diff tool.
Added status messages to the script.
Write all temporary files to CMake's Testing/Temporary directory.

Rebased.

By the way this is what the output looks like. In this example I just add a null byte unto the end of the file when writing uncompressed.


Receiving error on startup in webpack -Expected diagnostics to start

/Users/kelly/dashboard/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:22
throw error;
^
Error: Expected diagnostics to have start
at createFromDiagnostic (/Users/kelly/dashboard/node_modules/fork-ts-checker-webpack-plugin/lib/NormalizedMessage.js:22:23)
at Array.map ()
at IncrementalChecker.getDiagnostics (/Users/kelly/dashboard/node_modules/fork-ts-checker-webpack-plugin/lib/IncrementalChecker.js:147:78)
at run (/Users/kelly/dashboard/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:13:31)
at process.on.message (/Users/kelly/dashboard/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:38:5)
at process.emit (events.js:182:13)
at emit (internal/child_process.js:812:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
was working a bit ago, i've uninstalled the modules and re-installed. node 10.12. webpack 4.8.2.
any thoughts?

We've just changed to use es6 code rather than es5 code with 0.5.0... but given you're on node 10 that should be fine...
https://github.com/Realytics/fork-ts-checker-webpack-plugin/blob/master/CHANGELOG.md

downgrading to before 0.5.0 is working. we are compiling node_modules as well, maybe that is the issue. i'll try excluding this package.

that was it.
{
      test: /\.js$/,
      exclude: [/@babel(?:\/|\\{1,2})runtime/, /fork-ts-checker-webpack-plugin/],
      use: [
        {
          loader: 'babel-loader',
          options: {
            cacheDirectory: true,
            cacheCompression: false,
            compact: false,
            plugins: ['@babel/plugin-syntax-dynamic-import'],
            presets: ['@babel/preset-env'],
          },
        },
      ],
    },

we are doing this to account for some modules switching to only es6 code to support older browswers.


error connecting android to pc

Hi Tans5,
when i connect two android phones to each other on a LAN the app works fine. but when i try connecting a phone and a pc selecting the pc as a server, the android app does find the pc and ip address but cant connect and throws error -> Waiting Response timeout: 2000 ms.
Am I missing something or the android version isn't supposed to be used in conjunction with the desktop version. Thanks.

Please check Windows firewall, Use ping command to check phone and PC connection. Android phone need adb tools to use ping command.

Thank you, Windows firewall was blocking it. It works well now


[SPARK-43261][PYTHON] Migrate TypeError from Spark SQL types into error class.

What changes were proposed in this pull request?
This PR proposes to migrate TypeError from Spark SQL types into error class.
Why are the changes needed?
To improve PySpark error
Does this PR introduce any user-facing change?
No API change, only error improvement.
How was this patch tested?
The existing CI should pass

CI passed. @zhengruifeng Could you take an another look when you find some time?

merged to master


expose signature to hex via rosetta.ts

This is a draft of the possible solution for the issue/RFC #1404
in draft as tests are still being written

going to close this and re-open with a fresh branch after #1414 is merged


Not able to mount files in driver pod

Unable to mount files on driver pod.
Below is the sample yaml file I am using
apiVersion: "sparkoperator.k8s.io/v1beta2"
kind: SparkApplication
metadata:
  name: Test-Work
  namespace: spark-operator
spec:
  sparkVersion: 3.0.0
  type: Scala
  mode: cluster
  image: "mysparkimage:latest"
  imagePullPolicy: IfNotPresent
  mainClass: HelloWorld
  mainApplicationFile: "local:///home/hadoop/app/lib/my-jar.jar"
  timeToLiveSeconds: 360

  restartPolicy:
    type: Never
  volumes:
    - hostPath:
        type: FileOrCreate
        path: /Users/osamaanwer/code/config.yaml
      name: config-yaml
    - hostPath:
        type: FileOrCreate
        path: /Users/osamaanwer/code/my-jar.jar
      name: my-jar

  driver:
    cores: 1
    coreLimit: "1"
    memory: "512m"
    labels:
      version: 3.0.0
    serviceAccount: spark
    volumeMounts:
      - mountPath: "/home/hadoop/config.yaml"
        name: config-yaml
      - mountPath: "/home/hadoop/app/lib/my-jar.jar"
        name: my-jar
  executor:
    cores: 1
    instances: 1
    memory: "512m"
    labels:
      version: 3.0.0
    volumeMounts:
      - mountPath: "/home/hadoop/config.yaml"
        name: config-yaml
      - mountPath: "/home/hadoop/app/lib/my-jar.jar"
        name: my-jar

Spark operator details:
  NAME      	NAMESPACE     	REVISION	UPDATED                             	STATUS  	CHART               	APP VERSION
my-release	spark-operator	1       	2021-03-01 18:34:33.630578 +0500 PKT	deployed	spark-operator-1.0.7	v1beta2-1.2.0-3.0.0

I installed with the following command (did installed with mutating webhook):
helm install my-release spark-operator/spark-operator --namespace spark-operator --set enableWebhook=true
Note:
I am able to mount with following way
sparkConf:
    "spark.kubernetes.driver.volumes.hostPath.aws.mount.path": "xyz"
    "spark.kubernetes.driver.volumes.hostPath.aws.options.path": "xyz"

There are a few open issues around the webhook not working. I resolved my issue by setting image.tag to latest. For your issue though, try using webhook.enable instead of enableWebhook. That should be the correct property to enable the webhook.
https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/charts/spark-operator-chart/values.yaml#L66

@michael-barker thanks for responding, I do try what you suggested, now I see spark-operator webhook pod is created but still volumes are not mounted.
I am seeing the following error in spark operator pod logs:
2021/03/03 18:40:18 http: TLS handshake error from <IP_ADDRESS>:61970: remote error: tls: bad certificate

Yup, that's the same issue I had and others are having. Setting the tag to latest fixed it for me.

@michael-barker can you tell me which image tag you are referring too? is it spark image or spark operation?
I did install with this command:
helm install my-release spark-operator/spark-operator --namespace spark-operator --set webhook.enable=true

Set the chart value image.tag to latest.

I have the same issue. I uninstall the spark-operator and reinstall it with this command. Then it finally works!
helm install my-release spark-operator/spark-operator --namespace spark-operator --set webhook.enable=true --set image.tag=latest

Thank you @michael-barker !

Same problem here, and same fix. Thanks, @michael-barker, and @ChingTsai


flux cannot work with kserve controller

/kind bug
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
I use fluxCD to manage InferenceService file , but I met an error here.
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
  name: intention-and-similar
spec:
  predictor:
    model:
      image: pytorch/torchserve-kfs:0.6.0-gpu
      modelFormat:
        name: pytorch
      name: ''
      resources:
        limits:
          memory: 10Gi
          nvidia.com/gpu: '1'
        requests:
          memory: 9Gi
          nvidia.com/gpu: '1'
      runtime: kserve-torchserve
      storageUri: pvc://ai-pv-claim/intention-and-similar

log in kserve-controller-manager-79ccd97ff-rtjhn pod:
2023/01/11 07:00:09 http: panic serving <IP_ADDRESS>:43034: assignment to entry in nil map
goroutine 4090261 [running]:
net/http.(*conn).serve.func1()
	/usr/local/go/src/net/http/server.go:1802 +0xb9
panic({0x186b040, 0x1d47cb0})
	/usr/local/go/src/runtime/panic.go:1047 +0x266
github.com/kserve/kserve/pkg/apis/serving/v1beta1.(*InferenceService).DefaultInferenceService(0xc00184ed80, 0xc002990000, 0xc000984530)
	/go/src/github.com/kserve/kserve/pkg/apis/serving/v1beta1/inference_service_defaults.go:86 +0xfd
github.com/kserve/kserve/pkg/apis/serving/v1beta1.(*InferenceService).Default(0xc00184ed80)
	/go/src/github.com/kserve/kserve/pkg/apis/serving/v1beta1/inference_service_defaults.go:79 +0x17d
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*mutatingHandler).Handle(_, {_, _}, {{{0xc001659b30, 0x24}, {{0xc001103110, 0x11}, {0xc002b72858, 0x7}, {0xc002b72860, ...}}, ...}})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.2/pkg/webhook/admission/defaulter.go:66 +0x1fe
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).Handle(_, {_, _}, {{{0xc001659b30, 0x24}, {{0xc001103110, 0x11}, {0xc002b72858, 0x7}, {0xc002b72860, ...}}, ...}})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.2/pkg/webhook/admission/webhook.go:146 +0xa2
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).ServeHTTP(0xc000a2e780, {0x7f8e55e4a300, 0xc000f11db0}, 0xc002056f00)
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.2/pkg/webhook/admission/http.go:99 +0xef0
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1({0x7f8e55e4a300, 0xc000f11db0}, 0xc000f11db0)
	/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xd4
net/http.HandlerFunc.ServeHTTP(0x1d7da20, {0x7f8e55e4a300, 0xc000f11db0}, 0x7f8e7d015a68)
	/usr/local/go/src/net/http/server.go:2047 +0x2f
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1({0x1d7da20, 0xc0014c5c00}, 0xc002056f00)
	/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0x92
net/http.HandlerFunc.ServeHTTP(0xc0009e8940, {0x1d7da20, 0xc0014c5c00}, 0xc00127a800)
	/usr/local/go/src/net/http/server.go:2047 +0x2f
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2({0x1d7da20, 0xc0014c5c00}, 0xc002056f00)
	/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:76 +0xa2
net/http.HandlerFunc.ServeHTTP(0x7f8e55fbf538, {0x1d7da20, 0xc0014c5c00}, 0xc0014c5c00)
	/usr/local/go/src/net/http/server.go:2047 +0x2f
net/http.(*ServeMux).ServeHTTP(0xc00194cf38, {0x1d7da20, 0xc0014c5c00}, 0xc002056f00)
	/usr/local/go/src/net/http/server.go:2425 +0x149
net/http.serverHandler.ServeHTTP({0x1d701a8}, {0x1d7da20, 0xc0014c5c00}, 0xc002056f00)
	/usr/local/go/src/net/http/server.go:2879 +0x43b
net/http.(*conn).serve(0xc0010fbcc0, {0x1d840d8, 0xc000a44210})
	/usr/local/go/src/net/http/server.go:1930 +0xb08
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:3034 +0x4e8
Logs from 1/11/2023, 1:55:01 PM

What did you expect to happen:
What's the InferenceService yaml:
[To help us debug please run kubectl get isvc $name -n $namespace -oyaml and paste the output]
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

Istio Version: 1.13.5
Knative Version: None
KServe Version:  v0.9.0
Kubeflow version:
Cloud Environment:[k8s_istio/istio_dex/gcp_basic_auth/gcp_iap/aws/aws_cognito/ibm]
Minikube/Kind version:
Kubernetes version: (use kubectl version):  v1.22.15-eks-fb459a0
OS (e.g. from /etc/os-release):
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"

@life-learner1 Do you have the configmap inferenceservice-config installed in kserve namespace?


identity_wrap gives wrong results when the operator is given as a callable

The method identity_wrap returns the wrong result when the operator is given as a callable. For example when the matrix is given, it returns the operator in the eigenbasis
import scqubits as scq
from scqubits.utils.spectrum_utils import identity_wrap
tmon = scq.Transmon(EJ=8.9, EC=0.4, ng=0.3, ncut=30)

identity_wrap(tmon.n_operator(), tmon, [tmon], evecs=None,)

whereas when the callable is given, just the truncated matrix is returned.
import scqubits as scq
from scqubits.utils.spectrum_utils import identity_wrap
tmon = scq.Transmon(EJ=8.9, EC=0.4, ng=0.3, ncut=30)

identity_wrap(tmon.n_operator, tmon, [tmon], evecs=None,)

This functionality also affects InteractionTermStr in hilbert_space.py, which does not convert the basis of the operator before truncation.
tmon = scq.Transmon(EJ=8.9, EC=0.4, ng=0.3, ncut=30)
hs = scq.HilbertSpace([tmon, res])
hs.add_interaction(expr="5*(phi_op)*(res_op)",
                   op1=("phi_op", tmon.n_operator),
                   op2=("res_op", res.phi_operator),
                   )
hs.interaction_hamiltonian()

The operators here are not converted into eigenbasis before truncation.

The code in hilbert_space.py and spectrum_utils.py, a qutip.Qobj or a callable is treated differently and the parameter op_in_eigenbasis used in the methods identity_wrap and convert_operator_to_qobj. In the above two commits, the parameter op_in_eigenbasis is explicitly set whenever necessary, making the behavior to make the basis change more obvious and explicit. The above two commits also fix the above issue. All the tests are passing. @jkochNU Please review and let me know if you think this is fine. Otherwise, I am ready to close this issue.


Commit obtained by queryCommits does not contain files

If I use queryCommits to get a list of commits and then call getFiles() on any of the commits in the list, it will return 0 files. However if I instead directly get a commit by sha1 and then call getFiles() it will return the appropriate file count. Both commit objects represent the same commit, they should have the same file count:
PagedIterable<GHCommit> commits = ghRepo.queryCommits().path( fullPath + "/" + fileName ).list();
for (GHCommit commit : commits) {
    GHCommit testing = ghRepo.getCommit( commit.getSHA1() );
    System.out.println( "FileCount = " + commit.getFiles().size() );
    System.out.println( "FileCount = " + testing.getFiles().size() );
}

This will print out:
FileCount = 0
FileCount = 1

Fixed in 1.72.


Update .vimrc.bundles

Removed repo that prompted for Github authentication.
I have installed this package on hundreds of systems and this has annoyed me one last time. Regardless if this PR is accepted, please hit the thumbs up button on this if you too have been annoyed by the prompt asking you to sign into Github in order to install this amazing package.

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


Updating burn method to update circulating supply

This replicates the code for minting tokens but subtracts the burnt tokens from the circulating supply

@MartinMinkov Updated this to update the circulating currency when using the burn in line with the mint method. As it's used as an example in the docs, probably worth including? This breaks the test though 😕 Any pointers to fix those up?


Fixed set_period() not updating decomposer parameters

Also introduces a way to update parameters in a component.
Resolves #3771

@eccabay I did a quick ctrl+f search for places that update parameters and this should be it. I think this is the only place where were updating the parameters from inside the component itself.


Update bluescreen.md

Updated the URL to the correct article on itprotoday

Docs Build status updates of commit 7bb1ef2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/bluescreen.md
:white_check_mark:Succeeded
View

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

Docs Build status updates of commit 7bb1ef2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/bluescreen.md
:white_check_mark:Succeeded
View

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

Docs Build status updates of commit 1bf9a06:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/bluescreen.md
:white_check_mark:Succeeded
View

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


Update dependency clean-webpack-plugin to v3

This PR contains the following updates:

Package
Type
Update
Change

clean-webpack-plugin
devDependencies
major
1.0.1 -> 3.0.0

Release Notes

johnagan/clean-webpack-plugin
v3.0.0
Compare Source

Removed Node 6 support
Removed webpack 2 support
cleanOnceBeforeBuildPatterns use emit hook instead of compile
Do not clean files if webpack errors are present during initial build
Replaced default export with named export CleanWebpackPlugin

// es modules
import { CleanWebpackPlugin } from 'clean-webpack-plugin';

// common js
const { CleanWebpackPlugin } = require('clean-webpack-plugin');

v2.0.2
Compare Source
v2.0.1
Compare Source
v2.0.0
Compare Source
Relavant:

README.md
Additional v2 information

Changes:

No configuration is needed for standard usage (cleans webpack's output.path)
By default during webpack's watch mode, only files created by webpack are removed
Because del is used, globbing is supported
Plugin is tested directly via webpack
All supported versions are tested
Windows is tested via appveyor (no mocked tests)
Complete build system including prepublish hooks and git prepush/commit hooks
Written with Typescript

Additional notes:

Moved to CircleCI because Travis CI was sold and looks to now be in maintenance mode.
Replaced Coveralls with codecov because automatic build merging works. This is important because of windows/different webpack version testing

Closes Issues: #53 #55 #67 #73 #80 #85 #86 #89 #91 #92 #93 #98
Closes PRs: #39 #74
Massive props to @chrisblossom for working on this and pushing it through.

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

PR has been edited
:construction_worker: This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.


chore(colors): correct yellow and lightYellow hexcodes and add to theme

adding yellow and lightYellow colors to the theme

Codecov Report

Merging #453 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #453   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          43     43
  Lines         398    398
=====================================
  Hits          398    398

Impacted Files
Coverage Δ

packages/core/src/theme.js
100% <100%> (ø)
:arrow_up:

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 261bc94...b88cb7a. Read the comment docs.


[release-1.27] Make /db/info available anonymously from localhost

Proposed Changes

Backport https://github.com/k3s-io/k3s/pull/10001

The Rancher CAPR planner apparently queries this anonymously to get the IP address of the first etcd node (to be used as the init node), instead of just using the address of the first node with the etcd label.

https://github.com/rancher/rancher/blob/3a426b5ba059358f8874573c0a98d01bfda25a47/pkg/capr/planner/instructions.go#L105-L106
https://github.com/rancher/rancher/blob/3a426b5ba059358f8874573c0a98d01bfda25a47/pkg/capr/planner/store.go#L612-L624

K3s itself uses auth when retrieving this resource, but since Rancher does not we need to make it available anonymously again - at least from localhost.
Types of Changes
integration/ bugfix
Verification

curl -ks https://localhost:6443/db/info on an etcd node.
Build a split-role cluster from Rancher, confirm all the nodes join properly.

Testing
Linked Issues

https://github.com/k3s-io/k3s/issues/10008

User-Facing Change

Further Comments

virtualbox image for btrfs test appears to be broken; merging


Have bot ignore quotes " in !gimme parameters

Removed quotes from instructions. Will open new issue if problem comes back.


feat: adds id trapdoor and upgrades deps versions

@weijiekoh Could you take a look?

All looks great!
Clients should provide a 31-byte random value as the identity trapdoor, correct?

Exactly. Thanks!
On Sat, Aug 24, 2019 at 8:24 PM Koh Wei Jie<EMAIL_ADDRESS>wrote:

All looks great!
Clients should provide a 31-byte random value as the identity trapdoor,
correct?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kobigurk/semaphore/pull/27?email_source=notifications&email_token=AA23MGBGQPVKHKNQOTNUMEDQGFVEPA5CNFSM4IPFK3VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CEG2Q#issuecomment-524567402,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA23MGETBTLWLRRPTQ4A7ETQGFVEPANCNFSM4IPFK3VA
.


Add icon

I think this is how to add an icon to a VS Code extension, but let me know if this doesn't work!

Thanks @JanCVanB!
I'm not seeing the icon when I load the extension locally but it does look like the correct key so I'll just merge this and push an update now!


recorder info and recorder view command-line utilities

I have observed several gaps in our workflows when we're examining datasets:

What's the approximate shape of this dataset? How many positions? What channels? Do I have to open it in WaveorderReader or MM to find out?
I have a large dataset that I want to take quick look at...what's the best way to open just a few positions?
By default recOrder's readers opens each position as a layer, but sometimes I want the channels as layers. What's the best way to do this?

To address these gaps, I've extended recOrder's CLI with two small utilities: info and view.
Typing recOrder or recorder at the command line will print a short help message with all of the subcommands (currently convert, info, and view).
recorder info <your/tiff/or/zarr/folder> will print a message like:
Reading file:	 2022_08_04_recOrder_pytest_20x_04NA/2T_3P_16Z_128Y_256X_Kazansky_1/
Positions:	 3
Time points:	 2
Channels:	 4
(Z, Y, X):	 (16, 128, 256)
Channel names:	 ['State0', 'State1', 'State2', 'State3']
Z step (um):	 2.0

recorder view <your/folder> will open a new napari window and show your dataset, as if you dragged and dropped the folder in.
recorder view <your/folder> -p 0 -p 2 will only open the zeroth and second positions with each position set to a different layer.
recorder view <your/folder> -p 0 -p 2 -l c (-l c is short for --layers channel, which will also work) will open the zeroth and second positions with the channels as layers.
Opening datasets this way has an additional benefit: we're not opening with a napari reader, so we can set the axis slider labels appropriately

Changes: recOrder.convert is now recOrder convert with the same options as before. This change follows the click library's (and most other command-line tools' IME) conventions.
Testing status: I have opened about 25 different datasets acquired with recOrder, MM-MDAs, pycromanager, and saved from the WaveorderWriter and received good results---owing mostly to the good coverage of WaveorderReader across our main dataset types. Please report any bugs you spot.
To test these utilities, you will need to change to this branch and rerun pip install -e <path/to/recOrder>

Codecov Report

Merging #297 (bf28e86) into main (c740006) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

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

@@           Coverage Diff            @@
##            main    #297      +/-   ##
========================================
- Coverage   4.28%   4.24%   -0.04%
========================================
  Files         23      23
  Lines       5086    5131      +45
========================================
  Hits         218     218
- Misses      4868    4913      +45

Impacted Files
Coverage Δ

recOrder/scripts/cli.py
0.00% <0.00%> (ø)

recOrder/acq/acq_functions.py
0.00% <0.00%> (ø)

recOrder/acq/acquisition_workers.py
0.00% <0.00%> (ø)

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


error while uploading to App Store

Could you help? I have this error while uploading to App Store .
ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'Payload/Get Likes VK.app/Frameworks/SwiftyVK.framework/SwiftyVKResources-iOS.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."
ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'Payload/Get Likes VK.app/Frameworks/SwiftyVK.framework/SwiftyVKResources-iOS.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."

Please fill issue template in future.
This bug was fixed in latest SwiftyVK version (2.0.6).

#56


Improve async error handling

fixes #54

@iamsid Could you please review?

@kibertoad Thanks a lot for working on this. Unfortunately, I am a beginner when it comes to Git & NPM. So not sure how to install this PR via npm and test.
From my limited JS experience, I can see from the code that changes you have implemented should take care of the issue I am facing with async calls in error handling. And additional error handling on faliure of error handler looks good too.

No worries, thank you for reviewing the code! Will release a version with these improvements shortly.

@kibertoad Will the latest version be available via npm? I still see version 1.5.0 there.
I tried re-installing it, but still getting the older files.

@iamsid Sorry for delay, wanted to also address browser incompatibility I introduced in that PR, which is now done. Just published 1.6.0. Please let me now if it works for you!


improve docs, fix index=True for foreign keys

Changes:

update docs and release notes
fix index=True behavior for m2m fields and ForeignKey fields

don't make it depending on no_constraint, because some dbs don't set an index when creating a constraint

warn about the effects of index=True when re-initializing  models

Note: m2m fields doesn't need the passing of index but we should not deny users doing so.

are the docs ok now?


Module string needs to be update. Edit Webmap should be Edit Map

Repro
In Authoring Mode add or edit a map.
The UI says "Edit Webmap"
Please change "Edit Webmap" to say "Edit Map"
Also, this string should be part of the localizedstring.js file

UI has been updated to day Edit Map.
However, the word Edit seems be hard coded. Please add the whole phase "Edit Map" to the  localized_string.js

@LindsayThomas Currently "Edit" text in setting dialog is configured in localized-strings.js with the following tag-
settingDialogTitle: "Edit ${modType}",
where modType will be replaced by the module type.

@CTLocalGovTeam Thanks for clarifying. No further action required.


As a User I want to sort and filter by App name

Frontend

[ ] Send name sort order to backend (default A->Z)
[ ] Send App name filter to backend (default "")

Backend

[ ] Filter App results by name if a filter is given
[ ] Sort App results by the order provided (A->Z if none is provided)

Contract
Route
GET /api/apps?sort_order={sort_order}&name_filter={name_filter}
Input
sort_order via querystring (boolean, must be provided)
name_filter via querystring (string, must be provided)

## Output

```tsx
{
  name: string
}[]

Where the results are sorted by `sort_order` (A->Z if true; else Z->A), and filtered by `name_filter`

Result:
Frontend generates a table of the names that can be refreshed via a button, sorted and filtered by the given criteria

To reconsider initial frontend sort/filter, given the current scale of the table.


Dark mode support

Feature Suggestion
Support Dark Mode on browsers
Possible Implementation
Using CSS3 directives

Without having dug in to this at all I would assume that material-ui themes can help out here

https://material-ui.com/customization/palette/#dark-mode

I know this is something at least Spotify developers would be really happy about :)

I made a PR #398 with a solution for this

I made a PR #398 with a solution for this

Hi, I have made a commit today and yesterday on my PR #398 but it seems it haven't got any review yet.

@drsounds thanks a lot for those. We are discussing how to introduce dark mode across the system. It has implications on all plugin developers and we want to make sure we have thought this through properly before we merge your PR. I hope you are ok with this taking a bit longer than normal. 🙏

Great,
Does that mean I will have to make further changes to comply with the decisions you take on dark mode implementations?

I created a new PR #430 for dark mode because the old was messed up. But it doesn't build on CLI Test due some kind of weird node error, but everything works on my computer, look in the comments of the PR

@drsounds hoping to solve the build issues with #438

Ok so when this is fixed, I will have to make a new PR or can you merge the current one when reviewed pass?

@drsounds Best would be to update the existing PR. Afaik you should have a sync button on the PR, otherwise there's https://stackoverflow.com/questions/53199291/github-how-to-keep-your-forked-repo-in-sync-with-the-original-while-updating-t

There is no syc button and I tried out the instructions on StavkOverflow but it fails anyway

Ive now made some fixes and now the CLI passed so could you have a look?

I now see you have merged my commits! Yeah!
My question, is there some kind of CONTRIBUTORS list I can add my name (Buddhalow) to?

We really appreciate your contribution @drsounds -- but we have not (yet) set up a page like that. Will of course include you if we do!

Hi, I see you you announced the completion of the first milestone and there was a link to Contributors at github, but my profile is missing. I see there are other non Spotify employees listed there

@drsounds Looks like you used an email address that isn't registered on your GitHub account when you made the commits. https://github.com/spotify/backstage/pull/430/commits
If you add that email to your account I think you'll show up!

I added email but it didnt work...

@drsounds it did, you're in the list


chore: added configuring Nx for Jest/Jasmine

Added configuring Nx section
Small edits to Using TypeScript section
Applied minor CSS to summary tags

Thanks a lot @mtpultz !
Just had some time now to review it
I'm leaving a few comments on the changes themselves
If you could have a look, let's continue the discussion there


Use Inter

Bringing Inter out from behind the toggle.
I got rid of the now redundant AlignFont component hence the large number of files changed.

Are we going to change the font class names next?

Yes. There's a lot of tidy up still to be done and I think that should be at the top of the list.


[DOC] Fix DL classification notebook

What does this implement/fix? Explain your changes.
Fixes the currently breaking example notebook in the periodic tests
https://github.com/aeon-toolkit/aeon/actions/runs/10136750201/job/28025991094

ah this might be my fault with TimeCNN introduction, but weird it didnt break my PR when doing this, we sure this is the casue @MatthewMiddlehurst  ?

It was not run by default, given the tests pass now I would say yeah this is correct.


Small issue with LTC. Est Earnings in admin dashboard's round information

Hi, Why i am seeing this LTC. Est Earnings in my admin dashboard it is saying me 49.50000 even i had a miner connected for few seconds only.
Thanks
Round Information
1291114
Current Block
0.00%
Of Expected Shares
49.50000000
LTC Est. Earnings
977,949.42795694
Difficulty
917,941.19565919
Est Next Difficulty
Change in 1148 Blocks
1166739113949:10:00
Est. Avg. Time per Block

Also, It is showing "

Current Active Workers
0

" in general statistics in "/index.php?page=statistics&action=pool" Even if i have connected my miner again.
Thanks

shall i used the automatic difficulty method?  because it is saying me current difficulty is 4
Please guide a little
thanks

Please give me some information on these things
http://prntscr.com/gun0rb
Why the difficulty is 4 and why it is showing 7.0000 somehting in LTC Est eArnings
Thanks

For basic help on operating a pool and understanding how mining works you should go ask the community at any forum of your choice. This is a big tracker only and not a support forum.
There is nothing wrong with MPOS. It just shows information based on valid shares submitted.

Thank you, i know my question was very noob.  Does it count estimated dollars per month or LTC per month on current hashrate?
thanks

LTC for the round (when block is found). For a more average earnings estimate find calculators online. But if you pay for power it may not be worth it, just FYI.

Thank YOU Sir.
Love you :)
On Oct 8, 2017 9:19 PM, "Sebastian Grewe"<EMAIL_ADDRESS>wrote:

LTC for the round (when block is found). For a more average earnings
estimate find calculators online. But if you pay for power it may not be
worth it, just FYI.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MPOS/php-mpos/issues/2615#issuecomment-335017686, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AebNeuVjxqJHeHrhf-gGH_G5ZQd6TjRIks5sqPYNgaJpZM4Pxiqv
.


max concurrent streams: when to do when reached

I'm hitting a limit in a test I'm doing locally, specifically when I want to get a number of requests greater than max concurrent streams. Like, when the current defaults, if I send 102 requests on the same connection when the limit is 100, it handles the first 100, and it doesn't send any type of response from the server for the last 2 (in my specific case, the client hangs waiting for those 2 streams that never come).
First, I thought that this meant "streams can handle only X concurrent, when one closes, send the next one". However, this is not working like this, because if I set the 101th stream when one of the first 100 streams closes (:close callback), it will also hang.
Is this a bug, or a feature? Because there are a few things I was expecting both from the server (https://nghttp2.org, in this case) and the client, namely:

the server could send a GOAWAY for the exceeding streams (REFUSED_STREAM maybe?)
the client could fail when handling a number of concurrent streams greater than MAX
or, the client could fails after handling MAX streams
(after any of the above) the client would renegotiate settings with the server, thereby "resetting" the connection.

None of the above are backed by the spec (they're all expectations of mine), but I'll have a look to see what was to be expected in this case.

This sounds like a bug. The intended behavior is like you described.
https://github.com/igrigorik/http-2/blob/bf4b930c19934521bb0ffcfa19486ff7e415ed55/spec/connection_spec.rb#L73
Any chance you can wire up a spec that can reproduce this failure?

Sure. I'll come up with something before the end of the week

This is my test script:
require "http/2"
require "logger"
require "socket"
require "uri"

URLS  = %w[http://nghttp2.org http://nghttp2.org/blog/] * 51
done = URLS.size
uri = URI(URLS.first)
sock = TCPSocket.new(uri.host, uri.port)
if uri.scheme == 'https'
  require 'openssl'
  ctx = OpenSSL::SSL::SSLContext.new
  ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE

  # For ALPN support, Ruby >= 2.3 and OpenSSL >= 1.0.2 are required

  ctx.alpn_protocols = %w(h2)
  ctx.alpn_select_cb = lambda do |protocols|
    puts "ALPN protocols supported by server: #{protocols}"
    'h2' if protocols.include? 'h2'
  end

  sock = OpenSSL::SSL::SSLSocket.new(sock, ctx)
  sock.sync_close = true
  sock.hostname = uri.hostname
  sock.connect

  if sock.alpn_protocol != 'h2'
    puts "Failed to negotiate via ALPN"
    exit
  end
end

conn = HTTP2::Client.new
write_buffer = +""
conn.on(:frame) do |bytes|
  write_buffer << bytes
end
conn.on(:frame_sent) do |frame|
  puts "Sent frame: #{frame.inspect}"
end
conn.on(:frame_received) do |frame|
  if frame[:type] == :data
    puts "Received data frame: #{frame[:payload].bytesize}"
  else
    puts "Received frame: #{frame.inspect}"
  end
end
conn.on(:promise, &:refuse)

URLS.each do |url|
  uri = URI(url)
  stream = conn.new_stream
  log = Logger.new(stream.id.to_s)

  stream.on(:close) do
    log.info 'stream closed'
    done -= 1
    puts "done: #{done}"
  end

  stream.on(:half_close) do
    log.info 'closing client-end of the stream'
  end

  stream.on(:headers) do |h|
    log.info "response headers: #{h}"
  end

  stream.on(:data) do |d|
#    log.info "response data chunk: <<#{d.bytesize} bytes>>"
  end

  #stream.on(:altsvc) do |f|
  #  log.info "received ALTSVC #{f}"
  #end

  head = {
    ':scheme' => uri.scheme,
    ':method' => 'GET',
    ':authority' => uri.host,
    ':path' => uri.path.empty? ? '/' : uri.path,
    'accept' => '*/*',
    'user-agent' => 'anon.rb' ,
  }

  stream.headers(head, end_stream: true)
end

loop do
  return if done.zero?
  readers, writers = IO.select([sock], [sock])
  readers.each do |r|
    loop do
      buf = r.read_nonblock(16_384, exception: false)
      case buf
      when :wait_readable
        break
      when nil
        r.close
      else
        conn << buf
      end
    end
  end if readers
  writers.each do |w|
    loop do
      nsiz = w.write_nonblock(write_buffer, exception: false)
      case nsiz
      when :wait_writable, 0
        break
      when nil
        w.close
      else
        write_buffer.slice!(0, nsiz)
      end
    end
  end if writers
end

I'm not being able to reproduce where it's hanging, but you can already see that the server is refusing the 2 extra streams, instead of the client not sending them and failing early.
Question is, what's the strategy, when it reaches the limit?

So, a few conclusions:

that my example hangs has nothing to do with http-2; I wasn't simply handling the :rst_stream error, and was therefore waiting for a response to the refused stream; after doing this, the 2 extra streams were handled as "failed responses".
http-2 doesn't properly handle "too many streams", because in my case, I'm creating the streams before the "handshake" is established, and the client and server exchange the settings. This means that max streams is 2 ** 14.

I don't know whether one should consider it a bug, as spec-wise, it's correct, and the server does refuse the extra streams. Maybe it could be more explicit with the error type (I get :rst_stream, but it could be :too_many_streams?), but for this to happen, the error should be part of the spec and thrown by the server. From the application side, I think I could add a retry mechanism to refused streams to circumvent this.

http-2 doesn't properly handle "too many streams", because in my case, I'm creating the streams before the "handshake" is established, and the client and server exchange the settings. This means that max streams is 2 ** 14.

If you inject a delay and wait for the settings exchange to complete, what happens?

Maybe it could be more explicit with the error type (I get :rst_stream, but it could be :too_many_streams?), but for this to happen, the error should be part of the spec and thrown by the server. From the application side, I think I could add a retry mechanism to refused streams to circumvent this.

If you get REFUSED_STREAM you can safely retry the request.

If you inject a delay and wait for the settings exchange to complete, what happens?

The expected error, the client will fail, as I started too many streams.
I've implemented a retry mechanism for refused streams. Maybe by limiting the send buffer in the future (still TODO) will prevent this from happening at all.
I'll close the issue, as I think that this is an application issue.


[.NET Migration Guide Revamp] [Phase 1] Move content 'Deal primarily with the compiler' content from 'Port libraries' page.

For details on revamp see: https://github.com/dotnet/docs/issues/23561
New TOC: https://github.com/dotnet/docs/issues/23215

[x] Deal primarily with the compiler (MOVE) This section needs to be moved to a new location in the new TOC and updated as needed.

[x] Stay on the .NET Framework until portability issues are resolved (MOVE) This section needs to be moved to a new location in the new TOC and updated as needed.

[x] Develop a comprehensive plan of attack (MOVE) This section needs to be moved to a new location in the new TOC and updated as needed.

[x] Mixed approach (MOVE) This section needs to be moved to a new location in the new TOC and updated as needed.

[x] Port your tests (MOVE) This section needs to be moved to a new location in the new TOC and updated as needed.

[x] Recommended approach (MOVE) This section needs to be moved to a new location in the new TOC and updated as needed.

name: Migration guide
items:

name: Overview
href: ../core/porting/index.md
name: General Information
items:
name: Pre-Migration
items:
name: Migration
items:

name: Create a porting plan
href: ../core/porting/create-a-porting-plan.md

Completed with #24630


feat: update deployment

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


Bluetooth: shell: Fix null check in cmd_conn_phy_update

When I used ./tests/bluetooth/shell, if there is not any connections established but perform bt phy-update, it can cause a fatal error because of conn-check-missing, null check for default_conn pointer is necessary in case causing a system failure.

Try to fix #34201

@kaiser-ren Btw, you can link this PR to the issue by using one of the Github closing keywords in the pull request description: https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
That way, when this is merged, the issue is automatically marked as done.

@kaiser-ren Btw, you can link this PR to the issue by using one of the Github closing keywords in the pull request description: https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
That way, when this is merged, the issue is automatically marked as done.

Thanks. Apologize that this is my first zephyr pull request, it may take some time.

Here is a CI error, Commit e8d025fca8:
3: UC4 Line exceeds max length (109>72): "For Link Layer PHY update, null check for default_conn pointer is necessary in case causing a system failure."
I'm not sure how can I modify the commit message? And it's already being public on Zephyr repo.

Here is a CI error, Commit e8d025fca8: 3: UC4 Line exceeds max length (109>72): "For Link Layer PHY update, null check for default_conn pointer is necessary in case causing a system failure."
I'm not sure how can I modify the commit message? And it's already being public on Zephyr repo.

You can modify your commit message but doing either git commit --amend or using git rebase -i

@kaiser-ren You should read up on the contributing guidelines for the project, that will help you get this PR ready.
https://docs.zephyrproject.org/latest/contribute/index.html#contribution-workflow

Here is a CI error, Commit e8d025fca8: 3: UC4 Line exceeds max length (109>72): "For Link Layer PHY update, null check for default_conn pointer is necessary in case causing a system failure."
I'm not sure how can I modify the commit message? And it's already being public on Zephyr repo.

You can modify your commit message but doing either git commit --amend or using git rebase -i

Thanks, fixed.

@kaiser-ren Please find us on the zephyrproject slack channel and we can help you resolve the issues with git.

@kaiser-ren The commit is empty.

Apologize very deeply to make this PR mess, finally, make CI happy except buildkite is still ongoing. @Thalley, already merged the commit into one.
This 1st PR makes me learn a lot, thanks for your guide and patient.


Slime-san, Shantae, Wonder Boy, Lego City, Has-Been Heroes, Binding of Isaac, Little Inferno

E769E2D93519E8D860445ED00A4A5E3D Slime-san
65590FD04B4DF51BB1D8C39A50C8376C Shantae - Half-Genie Hero
E2DADADBE272660A316475FCCDECFECB Wonder Boy - The Dragon's Trap
07D9814262B38BD7F7D0D29A25B162B8 LEGO CITY UNDERCOVER
BB278FDC5DD434CF8F30F224CFBF517A Has-Been Heroes
1B7686315C6209EBBD25E3E11E89316C The Binding of Isaac - Afterbirth+
466B5BDBC8CAAC6D679B16794C9D1E3F Little Inferno

I'll add these and create a pull request @s1cp


Hotfix 2.47.3 (UPLOAD-882, UPLOAD-885, UPLOAD-887, UPLOAD-890)

Addresses:

UPLOAD-882
UPLOAD-885
UPLOAD-887
UPLOAD-889

@krystophv Please review changes since last review.


[BUG]: Can't get resp.headers

Describe the bug
local http = require("http")
function fetchHeaders()
    local file = "https://baidu.com"
    local resp, err = http.get({
        url = file,
    })
    if err ~= nil then
        error("Failed to request: " .. err)
    end
    if resp.status_code ~= 200 then
        error("Failed to get file: " .. err .. "\nstatus_code => " .. resp.status_code)
    end
    file = table.concat(resp.headers)
    print(file)
    exit()

    return file
end

resp.headers returns nil.

resp.headers is a map that can be printed using printTable.

Well, I was trying to obtain the value of the Location response header at that time. However, the response headers obtained by resp.headers have already been after redirections, so I finally adopted another method.


fix: collect common files for new cloudfront behaviour

Jira Ticket ID:

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Feature (non-breaking change which adds functionality)
[ ] Code style update
[ ] Refactor (refactoring or adding test which isn't a fix or add a feature)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[ ] No

Did you test your solution?

[ ] I lightly tested it in one browser
[ ] I deeply tested it in several browsers
[ ] I wrote tests around it (unit tests, integration tests, E2E tests)

Problem Description

Solution Description

Side Effects, Risks, Impact

[ ] N/A

Aditional comments:

[AUTOMATED] Latest version has been pushed to preview.
Preview deployed at https://preview-3fd3b4a.dev.devops-boilerplate.jam3.cloud.jam3.net

[AUTOMATED] Latest version has been pushed to preview.
Preview deployed at https://preview-1e8e75f.dev.nextjs-boilerplate.jam3.cloud.jam3.net


Admins (blah) not able to see the "VIEW MESSAGE LOG" page

Confirming this is still an issue for my admin account (even after resetting pwd, etc).

Only super admins see this but you account is that. You also only see it on a specific submission page.
I e.g. see it on https://apply.opentech.fund/apply/submissions/15/

This ended when i logged out and re logged in, closing it.


generateLegend() only works for global variables

When using chart.generateLegend(), the variables referenced in options.legendTemplate must exist globally.
Using chart.generateLegend() within a function will result in "data is not defined" where data is the variable with the chart data.
If I do window.data = data; before, it works.

This seems to be fixed in the latest version. But if you are still seeing this problem, please add a test case and reopen.

Hi fulldecent,
It seems the issue still occur. Here is my jsfiddle https://fiddle.jshell.net/jomarv/fehxxuns/9/, Im using version 2.5.0


Update site-status.ttl

@nicholascar @LizDerrington @GSQ-AI
I have made a few very minor grammatical changes, which can be approved without debate. But, my real intention here is to flag the issue raised yesterday by Nick, re: 'never used' vs 'never/not drilled'. We have the former in the vocab, intending to mean the latter. So, a little further down the track, we need to change this concept, as a borehole can be drilled, but never used for whatever reason.

The term "Never Used" is referring to the site, not the borehole. The "Site" is used if an activity has been undertaken on it, even if that activity does not reach completion for any reason. The site is 'never used' if we create the site as a part of a proposal (PGGD-01 form, application for tenure via MMOL, or as a part of a project), and then for some reason, the proposed activities are then cancelled. The site becomes "Never Used", because no activity was ever undertaken on that site, but for records, the site is not deleted.
With respect to the grammar, I'm a huge fan of the oxford comma, they clear a lot of ambiguity in some of these lists. I'm not sure we need to get rid of them, in my personal opinion. I'm on board with the corrections of spelling mistakes, though.

Maybe remove this 'Never Used' discussion from this pull request.
I agree that all misspelt words should be corrected in vocabularies but do not think punctuation corrections are warranted unless the meaning of the sentence is unclear.
As Andrew has commented above, we all punctuate differently based on preferences. My view is that the sentences as they appear are not ambiguous and therefore do not require remediation.

Hi Liz, Andrew,
We need to follow the GSQ Style Guide (attached), in this case for the use and non-use of serial commas. Yes, we all punctuate differently, and can do so correctly. This is why we have such a guide.
I fully support the use of serial commas, where if not used, a qualification of a preceding term/noun can flow on to the succeeding term/noun, thus causing ambiguity, etc. So, I ask you to please follow the guide.
I will deal with the discussion re 'Never Used' separately. It's part of the discussion in the PR, but is not part of a change requested in the PR. I need to attend to another matter first.
Cheers,
John 👍

From: LizDerrington @.>
Sent: Friday, 24 February 2023 12:03 PM
To: geological-survey-of-queensland/vocabularies @.>
Cc: John McKellar @.>; Author @.>
Subject: Re: [geological-survey-of-queensland/vocabularies] Update site-status.ttl (PR #461)
Maybe remove this 'Never Used' discussion from this pull request. I agree that all misspelt words should be corrected in vocabularies but do not think punctuation corrections are warranted unless the meaning of the sentence is unclear.
Maybe remove this 'Never Used' discussion from this pull request.
I agree that all misspelt words should be corrected in vocabularies but do not think punctuation corrections are warranted unless the meaning of the sentence is unclear.
As Andrew has commented above, we all punctuate differently based on preferences. My view is that the sentences as they appear are not ambiguous and therefore do not require remediation.
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geological-survey-of-queensland/vocabularies/pull/461*issuecomment-1442690779__;Iw!!PUY2jUP3Fp7oEg!DmrD3rXR4h3URnheVpm2Epx787ymYmMq3ci9YuVYzWKtQaZK7KPV0D6Nw4PqYp3lnB-dvIkK4_rI0g_0knJLFfHU3sL7Sa6TH8uxTSs$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AMXRW2T4KIYIKFKCUDUER43WZAJIHANCNFSM6AAAAAAVGIMHSA__;!!PUY2jUP3Fp7oEg!DmrD3rXR4h3URnheVpm2Epx787ymYmMq3ci9YuVYzWKtQaZK7KPV0D6Nw4PqYp3lnB-dvIkK4_rI0g_0knJLFfHU3sL7Sa6TCxJRVsE$.
You are receiving this because you authored the thread.Message ID: @.***>

The information in this email together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. There is no waiver of any confidentiality/privilege by your inadvertent receipt of this material.
Any form of review, disclosure, modification, distribution and/or publication of this email message is prohibited, unless as a necessary part of Departmental business.
If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network.

What do you think about modifying it to the following, to eliminate slight ambiguity? The status of an individual site (e.g., mine, well) or single activity (e.g., survey) at a site describing the current state of the site or the site activity, within its lifecycle from proposed through operational through to abandonment. Lifecycle stages are commonly related to regulatory conditions administered by government agencies.

We can probably eliminate some redundancy by breaking that first sentence into two, and deleting repeated terms.
Perhaps:
The status of an individual site (e.g. mine, well) or site based activity (e.g. survey). It describes their current status within their lifecycle (From proposed to operational, through to abandonment). Lifecycle stages are commonly related to regulatory conditions administered by government agencies.

HI Andrew,
I have updated the PR as per your suggestion of breaking the first sentence into two.
I saw your reply when I went into GH this morning and thought that I did not receive a GH alert re it. But, alas, in scanning my emails, I found that this was not the case, highlighting my oversight.
Where to from here re the rest?

I have closed the PR and deleted the branch, as, on uploading the file, there appears to have been other changes made since my original PR (or VS has constructed the file differently from what I downloaded to it today, perhaps this being more likely the case). I am not prepared to make sense of this, as the PR has been sitting here too long. Andrew, I'll leave it you to correct the misspelling/s and reconstruct the ambiguous sentence (outlined by me), as per your suggestion, which I agree with.
Cheers,
John


[Closed] ConvertMinutesToHours.js

Why:
Closes #3511
What's being changed:
Add a JS function to convert minutes to hours

@samilieberman
The issue is assigned to someone else. Please look for other issues to contribute. Make sure you type !assign to grab the issue
Thank you!

Hi @victoriacheng15 , the PR that was raised for this issue is stale and was never merged: https://github.com/codinasion/program/pull/3641. Therefore, I put up a new PR to resolve this issue.
Thank you!
Sami

Hey @samilieberman
Sorry for this conflict, your solution is definitely better and it should be merged.

Hey @victoriacheng15
Even if the previous PR is merged, this PR can be considered as the edit to the previous solution 👍🏻


There is a mistake with the file name

https://github.com/dotnetGame/MineCase/blob/master/src/MineCase.Server.Interfaces/Game/LevelTYpes.cs

Solved in #12.

Solved in #12.

Solved in


Add mcuboot and SMP support

Enable image management and DFU when building with bootloader support. Also make this the default.

Remove main/bt threads and enable Bluetooth advertising by default
Add support for DFU over the Simple Management Protocol
No automatic image confirmation: use the mcumgr CLI program instead
Update README
Check if a watchdog is running and, if so, kick it
CI: Build mcuboot image and DFU package

Completes #36

Future bootloader support: I've a added a watchdog refresh timer and ISR for compatibility with the v5.0.0 release candidate. It works as expected; without it, the device restarts automatically.

I've now added Github CI support and made the bootloader/DFU version the new default. To build without bootloader support, just export BOOTLOADER="off".

Looks good!
Does it work with the NRF Connect mobile app ?

Yes, it does.

I have now successfully 1) flashed the versions of the bootloader and InfiniTime that will be the new factory install, upgraded to Hypnos (using the image built by the CI) via nRF connect, then upgraded again to InfiniTime "develop" via mcumngr CLI . Things seem to work well so I''ll press the merge button.


Fix CSI FUSE Recovery

Ⅰ. Describe what this PR does
Fix CSI FUSE Recovery. More details pls see #2719 .
This PR skip checking FUSE containers' restart and keep check /proc/self/mountinfo to find broken mount points in a loop mannner. This ensures any broken FUSE mount points will be eventually found and recoverd after a short period.
Ⅱ. Does this pull request fix one issue?

fixes #2719
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

LGTM

/lgtm

/approve


Refs #58 - Allow for typed NULLs in Java calls

Many Java APIs allow the user to pass null as an argument. However, as we need to do dynamic lookup of methods by type, a None argument can't be easily matches to a specific type.
This change allows the user to pass in None as an argument to methods where an object is expected.
If there are multiple polymorphic forms that could accept None, an error is raised. There is an edge case where this is legal - a class with mymethod(BaseClass x) and mymethod(SubClass x) will be use the SubClass version if passed a None . This case raises an error at present.
The implementation also changes the key used to look up polymorphs. Previously it was the JNI signature; we now use a tuple composed of the signature's parts. This should be no slower for lookup; but allows us to do wildcard matching on the JNI signature parts.
PR Checklist:

[x] All new features have been tested
[x] All new features have been documented
[x] I have read the CONTRIBUTING.md file
[x] I will abide by the code of conduct

@freakboy3742 I like it, that we now can simply pass in None for null and rubicon will try to find the correct match. This is like it works on Java what makes it intuitive to use.
Your original idea of introducing a typed NULL would have avoided the seldom cases where we have several matches, but it would have been less intuitive to use.

@t-arn As it happens, I actually prototyped the typed NULL first, and reworked the solution to what I've implemented here. However, I'm not 100% convinced that was the right choice.
In practice, what I've implemented in this PR would behave like this:
result = call_some_method(42, None)
if result is None:
   call_other_method(result)

This is more "Pythonic" - it uses Python objects, and transparently resolves how that maps to Java. However, the lookup process is more complex (and therefore potentially slower). There's also the edge case around ambiguous method prototypes that I mentioned.
The alternative is typed nulls:
from rubicon.java import NULL

result = call_some_method(42, MyObject.__null__)
if result == NULL:
    call_other_method(result)

This has a much simpler implementation. It's also faster (because you do a specific look up for the prototype you want), and it doesn't have the ambiguity problem (again, because you're doing a specific lookup). The downside is that it's less "Pythonic", because you need to use Java objects not Python syntax. This code "tastes" more like Java (e.g., you do an equality with NULL, rather than is None). In the Toga context, any code that invokes a Java API would need to be wrapped to check for the == NULL condition and converted into a Python None.
However, this API is also a language bridging layer, so a certain amount of Java flavour should be expected :-) and by being "smart" with the None casting, our implementation becomes less explicit. Java is, after all, a typed language, so we shouldn't be surprised when our usage of Java requires typing.
Do you have any thoughts/preferences in those two options?

I wonder how the typed NULL approach would work for Interfaces. Would we always need to provide an implementation, so we could create an object that we could then set to NULL?

The process for Interfaces and Typed nulls wouldn't be too far removed from the process for classes - it would be something like:
MyInterface = JavaInterface('com/example/MyInterface')

some_method(MyInterface.__null__)

Internally, all we're doing is defining a placeholder object that can identify itself as "Lcom/example/MyInterface;" when building the JNI prototype for the method we're looking for.

So, the typed NULL approach is also pretty easy to use and it does not have the potential ambiguity problem. Still, without some documentation, nobody will know how to use it. Therefore, my vote is the None approach.

Well, yes it actually does. The typed NULL has technical advantages: No ambiguity problem, faster, less complex code.
How about this: In addition to properly document the usage we could provide a specific error message for the case where None is used as a parameter hinting to the typed NULL documentation?

@paulproteus What implementation do you prefer? The None implementation of this PR or the typed NULL implementation?

@freakboy3742 Hello Russel, do you intend to change the implementation of this PR and use the typed NULL approach? I need to know because I want to implement the ProgressBar for Android which needs this PR. And I don't want to use the current implementation and then be forced to change my code later on.
Tom

@t-arn I think I'm leaning towards the typed NULL approach. It's a simpler implementation, and more explicit; plus, it doesn't preclude introducing implicit NULLs at some point in the future.
Hopefully I'll get some time this weekend to wrap up this PR.


Gather info about the wiki size

A new Instance usage section should be added to include info about number of wikis, of documents, users composition from main wiki or subwikis.
This will use the Active Installs 2 API, so other things could be included later.

A mockup for this section has been done by our designer. Note that only the main numbers section will be done as part of this issue


croppie plugin code working for below 1 MB image,above 1 MB a loader still to be loading using php

I am able to crop images from 50K to 10 mb with no problem. When I transfer the trigram to the VPS server at Hostgater, The cropping process never finishes. The “ bubbles” never stop. I configer the following setting on my VPS Server max_execution_time => 300,memory_limit => 1000,post_max_size => 1000,max_input_time=>60 any thing else i missed please help. check the problem on following link https://www.boats4sale.com/b4sell/individual/dashbaord/editListing/684 username => Ajay@1234567890 password => Ajay@1234567890 Also Find the code. what kind of setting require for big images crop on server Also Find the code i used public function
img_crop_to_file() {
$imgUrl = $_POST['imgUrl'];
// original sizes
$imgInitW = $_POST['imgInitW'];
$imgInitH = $_POST['imgInitH'];
// resized sizes
$imgW = $_POST['imgW'];
$imgH = $_POST['imgH'];
// offsets
$imgY1 = $_POST['imgY1'];
$imgX1 = $_POST['imgX1'];
// crop box
$cropW = $_POST['cropW'];
$cropH = $_POST['cropH'];
// rotation angle
$angle = $_POST['rotation'];
    $jpeg_quality = 50;

    $output_filename = "temp/croppedImg_".rand();

    // uncomment line below to save the cropped image in the same location as the original image.
    //$output_filename = dirname($imgUrl). "/croppedImg_".rand();

    $what = getimagesize($imgUrl);

    switch(strtolower($what['mime']))
    {
        case 'image/png':
            $img_r = imagecreatefrompng($imgUrl);
            $source_image = imagecreatefrompng($imgUrl);
            $type = '.png';
            break;
        case 'image/jpeg':
            $img_r = imagecreatefromjpeg($imgUrl);
            $source_image = imagecreatefromjpeg($imgUrl);
            error_log("jpg");
            $type = '.jpeg';
            break;
        case 'image/gif':
            $img_r = imagecreatefromgif($imgUrl);
            $source_image = imagecreatefromgif($imgUrl);
            $type = '.gif';
            break;
        default: die('image type not supported');
    }
    //Check write Access to Directory
    if(!is_writable(dirname($output_filename))){
    /*$response=array();*/
        $response = Array(
            "status" => 'error',
            "message" => 'Can`t write cropped File'
        );
    }else{

        // resize the original image to size of editor
        $resizedImage = imagecreatetruecolor($imgW, $imgH);

        imagecopyresampled($resizedImage, $source_image, 0, 0, 0, 0, $imgW, $imgH, $imgInitW, $imgInitH);
        // rotate the rezized image
        $rotated_image = imagerotate($resizedImage, -$angle, 0);
        //$rotated_image = $angle == 0 ? $resizedImage : imagerotate($resizedImage, -$angle, 0);
        // find new width & height of rotated image
        $rotated_width = imagesx($rotated_image);
        $rotated_height = imagesy($rotated_image);
        // diff between rotated & original sizes
        $dx = $rotated_width - $imgW;
        $dy = $rotated_height - $imgH;
        // crop rotated image to fit into original rezized rectangle
        $cropped_rotated_image = imagecreatetruecolor($imgW, $imgH);
        imagecolortransparent($cropped_rotated_image, imagecolorallocate($cropped_rotated_image, 0, 0, 0));
        imagecopyresampled($cropped_rotated_image, $rotated_image, 0, 0, $dx / 2, $dy / 2, $imgW, $imgH, $imgW, $imgH);
        // crop image into selected area

        $final_image = imagecreatetruecolor($cropW, $cropH);
        imagecolortransparent($final_image, imagecolorallocate($final_image, 0, 0, 0));
        // if image width is smaller than defined crop field or not

if($imgW < $cropW){
$dst_x = $imgX1;
$dst_y = $imgY1;
$src_x = $src_y = 0;
$width = $imgW;
$height = $imgH;
}else{
$dst_x = $dst_y = 0;
$src_x = $imgX1;
$src_y = $imgY1;
$width = $cropW;
$height = $cropH;
}
imagecopyresampled($final_image, $cropped_rotated_image, 0, 0, $imgX1, $imgY1, $cropW, $cropH, $cropW, $cropH);
/imagecopyresampled($final_image, $cropped_rotated_image, $dst_x, $dst_y, $src_x, $src_y, $width, $height, $width, $height);/
// finally output png image
//imagepng($final_image, $output_filename.$type, $png_quality);
imagejpeg($final_image, $output_filename.$type, $jpeg_quality);
$response = Array(
"status" => 'success',
"url" => base_url().$output_filename.$type
);
}
    print json_encode($response);
}

I haven't dealt with php in years, but you can try setting upload_max_filesize.  See this post:
https://www.sitepoint.com/upload-large-files-in-php/
Either way, this is not related to croppie.  I'm closing it.  If you want PHP help, I'd recommend stack overflow or some other site.

we already increase the upload_max_filesize and make it same on my local system but on server it is still not working.even i also change the
max_execution_time => 300,memory_limit => 1000,post_max_size => 1000,max_input_time=>60
https://www.boats4sale.com/phpinfo.php
Please try to provide me the solution as soon as possible,we are urgently need it any how because same function working on another site properly.


Clear Containers 3.0.22

Changes
Version bump, no changes.

LGTM

cri-o error on ubuntu 16.04
not ok 15 ctr execsync
# (in test file ctr.bats, line 601)
#   `[ "$status" -eq 0 ]' failed
# time="2018-03-15T19:26:08Z" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded."
# 0
# time="2018-03-15 19:26:22.878215454Z" level=debug msg="devicemapper: kernel dm driver version is 4.34.0"
# time="2018-03-15 19:26:22.878441255Z" level=debug msg="devmapper: Generated prefix: container-8:1-769646"
# time="2018-03-15 19:26:22.878457355Z" level=debug msg="devmapper: Checking for existence of the pool container-8:1-769646-pool"
# time="2018-03-15 19:26:22.878628856Z" level=debug msg="devmapper: Pool doesn't exist. Creating it."
# time="2018-03-15 19:26:22.957733592Z" level=debug msg="devmapper: loadDeviceFilesOnStart()"

@sboeuf  is this a known expected issue?

@jcvenegas not at all, and that's weird it does appear only for one test here. I mean all other tests actually use overlay...


Support for different agent models

Currently the agent model is implicit, it supports forward displacement of one unit, and it supports rotation by 90 degrees. We want to make the model explicit and to describe the actions in a text file.
sketch:

plan symbol followed by drawing instruction (rotation, displacement).
the shape of the agent on the grid (square or round plus radius, other abstract shapes made of simple squares).
the drawing instruction are keyword followed by numeric parameters.

Example:
MODEL [name (eg. MAPF, MAPF_T)]
SHAPE [circle | square | sprite file] [radius]
[PLANSYMBOL]
ROTATE [radians]
[PLANSYMBOL]
DISPLACEMENT [delta x][delta y]
[PLANSYMBOL]
ROTATE [radians]
DISPLACEMENT [delta x][delta y]

Re-prioritised for 2025.


Add neon_broker binary.

Which ought to replace neon_broker. This patch only adds the binary and adjusts Dockerfile to include it; subsequent ones will add deploy of helm chart and the actual replacement.
It is a simple and fast pub-sub message bus. In this patch only safekeeper message is supported, but others can be easily added.
Compilation now requires protoc to be installed. Installing protobuf-compiler package is fine for Debian/Ubuntu.
ref
https://github.com/neondatabase/neon/pull/2733
https://github.com/neondatabase/neon/issues/2394

We should add protoc installation instructions to the README.md in the root of the repo

https://github.com/fullstorydev/grpcurl can be used as a client for the broker. For example, this query will subscribe for everything:
grpcurl -proto broker.proto -d '{"all":{}}' -plaintext localhost:50051 neon_broker.NeonBroker/SubscribeSafekeeperInfo

https://github.com/fullstorydev/grpcurl can be used as a client for the broker. For example, this query will subscribe for everything:

cool, added to broker.md

Added unit tests
Added broker.md
Went through reviews above
Went ahead and replaced mpsc with tokio::broadcast, per suggestion above, and notify channels with rwlock per @petuhovskiy  suggestion above. Checked that performance is approximately the same, memory consumption is slightly higher on a lot of per-timeline subscriptions (but anyway decent) and obviously much less on many publishers. Saved about ~150 lines of code, and it got simpler.

Let's look at CI, but I consider this mostly ready for merge.

Helm chart is being added at
https://github.com/neondatabase/helm-charts/pull/15

I would avoid neon prefix completely.

I considered that, but unlike pageserver/safekeeper, broker  feels like too generic term to me. So from this stems binary name neon_broker and the rest.

WDYT about logging every publisher and subscriber connection with info! level? I'd like to have logs like that:
INFO Started subscription for {sub_key}, ip={ip}
INFO Finished subscription for {sub_key}, ip={ip}
INFO Started publishing, ip={ip}
INFO Finished publishing, ip={ip}

I'm +1, but I remember at some point we disabled logging loading timelines on safekeepers thinking that would it be too much log volume. Here it is roughly the same number :)

Perhaps storage_broker?

If we put control plane in this repo then all storage will be under /storage it may repeat storage but we have proxy here anyway. So maybe thats fine

Renamed and added remote addr logging.

And still this problem with extra allocations

Well, this thingy gives several millions rps on my laptop. Performance/scalability here won't be a problem for a long time, and if it is, I suspect this extra allocation won't be the top priority.


Sortable in @dnd-kit/dom is unusable

Module '"@dnd-kit/dom"' has no exported member 'Sortable'.

i think u need to install
npm install @dnd-kit/sortable
and import from there
maybe check this link https://docs.dndkit.com/presets/sortable

hi, I have the same problem. I using the vanilla version. Link here: https://next.dndkit.com/concepts/sortable

I just check the code, you need to import as this:  import { Sortable } from '@dnd-kit/dom/sortable'

Updated in https://github.com/clauderic/dnd-kit/commit/b5e5962ea690f3338b67186b477ae64e238af30f, sorry about that!
As @JiuRanYa mentioned, you need to import { Sortable } from '@dnd-kit/dom/sortable'


Node Semver support

Would it be possible to support Node Semver (https://github.com/npm/node-semver)?
Right now I can only specify equality.

It already does.


Changes in content of the Aplus manual.

This PR has many changes that are related to the renaming of the folders because two modules were included at the beginning and all the other folders needed to be renamed. the list of modules shown below can give you a quick glimpse of what was changed in this PR.
On the left, you can see the previous modules, and on the right, you can find the new list of modules.
  m01_introduction                    m01_introduction #No changes. Only, some chapters were moved to the module m02_setup
                                      m02_setup  # This is a new chapter and it needs to be reviewed
                                      m03_rst_guide   # This is a new chapter and it needs to be reviewed
  m02_programming_exercises           m04_programming_exercises
  m03_acos                            m05_acos  #No changes
  m04_converting                      m06_upgrade_old_course  #No changes in content, just the title of the module
  m05_lti                             m07_lti  #No changes
  m06_rubyric                         m08_rubyric  #No changes
  m07_admin                           m09_admin  #No changes
  m08_moodle_astra                    m10_moodle_astra  #No changes
  m09_active_elements                 m11_active_elements  #No changes

Two new modules are included in the Aplus manual (m02_setup and m03_rst_guide)
a. m02_setup has two new chapters 04_vs_code and 05_additional_resources. These two modules need to be reviewed completely. Chapters 01_first_steps, 02_git, 03_docker have minor changes, but those chapters should be reviewed as well.
b. All the chapters in the module m03_rst_guide are new, and need to be reviewed.
The Javascript code for the annotated directive is included in this
course, but It will be removed once the aplus-rst-tools are updated
Additional CSS styles for the Aplus manual are included.
The course_material folder is included. This folder contains material that is downloaded by the students or material that is used in the course content e.g. stylesheets, code files.
The new file  global.rst contains roles that are used throughout the course.
the .rstcheck.cfg file contains rules that apply to the rstcheck linter. This file is included in order to check the RST syntax.

Description
Testing

[ ] I created new unit tests
[ ] All unit tests pass
[X] I have tested manually

Have you updated the README or other relevant documentation?

[ ] Yes
[ ] Not yet. I will do it next.
[X] Not relevant

I will close this PR. It became really difficult to manage all the changes. I will create smaller PRs with all the changes that I have included here. The new PRs will take into account the feedback that was given here. Hopefully, having several PRs will help merge all the changes faster.


Use async/await in the library

Did a first attempt at using async/await in the library itself.
But then I noticed when using this, things aren't ran in parallel anymore. Also didn't asyncify the save method as I wanted to clear things up regarding things running in parallel.

Found this article http://pouchdb.com/2015/03/05/taming-the-async-beast-with-es7.html
At the end, they discuss concurrent tasks. Will change implementation according to this.

Time for review I guess :)

Landed. Woop woop!
The code is so much nicer now :D

Awesome!!!!


raw pointer access

To fix #14 fully on my side, I think what would be best is if there were an accessor that returned a *const, something like fn get_raw(&self, index) -> Option<*const T>. The problem I'm encountering is that I get an &T which I put into a cache (as a raw pointer, as it happens) which is later invalidated by an &mut T. -- what I would prefer to get is a raw pointer (and, since the ConcurrentVec is pinned, I can rely on it not to change).
I'll fix it on my side for now by invalidating the &T cache, but invalidation isn't really needed.

Actually I'm not sure is such a method would suffice for me or not.

Side not, but if you do add this, best would to have a *mut version too!

Thanks a lot for explaining @nikomatsakis. believe I understood the issue now. Sure, we can have the get_raw method, and its mut variant. I am on vacation for a couple of weeks, but will have the update shortly after.

@nikomatsakis v2.4.0 of ConcurrentVec is released, which includes revisions in internal structure, extended tests and introduces the methods discussed in this issue.
orx-concurrent-vec = "2.4.0"
You may see the methods here:

get_raw
get_raw_mut

Please let me know if the problem persists with the new version or you encounter a different issue.
Also fyi: Through salsa, through concurrent-vec, an issue about wasm32 compilation was reported in SplitVec crate that ConcurrentVec depends on. The fix is in progress, we can hopefully merge in a few days.

Thanks @orxfun. In the meantime, we switched over to append-only-vec in https://github.com/salsa-rs/salsa/pull/555, it seemed to perform better for our (quite simple) purposes. But we'll be re-evaluating things over time I'm sure.

Actually, I was also curious about the performance after the major revision, your comment reminded me of this waiting task. Benchmarks resurrected, at least the experiments in the repo look good, safer but not slower, rust makes me happy. Certainly does not prove anything, benchmarks & results vary in different use cases. Also dived into append-only-vec a little bit, lovely to see similarities & differences.
Closing this issue. Feel free to reach out whenever there is an exciting use case!


Crate for downstream tooling

Description
Lift parts of typst-cli and the typst/package bundler into a dedicated crate for implementing tooling related to Typst.
A non-exhaustive list of features I believe should be added to such a crate:

manifest parsing

parsing manifest files into a well typed struct

manifest validation

ensuring the validity of a manifest for the universe

manifest writing/editing

editing a manifest in place like cargo does (see toml-edit)
I think this is not required now, but essential later when git packages and custom registries arrive

tool section reading and writing

in a similar vein as above

package downloading

making the implementation of a custom registry easier
exposing the default locations and fallbacks

font loading

loading fonts with the correct priorities

package download locking

being able to lock downloading of a package consistently to avoid interference with other tools running in parallel, provided they also use the same locking mechanism

project locking

as above but for doing automation inside the project

If these features are sufficiently abstracted, most of them could be optional feature flags, reducing possible code bloat.
My reasoning for keeping manifest parsing and validation separate is that some things are fixed, like what the Typst Universe allows as valid manifests, but there are valid use cases where these need not be valid for the Universe: company internal registries may have different requirements for licenses, keywords, etc. Furthermore, tools should be able to ignore some errors where they don't matter while still being able to read other parts of the manifest, like their own tool section, or to fix the manifest like a linter would.
Prior Art
Some prior art would be typst-project, a crate I made for typst-test and by some extent utpm. It provides manifest parsing, reading the tool section for custom configuration, and a quite frankly overengineered API for locating the project root.
Another example of where this was done is jj, which actually exposes the whole CLI as a library. They provide a jj_lib library crate for the core building blocks, a jj_cli lib crate for users to implement custom backends and commands for company internal usage while maintiang the rest of the default CLI and the jj_cli binary crate as the default jj implementation. While this is certainly overengineered from the perspective of Typst, it can serve as a good example of how to find the right API abstractions.
Use Case
Various downstream tooling projects for Typst written in Rust exist, many of which needed to reimplement some part of the functionality contained in typst-cli.
Some projects which had to reimplement features include:

tool
reimplemented feature

tinymist
manifest parsing, font loading, package downloading

typst-lsp
manifest parsing, font loading, package downloading

typst-test
manifest parsing, font loading, package downloading

utpm
manifest parsing, package downloading

the typst/package bundler
manifest parsing

A single crate providing a correct default implementation of various Typst related functionality could reduce code duplication and improve correctness across these projects. Fixes and improvements to such a crate would allow each tool to benefit from those without having to manually keep up with those.

My usecase: use typst to produce booklets, currently by converting Markdown with frontmatter settings to a .typ file that imports a typ theme function. Ideally, i would not even need the intermediate typ file and would call the theme functions directly from Rust.
What i would like to have exposed:

parsing a "theme" file and ensure it has specific functions that allow certain parameters
list functions/parameters declarations from rust to produce theme documentation
get typed result/content from calling a typst function from rust code directly
generate PDF from content from rust code

What i lacked or found hard:

typed function parameters: is it impossible or i could not find it in docs? typed args/signatures would certainly be a bonus to the typst language if they're not here yet
parse/downcast raw text into a typed Typst value from rust code, for example 12pt into a size, to then call another typst function with it
relative content paths (like images/imports) are relative to different things and that needs to be properly documented for use as a library... if i remember correctly import is relative from content typst file, then images are relative from the theme typst file, and all this needs to be in the same project root

Typst is incredible, lots of love :)

parsing a "theme" file and ensure it has specific functions that allow certain parameters

This is unlikely to be exposed from such a crate, you can simply apply a theme from within your World implementation by giving it a Library which uses different default Styles. Maybe take a look at this, which also applies some default styles to documents it receives from discord commands (although there it is simple prepended as source code).

list functions/parameters declarations from rust to produce theme documentation

I'm unsure what you mean, get the signatures for things which are written in rust within rust code, or getting Typst signatures from within rust code?

get typed result/content from calling a typst function from rust code directly

I'm also unsure about this, which functions do you mean, if you intend to evaluate Typst script code and get its result you should be able to if you construct the necessary Engine and Introspector and such, although I'm unsure how much of this can be done outside the typst crate itself.

generate PDF from content from rust code

This is exposed in the typst-pdf crate.

typed function parameters: is it impossible or i could not find it in docs? typed args/signatures would certainly be a bonus to the typst language if they're not here yet

That's a planned feature! Specifically type annotations which validate function arguments, as well as custom types.

parse/downcast raw text into a typed Typst value from rust code, for example 12pt into a size, to then call another typst function with it

I think you can either parse these using the typst-syntax crate and evaluate them, but I think you could likely also use some of the conversion traits found in the typst crate itself.

relative content paths (like images/imports) are relative to different things and that needs to be properly documented for use as a library... if i remember correctly import is relative from content typst file, then images are relative from the theme typst file, and all this needs to be in the same project root

This has been extensively discussed on the discord, I think we even arrived at some consensus of what we need for this to work.

If we arrive at a consensus of what a first version of this crate should contain and how the API should look like, I'd be thrilled to start working on it. This is a direct blocker for typst-test and I could retire typst-project in favor of this.

@laurmaedje has noted on the discord that manifest parsing is already partially in typst-syntax, so the rest could be added there too. Which is what I would start with some time this week.
The rest would go into typst-kit then.


Questions about the patterns used for training

Hi,
ADAPET is impressive and thanks for sharing the code!
But I am confused about the patterns used for training.
Your code (the current branch) sets pattern_idx as random by default (in src/utils/Config.py), which randomly samples a PVP from the list for each batch in training and ensembles the results from all PVP in evaluation. If I understand correctly, this setting is the same as Multi-Task Multi-Pattern Training mentioned in your paper (C.2), which is slightly worser than ADAPET.
I have tried setting pattern_idx to the best PVPs described in Table 4 but the performance is much worser than the random setting.
Do you have any suggestions for reproducing the best results reported in your paper?
Thanks again!

I replaced the environment from torch==1.5.0 to torch==1.7.0 on an NVIDIA Titan V server and run the code smoothly.
Now I can reproduce the same or similar results on all tasks.

That's great. We did have issues reproducing with other versions of PyTorch on our end as well with scores becoming significantly worse. This is partly the reason why we recommend installing a conda/virtualenv environment using the requirements file provided with the repository.


Multiple Repetition Counting

Hi, Thanks for your great work! Can this method be extended to multiple repetition counting scenarios? That is, a given video contains multiple different repeated actions, how to count the repetitions of each action? Sort of like a downstream task of temporal action localization.

update issues


USHIFT-1961: skip running FIPS tests on ARM architecture

/retest-required

/cherry-pick release-4.15


Allow custom date range in search

Describe the solution you'd like
I am using the DDGS().text("search string") feature in Python. It does provide a timelimit (e.g. "y"), but the custom date functionality provided by DDG does not seem to be implemented. It would be a very nice feature though.

https://github.com/deedy5/duckduckgo_search/issues/86