Shaka player does not play video when play button is pressed.

Hi,
We are using shaka player to play DASH streams. Below DASH stream dont start when it is played.
https://s3-ap-southeast-1.amazonaws.com/learnyst/schools/1094/courses/6677/paid/25537/online/11/004_video_youtube_1mb_fdq7pg2zj7la7v7bke29webTrack.mpd
This is Not a DRM video.
I have tested with the demo player also. When the play button is pressed this stream is not starting. The stream starts to play when we seek a little using seekbar. When the video is seeked backed to 0 seconds again it stops playing and doesnot play even when we press the start button.
Note: In this stream there 2 video streams of same bitrate. We have many streams like this(Means where 2 streams have same bitrate and pixelsWidth/Height)

Hi @sridhardvvce,
It looks like this was fixed by the same change that fixed #579, so I'm marking this as a duplicate.

I like the Beatles video!  I am able to play with the latest code from the master branch.  Let us know if you are still having issues once you update.

@joeyparrish
I have updated the code from git.
If I play the video 10 times, 9 times it plays successfully.
1 or 2 times it fails to start when the play button is pressed. When we seek a little it starts playing.


Blog social share and redirect issues

We need to look within _includes/social_buttons.html as well as functionality written to the redirect rules to resolve for legacy post urls. Example flow below.

The link that a large amount of blog posts socially shares is not the canonical/correct url
Links shared using that functionality within blog banner is then a broken 404 url

Example:
On the blog post Surprised? Turns out, consumers don’t trust IoT security I have taken screenshot and a quick video walkthrough, showing this functionality and url break.

Here you can see that the links shared within “social-stats” in blog banner point to https://auth0.com/blog/2015/11/06/surprised-turns-out-consumers-dont-trust-iot-security/ instead of https://auth0.com/blog/surprised-turns-out-consumers-dont-trust-iot-security/ on Twitter, LinkedIn, and Facebook (all social sharing options)

The Twitter sharing modal that pops up, with that incorrect url highlighted.

More info has been shared and talked about internally with Tony and Mariano as well.

Resolving the legacy sharing urls, see: https://github.com/auth0/blog/pull/1611

Part 2 done:
Redirecting legacy url pattern for those that are out there in the wild: https://github.com/auth0/blog-pages/pull/7


change color&logo

Hi,
is it possible to change the color of the main menu and/or change the logo?

Hello,
right now the logo cannot be changed. For the colors there is a dark theme that can be activate in the settings menu

OK, thank you


Large Refactor

Some of this is done, some is still in progress.  We are using clmtrackr internally for a project, so we thought some of the changes might be appreciated upstream.

Project built with webpack
Examples are implemented with react (included generic ui/container/TrackerContainer.js for use in other projects)
Publish using gh-pages tool

Check out the new examples here: https://jsio-private.github.io/clmtrackr/

Move shader code in to shader files
Integrated PRs: #45 #53 #83 #67
Source now compatible with other es6 / babel projects
Fixed model JSONs (generated from model JS files using npm run generateModelJsons)
Began linting project with eslint
General cleanup of code

Todo:

[ ] Move missing examples from gh-pages in to react
[ ] Move docs from gh-pages to react
[ ] Figure out why newer models (found on gh-pages) cause tracker to lose face after ~1s
[ ] Finish ES6ing + linting classes

Build script fails on Windows:
Failed at the<EMAIL_ADDRESS>build script 'NODE_ENV=production jsio-webpack'
Alas this is not proper syntax for environmental variables in Windows. :(

It seem's this also fails when installing as an electron dependency Node.js 6.5.0, Chromium 53.0.2785.143, and Electron 1.4.7

Hey guys, thanks for the interest! This was for a project at work, but we have shelved it for the time being.  I would be totally willing to collaborate on this some more in the future, but cannot spare the time right now.  It uses another internal project called jsio-webpack (which is just a webpack config helper) that sees regular backwards-incompatible updates, so I cannot even say for certain that it would build on a posix box right now.  Probably just some minor tweaks, but I have no idea.
We will definitely keep this PR updated if we have the time to come back and work on this some more!

Hi! Thanks very much for the PR! Parts of this PR has now been manually merged into master with this commit. Github does not manage to resolve that to this pull request, so I'll have to close this manually.


WIP: Add PASSBOLT_VERIFY option to provide custom certificate authority to…

… py-passbolt lib

Waiting for the merge of this pull request: https://github.com/passbolt/lab-passbolt-py/pull/2

Thank you for your contribution on this project. The other PR has been merged, I will publish new versions.

0.0.9 version has been released and published: https://galaxy.ansible.com/anatomicjc/passbolt
Thanks again :+1:


$ionicPopup.prompt() broken if "quotes" used in inputPlaceholder or defaultText

$ionicPopup.prompt() supports the inputPlaceholder option. This is not escaped, but used as-provided when passed to popup.js showPrompt()
Use of quotes will cause invalid HTML to be generated, causing at minimum the placeholder to be truncated, but potentially other strangeness, e.g. if the input contains a > character as well, it could terminate the  tag and cause other misbehavior.
Example:
$ionicPopup.prompt({
title: 'Three Words Below?',
inputPlaceholder: 'your "favorite" >here',
});
Implement check to escape these properly, since they are being placed inside an attribute.

Greetings @gregallensworth!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Confirmed that bug is absent when using defaultText option since this uses ng-model and is subject to Angular's own escaping. Title updated.

Commit d3fad60 just follows this same pattern that was developing, of using Angular's own templating and binding instead of raw string interpolation. This should make $ionicPopup.prompt() more forgiving of certain types of input errors, and provide a clear copy-paste-easy method for adding new options in the future.


REST API details should not need to be included for sending email

Issue Summary
Helper shouldn't require user to care about methods or paths: it should help people send emails with sensible defaults, like every other API client on npm.
Steps to Reproduce

Look at sendgrid v2.
Use sendgrid v4 and wonder why helper.Email() (at least according to the examples) code requires lower level concepts. I don't care about what your endpoint is, unless I'm overriding it, that's why I'm using your library rather than raw requests. Have sensible defaults.

it should help people send emails with sensible defaults, like every other API client on npm

Unfortunately this module behaves more like a basic helper set for constructing sendgrid payloads. And it ought to prevent malformatted json from hitting the API in the first place. At the very least, proper documentation would be preferred to learning of the module's shortcomings through errors in the API response body. Definitely needs more polish all around.

Hello @mikemaccana,
You are correct and changes are coming soon, please see: https://github.com/sendgrid/sendgrid-nodejs/issues/290
@eizzo,
Yes, the purpose of this first rewrite was to get low level support for all of the v3 Web API going, while removing the tight coupling the previous library had on the previous mail send endpoint. We invite you to join us on that journey, please take a look at this when have a moment: https://github.com/sendgrid/sendgrid-nodejs/issues/290
I'm looking forward to both of your feedback as we continue down the road of fully implementing this library.
Thanks for your support!
I'm closing this ticket; however, please feel free to open new issues or pull requests with specific implementation details or ideas.

Any help coming soon to remove/sidestep this helper madness?

Hi @honkskillet,
Yes :)
Please follow the Mail Helper Enhancement (v3 mail/send) project if you would like to follow or contribute. @adamreisnz will propose the new helper interface there for community feedback.
With Best Regards,
Elmer


Create calculator

simple calculator added

@munishyadav08 !
Great Work!
You can follow me and star this repository for further updates.
Have fun  🙌🏼


Xcode 8.3 warnings

Hi @hackiftekhar,
Please resolve the situation above.
Thanks
KZ

The IQAudioRecorderViewController was added by CocoaPods. These warnings were not visible before Xcode 8.3. Thanks!

Thanks!


Set permissions for GitHub actions

Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests
Signed-off-by: naveensrinivasan<EMAIL_ADDRESS>

What was unclear about the comment and questions I left in the previous PR?


[MM-40591]Admin console team override scheme page going into an infinite loading state

Summary
Admin console team override scheme page going into an infinite loading state
Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-40591
Related Pull Requests
None
Screenshots

before
after

https://www.loom.com/share/691fe8bf460143cea5de25d94290bda6
https://www.loom.com/share/73f53038beb24ea59558064a73f2f496

Release Note
* Bugfix: Admin console team override scheme page going into an infinite loading state

@crspeller Let me know if I need to change the role condition instead of loading run_admin to run_member

/e2e-test

Triggering e2e testing with options:
<nil>

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/104407

Cherry pick is scheduled.


IRCv3 tags broken if tag value contains a colon

It looks like the regex on line 100 of lib/cinch/message.rb is broken for twitch IRCv3 when emotes are used in the message:
Example message that breaks the regex:
@badges=moderator/1,subscriber/24,bits/50000;color=#D63F50;display-name=CyclopsDragon;emotes=15017:11-16;id=e4964802-5310-449d-b8f1-52be38ff1d26;mod=1;room-id=21836069;sent-ts=1502929472853;subscriber=1;tmi-sent-ts=1502929475647;turbo=0;user-id=6342406;user-type=mod<EMAIL_ADDRESS>PRIVMSG #geoff :hi gibeDu
On Twitch's IRC the emotes tag will contain a colon which breaks the regex preventing the message from being parsed.

http://regexr.com/3giql
I built a new regex. Looks like it's working. Could you test it with some other messages? :)

Not sure if that regex is used to parse the messages on login, but the bot is no longer joining channels or requesting caps with that regex in place.

Pretty sure I've fixed it here: craysiii@72c3ee6bcba3b801b9b1aea9853574d1183cd6fb
Not sure if I should make a pull request, haven't tested it on a "normal" IRC network.

Confirmed working on Twitch.


"locals" don't work with for loop

Here is my code:
from numba import *
import numba

import numpy as np

@autojit(locals={"x_pv": Py_uintptr_t, "y_pv": Py_uintptr_t}, nopython=True)
def ddot0(x, x_pv, y, y_pv):

    N = len(x)
    for b in range(N):
        pass

length = 33
x = np.arange(length, dtype=np.float32)
y = x.copy()

x_pv = x.ctypes.data
y_pv = y.ctypes.data

ddot0(x, x_pv, y, y_pv)

Here is the trace.  dummy_type_infer seems to be the problem.
Traceback (most recent call last):
  File "numba_locals_bug.py", line 22, in <module>
    ddot0(x, x_pv, y, y_pv)
  File "numbawrapper.pyx", line 189, in numba.numbawrapper._NumbaSpecializingWrapper.__call__ (numba/numbawrapper.c:3731)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/wrapping/compiler.py", line 69, in compile_from_args
    return self.compile(signature)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/wrapping/compiler.py", line 88, in compile
    compiled_function = dec(self.py_func)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/decorators.py", line 224, in _jit_decorator
    nopython=nopython, func_ast=func_ast, **kwargs)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/decorators.py", line 133, in compile_function
    func_env = pipeline.compile2(env, func, restype, argtypes, func_ast=func_ast, **kwds)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 144, in compile2
    post_ast = pipeline(func_ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 191, in __call__
    ast = self.transform(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 656, in transform
    ast = stage(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 641, in _stage
    return _check_stage_object(stage_obj)(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 194, in __call__
    ast = self.transform(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 413, in transform
    return transform.visit(ast)
  File "/memex/linpengt/anaconda/lib/python2.7/ast.py", line 241, in visit
    return visitor(node)
  File "/memex/linpengt/anaconda/lib/python2.7/ast.py", line 297, in generic_visit
    value = self.visit(value)
  File "/memex/linpengt/anaconda/lib/python2.7/ast.py", line 241, in visit
    return visitor(node)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/specialize/loops.py", line 258, in visit_For
    return self.rewrite_range_iteration(node)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/specialize/loops.py", line 147, in rewrite_range_iteration
    body=body, else_body=else_body)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/visitors.py", line 259, in run_template
    func=func)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/templating.py", line 172, in template_type_infer
    return dummy_type_infer(self.context, tree, env=self.env, **kwargs)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/templating.py", line 183, in dummy_type_infer
    function_level=1, locals=func_env.locals, **kwargs)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 100, in run_env
    pipeline(func_env.ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 191, in __call__
    ast = self.transform(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 656, in transform
    ast = stage(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 641, in _stage
    return _check_stage_object(stage_obj)(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 194, in __call__
    ast = self.transform(ast, env)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 385, in transform
    ast, env, **crnt.kwargs)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/pipeline.py", line 185, in make_specializer
    return cls(env.context, crnt.func, ast, **kws)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/type_inference/infer.py", line 97, in __init__
    self.init_locals()
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/type_inference/infer.py", line 164, in init_locals
    self.handle_locals(arg_types)
  File "/memex/linpengt/anaconda/lib/python2.7/site-packages/numba/type_inference/infer.py", line 143, in handle_locals
    arg_types[idx] = local_type
IndexError: list assignment index out of range

Closing as outdated.


Errors  (no subnets, assume Role access denied, incompatible with node pool) when trying to schedule Pods.

Description
Observed Behavior:
Pods don't get scheduled on Karpenter Nodes
I installed Karpenter (0.34.0) via the Cloudformation Example for testing. Now I have moved to Terraform (0.36.1). I managed to get Karpenter somehow working but am currently stuck with error messages (sse log below) when trying to schedule a Pod which resulted in a new Node being provisioned on the Cloud Formation provisioned cluster.
Not sure which error is actually relevant, if not both. I am also using Gatekeeper OPA to schedule pods based on their namespace into heir corresponding node pool.
Errors (formatted for better readability
{
    "level": "ERROR",
    "time": "2024-04-29T09:04:33.145Z",
    "logger": "controller",
    "message": "Reconciler error",
    "commit": "fb4d75f",
    "controller": "nodeclass",
    "controllerGroup": "karpenter.k8s.aws",
    "controllerKind": "EC2NodeClass",
    "EC2NodeClass": {
        "name": "default"
    },
    "namespace": "",
    "name": "default",
    "reconcileID": "2ab37ee0-e93e-4492-99bf-3bdec2b48df3",
    "error": "no subnets exist given constraints [{map[karpenter.sh/discovery:xxx-xx-cluster] }]; creating instance profile, adding role \"Karpenter-xxx-xx-cluster-20240429041809601500000011\" to instance profile \"xxx-xx-cluster_14408108118530556388\", AccessDenied: User: arn:aws:sts::xxxxxxxxxxxxxx:assumed-role/KarpenterController-2024042906492439230000000d/1714381444159319382 is not authorized to perform: iam:PassRole on resource: arn:aws:iam::xxxxxxxxxxxxxx:role/Karpenter-xxx-xx-cluster-20240429041809601500000011 because no identity-based policy allows the iam:PassRole action\n\tstatus code: 403, request id: 46d3bf0a-d095-4c99-8460-62936e684191",
    "errorCauses": [
        {
            "error": "
            no subnets exist given constraints [{map[karpenter.sh/discovery:xxx-xx-cluster] }]
            "
        },
        {
            "error": "
            creating instance profile
            , adding role \"Karpenter-xxx-xx-cluster-20240429041809601500000011\" to instance profile \"xxx-xx-cluster_14408108118530556388\"
            , AccessDenied: User: arn:aws:sts::xxxxxxxxxxxxxx:assumed-role/KarpenterController-2024042906492439230000000d/1714381444159319382
              is not authorized to perform: iam:PassRole on resource: arn:aws:iam::xxxxxxxxxxxxxx:role/Karpenter-xxx-xx-cluster-20240429041809601500000011
              because no identity-based policy allows the iam:PassRole action\n\tstatus code: 403, request id: 46d3bf0a-d095-4c99-8460-62936e684191
            "
        }
    ]
}
{
    "level": "INFO",
    "time": "2024-04-29T09:04:35.659Z",
    "logger": "controller.provisioner",
    "message": "found provisionable pod(s)",
    "commit": "fb4d75f",
    "pods": "default/runner-e3745de8-89be-566b-bf75-2f7295b6f379-pw9rb",
    "duration": "92.379048ms"
}
{
    "level": "ERROR",
    "time": "2024-04-29T09:04:35.659Z",
    "logger": "controller.provisioner",
    "message": "Could not schedule pod,

    incompatible with nodepool \"pool-xxx-staging\"
    , daemonset overhead={\"cpu\":\"180m\",\"memory\":\"120Mi\",\"pods\":\"5\"}
    , no instance type satisfied resources {\"cpu\":\"4180m\",\"memory\":\"16504Mi\",\"pods\":\"6\"} and requirements autoscaler In [karpenter]
    , karpenter.k8s.aws/instance-category In [c m r]
    , karpenter.k8s.aws/instance-generation Exists >2
    , karpenter.k8s.aws/instance-hypervisor In [nitro]
    , karpenter.sh/capacity-type In [on-demand spot]
    , karpenter.sh/nodepool In [pool-xxx-staging]
    , kubernetes.io/arch In [amd64]
    , kubernetes.io/os In [linux]
    , topology.kubernetes.io/zone In [eu-central-1a eu-central-1b] (no instance type met the scheduling requirements or had a required offering);

    incompatible with nodepool \"pool-xxx-development\"
    , daemonset overhead={\"cpu\":\"180m\",\"memory\":\"120Mi\",\"pods\":\"5\"}
    , no instance type satisfied resources {\"cpu\":\"4180m\",\"memory\":\"16504Mi\",\"pods\":\"6\"} and requirements autoscaler In [karpenter]
    , karpenter.k8s.aws/instance-category In [c m r]
    , karpenter.k8s.aws/instance-generation Exists >2
    , karpenter.k8s.aws/instance-hypervisor In [nitro]
    , karpenter.sh/capacity-type In [on-demand spot]
    , karpenter.sh/nodepool In [pool-xxx-development]
    , kubernetes.io/arch In [amd64]
    , kubernetes.io/os In [linux]
    , topology.kubernetes.io/zone In [eu-central-1a eu-central-1b] (no instance type met the scheduling requirements or had a required offering);

    incompatible with nodepool \"default\"
    , daemonset overhead={\"cpu\":\"180m\",\"memory\":\"120Mi\",\"pods\":\"5\"}
    , no instance type satisfied resources {\"cpu\":\"4180m\",\"memory\":\"16504Mi\",\"pods\":\"6\"} and requirements autoscaler In [karpenter]
    , karpenter.k8s.aws/instance-category In [c m r]
    , karpenter.k8s.aws/instance-generation Exists >2
    , karpenter.k8s.aws/instance-hypervisor In [nitro]
    , karpenter.sh/capacity-type In [on-demand spot]
    , karpenter.sh/nodepool In [default]
    , kubernetes.io/arch In [amd64]
    , kubernetes.io/os In [linux]
    , topology.kubernetes.io/zone In [eu-central-1a eu-central-1b] (no instance type met the scheduling requirements or had a required offering)

    ",
    "commit": "fb4d75f",
    "pod": "default/runner-e3745de8-89be-566b-bf75-2f7295b6f379-pw9rb"
}

Regarding the PassRole error, the Karpenter controller role needs iam:PassRole permission to the node instance role.  This is required as otherwise you could configure a node class to launch an instance with any role (e.g. an Admin one).
The scheduling errors are possibly related to the inability to find a subnet:
"no subnets exist given constraints [{map[karpenter.sh/discovery:xxx-xx-cluster] }];

Can you double check that there are subnets that match those tags?

The error message is about the role arn:aws:iam::xxxxxxxxxxxxxx:role/Karpenter-xxx-xx-cluster-20240429041809601500000011, but that fragment of IAM policy specifies the role arn:aws:iam::xxxxxxxxxxxxxx:role/Karpenter-xxx-xx-cluster-20240429114857303400000010.

Interesting. and strange. This is how I created the roles and permissions. Not sure if I did something wrong here.
module "karpenter" {
  source = "terraform-aws-modules/eks/aws//modules/karpenter"
  cluster_name = module.eks.cluster_name

  # EKS Fargate currently does not support Pod Identity
  enable_irsa            = true
  irsa_oidc_provider_arn = module.eks.oidc_provider_arn

  # Used to attach additional IAM policies to the Karpenter node IAM role
  node_iam_role_additional_policies = {
    AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
  }
}

resource "helm_release" "karpenter" {
  namespace           = "karpenter"
  create_namespace    = true
  name                = "karpenter"
  repository          = "oci://public.ecr.aws/karpenter"
  chart               = "karpenter"
  version             = "0.36.1"
  wait                = false

  values = [
    <<-EOT
    settings:
      clusterName: ${module.eks.cluster_name}
      clusterEndpoint: ${module.eks.cluster_endpoint}
      interruptionQueue: ${module.karpenter.queue_name}
    serviceAccount:
      annotations:
        eks.amazonaws.com/role-arn: ${module.karpenter.iam_role_arn}
    EOT
  ]
}

Ok, I found my mistake. SInce I was using a predefined VPC, subnets needed to be tagged with "karpenter.sh/discovery"=<cluster-name (in my case)>


Issue/4200 module install change requirements

Description
enforce the requirements on all inmnata-* packages so that those requirements don't
get overwritten when installing a module that install one of those requirements
with another version. (for exemple using inmanta project install)
closes #4200
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[x] No (preventable) type errors (check using make mypy or make mypy-diff)
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

@sanderr I've started the slowbuild but I think this can already be reviewed.

Processing this pull request

Failed to merge changes into iso4 due to merge conflict.Please open a pull request for these branches separately.

Merged into branches master in 3023ace2fc2c5bbf7bb2e68c321148f23d723501

Not closing this pull request due to previously commented issues for some of the destination branches. Please open a separate pull request for those branches. You can safely close this pull request and delete the source branch.

@sanderr The merge failed for Iso4, I tried to cherry-pick the commit on a new iso4 branch but all the (important) files have conflicts. I haven't looked into it in details yet but could you confirm this fix should also go in iso4?

I don't think it should, sorry I missed that in the review. The installation process for iso4 is completely different so I would keep that separate. Since it has been merged already into iso5 and master, there is now a change entry that declares it should also be in iso4, so we do need to address that or the project invariant check will keep failing. The simplest approach is to just merge a change entry with the same name into iso4. Make sure to update the description (saying that it's a dummy change entry for a change we decided not to port to iso4) and the sections (no sections of course).


[Event Request] codeunit 442 "Sales-Post Prepayments" - UpdateVATOnLines

In #21662 , we requested a new function on SalesLine : GetVATBaseDiscountPercentage
Can you please integrate this new function for all references to SalesHeader."VAT Base Discount %" in UpdateVATOnLines?
This would allow us to overrule the SalesHeader."VAT Base Discount %" value with zero in case a certain sales line is to be excluded from any discounts.
As-is (2 references in UpdateVATOnLines)
NewVATBaseAmount :=
                                  Round(
                                    NewAmount * (1 - SalesHeader."VAT Base Discount %" / 100),
                                    Currency."Amount Rounding Precision");

To-be
NewVATBaseAmount :=
                                  Round(
                                    NewAmount * (1 - SalesLine.GetVATBaseDiscountPercentage(SalesHeader) / 100),
                                    Currency."Amount Rounding Precision");

@ZepposBE

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 52774.


[d3d8] Various Wine state block tests fixes

Fixes all of Wine's D3D8 state block tests.
In short:

fixed the default value of the D3DRS_POINTSIZE_MIN render state being 0.0f in D3D8 (this was changed to 1.0f in D3D9)
capture VB stream state as part of D3D8 state blocks
automatically capture state on state block creation via CreateStateBlock()

Master:
0020:stateblock: 9283 tests executed (0 marked as todo, 0 as flaky, 108 failures), 0 skipped.
This PR:
0020:stateblock: 9283 tests executed (0 marked as todo, 0 as flaky, 0 failures), 0 skipped.

Holy d3d8 moly

Work's done, but the PR needs some regression testing. I'll get to that eventually, if @Blisto91 doesn't want to take this opportunity to complete the classification of his vast D3D8 Steam library :wink: .

I've thrown this at about 30 games, including all the state block heavy hitters I'm aware of, and it seems fine.


[FR]: Support Multiple Link Types

If one file were to have
tag1:: [[note]]
tag2:: [[note]]

we should display both, perhaps with a / between them

Ah! I feel like this is the next thing to tackle. If I want to have 3 lines connecting two nodes, I'll need to have the ability to do something like above (two different tags from one file).


Cleaning up front-end Javascript code

A lot of Javascript got split into multiple files etc.
Still there's a lot of ground to win. Especially in tree_graph.js

It's a little bit more cleaned-up - splitted up in multiple files - using Object.prototype. But there's some ground to win.


🐛 BUG: fetch fails with option cors

Which Cloudflare product(s) does this pertain to?
Pages
What version(s) of the tool(s) are you using?
3.12.0
What version of Node are you using?
18.17.1
What operating system are you using?
cloudflare pages
Describe the Bug
After lates release our fetch calls with the option mode: cors fail on clouflare pages with the error message:
The 'mode' field on 'RequestInitializerDict' is not implemented.
I just removed the fetch option, but I don't think this is a desired behavior.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response

I did remove it, but should a fetch request really fail, because of a key in a config object?

Closing this as fixed by the PR listed above. If this continues to be an issues, please reopen. Thanks!


unwrapping params.images.get panics, no matter what I do

I'm not sure how Sprite3dParams::images` gets populated. simply following the examples ends up failing.
https://github.com/FraserLee/bevy_sprite3d/blob/ce57326ff63b1dae99cd2595422672bc82b22325/src/lib.rs#L264

I'm closing this for now as a likely duplicate of #5 . If the solutions there don't work, feel free to reopen. Cheers


It looks like this is Bluetooth only? Any chance of using Wifi?

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
I do not use bluetooth and grill is too far to reach it.
Describe the solution you'd like
Using WiFi would be a great addition.
Describe alternatives you've considered
None known
Additional context
NA

Does the wifi work for you in the app? Mine has terrible range, even when connecting to Bluetooth and my phone is literally touching the front of the controller (only 1-2 bars when doing that which is baffling). I’m in the process of getting a replacement controller to see if they’re all garbage or I got a dud.

Does the wifi work for you in the app? Mine has terrible range, even when connecting to Bluetooth and my phone is literally touching the front of the controller (only 1-2 bars when doing that which is baffling). I’m in the process of getting a replacement controller to see if they’re all garbage or I got a dud.

WiFi works great. Haven’t tried to leave the house but I can say anywhere in the house or garage I have no issues. For S&Gs I just turned off WiFi and Bluetooth and everything still seems to be working.

This is Bluetooth only. If you don't have a Bluetooth receiver within range, I'd suggest looking at ESPHome's bluetooth proxy feature which integrates natively with Home Assistant.


hosting for eddsa-api plugin

note. info is not correct but updated to make the bot happy.
no users need artifactory permission as I would like to use exclusive CD mode (but added myself)
https://github.com/orgs/jenkinsci/teams/company-cloudbees-developers should have write access to the repo but that is not a "valid user" will file a PR later...
Repository URL
https://github.com/jtnord/eddsa-api-plugin
New Repository Name
eddsa-api-plugin
Description
a plugin to bundle EDDSA so that we can avoid funky classloading issues and have a single copy that we can keep track of.
see also https://github.com/jenkinsci/trilead-api-plugin/pull/148 https://github.com/jenkinsci/mina-sshd-api-plugin/pull/98
GitHub users to have commit permission
@jtnord
Jenkins project users to have release permission
teilo
Issue tracker
Jira

Required: The following usernames in 'GitHub Users to Authorize as Committers' are not valid GitHub usernames or are Organizations: jenkinsci/company-cloudbees-developers

is right but wrong...? how are we supposed to use teams?

/hosting host


Issue Uploading ws2812_controller.ino

Thanks for this project, hope i can contribute my efforts as well, quite new to IoT's, got everything going but having this issue while verifying or trying to upload ws2812_controller.ino
Arduino: 1.8.5 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 160 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200"

XXXXXXX\audio-reactive-led-strip-master\audio-reactive-led-strip-master\arduino\ws2812_controller\ws2812_controller.ino:3:30: fatal error: WebSocketsServer.h: No such file or directory
 #include <WebSocketsServer.h>
^
compilation terminated.
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any help it try to troubleshoot would be massivly helpful thanks

The visualization.py does not work if the microcontroller is not connected to your wifi. Check in your routers list of connected devices if the controller is connected correctly and check if in the config.py you have the same port and ip for your esp 8266 as in the arduino code.

What additional arduino libraries did you need to load?

Closing due to inactivity, and also it seems like this was solved previously.


Chunks are not gzipped in production

When using lazy loading modules the resulting chunks (like 0.59ea61d3b756000074ac.chunk.js ) are not gzipped.

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Yosemite

Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.15
node: 6.1.0
os: darwin x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.

Create an app with a lazy loaded module. run ng build --prod

The log given by the failure. Normally this include a stack trace and some
more information.

n/a

Mention any other details that might be useful.

n/a

Could be duplicate of #2028?

@mrgoos I think it's different, after further investigation I noticed that some chunks are gzipped, others not
-rw-r--r--   1 mwawrusch  staff     2981 Sep 25 05:58 0.59ea61d3b756000074ac.chunk.js
-rw-r--r--   1 mwawrusch  staff    57620 Sep 25 05:58 012cf6a10129e2275d79d6adac7f3b02.woff
-rw-r--r--   1 mwawrusch  staff   742949 Sep 25 05:58 054fa50baa6598a7bf0c6deec135d3a4.svg
-rw-r--r--   1 mwawrusch  staff   183252 Sep 25 05:58 056caeabe95749fe2b973bb9a0cd0776.ttf
-rw-r--r--   1 mwawrusch  staff    89432 Sep 25 05:58 081b11ebaca8ad30fd092e01451015dc.woff
-rw-r--r--   1 mwawrusch  staff    39810 Sep 25 05:58 1.42dcada3952637b70f07.chunk.js
-rw-r--r--   1 mwawrusch  staff    12614 Sep 25 05:58 1.42dcada3952637b70f07.chunk.js.gz
-rw-r--r--   1 mwawrusch  staff   185004 Sep 25 05:58 11b5cc9584f2c007a22966a031ead20e.ttf
-rw-r--r--   1 mwawrusch  staff    21893 Sep 25 05:58 183079184d96a491f16e3cc70414975d.eot
-rw-r--r--   1 mwawrusch  staff   767510 Sep 25 05:58 1a9e39e536aed26b863b243e68f97e3a.svg
-rw-r--r--   1 mwawrusch  staff   776042 Sep 25 05:58 1f37c7545ae9f63d2279f99875678396.svg
-rw-r--r--   1 mwawrusch  staff    17374 Sep 25 05:58 2.ff4ce882dc16f9a25557.chunk.js
-rw-r--r--   1 mwawrusch  staff     6098 Sep 25 05:58 2.ff4ce882dc16f9a25557.chunk.js.gz

@mwawrusch I think this may be down to how large the chunks are. I know that there is a threshold where compressing the file will actually hurt performance. I would check and see how large the chunks are and see if they are gzipped as they get bigger.

That seems like a reasonable assumption, as only the smaller files are kept unzipped.
I propose to always zip files, to avoid potential deployment problems.
Example:
A file shrinks below the threshold and is no longer zipped. However it remains on S3 and cloudfront as the zipped version, which is now no longer the current version. Those kind of problems are incredibly expensive to debug.

Closing as dupe of https://github.com/angular/angular-cli/issues/2028, better to keep gzip discussion there.


Add sizeless/typeless compile-time nil pointer

Although NULL is a "billion dollar mistake" a lot of the software interfaces that Sunder will need to interact with (e.g. the Linux kernel) have a concept of the NULL pointer. An implicit cast from NULL and/or 0 to a pointer allows for NULL to act almost like an untyped pointer constant in C, and it would be nice to have something similar in Sunder. Perhaps the constant nil could behave similar to the current implementation of unsized integers that are coerced to a "real" type depending on the context in which they are used.
If we are officially going to make nullable pointers part of the language then we should probably also make it so that pointer dereference has an explicit check against nil and produces a runtime error on nil-dereference.

Upon reflection I really do not want to add any sort of NULL into the language. Creating a NULL pointer manually can be done with (:*T)0u for some base type T if really needed, and std::cptr::is_null can be used to detect a NULL pointer if really needed.


Add an start_assisted_install step

This step starts the assisted agent unit so that the rest of the install
process can be managed by AIA.
Signed-off-by: Flavio Percoco<EMAIL_ADDRESS>

/approve

/retest

/lgtm


Update v_box_item_list.gd

Removed some code that seems to be from an early implementation.
I don't quite understand the _hovered_item part... it seems there is something broken there!

I was wondering if this was still relevant. Lol


[DO NOT MERGE] Fix facet tags for accessible-autocomplete

This PR fixes the facet tags for the accessible-autocomplete component so that clicking on the remove button has the desired behaviour of removing this filter from the search.
In order to achieve this, it is necessary to determine if the input we're dealing with has created by the accessible-autocomplete component. The accessible-autocomplete does not set the name attribute of the generated <input> element, so this is not helpful to us.
Instead, an accessible-autocomplete will enhance a select element and rename that element to be <ID>__listbox, where <ID> is the original id attribute on the select element. Therefore we can look for the presence of a select with an id == <FACET_VALUE>__listbox to determine if we're dealing with an autocomplete. If this is the case, we can get the input without needing to find anything further inside the element, giving us the appropriate element type and input type, before entirely replacing the current value of the autocomplete with a blank string, removing the filter from the search.
PR: https://finder-frontend-pr-796.herokuapp.com/news-and-communications
Solo: @karlbaker02
Trello card: https://trello.com/c/Gk9FE0Sg/238-fix-finders-bugs

Superseded by https://github.com/alphagov/finder-frontend/pull/819


i18next should be peer dependency

I believe i18next should be a peer dependency of this package, rather than a full blown dependency - similar to how it is a peerDep of react-i18next. It's an example of the "plugin" case which peer dependencies are intended for (see here).
This should also allow a wide dependency range - I suspect this plugin works with v20 and v21 of i18next, given that they haven't changed the plugin APIs as far as I can tell.

Confirmed that v20 works, not tried v21 yet.


Presentation: Fix duplicated related property fields

Fix duplicated related property fields when input contains multiple classes and related property spec has an instance filter. This fixes https://github.com/iTwin/viewer-components-react/issues/936.

@mergifyio backport release/4.x


Support Pixtral-12B

What does this PR do?
Support Pixtral-12B introduced by mistral-ai
Fixes # (issue)
Before submitting

[x] Did you read the contributor guideline?
[x] Did you write any new necessary tests?

Not sure if this is supposed to be ready yet, but for now it crashes during data loading with

AttributeError: 'PixtralImageProcessor' object has no attribute 'merge_size'

If you eval with FA2 enabled, it crashes with

ValueError: You are attempting to perform batched generation with padding_side='right' this may lead to unexpected behaviour for Flash Attention version of Mistral. Make sure to  call tokenizer.padding_side  = 'left' before tokenizing the input.

If you eval with FA2 enabled during training, it errors with

ValueError: You are attempting to perform batched generation with padding_side='right' this may lead to unexpected behaviour for Flash Attention version of Mistral. Make sure to  call tokenizer.padding_side  = 'left' before tokenizing the input

Sorry, I didn't test it with FA2 before, I will try to make it work out later.

If you eval with FA2 enabled during training, it errors with

ValueError: You are attempting to perform batched generation with padding_side='right' this may lead to unexpected behaviour for Flash Attention version of Mistral. Make sure to  call tokenizer.padding_side  = 'left' before tokenizing the input.

Hello, sorry for the late reply. I think this problem is because the actual padding_side of the mistral.tokenizer during Pixtral model training is inconsistent with the padding_side required by FA2. But in order not to make intrusive changes to the workflow code, I would suggest that you make a special setting in your corresponding training workflow.py for the tokenizer in your corresponding training workflow.py
I found a gpu that supports fa and test with config below and it works for me.
### model
model_name_or_path: "./model/pixtral-12b"

### method
stage: sft
do_train: true
finetuning_type: lora
lora_target: all
pissa_init: true
flash_attn: fa2
# turn the padding_site of tokenizer
predict_with_generate: true

### dataset
dataset: your_dataset
template: pixtral
cutoff_len: 1024
max_samples: 1000
overwrite_cache: true
preprocessing_num_workers: 16
eval_dataset: your_dataset

### output
output_dir: saves/pixtral/lora/sft
logging_steps: 10
save_steps: 500
plot_loss: true
overwrite_output_dir: true

### train
per_device_train_batch_size: 4
gradient_accumulation_steps: 8
learning_rate: 1.0e-4
num_train_epochs: 100.0
lr_scheduler_type: cosine
warmup_ratio: 0.1
fp16: true
ddp_timeout: 180000000
freeze_vision_tower: true

### eval
per_device_eval_batch_size: 1
eval_strategy: steps
eval_steps: 500


Password on Polkawallet not working

Describe the bug
My password not working when i wannt to contribute to parachain.
To Reproduce
Steps to reproduce the behavior:
Anytime i need to input my password,pop up window shows that that is wrong.I wrote my pass manualy with mnemonics,so there is no way i made an mistake.
Smartphone (please complete the following information):

Device: Iphone 11 Pro Max
OS: 15.02
Version [e.g. 0.9.1-beta.1]

Just re-import your account with mnemonic and set a new password.

Can it be done with the mobile IOS app?

Can it be done with the mobile IOS app?

yes

same problem .
I can't enter mnemonic to sing the secret phrase


The Audit Log Schema looks differently

I'm not sure if the Audit log schema has some changes. There is no properties field now if I query from imported AAD Log in Log Analytics workspace.

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

ID: b651a95f-7c34-a979-f97e-e4feedb47487
Version Independent ID: ff679d7a-0bc5-692f-8ef8-72e24d402f23
Content: Interpret the Azure Active Directory audit log schema in Azure Monitor (preview)
Content Source: articles/active-directory/reports-monitoring/reference-azure-monitor-audit-log-schema.md
Service: active-directory
GitHub Login: @priyamohanram
Microsoft Alias: priyamo

@thuansoldier
Thanks for your feedback! We will investigate and update as appropriate.

Based on the portal it looks like the properties values are still there but the overall Properties field may have gone away? Assigning to @priyamohanram to look into.

We have a opened a backlog item to investigate this and will close this issue and track the backlog item.  Thanks for the feedback!


scratch-blocks in react application.

How can we use scratch block in react typescript application? can you please provide a code snippet of a react component that uses scratch-blocks?

Here is a small snippet how to use scratch-blocks in react typescript:
import scratchblocks from 'scratchblocks';
import ScratchBlocks from 'scratchblocks-react';

const ScratchBlocksImage = props => (
    <div>
        <ScratchBlocks
            blockStyle="scratch3"
            languages={['en']}
        >
            {scratchBlocksText}
        </ScratchBlocks>
    </div>
);

ScratchBlocksImage.propTypes = {
    scratchBlocksText: PropTypes.string
};

Here is a small snippet how to use scratch-blocks in react typescript:

That's scratchblocks, not scratch-blocks.


Does RealmSwift 0.94.1 not support "String?" anymore?

I just updated RealmSwift (via CocoaPods) from 0.93.2 to 0.94.1 which crashes like this:
Terminating app due to uncaught exception 'RLMException', reason: 'Only 'object' properties can be made optional, and property 'something' is of type 'any'.
If this is a 'String?' property, it must be declared as 'NSString?' instead.'

Not liking the idea to switch to "NSString?", I did that anyway just to see it. Which delivers just a slightly different error:
Terminating app due to uncaught exception 'RLMException', reason: 'Only 'object' properties can be made optional, and property 'something' is of type 'string'.'

I will probably find the solution the second after posting this, but since I saw a question on Stack too, I thought this could save time for others in that "worst case".

Realm does not yet support optional types, but we did have a beta out a while back that did. For now, though, you either need to use a String or NSString property, until optional support is released.

0.93.2 seems to have had support for optionals. A simple upgrade to the new version

pod 'RealmSwift', '0.93.2'

pod 'RealmSwift', '0.94.1'
makes the optionals support go away. Was 0.93 the beta you mentioned?

No, 0.93 was not a beta, and it certainly didn't have support for optionals. My guess is that your nil strings were actually being stored as empty strings, in which case throwing an exception now is preferable, as it prevents the surprising thing from happening.

Thanks for the info.
I think the first error message in my original post is incorrect then, because it says I should use "NSString?" instead of "String?" which only leads to another error message.
Maybe it should advise to use "String" instead of "String?"

Yeah, the error message is changed in the wrong place -- I'll fix that, so thanks for pointing it out!


[Bug]: Empty home page on release 0.1.1

Is there an existing issue for this?

[X] I have searched the existing issues

Is there a StackOverflow question about this issue?

[X] I have searched StackOverflow

What happened?
A bug happened!

Relevant logcat output
Failed to evaluate a suspendRunCatchingBlock. Returning failure Result
java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
	at ad.t.b(SourceFile:2486)
	at ad.y0.b(Unknown Source:30)
	at ad.x0.invoke(SourceFile:45)
	at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
	at com.google.samples.apps.nowinandroid.core.network.retrofit.$Proxy3.b(Unknown Source)
	at com.google.samples.apps.nowinandroid.core.network.retrofit.f.a(Unknown Source:2)
	at o9.n.i(SourceFile:47)
	at o9.n.w(SourceFile:21)
	at m9.b.i(SourceFile:117)
	at m9.b.x(SourceFile:24)
	at k4.h0.o0(Unknown Source:52)
	at k4.h0.D(SourceFile:75)
	at o9.q.a(Unknown Source:30)
	at pa.d.i(SourceFile:33)
	at ib.a.h(Unknown Source:8)
	at kotlinx.coroutines.j0.run(Unknown Source:104)
	at kotlinx.coroutines.internal.f.run(Unknown Source:11)
	at kotlinx.coroutines.scheduling.i.run(Unknown Source:2)
	at kotlinx.coroutines.scheduling.a.run(SourceFile:77)
Failed to evaluate a suspendRunCatchingBlock. Returning failure Result
java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
	at ad.t.b(SourceFile:2486)
	at ad.y0.b(Unknown Source:30)
	at ad.x0.invoke(SourceFile:45)
	at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
	at com.google.samples.apps.nowinandroid.core.network.retrofit.$Proxy3.c(Unknown Source)
	at com.google.samples.apps.nowinandroid.core.network.retrofit.f.c(Unknown Source:2)
	at o9.u.i(SourceFile:38)
	at o9.u.w(SourceFile:21)
	at m9.b.i(SourceFile:117)
	at m9.b.x(SourceFile:24)
	at k4.h0.o0(Unknown Source:52)
	at k4.h0.D(SourceFile:75)
	at o9.w.a(Unknown Source:25)
	at pa.c.i(SourceFile:33)
	at ib.a.h(Unknown Source:8)
	at kotlinx.coroutines.j0.run(Unknown Source:104)
	at kotlinx.coroutines.internal.f.run(Unknown Source:11)
	at kotlinx.coroutines.scheduling.i.run(Unknown Source:2)
	at kotlinx.coroutines.scheduling.a.run(SourceFile:77)

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Fixed in #861

Confirmed to be fixed in release 0.1.2 👍


Prompt for confirmation when navigating away

This kinda bugged me, so I fixed it. Also, shouldn't this be in the CSH organization?

shouldn't this be in the CSH organization?

No

shouldn't this be in the CSH organization?

No

Care to explain why? imo, any CSH-specific stuff we have deployed really ought to live in the organization for discoverability and administrative reasons.

Care to explain why? imo, any CSH-specific stuff we have deployed really ought to live in the organization for discoverability and administrative reasons.

This is still very much my project, it's discoverable from the page itself, and it's not like I'm an inactive maintainer. If I spontaneously combust, feel free to contact my family, they should be able to recover my github account.

Care to explain why? imo, any CSH-specific stuff we have deployed really ought to live in the organization for discoverability and administrative reasons.

This is still very much my project, it's discoverable from the page itself, and it's not like I'm an inactive maintainer. If I spontaneously combust, feel free to contact my family, they should be able to recover my github account.

Sure, but this is a house service. You can retain your authority over the project even if it lives in the github org.


Smooth fading and uprising

On my 4.4 android dialogs appeared sharply

Sorry, what's the problem? Can you be more specific?

Reformulate the thought. How to add animation to the appearance and hide the dialog?

The library doesn't support it. You could do it with custom dialogs. But it would be a nice addition to the library, would you like to add it and send a pull request?

I can try. An interesting case for the weekend.

I understand. Your theme inherited from the "android:Theme", it already has the necessary animation. I just got used to the style of Holo.


fix ts types: use object and string instead of Object and String

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

[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

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

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] It's submitted to the dev branch for v2.x (or to a previous version branch), not the master branch
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
[x] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
For more information, please check https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html#number-string-boolean-and-object

Thanks!


Fix compile error of build.rs in the README.md

Fix https://github.com/bminixhofer/nlprule/issues/73
Propagate error

Looks good, thanks!


Introduced a convenient API for OpenGL drawing

This PR adds a swapchain-like object, that allows presenting OpenGL content to CompositionDrawingSurface.
We've previously only had OpenGL control, but it has several shortcomings like not being able to share GPU resources between multiple OpenGL controls (i. e. instead of drawing the same mesh in 3 projections you have to upload the same mesh to 3 different OpenGL contexts) and said GPU resources being force-destroyed once the control gets detached from the visual tree.
With the new API the user has full control over the OpenGL context lifetime.
A convenience method is provided for creating a swapchain that can draw into an arbitrary Visual, said method automatically creates a CompositionVisual  for drawing and makes it to be a child of the Visual and then manages resize handling.

[NotClientImplementable, Unstable]
public interface ICompositionGlContext : IAsyncDisposable
{
    /// <summary>
    /// The associated compositor
    /// </summary>
    Compositor Compositor { get; }
    /// <summary>
    /// The OpenGL context
    /// </summary>
    IGlContext Context { get; }
    /// <summary>
    /// Creates a swapchain that can draw into provided CompositionDrawingSurface instance
    /// </summary>
    /// <param name="surface">The surface to draw into</param>
    /// <param name="size">The pixel size for the textures generated by the swapchain</param>
    /// <param name="onDispose">The callback to be called when the swapchain is about to be disposed</param>
    ICompositionGlSwapchain CreateSwapchain(CompositionDrawingSurface surface, PixelSize size, Action? onDispose = null);
}

[NotClientImplementable, Unstable]
public interface ICompositionGlSwapchain : IAsyncDisposable
{
    /// <summary>
    /// Attempts to get the next texture in the swapchain. If all textures in the swapchain are currently queued for
    /// presentation, returns null
    /// </summary>
    ICompositionGlSwapchainLockedTexture? TryGetNextTexture();
    /// <summary>
    /// Gets the the next texture in the swapchain or extends the swapchain.
    /// Note that calling this method without waiting for previous textures to be presented can introduce
    /// high GPU resource usage
    /// </summary>
    ICompositionGlSwapchainLockedTexture GetNextTextureIgnoringQueueLimits();
    /// <summary>
    /// Asynchronously gets the next texture from the swapchain once one becomes available
    /// You should not be calling this method while your IGlContext is current
    /// </summary>
    ValueTask<ICompositionGlSwapchainLockedTexture> GetNextTextureAsync();
    /// <summary>
    /// Resizes the swapchain to a new pixel size
    /// </summary>
    void Resize(PixelSize size);
}

[NotClientImplementable, Unstable]
public interface ICompositionGlSwapchainLockedTexture : IDisposable
{
    /// <summary>
    /// The task you can use to wait for presentation to complete on the render thread
    /// </summary>
    public Task Presented { get; }

    /// <summary>
    /// The texture you are expected to render into. You can bind it to GL_COLOR_ATTACHMENT0 of your framebuffer.
    /// Note that the texture must be unbound before this object is disposed
    /// </summary>
    public int TextureId { get; }
}

public static class OpenGLCompositionInterop
{
    public static async ValueTask<ICompositionGlContext?> TryCreateCompatibleGlContextAsync(this Compositor compositor,  OpenGLCompositionInteropContextCreationOptions? options = null);
}

public static class CompositionGlContextExtensions
{
    public static ICompositionGlSwapchain CreateSwapchain(this ICompositionGlContext context, Visual visual, PixelSize size);
}

looks good, 👍

Render thread might be running an entirely different drawing API and also might require utilization of some synchronization primitives (we currently have problems with the lack of sync, BTW).
So a queue of sorts is required.
Another point is being in sync with the rest of the visual tree, i. e. if you draw something in opengl control and have an overlay controls, you'd want the overlay state/position to match with your rendering.

Render thread might be running an entirely different drawing API and also might require utilization of some synchronization primitives (we currently have problems with the lack of sync, BTW). So a queue of sorts is required.
Another point is being in sync with the rest of the visual tree, i. e. if you draw something in opengl control and have an overlay controls, you'd want the overlay state/position to match with your rendering.

it does make sense, personally i prefer a lock to sync, unless there is a feature to limit the maximum texture count of the swapchain, in the old logic it takes too high GPU usage when the app is busy.

I'm wondering, why the way I'm using (skcanvas) it doesn't need a dual buffer? i guess it uses a copy mode or something? (copy my texture into it's own buffer?)
anyway recently this way (skcanvas to draw) brings me a blinking screen, not sure why, this only happens when the gpu is a little busy, i guess should be a problem related to sync. but if it uses copy mode, no sync needed i believe?

We currently have synchronization problems and need to introduce glWaitSync usage. Which is why the PR got postponed, IIRC.

We currently have synchronization problems and need to introduce glWaitSync usage. Which is why the PR got postponed, IIRC.

i got it, i feel you guys is illustrating a RHI backend. actually design a api which similar with vulkan's barrier that would be enough, because all modern backend has such stuffs.

We currently use DXGI shared mutexes for ANGLE-based OpenGL on windows, so synchronization works there. But for scenarios with shared OpenGL contexts we need to add gl fence support (or issue glFinish calls for GLES 2.0 contexts).

With ANGLE we are using a separate Direct3D device for UI thread rendering IDXGIKeyedMutex is needed to properly synchronize access to the texture shared between UI and render threads. This also works well for Vulkan interop, since Vulkan supports those natively on Windows.
With Linux we support using EXT_external_objects mostly for Vulkan(UI)->OpenGL(render) interop, VK_KHR_external_semaphore_fd is supported when Vulkan is driving the UI thread too.
However for Linux/mac/iOS/Android and WGL on Windows we are relying on OpenGL context sharing. So we need to use fences.

Unfortunately my knowledge of OpenGL isn't at the level where I can particularly help to implement this, but this is something I'd really like to see merged as soon as it's ready, so wanted to try and give it a priority bump!

You can ask for priority if you have paid support. Otherwise it's done when it's done

You can ask for priority if you have paid support. Otherwise it's done when it's done
Ah okay


[BUG]  Wash ctl apply manifest need to applied twice to link

Wash ctl apply manifest need to applied twice to link
To Reproduce
Steps to reproduce the behavior:

Run 'wash ctl apply  '
wash says Link def submission is acknowledged
washcloud log says start provider and actor but does not say "linking"
Run 'wash ctl apply  ' again
washcloud log says start actor and provider again, now says linking

Expected behavior
Linking happens when wash ctl apply   first time
Screenshots
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information) **

OS:MacOS
bash
wash Version 0.7.1

Hey @alanpoon, thanks for submitting this bug. What provider are you attempting to start in this example? I see the name of the executable is wasmcloud_thread_default which implies a new contract ID wasmcloud:thread. The host process will pass established link definitions to the capability providers on startup, so I want to ensure your provider is doing the same thing.
From the error text you supplied above, I can see a couple concerning NATS logs for failing to create a consumer, are you running nats-server with the --jetstream flag? If this isn't supplied, then the link definition would fail to be persisted in the lattice cache and the provider would only be able to receive it by being started before the link definition was published.

@alanpoon would you mind providing a little more information on this issue? I can't tell exactly what needs to be done to fix this issue, and I'm not sure how to reproduce to see if it's related to https://github.com/wasmCloud/wasmcloud-otp/issues/361 or not.


Git unable to create symlink on Windows: permission denied

refer to Help with running demo from a git clone on Windows #355
If I use this command git clone -c core.symlinks=true https://github.com/dtolnay/cxx.git
I got this

and again I got this error

I tried to add a more specific error in #358. Could you try building again from the newest commit on master and see if that was it, and if the steps in the new message fix it?

Hello @dtolnay,
I'm not sure about @foroughmajidi, and I have never triggered the exact same problem, however I can confirm your new message correctly shows up (using the latest master commit) on Windows 10 when Symlinks and "Developer Mode" are turned on.
Thanks,
David C

Hello @dtolnay,
I'm not sure about @foroughmajidi, and I have never triggered the exact same problem, however I can confirm your new message correctly shows up (using the latest master commit) on Windows 10 when Symlinks and "Developer Mode" are turned on.
Thanks,
David C

Thanks for confirming! It's tricky to test these things without access to a physical Windows machine.

Thanks for confirming! It's tricky to test these things without access to a physical Windows machine.

I was also getting the "Error: unable to create symlink  : Permission denied."
It was resolved on my Windows 10 by turning on Developer mode.

I hope this helps!


Allow default values to be read from any bundle or plist file

The NSUserDefaults class has a native function called registerDefaults that adds the contents of the specified dictionary to the registration domain. For extra convenience, you can use the extended version of registerDefaults to populate defaults values from your Settings.bundle or any plist file in your project.
NSUserDefaults.registerDefaults("Settings.plist")
NSUserDefaults.registerDefaults("Settings.plist", suiteName: "io.radex.SwiftyUserDefaults")
NSUserDefaults.registerDefaults(bundleName: "Settings")
NSUserDefaults.registerDefaults(bundle: NSBundle(forClass: self.dynamicType)) // used for unit testing

To use an app group container for your NSUserDefault instance, use the optional suiteName parameter, or add a string entry called ApplicationGroupContainerIdentifier in your plist file.
This pull request includes source code changes, unit tests, and updated readme documentation.
This relates to #69, #51, and #59.

Very cool work. I have reservations about this, because using a plist to register defaults means you don't get any type checking by the compiler — i.e. no way to verify correctness of your registered defaults. For example if you try to rename a default during development, but forget to change your plist, you'll have created a bug.
I think the approach I would prefer to promote is a statically typed one, like so:
Defaults.register([
     .userName: 'radex',
     .launchCount: 0,
])

(The actual implementation and syntax would be trickier, but I think you get the point.)
What do you think about that?

Your suggested version is very nice and would be very handy! I like!
The reason I leaned on the plist is because it's easier to control the defaults when distributing multiple apps, i.e. code stays the same across apps with differences only in the plist. There is some level of type checking in the plist though, since when choosing the type in the "Type" column, Xcode will not allow you to put a string in a number type for example.

Wait I think I understand what you're saying, if I change the type later in the plist, things will crash. Hmmm, I'll give it more thought. I do still like your suggestion.

The reason I leaned on the plist is because it's easier to control the defaults when distributing multiple apps, i.e. code stays the same across apps with differences only in the plist.

Good observation, but you can do the same with Swift, no?
// UserDefaults.swift

extension DefaultsKeys {
     static let userName = DefaultsKey<String>("userName")
}

var Defaults = NSUserDefaults(defaults: [
     .userName: 'radex',
])

Yes, I think you are right. A .plist or .swift file is just semantics but can work just the same if you want a single place to control across various apps. My thoughts were the .plist files were designed to control app settings, but it might be worth the trade for compiler checks if putting in a .swift file instead.
I'll give it more thought if there are any other benefits we're missing for .plist vs `.swift file for defaults and will take another stab at it using your suggestion.

Great, thank you for working on this!

If we're not going to read from plist, then I prefer to set default values in the DefaultKeys extension so it's all in one place like in #59, otherwise a race condition can be introduced. I'll piggyback on the #59 branch and see if I can contribute anything there. I think that's the right idea if we're going to go the .swift file route for defaults.

If we're not going to read from plist, then I prefer to set default values in the DefaultKeys extension

But this way, the default values won't be visible to non-Swifty NSUserDefaults users. Unless you specifically register those DefaultsKey objects, but at that point it's better to do the whole default registering separately.

otherwise a race condition can be introduced

could you explain?

I see about the non-SwiftyUserDefaults users not getting to those values. Because that branch is not actually saving to NSUserDefaults, but it should be updated to do that. That is a good catch.
The race condition I'm concerned about is something like:
class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        Defaults.register([
            .userName: 'radex',
            .launchCount: 0,
            ])

        return true
    }

Then in one of your view controllers you do this:
class FirstViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        someLabel.text = Defaults[.userName]
    }
}

In this example, viewDidLoad can be called before didFinishLaunchingWithOptions  as discussed here. That means the screen will display a blank username, before the defaults are registered.

In this example, viewDidLoad can be called before didFinishLaunchingWithOptions as discussed here. That means the screen will display a blank username, before the defaults are registered.

Whoa, this is crazy! Thanks — I didn't know it.
One idea: make people register their defaults while initializing their Defaults object:
var Defaults = NSUserDefaults(defaults: [
     .userName: 'radex',
])

This ensures defaults registering happens before first Defaults access.

Ya it's depressing, it's almost as if there's no good place to put code that initializes before your views.
Sweet, I like the convince init you suggest - better than the original. Thanks for the input again :D

So I've been thinking about how to actually implement this statically-typed defaults dictionary.
Now, we can't actually do it as a dictionary, because we need the requirement for the value to be T matching key's DefaultsKey AND the ability to have key/value pairs of different types. There's no way to express that in Swift.
You could do it as tuples, i.e. [ (.userName, "radex"), (.launchCount, 0) ], but that would make the array [(DefaultsKeys, Any)], an there's no compile-time type check. Sigh.
So I have two concepts that might be possible to implement.
One would be a builder DSL:
registerDefaults(.userName, "radex")
    .and(.launchCount, 10)
    .and(.this, that)

registerDefaults() would be <T>(DefaultsKey<T>, T), and would return something like DefaultsBuilder, which would have a method and with the same signature.
Another option would be something like:
registerDefaults([
    .key(.userName, "radex"),
    .key(.launchCount, 10),
])

registerDefaults would take an array of DefaultsKeyValue (name tbd), which would have a static func key (also looking for a better name) — essentially a factory method returning the same type. The method would be <T>(DefaultsKey<T>, T) to type-check the passed stuff.
Not super in love with either concept. Do you have better ideas?

Maybe some kind of builder?
registerDefaults { set in
    set(.userName, "radex")
    set(.launchCount, 10)
}

registerDefaults {
    $0[.userName] = "radex"
    $0[.launchCount] += 1
}

Something hit me from something you said about @delba's implementation that might simplify everything. How about just adding this convenience init to DefaultKeys:
public class DefaultsKey<ValueType>: DefaultsKeys {
    public let _key: String

    public init(_ key: String) {
        self._key = key
    }

    public convenience init(_ key: String, _ defaultValue: ValueType) {
        self.init(key)

        if !Defaults.hasKey(key) {
            Defaults[key] = defaultValue
        }
    }
}

That's all the code update we need since all it's doing is storing the value into NSUserDefaults. And because the value is persisted first thing, everything after in SwiftyUserDefaults follows the natural flow as it did before without further code changes needed.
What I like about this is there is no race conditions introduced and the code change is super minimal. Also, a big benefit is all defaults are packaged in the declaration of the DefaultKeys in one place. It would look like this:
extension DefaultsKeys {
    public static let someString1 = DefaultsKey<String>("SomeString1")
    static let someString2 = DefaultsKey<String>("SomeString2", "abc") // default added
    static let someNumber1 = DefaultsKey<Int>("SomeNumber1")
    static let someNumber2 = DefaultsKey<Int>("SomeNumber2", 888) // default added
    static let someBool1 = DefaultsKey<Bool>("SomeBool1")
    static let someBool2 = DefaultsKey<Bool>("SomeBool2", true)
    static let someDate1 = DefaultsKey<NSDate>("SomeDate1")
    static let someDate2 = DefaultsKey<NSDate>("SomeDate2", NSDate()) // default added
}

The only thing we'd have to resolve is the suiteName situation since this is under the assumption that Defaults should always be NSUserDefaults.standardUserDefaults(). But this is another topic that is ongoing in another thread.

@stephencelis very nice! The second option, with subscripts, doesn't work because I'd have to duplicate all the (non-generic) subscripts. The first option is really nice, though.
@basememara this is syntactically superior but has two problems:

it saves a new value, instead of registering a default
static lets are lazily evaluated IIRC, so if someone accesses user defaults outside of DefaultsKey, the default registering won't work.

Actually just realized registering defaults in a global var Defaults = ... has the same issue — it will be evaluated lazily :(
Ideas? If applicationFinishedLaunching... isn't a good place to do it, then perhaps init is?

I had a break-thru in regards to this discussion that I'd like to document here. Apparently, the best place to register defaults in AppDelegate.init:
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?

    override init() {
        super.init()
        Defaults.registerDefaults([
            "userName": "radex",
            "launchCount": 10
        ])
    }

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
          ...
    }
}

Note that the native registerDefaults function will register the values to your UserDefaults for the entire lifecycle of your app; it will not persist to it. Once your app terminates and start up again in the future, those values will not be in your UserDefaults anymore unless you keep registering the defaults in the beginning of your app (or before you need them).

BTW I believe all these are related to the same topic and would be great if we can consolidate them somehow: #51, #59, #69, #81

I've recently converted one of my apps to use SwiftyUserDefaults and also wanted to be able to use registerDefaults in a type-safe manner. As I only have about 20 settings that require specific defaults (mostly for enums) I've done this:
extension UserDefaults {
    func registerDefault<T: RawRepresentable>(_ key: DefaultsKey<T>, _ value: T) {
        Defaults.register(defaults: [ key._key: value.rawValue ])
    }

    func registerDefault<T>(_ key: DefaultsKey<T>, _ value: T) {
        Defaults.register(defaults: [ key._key: value ])
    }
}

which allows me to use e.g. Defaults.registerDefault(.myBoolKey, true).

Due to introducing defaultValue parameter to the key, I think right now it's the only preferred and supported way of using custom defaults. Closing this one for now (as it's long overdue anyways).


Merge Document Conflicts and notification/db change callback details(Offline Mode).

Hi Folks,
http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/document/index.html#Understanding Conflicts
When client is offline and their were changes made at client and server on a document, now both has same _rev.
After i come online i start  push and pull replication , later get database change callback.
Followed this documentation and tried to merge the conflicts and save as below after i get database change callback .
private void mergeRevisonUpdated(DocumentChange change){

	boolean isConflict = change.isConflict();
	boolean isCurrentRev = change.isCurrentRevision(); // for checking addded revision and winning revision are identical
	if(isConflict){
		try{
			Document document = database.getDocument(change.getDocumentId());
			List <SavedRevision> revList = document.getConflictingRevisions();
		 //server revision is winning revision

				SavedRevision serverRevision = revList.get(0);
				SavedRevision clientRevision = revList.get(1);

				SavedRevision updatedRev = document.createRevision().save();

				final Map<String, Object> serverDocMap = serverRevision.getProperties();
				final Map<String, Object> clientDocMap = clientRevision.getProperties();
				.
				Map<String, Object> properties = updatedRev.getUserProperties();
				if(serverDocMap.get("doc_type").equals("item")){
					properties.put("channels", userChannel);
					properties.put("itemName", clientDocMap.get("itemName"));
					properties.put("id", serverDocMap.get("id"));
					properties.put("doc_type",  serverDocMap.get("doc_type"));
					properties.put("itemvalue", serverDocMap.get("value"));
					properties.put("_rev", serverDocMap.get("_rev"));
				}
				updatedRev.createRevision(properties);//Client - Server Merge.
				SavedRevision finalRev = updatedRev.createRevision().save(true);
				clientRevision.deleteDocument();//Once merge delete the loser.

		}catch(CouchbaseLiteException e){
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}

itemName i want client changed value , and itemvalue as server changed value.
Somehow i end up with wrong data also get too many database change callback on this document with conflict true.
When and where to make conflict management is not clearly mentions in the docs,a example will help me to proceed.
Thanks
Nithin

The conflict is likely to happen when a current or non current revision is pulled from the server. So you can check the event.isExternal() like so https://github.com/couchbaselabs/ToDoLite-Android/blob/master/ToDoLite/src/main/java/com/couchbase/todolite/TasksFragment.java#L336-L351
In ToDoLite, the conflicts are resolved by the user in the UI. Once a revision is picked, the user properties of the winning revision are saved on the current revisions and all others get deleted  https://github.com/couchbaselabs/ToDoLite-Android/blob/master/ToDoLite/src/main/java/com/couchbase/todolite/ListConflicts.java#L49-L91

@jamiltz Thanks for the links..
How about merge both client and sever and then delete pragmatically?
Basically in above example i want itemName client changed value , and itemvalue as server changed value.
IS this possible without user interaction?

Yes, create a new revision with the merged properties (from the server doc and client doc) and save it then delete all other non current revisions.
The code snippet above looks good.
You can get the current revision with document.getCurrentRevision(). If you are seeing unexpected behaviour in the resolution, could you provide a bit more detail about the issue (the rev numbers, user properties you would expect to see and the actual result).

Hi @NitzDKoder,
Does @jamiltz comment solve your problem? Please let us know!
Thanks!

I believe @jamiltz comment could solve this issue. So I will close this ticket. If this is still issue, please let us know.


Error when executing in cmd

Hi, first thank you for making python implementation for your paper.
When I executed package in cmd, I ran into an error.
My environment is windows 10, 64 bit and python 3.7.1
Let me tell you the steps how I executed.

turn on the cmd

go to the directory where the folder named 'data', 'config', and python script 'main.py' exist

execute what you wrote in ReadMe,
python -m main --file data/text8.zip --config_file config/word2vec_sample_config.yml --algorithm word2vec

There was an error in 24 line in main.py; yaml.load(f)
So I changed that code to yaml.safe_load(f) and I fixed that error

However, after I finished step 3, the following error appeared and I do not know at all how to fix it.
Could you please give me a help? It will be very helpful for getting your advice.

Thank you in advance!!!

Hello, I have encountered the same error with you, but I haven't solved it yet. did you know the error reason, can you tell me ? Thanks a lot !

It looks like it's being run on Win platform, which has a different shell than unix systems. The subprocess call will fail because mdkir is not a valid Win shell command.
While I cannot test on Win yet, I believe changing
sp.check_output("mkdir -p {}".format(self._param_dir), shell=True)
to
os.makedirs(self._param_dir)
should resolve this issue.

thank you
it doesn't work while changing to os.makedir(self._param_dir)
there is a FileExistError: 当文件存在时，无法创建该文件。: 'param/Word2VecMatrix
---Original---
From<EMAIL_ADDRESS>Date: Wed, Jun 17, 2020 22:37 PM
To<EMAIL_ADDRESS>Cc: "Joey-la"<773617496<EMAIL_ADDRESS>Subject: Re: [ziyin-dl/word-embedding-dimensionality-selection] Error when executing in cmd (#19)
It looks like it's being run on Win platform, which has a different shell than unix systems. The subprocess call will fail because mdkir is not a valid Win shell command.
While I cannot test on Win yet, I believe changing
sp.check_output("mkdir -p {}".format(self._param_dir), shell=True)
to
os.makedirs(self._param_dir)
should resolve this issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You'll want to do a git pull first. A PR fixing this issue had just been
merged earlier today.
On Wed, Jun 17, 2020, 9:28 PM Joey-la<EMAIL_ADDRESS>wrote:

thank you
it doesn't work while changing to os.makedir(self._param_dir)
there is a FileExistError: 当文件存在时，无法创建该文件。: 'param/Word2VecMatrix
---Original---
From<EMAIL_ADDRESS>Date: Wed, Jun 17, 2020 22:37 PM
To: "ziyin-dl/word-embedding-dimensionality-selection"<
<EMAIL_ADDRESS>Cc: "Joey-la"<773617496@qq.com>;"Comment"<
<EMAIL_ADDRESS>Subject: Re: [ziyin-dl/word-embedding-dimensionality-selection] Error when
executing in cmd (#19)
It looks like it's being run on Win platform, which has a different shell
than unix systems. The subprocess call will fail because mdkir is not a
valid Win shell command.
While I cannot test on Win yet, I believe changing
sp.check_output("mkdir -p {}".format(self._param_dir), shell=True)
to
os.makedirs(self._param_dir)
should resolve this issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ziyin-dl/word-embedding-dimensionality-selection/issues/19#issuecomment-645713913,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7IJUGDBPNT3Y4FD2LV2PDRXFUVJANCNFSM4LCZY7JA
.


Bug: change cell type to checkbox

Hi Paul
as my issule ,i need change cell type to checkbox by programming.
table1.options.cells['A19']={type:'checkbox'};
it's working when i using table1.options verified.
In fact ,the cell not have checkbox symble. and got error when i check cell .
Uncaught TypeError: Cannot read property 'checked' of undefined

I suppose that is on PRO distribution. So, you add the following line after you doing this one.
jexcel.editors.checkbox.createCell(table1.records[18][0], '', 0, 18, table1, {});

Hi Paul
i got some error msg when i using your code.
Uncaught TypeError: 0x13234[$_7c29[106]] is not a function

Btw, is it possible to add Text within checkbox cell?


How do I connect this to my website?

I want to use Wasabi to have an admin test things such as captions, pictures, etc. to a small news-like site I run. I have Wasabi running on my virtual box, and can access the Wasabi UI from localhost. However, I need the admin I'm gonna have use it be able to go to wasabi(or something).mywebsite.com, and only the admin to be able to change portions of mywebsite.com using Wasabi as the testing framework.
How would I go about doing this? Which files would I start at?

This is a very old project, so I am not sure if you will still be able to get everything properly setup.
You need to put the modules/ui/dist directory (after a successful grunt build) to your domain (remember to change
{
    supportEmail<EMAIL_ADDRESS>    apiHostBaseUrlValue: 'http://localhost:8080/api/v1'
}

as mentioned in modules/ui/README.md).
There is a problem with CORS when I try to run everything locally, so I need to be vigilant about the URLs (localhost works, <IP_ADDRESS> does not, I haven't digged deeper) – I am not exactly sure where to change that for a production system anymore.
To change the superadmin (admin/admin), make sure that you should change the migration files in
wasabi/modules/repository-datastax/src/main/resources/com/intuit/wasabi/repository/impl/cassandra/migration/V026__Insert_superadmins.cql or add a new one which deletes the admin/admin login and creates a new one, e.g.
wasabi/modules/repository-datastax/src/main/resources/com/intuit/wasabi/repository/impl/cassandra/migration/V037__change_superadmin.cql
DELETE FROM user_roles WHERE user_id='admin';
DELETE FROM app_roles WHERE user_id='admin';
DELETE FROM superadmins WHERE user_id='admin';
insert into user_roles (user_id, app_name, role) VALUES ('andrewtBST','*','superadmin');
insert into app_roles (app_name, user_id, role) VALUES ( '*','andrewtBST','superadmin');
INSERT INTO superadmins (user_id) VALUES ('andrewtBST');

I haven't tested this, but that should roughly be what you need to do. Maybe you need to look up the deletion syntax for CQL. Also I don't remember where/how to set the password... maybe it's admin by default as well, you can try it out.
Apart from that, everything else is pretty much server configurations: getting the URLs to point to wasabi and the UI, etc.
Once you done that, you can create experiments and use them as shown inside the contrib/client-demo example project.
Good luck!


Rust fails to build projects about half the time on Mac with VirtioFS enabled

When using the Rust dev container template which is customized almost entirely from this image, a freshly cargo inited project randomly will fail to build about half the time on my basic setup. Disabling VirtioFS lets the builds work reliably.
Supporting VirtioFS is greatly preferred since it presents significant file system speed improvements on Mac. It's been generally available (no longer "experimental") since Docker Desktop 4.15.0 (released Dec '22) and is the default since Docker Desktop 4.23 (Sep '23).
Reproduction

Make sure to use Mac with Docker Desktop

In my case it's on a MacBook Air 13-inch with M2
I've recreated with both Docker Desktop 4.23.0 and 4.24.0 (most up-to-date as of writing this)

Make sure VirtioOS is enabled in your Docker engine
Create a new project directory
Add the default Rust dev container definition
Build and open the project in the dev container
Run cargo init to initialize a new "hello world" project
Repeat the command rm -fr target && cargo build notice it fails some of the time

rm -fr target ensures the build happens every time for purposes of this repro

It usually takes about 5 successful builds at most until the first failure happens.

Reopen the folder locally
Switch to gRPC FUSE file implementation in Docker engine settings
The window should have disconnected when Docker restarts, reload the window to reconnect
Repeat the command rm -fr target && cargo build, notice it will no longer fail

I'm not able to find any pattern as to when builds will fail, it seems entirely random.

I'm not using any special customizations to the container/image
Docker has plenty of dedicated resources when reproducing this (10 GB RAM and ~100 GB storage)
It does matter using Rosetta for x86/amd64 emulation, enabling and disabling it doesn't help

Logs
Successful builds
With VirtioFS disabled (gRPC FUSE enabled):
$ while rm -fr target/ && cargo build; do :; done
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.99s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.99s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.97s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 1.00s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.99s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.99s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 1.03s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.98s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.99s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.99s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 1.00s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.99s
   ...

Failed builds
With VirtioFS enabled:
$ while rm -fr target/ && cargo build; do :; done
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.29s
   Compiling example v0.1.0 (/workspaces/example)
    Finished dev [unoptimized + debuginfo] target(s) in 0.31s
   Compiling example v0.1.0 (/workspaces/example)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/bin:/vscode/vscode-server/bin/linux-arm64/e7e037083ff4455cf320e344325dacb480062c3c/bin/remote-cli:/usr/local/cargo/bin:/usr/local/cargo/bin:/usr/local/cargo/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin" VSLANG="1033" "cc" "/tmp/rustc0jtGY9/symbols.o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf.16ymvqt8cxxyt04w.rcgu.o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf.1i5hqwsdxzrrmsga.rcgu.o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf.29r392z43xk4ppmb.rcgu.o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf.2eb8j4q71itcksuj.rcgu.o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf.3i82ksilnfvdli6v.rcgu.o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf.4gx83nd82i5seyfy.rcgu.o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf.155fsdtb1bfio2qj.rcgu.o" "-Wl,--as-needed" "-L" "/workspaces/example/target/debug/deps" "-L" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd-cca993492431c26c.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libpanic_unwind-767683484988fddb.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libobject-33d8ca36e0751c49.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libmemchr-feb6369d9fb8ea6a.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libaddr2line-da5e802c6b261da9.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libgimli-c11c22644b73fbb3.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_demangle-b538894d8056db90.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd_detect-5f75957d64265585.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libhashbrown-eb377e4796f89c63.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-7959bd6dc5a6dc9b.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libminiz_oxide-27e9cf0ad28ebc46.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libadler-9a4d8927e95998a8.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libunwind-7ce72c5f7491b638.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcfg_if-88468c0375a0c64b.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liblibc-ceea9f1fc4b03431.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc-96085dbefe195fa8.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_core-a8add003da8dc54d.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcore-082d5e9d53946848.rlib" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-21239b3d9ec3b48b.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/local/rustup/toolchains/1.72.1-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "/workspaces/example/target/debug/deps/example-286854bdcea43dbf" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /usr/bin/ld: cannot find /workspaces/example/target/debug/deps/example-286854bdcea43dbf.1i5hqwsdxzrrmsga.rcgu.o: No such file or directory
          collect2: error: ld returned 1 exit status

error: could not compile `example` (bin "example") due to previous error

Specs
Run on my host machine:
$ docker version
Client:
 Cloud integration: v1.0.35+desktop.4
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:28:49 2023
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.23.0 (120376)
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:31:36 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Hi 👋
We had a similar issue opened sometime ago, see https://github.com/microsoft/vscode-dev-containers/issues/1487. Turned out to be an issue with a specific version of VirtioFS.
To me, it looks like an issue with VirtioFS instead of the image? (which proves the point when cargo works with VirtioFS disabled). @dslatkin do you mind opening an issue with that team instead?
We are more than happy to accept any change required to the image to support VirtioFS out of the box. However, I am not sure what changes might be needed, hence, chatting and gaining more information from the respective team makes more sense. Let me know what you think, thanks!

@dslatkin do you mind opening an issue with that team instead?

Hi, thanks for your help! I'll go ahead and do that. I just opened an issue with the official Docker image for Rust as well since I can reproduce it there without needing an explicit dev container. I'm going to see if they recommend anything to try first or suggest I collect additional debugging information to share with VirtioFS before I open an issue there. I'll keep this issue updated.


🐞 Bug: code block rendering is malformed

Before reporting:

[X] Ensure that the issue is reproducable on the main branch.
[X] Ensure that there isn't an issue on this(either open or closed).

Problem:
The code entries are not rendered properly when the a line wraps around: large amount of gap between each item, likely given by the height of the longest wrapped line.
Steps to reproduce the issue:

Open a markdown like https://github.com/tlkh/lida/blob/0aace9c7519007b2c28421b07072c875bb7c3b87/README.md.
Notice the rendering of the bibtex entry at the bottom.

Expected behavior:

Neovim version:
0.10.2

Can you check if the issue exists in the dev branch?

Seems to be fixed in the dev branch. Thanks!


shaka.player.js version

I couldn't find information about shaka.player.js version used in this project, or this compatible with all shaka player version ?

Hi @bandirsen
The version used is the 4.1.0. You can see it here: https://github.com/AriasBros/flutter_video_player_web_shaka/blob/main/lib/src/shaka_video_player.dart#L18
For now this is hardcoded.

Thank for the information.
I will close this


TDWG 2024 abstract

Write an abstract for TDWG 2024

The abstract deadline for TDWG 2024 expired on April 19th. Maybe you meant 2025?

We just now had the online task group meeting and chose this as an example of an issue to demonstrate what an issue can be.

We just now had the online task group meeting and chose this as an example of an issue to demonstrate what an issue can be.

lol. Myt fault.

Apropos @ben-norton are you interested and available to join the expeditions task group? We would love to welcome you to join us! Now initially we have had online bi-weekly task group meetings on Thursdays at 17:00 CEST = 11:00 AM in Raleigh, NC, USA.

Sure.


ScrubberProcessor component

Scrubs named entities from the document

Assumption:

takes a gate.Document and scrubs predicted NEs with an equal length string.


Implement vagrant push scripting for deployment

Uploading of the tracker binaries/jars is performed by the travis script once the commit is tagged and successfully tested.
I'm closing this issue ticket as further improvement will tracked on new tickets.


November 2017: Roadmap

DIMEdb Roadmap November 2017
A summary of our plans and goals.

[ ] Version 1.0 of the database to be finalised.
[ ] JCAMP and TSV export of data from metabolite page
[ ] JCAMP dumps of the entire database, readily available for download.
[ ] Over-representation analysis of KEGG pathways for a given Metabolite Table.
[ ] Possible reintroduction of the MetaboliteClipboard.
[ ] Solidifying of the front end, providing Metabolite views through server-side.
[ ] Conversion from JavaScript to AngularJS.
[ ] Simpler API access, needs consideration.

As it stands, the decision has been made to dispose both CHEBI and PubChem in their entirety, mainly due to the confusion surrounding what exactly constitutes an organic compound. Instead, DIMEdb will integrate the following publicly available databases:

Spektraris
GOLM
Respect
HMDB
NMRShiftDB
MassBank

Simpler API access
A couple comments regarding the API has made me realise that there are some 'common' types of queries that are made that don't require full access to the mongo-esque interface.