🤕 Implement local header updates

:rocket: deployment of profiles succeeded (http://profiles-pr-144.dev.beta.nhschoices.net)

:rocket: deployment of profiles succeeded (http://profiles-pr-144.dev.beta.nhschoices.net)

:rocket: deployment of profiles succeeded (http://profiles-pr-144.dev.beta.nhschoices.net)

:rocket: deployment of profiles succeeded (http://profiles-pr-144.dev.beta.nhschoices.net)

@ajthomascouk lets have a look through this on Tuesday 👌

Changes have been made based on @ajthomascouk review.

:rocket: deployment of profiles succeeded (http://profiles-pr-144.dev.beta.nhschoices.net)

Ready for review again @ajthomascouk 👍

@alex-colbeck
LGTM. Couple of things:

Please can you squash some commits
If its "ready for review" please remove the WIP tag.

Rebase is the best we can at the moment due to problems with VIM.

This needs rebasing

Superseded by #155


ci: fix argument retrieval script for kernel specific builds on master

test-with-kernel

test-me-please

test-me-please

Coverage increased (+0.01%) to 46.661% when pulling f0a0ee0f1e3b222dab0553ab4e672fae0403fef6 on pr/fix-419-pipeline into 5958dd6fa2105cdf2c769b22568d2ad3858608d6 on master.

restart-ginkgo


Can we add details on B12ms, B16ms, B20ms sizes?

Hey there,From Azure Management Portal, it's possible to select a VM with size B12ms or B16ms or B20ms, but they are not listed here in this documentation.Can we add them and their specs?Thanks,

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

ID: f435b3d1-2e0b-378c-ce89-97defa822eff
Version Independent ID: 32c3ea31-ae89-5a61-f99e-368bd7d72abc
Content: B-series Azure Windows VM sizes
Content Source: articles/virtual-machines/windows/b-series-burstable.md
Service: virtual-machines-windows
GitHub Login: @ayshakeen
Microsoft Alias: ayshak

@axelgMS Thank you very much for reporting.
#33663 similar issue id here.
I have assigned that issue to the content author to update the doc with new VM Size details

@axelgMS I am closing this issue because it will be taken care from #33663


Seamus: is scraping by "date=current" going to mean we miss things?

If the story and pub dates diverge by more than a day? How does the dating work?

Nope, it doesn't seem like it!


[Bug] When switching back and forth between the Test and Mock navigation tabs, it prompts "Oops, TypeError: xxx".

Description:
When switching between navigation tabs multiple times, the following error is consistently encountered.

Environment:

Xxx


add a template to deploy to railway

This template was created in hopes of providing some form of guidance for those who want to deploy their bots on Railway. See original post on telegram group

Sorry for the bad grammar in the second commit!!!

Please wait for a review, rather than merging your own unreviewed pull requests.
Shouldn't this go into the example bots repository instead?

Sorry for the merger of the unreviewed PR.
I thought I'd put it in here since similar templates were found here. Is it because the repo hasn't been changed to a template repo yet?
But if you think it should be in the examples repo then I'll put it there.

It's not a should, I was asking a question. We already have vercel templates in the example bots repo. I feel like this ought to be unified. @roj1512 what's your opinion?

I understand. If so we should move the template for deta there as well.
On Sun, 6 Nov 2022 at 10:28, KnorpelSenf @.***> wrote:

It's not a should, I was asking a question. We already have vercel
templates in the example bots repo. I feel like this ought to be unified.
@roj1512 https://github.com/roj1512 what's your opinion?
—
Reply to this email directly, view it on GitHub
https://github.com/grammyjs/awesome-grammY/pull/34#issuecomment-1304768293,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAM377YYOBWWQAIBXUTHI2DWG6B4ZANCNFSM6AAAAAARYCAZEI
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

@waptik Create another PR.

@KnorpelSenf We'll work on that in the next PQ related to this.

@waptik You can also re-open this PR since you haven't deleted the branch.

Sounds great!

@waptik Create another PR.

In the example bots repo or here?

@waptik Create another PR.

In the example bots repo or here?


Add flower 404 page

Added a flower 404 template with CSS animations for issue #18 using tsparticles.

Good job


fix: Allow for psr/simple-cache 2.0 or 3.0

Coverage: 99.537% (-0.2%) from 99.779% when pulling 3cb79a39e8fb75d58c65186236c0c96ef046739f on Replace-cache-implementation into 8672ab56db4fc2586b3dcd26686cca672bcc31d1 on develop.


Paths are not transformed in dts files

Describe the bug
I am using the "paths" option in "jsc". The paths are correctly rewritten in the output *.js files, but remain untouched in the *.d.ts files. I would expect them to be rewritten the same way in both types of files.
Input code
export * from "@lib/example";

Config
{
    "$schema": "https://swc.rs/schema.json",
    "sourceMaps": true,
    "jsc": {
      "parser": {
        "syntax": "typescript",
        "decorators": true,
        "dynamicImport": true,
        "dts": true
      },
      "target": "es5",
      "baseUrl": "./",
      "preserveAllComments": false,
      "experimental": {
        "emitIsolatedDts": true
      },
      "paths": {
        "@lib/*": ["src/*"],
        "@tests/*": ["tests/*"]
      }
    },
    "module": {
        "type": "commonjs",
        "strict": true,
        "strictMode": true,
        "lazy": false,
        "noInterop": false
    },
    "minify": false
}

Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.7.24&code=H4sIAAAAAAAAA0utKMgvKlHQUkgrys9VUHfIyUzST61IzC3ISVW3BgCTcYWLHQAAAA%3D%3D&config=H4sIAAAAAAAAA21RsXLCMAzd%2BQrO16nXI1MXJnrtwsDYqcdgHNGYsy2fpLSkHP9eOwlpUuJJfk960pMui2V66oFNBV6r9VJVIpHXRcHfZkVcdMTqxBjUU5fMWJOBnY6c8oVq6PETmwRc2k%2F6Rk0MNEJyaRNEn3MbaSKwIRull235EgySFqSpdMc1QXtrtj4iyQwtMzXCudlRO4YevN5YJZo%2BIQsp4OdhCHXQDO%2FkMr4q%2FuBIkNx8wYtzr%2Bg9hLZdqzzkwDkC2cxpN%2FUN3sqW0WmB8m0Y9G6kqKXiaeXG2UPxmLAPxWRStB%2FZ2wiwcE%2Ff4v2drENkmOyh55THsnYw7Zgvk92bZBPDicf3YSFrZpbf4Tss4Z5z%2Bqf5v6oEB9wGAcI4P5gN9jiULa6%2Ft7hwB6gCAAA%3D&strip-types=
SWC Info output
Operating System:
    Platform: linux
    Arch: x64
    Machine Type: x86_64

Binaries:
    Node: 18.17.0
    npm: 9.6.7
    Yarn: 1.22.22
    pnpm: N/A

Relevant Packages:
    @swc/core: 1.7.26
    @swc/helpers: N/A
    @swc/types: 0.1.12
    typescript: 5.6.2

SWC Config:
    output: N/A
    .swcrc path: N/A

Next.js info:
    output: N/A

Expected behavior
main.d.ts looks like:
export * from "./src/example";

Actual behavior
main.d.ts looks like:
export * from "@lib/example";

Version
@swc/cli: 0.4.0 @swc/core: 1.7.26
Additional context
No response

TypeScript does not do specifier rewriting today, so this feature would be SWC-specific behavior.

swc emit type declarations before do transformation. https://github.com/swc-project/swc/blob/185d6f55b35f4f8323035c1199cddb9dd547f254/crates/swc/src/lib.rs#L975
@kdy1  So shoud we disable the rewriting (may be breaking change) or do an isolated rewriting ahead of time?

I think we should apply path_rewriter (or similar name, but in swc_ecma_transforms_module) to the cloned dts module


Rename testSignal field to testSignalWhenVulnerable

As discussed here. I'll make a corresponding follow-up PR in the shadedetector repo shortly.

@wtwhite  I have updated the shadedetector, the tag to use is vul4j-extensions2

Thanks @jensdietrich for adding the corresponding rename to shadedetector in rev 49d78caeef.


Issue: Nested agents

Issue you'd like to raise.
Can we nest agents in one another? I would like an agent to use a set of tools + an LLM to extract entities, and then another agent after this should use some other tools + LLM to refine them.
Suggestion:
No response

I have tried something similar, but when the first chain receive an observation it breaks it and is considered the returned value from the parent one. How to isolate them from each other ?


Added ability to move edit button to the left or hide it completely.

As discussed in https://trello.com/c/vlhMcZwS

Nice! I was hoping someone would do this one soon because I keep clicking that thing by accident too. Thank you!
I just added you to the team on Trello, so you can now move cards around and such.


An error occurs with flake8 in pre-commit.ci

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I'm convinced that this is not my fault but a bug.

Description
Current latest commit fails in checking with flake8 in pre-commit.ci.
https://github.com/autowarefoundation/autoware_launch/commit/9e872a2625359ccb303aa5071fe35d6a1f242f5a
https://results.pre-commit.ci/run/github/429697802/1713949520.mxgRbCnhTR64Czu0HVYe4w
flake8 ros...............................................................Failed
- hook id: flake8-ros
- exit code: 1

.github/update-sync-param-files.py:14:19: E231 missing whitespace after ':'
REPO_URL = f"https://github.com/{REPO_NAME}.git"
                  ^
1     E231 missing whitespace after ':'

This check is required for all pull requests, so any pull request is impossible to merge.
A related issue was found on stackoverflow.com.
https://stackoverflow.com/questions/77401175/how-to-make-flake8-ignore-syntax-within-strings
Expected behavior
pre-commit.ci flake8 passes successfully
Actual behavior
flake8 ros...............................................................Failed
- hook id: flake8-ros
- exit code: 1

.github/update-sync-param-files.py:14:19: E231 missing whitespace after ':'
REPO_URL = f"https://github.com/{REPO_NAME}.git"
                  ^
1     E231 missing whitespace after ':'

Steps to reproduce
When you submit a pull request, it will be checked automatically.
Versions
No response
Possible causes
https://stackoverflow.com/questions/77401175/how-to-make-flake8-ignore-syntax-within-strings
This issue may be resolved by increasing the version of flake8.
Additional context
No response

The autoware_launch pre-commit.ci is configured in the repository below, so I would like to try to fix this.
https://github.com/tier4/pre-commit-hooks-ros/blob/main/.pre-commit-hooks.yaml


break down logbook page components

As title, plus refactor styles & layout.

merged to https://github.com/thematters/traveloggers-app/pull/178


Add annotations to Sheet and Helper parser; Add errors to Sheet parser

Added annotations to the sheet parser to identify the source file, module and line of a piece of AST
Added compile errors and tests for the sheet sigil. You can test it out by modifying the non-rule parts of MockSheet and trying to compile.

For example, the following should fail to compile:
  ~SHEET"""
  "color-hex-" <> 31 do
    rule-31
    rule-22
  end

  "color-yellow" do
    rule-21
  end

  "named-argument" do
    rule-ime
  end
  """

@bcardarella, could you check this out?

oh sorry, I missed this PR

I just changed it from a draft 30 minutes ago.

We will want to support compilations with and without annotatinos. The annotations are good for dev mode but add unnecessary bytes in production.
I'm thinking that LiveViewNative.Stylesheet.compile_ast/2 should be changed so the 2nd argument is [target: :all, annotations: false] by default.

are the annotations for the rules parser going to be inherited by the platform parser implementaitons (i.e. swiftui) or do annotaitons have to be reimplemented in each client?

The annotations are good for dev mode but add unnecessary bytes in production.

Annotations are only added when outside production (see here)

do annotaitons have to be reimplemented in each client

They will be reimplemented for SwiftUI specific ASTs, like to_ime, but will be shared for things like variables.
The implementation isn't very DRY at the moment, but I plan to refactor once I have an idea of what Jetpack Compose's stylesheets look like.
In any case, I plan to rewrite the parser to drop NimbleParsec soon (the current approach works but requires a lot of fiddling to catch the right error). If I'll have to rewrite, then it's not too important to avoid duplication now.

This is looking good, I think we just need a single assertion for the rendering without annotations:
Application.put_env(:live_view_native_stylesheet, :annotations, false)
# assertion without annotations
Application.delete_env(:live_view_native_stylesheet, :annotations)

just need a single assertion for the rendering without annotations

Yup, already added


updated to add the new 3.0 scope hoisting flag

For the reference, this documents https://github.com/webpack/webpack/pull/4951.


Always end logged message with a newline?

Hi Matt. Nice logging library :).
The standard log Go package ensures that each logged message ends with a newline. Would it make sense to have the same behaviour here, for consistency? Perhaps we want to make implementations composable, to append functionality to the log output, so it would need to ensure that there's only 1, for example.

Thanks for bringing this up. Looking at the things I discovered I needed to fix newline handling in the cli package.
I think it's important for us to think about what we need to accomplish. Do we want to produce a new logging package that can connect with all kinds of back-end writers? If that is what I thought we needed then I would have just gone with https://github.com/apex/log. apex logging and logrus are each really slow systems for logging when it comes to performance. If you combine them together, which does not fit nicely, it will be immensely slow.
We need a logging setup that lets us write to the console (sometimes with a TTY) and also write to logrus. logrus is in maintenance mode rather than active development mode so we may someday need to replace it with something else.
This lends itself to being an interface with implementations. It's how many other languages already work. If we put a layer in there to ensure a newline at the end we are building something that's more and more complicated than an interface based system. Do we really need that?

Thanks for bringing this up. Looking at the things I discovered I needed to fix newline handling in the cli package.
I think it's important for us to think about what we need to accomplish. Do we want to produce a new logging package that can connect with all kinds of back-end writers? If that is what I thought we needed then I would have just gone with https://github.com/apex/log. apex logging and logrus are each really slow systems for logging when it comes to performance. If you combine them together, which does not fit nicely, it will be immensely slow.
We need a logging setup that lets us write to the console (sometimes with a TTY) and also write to logrus. logrus is in maintenance mode rather than active development mode so we may someday need to replace it with something else.
This lends itself to being an interface with implementations. It's how many other languages already work. If we put a layer in there to ensure a newline at the end we are building something that's more and more complicated than an interface based system. Do we really need that?

I see. Yes, let's keep it as an interface with implementations. Thanks for the long response, closing this.

I see. Yes, let's keep it as an interface with implementations. Thanks for the long response, closing this.


How does the model perform on CULane datasets?

Thanks, Great and meaningful work！I have got a good result on Tusimple dataset. Have you trained model on CULane datasets？How does it performs on CULane datasets？I am glad to provide a little help as much as I can.

Thanks!
I have trained a model on the CULane dataset recently, with the same configuration (no additional parameters) the model achieves 65.6 F1-measure. After multiplying all channels by 2, the F1-measure reaches 68.6.
However, I think my evaluation code might have some problems because the original CULane evaluation protocol considers the segmentation to be the input. I directly generate predicted sequences using my own python codes by depending on their Matlab codes as I understand it (which might have some problems).
I will update my codes about CULane in the future, but anyway please feel free to pull requests!

Thanks!
I have trained a model on the CULane dataset recently, with the same configuration (no additional parameters) the model achieves 65.6 F1-measure. After multiplying all channels by 2, the F1-measure reaches 68.6.
However, I think my evaluation code might have some problems because the original CULane evaluation protocol considers the segmentation to be the input. I directly generate predicted sequences using my own python codes by depending on their Matlab codes as I understand it (which might have some problems).
I will update my codes about CULane in the future, but anyway please feel free to pull requests!

any plan about pushing CULane dataset‘s work?

In next week. @lunachy

I have upload training testing and evaluating codes about culane in the culane branch, please check it!
Now, I will close this issue.


Allow plugin authors to explicitly provide a name, organisation and documentation link

Context
The plugins list attempts to infer the origin of a plugin from its npm scope:

In this example we can see that:

@ministryofjustice => ‘Ministryofjustice’ (should be ‘Ministry of Justice’)
@xgovuk => ‘X-GOV.UK’ (should be ‘X-GOVUK’)

It should also be noted that while government departments will often change their names, npm organisation scopes may not be updated to match. Or they may use a shortened handle (DLHUC’s GitHub organisation name is communities, for example).
Further still, package names might not be enough to identity a plugin, for example ‘Frontend’,
There is also no link to any documentation related to these plugins. In the above screenshot these would be:

https://prototype-kit.service.gov.uk/docs/
https://design-patterns.service.justice.gov.uk
https://x-govuk.github.io/govuk-prototype-components/

Alternatives
Given that plugins need to include a govuk-prototype-kit.config.json file, allow plugin authors to explicitly declare values for plugin name, organisation and documentation.
For example:
{
  "name": "Ministry of Justice Frontend",
  "organisation": "Ministry of Justice",
  "documentation": "https://design-patterns.service.justice.gov.uk",
  "nunjucksFilters": [
    "/moj/filters/prototype-kit-13-filters.js"
  ],
  "scripts": [
    "/moj/all.jquery.min.js",
    "/moj/init.js"
  ],
  ...
}

Thanks! Good timing, we are looking into these issues at the moment, great to get your input. I agree naming via config gives more flexibility and control, however some points naming via npm give us:

Uniqueness - we won't have 2 plugins with the same name and org name, and
Some level of verification - we can trust that a certain org on npm are who they claim to be

Any thoughts on those?

How about something like this:

Where

plugin name is config.name else package.name with existing text transformation applied
hint text is always package.name, and something that can’t be altered by a plugin config

So, without any changes, MOJ Frontend would appear as
Frontend
@ministryofjustice/frontend

But if config.name is provided:
Ministry of Justice Frontend
@ministryofjustice/frontend

With this approach, you wouldn’t need an organisation name in the config, either.

raised a ticket to discuss as a team:
https://github.com/alphagov/govuk-prototype-kit/issues/2222

+1 to the suggestions above.
Some libraries might want to provide multiple links for documentation or other resources. For example, it might make sense to link from the GOV.UK Frontend plugin to both the Design System and Frontend Docs.


URLchecker has no concept of branch

Currently, we are checking out a git repo directly:
https://github.com/urlstechie/URLs-checker/blob/master/check.py#L15
However, this has no concept of branch - we would want to check out the branch for whatever PR is being run. We noticed this when running a PR for the devel branch, but seeing the current content of master.
I can open a PR to fix this up, maybe we can get it integrated with the next release that also includes #19 ?

One other small detail - the git path is used for the clone, for a PR from a different user this would not work. If we trust the url check to be run for someone else's repo, then it's safe to change this to default to whatever the github repository of the PR is set to be.

hey @SuperKogito - I'm curious, why do you require a clone and then delete of a repository anyway? This could be easily handled by just using the actions/checkout@v2 repository, and then you can run the url checker directly without needing to specify a custom branch or url. It (I think) will typically be the case that we want to run it on the repository in question. As another option, we could make the git_path url paramter optional, and if not defined, it skips over the entire clone and delete at the end and just runs on the present repository that is already cloned. Let me know what you think - if we do substantial changes it would be easier to do after #19 is merged.

I agree to the points raised here. I am still not sure about the alternative solution you suggested tbh, I still think it has some drawbacks and users will only test the repository where the action is defined (which -to your point- is supposed to the case).
The reason why I used cloning and removing folders in the first place, was just because it was simple and easy to implement for me, so I did not spend much time looking for alternatives. I remember I looked into direct access to files but that involved some GitHub API commands, which I was not familiar with so I settled for this solution.
This is also related to a different idea that I have been having lately and I would be interested to hear your opinion on it, how about publishing a spin-off of this action as a python package? do you think it is worth it? is it useful? or should we just put all our focus on the action?
I think supporting different branches is good to have but I would like to push this back to the next release. I think after testing the whole thing now, I will let out a new release if you are okay with it.

Let me think about the python package - it could be useful and would require a small refactor of the client (I could help with this).
Let’s focus on the action for now. I’d like to propose allowing to specify an optional fit path and branch, and if they aren’t specified, assuming that we run in the present working directory. I can open a PR for this with an updated example tomorrow!
For the python package, let’s discuss after that. I’ve made a ton of packages and could probably whip this out very quickly, but best that we figure out the already existing action first.

Do we need to change something for the action to run on a certain branch?
If I am correct, this seems to be already covered by Git. Please refer to link1 and link2.

The workflow just needs the actions checkout https://github.com/actions/checkout to be the first step, and then the correct repo and branch is present in the container (mounted as a volume) at /github/workspace (and there is an environment variable they recommend using https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables). I’ll put full examples and docs for this in my work tomorrow.

That will be a great help. I think it would good to have the example(s) in the README, that way the users won't have to look for it.

Will do!

Btw are you okay for a new release once I finish some checks and fixes?

@vsoch  version 0.1.6 is out, feel free to run some tests and report on the branch feature and the overall functioning of the action.

Woot! Yes I’ll get this tested asap!

it worked beautifully for buildtest! Here is a screenshot if you'd like one of the retry - note that we got a timeout (443) and then the retry was successful (green)

Also note this was done via a checkout on a custom branch of a PR. I'll copy paste the config here in case others want to follow suite:
name: Check URLs

on: [push, pull_request]

jobs:
  urlcheck:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: URLs-checker
      uses<EMAIL_ADDRESS>      with:
        # check this subfolder only
        subfolder: docs

        # A comma-separated list of file types to cover in the URL checks
        file_types: .md,.py,.rst

        # Choose whether to include file with no URLs in the prints.
        print_all: false

        # How many times to retry a failed request (defaults to 1)
        retry_count: 3

        # Cannot check private GitHub settings
        white_listed_patterns: https://github.com/HPC-buildtest/buildtest-framework/settings

Going to test for usrse shortly, but closing issue here since it's fixed and released. Thank you @SuperKogito !


Error in commands tests cause process to exit

Tests added in https://github.com/zeppelinos/zos-cli/issues/298 seem to forcefully exit the process if an error occurs during the execution of the command. This is probably caused by the error handler registered in the commander.js program, which runs a process.exit(1) in those cases.
Make sure to stub, not register at all, or add a NODE_ENV check on the error handler on the commands tests.

Could not reproduce on master


No way to distinguish exception objects

I have a service that can throw two different exceptions:
service Whatever {
  exception ExceptionA {}
  exception ExceptionB {}
  void doSomething() throws (1: ExceptionA exceptionA, 2: ExceptionB exceptionB)
}

When the server throws one of the exceptions there's no way for the client to determine which exception was thrown. e.constructor.name is simply "Object"
I'm running thrift-typescript with --target thrift-server.
One workaround is to run thrift-typescript --withNameField, in which case exceptions can be distinguished by checking if (e.__name === 'ExceptionA'), but that's not ideal.
https://github.com/creditkarma/thrift-typescript/issues/178 is related.

I posted a PR that addresses this by changing the client to return instances of our classes.


handbrake: refactor (fx, clenup, description, cosmetics, add maintainer)

Motivation for this change

fx: ffmpeg was one of default buildInputs
by request adding myself as a maintainer of the package
description was outdated. Rewrote to much more precise modernized description.
version.txt patch no longer needed in 1.0.7. Moreover in the version 1.1.0 this patching should be removed.

Things done

[x] Tested using sandboxing
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

As I recall, upstream also recommends fetching a tarball from their site instead of pulling from github so you'll probably want to change fetchFromGitHub to fetchurl.

@jtojnar @peterhoeg
Hey, this can be merged. This is a cosmetics, non-tech changes.
Let's merge and move further.
After merge I can continue work on technical changes.
As most of guys, I need our package to be fixed with my ongoing PRs, so I can talk about it with HandBrake upstream team and refer them to it.

Ok, I was the one that originally tried to split everything up because they had a bunch of useful patches but no upstream to send it to. If they want to do their own bundle so be it, it will just make the build slower and bigger, but ok.
In the meantime, this lgtm 👍


Use @sap-cloud-sdk/cli in SAP Cloud SDK for JavaScript tutorials

@sacnl
They're not perfect yet, but they work and we can start positioning the CLI. I suggest we do a round of feedback in the new year and look into how complex support for plain JS would be in the init command (you'll notice that I removed the TS/JS toggles for now).

Adding myself in case anything comes up during the holiday time.

The section "Step 5: Manage destinations centrally (optional)" needs an update.
The nest way of doing this would be (see docs):
npm i --save @nestjs/config

import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { BusinessPartnerController } from './business-partner.controller';

@Module({
  imports: [ConfigModule.forRoot()],
  controllers: [AppController, BusinessPartnerController],
  providers: [AppService],
})
export class AppModule {}

No install of dotenv necessary, no change to scripts necessary, content of .env file remains as is

Regarding tutorial "Deploy application to Cloud Foundry"
The warning about ci-package not working on Windows can possibly be removed (although there is a different issue still happening for me (see issue #872 in our backlog).
Not related to the introduction of the CLI:

there are now many more regions than the two explicitly mentioned - maybe we should rather give instructions where to find the API URL in the cockpit (subaccount overview page)
why not use 'MockServer' as name of destination - that way, people that did the optional step in a previous tutorial do not have to adapt their code.

Good suggestions! I added that to the tuorial. Do you have more feedback? Otherwise I'll open a new PR and tag you there.

That's it - for the moment ;)


Add ForceOpt to DeleteKeys

This calls the delete key API with the force=true
query parameter, allowing keys with registrations
to be deleted.
Resolves: #4

@smjtd Can you confirm this solution works for your use case?


[Рюкзаки]  Different price of item when select it

https://user-images.githubusercontent.com/88825304/130264138-a08365b3-441b-4e1d-93af-b17357904281.mp4
Environment: Windows 7 Google Chrome Версія 92.0.4515.159
Reproducible: always
Build found: last commit from https://github.com/ita-social-projects/horondi_admin
E.g. "commit 147fa44"
Steps to reproduce

Go to https://horondi-front-staging.azurewebsites.net/login
Click on the  'Рюкзаки'
Click on the ' Роллтоп'
Select 'Роллтоп червоний' or 'Роллтоп жовтий'

Actual result
Different price of items when select it
Expected result
The price should be the same on all pages
Labels to be added
"Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).

This task I think related to this one
https://github.com/ita-social-projects/horondi_client_fe/issues/657


How do you deal with multiple recurring pattern?

I have a query to detect 'Hi+'. Now a regex would be able to detect 'Hi', 'Hii', 'Hiii' and so on. How can I do that in fasttext without having to write all the possibilities?

Regex already exists to do exactly that. Flashtext was not designed for
this, simply speaking Flash Text can't do that. Hence I would recommend you
use regex for that instead.
There are really good regex libraries in python, you can choose any one for
this. Hope this helps. :)
On Sat 18 Nov, 2017, 04:08 dpanshu<EMAIL_ADDRESS>wrote:

I have a query to detect 'Hi+'. Now a regex would be able to detect 'Hi',
'Hii', 'Hiii' and so on. How can I do that in fasttext without having to
write all the possibilities?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/vi3k6i5/flashtext/issues/23, or mute the thread
https://github.com/notifications/unsubscribe-auth/AC-NwtNgesrJlx7jaIqbWhe3t9i8R2wHks5s3grlgaJpZM4Qitxf
.


MAISTRA-1781 support v2 resources in mutating/validating webhooks

Signed-off-by: rcernich<EMAIL_ADDRESS>

@dgn, @luksa, are you okay with the last round of changes?

@dgn, Could you give this a final look please?


Sink should create dir, update docs for output flag of eval, render

This PR makes kpt fn sink to create directory if it doesn't already exist, making the behavior consistent with output flag of eval and render.
Updated output flag of eval and render documentation.

@phanimarupaka I thought some more, we need to revisit this.
For fn sink, erroring out if directory exists means one can not use sink command in in-place mode so making some of the pipe use-cases useless. Probably also for fn eval if it being used in the piped mode.
We need to rationalize the options in a doc so that it makes it easier to compare.


Word to InDesign (tabulation)

Hello Romand,
I hope you are well. I have recently tested the last version of the script, and it works perfectly (I appreciate the option to minimize character styles). Just to inform you, there is something strange when I import directly a document, first exported from InDesign to Word with the plugin WordsFlow : see the screenshot below. Every think is OK when I save as the file.

Best
Laurent

Hello Laurent,
thank you for the information. I have also noticed that Word documents exported via WordsFlow can have a slightly different (internal) structure. If you want, I can take a look at it. (You can send me the document by email, if you are not allowed to publish it here).
With "Save as" in Word this was fixed, as far as I remember. Could be WordsFlow is creating an old or not quite correct document structure here and Word is fixing it then!?
Greetings
Roland

The very, very late and simple answer to this issue: WordsFlow stores the XML structure with indents in the file.
I could adapt the transformation to this, but this would then collide with my concept, namely to transfer all content (even in unforeseen situations) from the Word document into the InDesign document or also reduce the performance.
No idea if you can make a setting for this in WordsFlow. Another possibility would be to remove the tabs in InDesign with a script.

Thank you for your response. In the end, someone who uses WordFlow will only use it! There is no need to adapt your script.


docs(pe): consolidate info into admin section cause that is more logical

(I did not add redirects for all the package pages cause there are kind of a lot)
Now in the admin section:
https://s.armory.io/4gunkLjD

that restructuring looks good.


⚠ Jenkins Plugins Artifactory has degraded performance

In cb40832, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1225 ms

Resolved: Jenkins Plugins Artifactory performance has improved in b0ef2de after 12 minutes.


implemented nat geo daily photo

Implemented National Geographic daily photo

I fixed.

Merged! @ahmetelgun thank you for submitting this PR! :+1: :cake: :sparkles:


Bool vs LP_c_bool

Hello,
Possibly me not understanding but given this struct:
typedef struct {
  const char* custom_commands;
  bool ignore_stdlib;
  float* p_progress;
  bool* p_is_abort;
  bool interleave_output;
  EPixelFormat output_format;
  bool no_inplace_processing;
  char* error_message_buffer;
} gmic_interface_options;

and the corresponding python code:
options = pygmic.gmic_interface_options()
options.ignore_stdlib = False
options.p_is_abort = False
options.p_progress = 0.0
options.interleave_output = False
options.no_inplace_processing = True
options.output_format = E_FORMAT_FLOAT

I get the following error:
Traceback (most recent call last):
  File "testgmic.py", line 8, in <module>
    options.p_is_abort = False
TypeError: expected LP_c_bool instance, got bool

It's probably a misunderstanding on my part but still, I'm a bit stuck. Any ideas ?
Thank you,

So it turns out it's just about my ignorance and me expecting too much magic. One has to POINTER(c_bool) for this to work, as is probably obvious to anyone knowing ctypes.
Closing this...


[IntelliJ plugin] No auto completion available for function

Moved to correct repo:
https://github.com/ballerinalang/plugin-intellij/issues/642
Sorry about the inconvenience.


Code Scanning (GHAE Beta)

Summary
Code scanning is already available on GHEC and GHES. This adds support for code scanning on GHAE.
Intended Outcome
GHAE users can use code scanning.
How will it work?
Code scanning can be enabled on repositories in GHAE.

https://docs.github.com/en/github-ae@latest/admin/overview/github-ae-release-notes


Docker not Working correctly

Configuring with command : docker run  --name rtsp-to-web --network "host" ghcr.io/deepch/rtsptoweb:latest
Doesn't provide a connectable Host via <IP_ADDRESS>:8083 or LocalHost:8083, adding -p 8083:8083 does but doesn't provide WEBRTC streams for my cameras
Edit"I did notice the below in cmd after posting might be the issue:
level=error msg="WebRTC Client Offline" call=WritePacket channel=0 func=HTTPAPIServerStreamWebRTC"

Can you elaborate on the problem? I'm not sure I have enough context to understand the issue.

hello, please learn a bit about docker and you will see why is not working, it has nothing to do with a bug of this software, this can be closed

I'm having the same issue too. If I may suggest to add the -p 8083:8083  to the docker run cmd example in the readme.md
As with @allenporter, I've setup the streams as per manual, I could not get the video to be shown in the demo if its running inside docker but the same configuration works under normal execution (without using docker)
I believe as what as @hellcry37 mention, there's is no issue with the software, its just a matter of configuring docker.
So my ask is may I know what is the right setup for running RTSPToWeb in docker
Thank you

first advice that i can give is dont use <IP_ADDRESS> or localhost
the second one dont map ports use host network mode if you are a pro and want to map ports then use it correctly
and finally use docker compose:
version: '3.7'
services:
  rtsptoweb:
    container_name: rtsp-to-web
    image: ghcr.io/deepch/rtsptoweb:latest
    network_mode: host
    privileged: true
    environment:
      - TZ=Europe/Bucharest
    volumes:
      - '/home/docker-files/rtsp-to-web/config.json:/config/config.json'
    restart: unless-stopped

get a good config.json from this repo


Not include referer=

i don't want to include referer= or i want to give the whole domain my self

I introduced the possibility to pass referer as an argument. You are now able to provide it manually.


"Failure during lint analysis" with @Composable-annotated modifier extension function

Artifact used:
com.slack.lint.compose:compose-lint-checks:1.3.1

No lint.xml
Example code:
@Composable
private fun Modifier.mediumPadding() = this.padding(16.dp)

Result:
Lint found 1 errors, 15 warnings. First failure:

/.../MainActivity.kt: Error: Unexpected failure during lint analysis of MainActivity.kt (this is a bug in lint or one of the libraries it depends on)

The modifier function should not be annotated with @Composable but it was in a function in a project where we were introducing the lint checks for the first time. It failed the lint instead of flagging it as an issue, or ignoring it.

Please paste the associated stacktrace that is printed after, the bit you pasted isn't enough info :)

Can't reproduce in 1.4.1


Unable to disable compression on Azure CDN

Nothing happens when setting azure.cdn.Endpoint.isCompressionEnabled to false after being true. The compression setting in Azure remains active no matter what I try.

I believe this is tracked upstream in https://github.com/hashicorp/terraform-provider-azurerm/issues/22326 and has been fixed today. We should get the fix with the next provider release (5.48.0).


Windows still not working

It looks like 0.5.1 was supposed to fix the windows build, but it still doesn't seem fixed.
When I look at the artifact url, I see it repackages tectonic-0.5.1+1-x86_64-w64-mingw32.tar, maybe that should rather be https://github.com/tectonic-typesetting/tectonic/releases/download/continuous/tectonic-0.5.1+20210608-x86_64-pc-windows-msvc.zip, which does work indeed.

0.5.2 will fix it as far as I understand, once it's properly released. I wasn't planning to use any of their "continuous deployment" versions.

Ah ok ... so that release wasn't actually the one to fix it ;) Cool! I'll leave this issue open to track the issue on windows.

Yeah, I just release in lock step with upstream so that there's always a corresponding version rather than skipping anything.


feat: bump version to 1.0.29 (jade), 5.1.2 (esp-idf)

I think we need a higher timeout for the ci build

Planning to test this on the four supported devices.

Passed testing on macOS.


Antisense after pychopper minimap2. to -uf or not -uf

I run TALON on data after pychopper and use minimap2 to generate .sam as follows
minimap2 -ax splice -t 40 --MD GRCh38.primary_assembly.genome.fa --junc-bed gencode.v41.primary_assembly.annotation.bed ../../fastq/"${sample}"_full_length.fastq > ../../alignments/TALON/"${sample}".sam
However I do get around ~40% antisense reads, I presumed pychopper orientated the reads 5'->3'. Do I need to add -uf on minimap2

Internally, we have to flip ONT reads manually. I do not believe PyChopper does. You will need to orient your reads from 5'->3' before running TALON.


added optional request headers for remote assests (android & ios)

This pull request adds support for setting arbitrary Request Headers for resolving remote media. A use case could be to add an Authorization header for media that needs authentication. Therefore this PR should be able to close #475.
It can be used as demonstrated in the snippet below, by adding a headers object in the source property of the Video component.
<Video
  source={{
    uri: videoUrl,                        .
      headers: {
        Authorization: 'bearer some-token-value',
        'X-Custom-Header': 'some value'
      }
  }}
</Video>

It has been tested on iOS and Android.
Note: It was currently not possible to add the same functionality for Windows. System.Windows.Media.MediaPlayer only supports a single Uri class for remote/local media.

This would be great, I can't wait till this is implemented.

Great stuff. Any update on this? Would love to see this merged.

Thank you very much, for this! Hope it gets into the master branch asap 🥇

Awesome !

@emrah88 I believe it's here: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/AdaptiveStreaming
I also have UWP code that works for AES.

@emrah88 I tested your fork on android and got this error, i tried some fixes but my android knowledge is low:
Error while updating property 'src' of a view managed by: RCTVideo

null

couldn't find key requestHeaders in dynamic object

Hope this help :)

👍 should be great to have this feature merged soon :)

Any news on this being merged anytime soon?

Also in need of this!

@sampurcell93 sorry, when can you merge it? it's really needed feature

Really need this!!! can I get a merge or a alternative?

You can of course can fork the pr branch in the meantime and point to that, but yeah definitely needs merging

It has an error on android
Error while updating property 'src' of a view managed by: RCTVideo

null

couldn't find key requestHeaders in dynamic object

so fork couldn't help in this case
@emrah88, sorry,  when can you fix it?

@sanchesking9 I do not have write permissions.

@isaiahgrey93 sorry, maybe you have write permissions??

Thanks for your feedback!! 🙏 🙏
I don't have that much Android experience. Sadly, this PR can't be merged as it is now since the Android player throws errors. No problems in iOS though, I am currently using it production.
I've tried to fix it, but I only get the first video playing. As soon as I try to load another video I get exceptions. I'll keep working on it though.
For you that are willing to try it out add the following to dependencies in package.json:
react-native-video: emrah88/react-native-video

@JohnGalt1717 cool, I'll look in to the AdaptiveStreaming samples

@emrah88 I can get this merged once the remaining issues get resolved. What sort of problems are you running into on Android, I should be able to help you get them sorted out. I left a note on the iOS code.
@sampurcell93 Thanks for helping review this. We could use more maintainers, if you'd like to help out lmk and I can get you added.

Hey @cobarx that sounds great! I should be able to give you some logcat output at Monday. The gist is: first video plays fine first time around, when selecting other video nothing happens.

I managed to get it working on Android now :tada:
... but I'm unsure about it's the right approach.
@cobarx could you have a look at my comment in the latest commit? (49cd5b6d018e62e6ed148458d658c32d0035688a)

hi @emrah88
something happened with ios version, check it please
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:55:22: warning: designated initializer invoked a non-designated initializer [-Wobjc-designated-initializers]
if ((self = [super init])) {
^
In file included from /Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:2:
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.h:29:1: note: method marked as designated initializer of the class here

(instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:53:1: warning: designated initializer missing a 'super' call to a designated initializer of the super class [-Wobjc-designated-initializers]
(instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher
^
In file included from /Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:2:
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.h:29:1: note: method marked as designated initializer of the class here
(instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:333:31: error: unexpected '@' in program
[assetOptions setObject:@headers forKey:@"AVURLAssetHTTPHeaderFieldsKey"]
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:336:29: error: unexpected '@' in program
[assetOptions setObject:@cookies forKey:@AVURLAssetHTTPCookiesKey]
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:339:46: error: use of undeclared identifier 'asset'
return [AVPlayerItem playerItemWithAsset:asset];
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:364:27: warning: initializing 'NSString *__strong' with an expression of incompatible type 'id<NSObject,NSCopying> _Nullable'
NSString *value = item.value;
^       ~~~~~~~~~~
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:858:1: warning: method possibly missing a [super insertReactSubview:atIndex:] call [-Wobjc-missing-super-calls]
}
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:871:1: warning: method possibly missing a [super removeReactSubview:] call [-Wobjc-missing-super-calls]
}
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:14:17: warning: method override for the designated initializer of the superclass '-initWithFrame:' not found [-Wobjc-designated-initializers]
@implementation RCTVideo
^
In module 'UIKit' imported from /Users/user/www/GetAlertReact/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTConvert.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:150:1: note: method marked as designated initializer of the class here
(instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
^
/Users/user/www/GetAlertReact/node_modules/react-native-video/ios/RCTVideo.m:14:17: warning: method override for the designated initializer of the superclass '-initWithCoder:' not found [-Wobjc-designated-initializers]
@implementation RCTVideo
^
In module 'UIKit' imported from /Users/user/www/GetAlertReact/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTConvert.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:151:1: note: method marked as designated initializer of the class here
(nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
^
7 warnings and 3 errors generated.

@sanchesking9 thanks for the heads up!
I've had some syntax erros - which is fixed now.

Ok I've tested this on all 3 platforms, made a few small fixes, and it's working great!
There are only 2 things I noticed that were worth mentioning. All the data is showing up in the Apache logs URL encoded. For example:
headers: {
  'X-HTTP-Object': { key: 'value' },
  'X-HTTP-Date': new Date()
}

becomes:
X-HTTP-Object:{"key"%3a"value"}|X-HTTP-Date:2018-06-23T02%3a27%3a58.302Z

I don't know if this is an issue or not as I don't have a web app setup for testing headers. I suppose I can throw something together pretty quick in PHP and check it.
Also, as a general coding convention I tend to like keeping the variable names the same throughout. Is there any reason we need to switch back and forth between headers and requestHeaders in the native code rather than picking one? It's pretty minor and I would be ok merging without changing working code.
I went ahead and added a note about changing the Android MediaPlayer setDataSource call so we can know what's up if someone reports an issue.
This thing is pretty much ready to merge. I also need to go through and document it, which I'll probably do in another PR.
@JohnGalt1717 If you have time to add UWP support that would be fantastic.

I'm burried at the moment but will see if I can get some bandwidth soon to take a look.

I need to pass a header with a video access authorization token, since I want to block the external access in .htaccess and open access only by the mobile phone through a token.
I'm using Android
but this is not working ...
source={     { uri: 'http://<IP_ADDRESS>:5000/50045454',       headers: {                 Authorization: 'my token'                }             }      }
in the logs I get only this
User-Agent: ReactNativeVideo/1.0 (Linux;Android 7.0) ExoPlayerLib/2.7.3 Connection: Keep-Alive Range: bytes=124042930- Host: <IP_ADDRESS>:5000 Accept-Encoding: identity

This feature isn't in 2.3.1, it's only available on the master branch. I'll be releasing 3.0 with it later today.

thank, very much
this update will help me a lot (:

@cobarx thanks for the awesome job and putting this together!
I'll look out for any mentions regarding the changes to setDataSource.
Regarding the Apache Logs, did you figure out something? I'll try do some request to my IIS server too see if I get the same encoding.
Regarding the naming of headers and requestHeaders, I agree completely with keeping the same names. But there was a reason for it which I can't remember. I'll do a PR soon to get them aligned again.

Is there any sort of documentation for this? I can't seem to pass my Authorization header successfully.

@YoranRoels I've added docs to the README. It only works out of the box on ExoPlayer, it's disabled by default on iOS because the code uses a private API that could get the app rejected from the App Store. The README has instructions for enabling it.
To troubleshoot, you can set breakpoints in the native code. Also, enable logging on your server to make sure the headers are arriving.


Add ability to disable auto JS import and add ICookieConsentInterop

Hi,
We are using this library for cookie consent, specifically on the MudBlazor website.
We would like to be able to import our own version of cookieconsent.js, a minified version, and possibly change the name. The reason for this is that the script is frequently blocked by adblockers.
With ImportJsAutomatically, you can disable the automatic import of the JS module, allowing users to add their own script via:
<script src="_content/XYZProject/cookieconsent.min.js"></script>

I have also added an ICookieConsentInterop interface that can be replaced with your own implementation via dependency injection. This could be useful if you want to change the JS method names or add additional logic, such as custom error handling. I hope this makes sense.

@RyanTT
Let me know if you want me to clean up the CookieConsentService, specifically the _jsRuntime and _module (not used in the service anymore). I kept them for now to ensure backward compatibility.

Here's a log of the errors I get in incognito with uBlock cookie filters enabled:
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
dotnet.js:3

        Uncaught (in promise) TypeError: Failed to fetch
    at Object.A [as fetch_like] (dotnet.js:3:4508)
    at dotnet.js:3:11593
    at dotnet.js:3:11609
blazor.webassembly.js:1  Error in mono_download_assets: Error: download 'https://mudblazor.com/_framework/BytexDigital.Blazor.Components.CookieConsent.wasm' for BytexDigital.Blazor.Components.CookieConsent.wasm failed 0 TypeError: Failed to fetch
Dt @ blazor.webassembly.js:1
3dotnet.js:3  Uncaught (in promise) Error: download 'https://mudblazor.com/_framework/BytexDigital.Blazor.Components.CookieConsent.wasm' for BytexDigital.Blazor.Components.CookieConsent.wasm failed 0 TypeError: Failed to fetch
    at dotnet.js:3:9983
    at async K (dotnet.js:3:8871)
    at async Y (dotnet.js:3:8196)
2mudblazor.com/:1  Uncaught (in promise) Error: download 'https://mudblazor.com/_framework/BytexDigital.Blazor.Components.CookieConsent.wasm' for BytexDigital.Blazor.Components.CookieConsent.wasm failed 0 TypeError: Failed to fetch
    at dotnet.js:3:9983
    at async K (dotnet.js:3:8871)
    at async Y (dotnet.js:3:8196)
blazor.webassembly.js:1  Uncaught (in promise) Error: Failed to start platform. Reason: Error: download 'https://mudblazor.com/_framework/BytexDigital.Blazor.Components.CookieConsent.wasm' for BytexDigital.Blazor.Components.CookieConsent.wasm failed 0 TypeError: Failed to fetch
    at mn (blazor.webassembly.js:1:57654)
dotnet.runtime.8.0.6.scyrrn9hx4.js:3  Uncaught (in promise) Error: download 'https://mudblazor.com/_framework/BytexDigital.Blazor.Components.CookieConsent.wasm' for BytexDigital.Blazor.Components.CookieConsent.wasm failed 0 TypeError: Failed to fetch
    at dotnet.js:3:9983
    at async K (dotnet.js:3:8871)
    at async Y (dotnet.js:3:8196)

The site gets stuck on the splash screen..
If I disable the adblock, load the site fine, then turn it back on, I get this error:
blazor.webassembly.js:1

 GET https://mudblazor.com/_content/BytexDigital.Blazor.Components.CookieConsent/cookieconsent.js net::ERR_BLOCKED_BY_CLIENT
dotnet.runtime.8.0.6.scyrrn9hx4.js:3
 fail: BytexDigital.Blazor.Components.CookieConsent.CookieConsentService[0]
      Exception raised trying to run CookiePreferencesChanged event handler
Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://mudblazor.com/_content/BytexDigital.Blazor.Components.CookieConsent/cookieconsent.js
TypeError: Failed to fetch dynamically imported module: https://mudblazor.com/_content/BytexDigital.Blazor.Components.CookieConsent/cookieconsent.js
   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at BytexDigital.Blazor.Components.CookieConsent.Broadcasting.CookieConsentEventHandler.PublishToJsAsync(String name, String data)
   at BytexDigital.Blazor.Components.CookieConsent.Broadcasting.CookieConsentEventHandler.BroadcastCookiePreferencesChangedAsync(CookiePreferences cookiePreferences)
   at BytexDigital.Blazor.Components.CookieConsent.CookieConsentService.PublishCookiePreferencesChanged(CookiePreferences preferences)
   at BytexDigital.Blazor.Components.CookieConsent.CookieConsentServiceAuthority.NotifyApplicationLoadedAsync()

but the site still loads ok.

Hmm seems like I also need to modify the CookieConsentEventHandler.

Added trimming support to fix this: https://github.com/BytexDigital/BytexDigital.Blazor.Components.CookieConsent/issues/28#issuecomment-1920117332


Gold Mine Problem

C++ program to solve Gold Mine problem
Description of Change

Checklist

[ ] Added description of change
[ ] Added file name matches File name guidelines
[ ] Added tests and example, test must pass
[ ] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[ ] Relevant documentation/comments is changed or added
[ ] PR title follows semantic commit guidelines
[ ] Search previous suggestions before making a new one, as yours may be a duplicate.
[ ] I acknowledge that all my contributions will be made under the project's license.

Notes:

Copied
We don't support plagiarism here.
@kvedala


Arbitrary Exp

Hello!
Do I see it correctly that in this file you are defining an Arbitrary instance for Haskell AST? Could that be used to get arbitrary haskell source strings via QuickCheck? And if so perhaps would you be willing to move that portion out to a separate cabal package so that others, including myself could use it?

To be honest, that's some of the laziest Haskell code I've ever written. My goal when defining those Arbitrary instances was not to have robust generation of Haskell source strings, but to produce simple expressions that I could use to test TextShow instances.
The commented-out code was my original attempt, but due to the high levels of mutual recursion among Template Haskell data types, they were too slow for practical use. To get around this, I use trivial values for most types, which means any Haskell expressions generated by this code would be extremely uninteresting.

You mean the slowness came due to the recursion going too deep and generating too long of an AST? If so couldn't that be solved by allowing to specify the desired depth and/or length of the arbitrary expression?
A bit of context: I am thinking of using automatically generated expressions to test the correctness of this parser.

If so couldn't that be solved by allowing to specify the desired depth and/or length of the arbitrary expression?

Probably. I'm not an experienced QuickCheck user—I just needed a quick test for text-show-instances, and that was what I cobbled together. If you want to extend it, you're more than welcome to use that code as a start, but I don't really have the time to mess with it.

I'm going to close this, since it seems only tangentially related to text-show-instances.


Angular material 6.3.0 stop to work on build prod

Bug, feature request, or proposal:
Stop to working on:
ng serve --prod
in ng serve work well
The application start with this error:
main.3cea331738aacf3015b8.js:1 ERROR Error: StaticInjectorError(Os)[t -> t]:
  StaticInjectorError(Platform: core)[t -> t]:
    NullInjectorError: No provider for t!
    at t.get (main.3cea331738aacf3015b8.js:1)
    at main.3cea331738aacf3015b8.js:1
    at t (main.3cea331738aacf3015b8.js:1)
    at t.get (main.3cea331738aacf3015b8.js:1)
    at main.3cea331738aacf3015b8.js:1
    at t (main.3cea331738aacf3015b8.js:1)
    at t.get (main.3cea331738aacf3015b8.js:1)
    at bi (main.3cea331738aacf3015b8.js:1)
    at t.get (main.3cea331738aacf3015b8.js:1)
    at so (main.3cea331738aacf3015b8.js:1)
le @ main.3cea331738aacf3015b8.js:1
main.3cea331738aacf3015b8.js:1 Error: StaticInjectorError(Os)[t -> t]:
  StaticInjectorError(Platform: core)[t -> t]:
    NullInjectorError: No provider for t!
    at t.get (main.3cea331738aacf3015b8.js:1)
    at main.3cea331738aacf3015b8.js:1
    at t (main.3cea331738aacf3015b8.js:1)
    at t.get (main.3cea331738aacf3015b8.js:1)
    at main.3cea331738aacf3015b8.js:1
    at t (main.3cea331738aacf3015b8.js:1)
    at t.get (main.3cea331738aacf3015b8.js:1)
    at bi (main.3cea331738aacf3015b8.js:1)
    at t.get (main.3cea331738aacf3015b8.js:1)
    at so (main.3cea331738aacf3015b8.js:1)
main.3cea331738aacf3015b8.js:1 ERROR TypeError: Cannot read property 'instance' of undefined
    at Li (main.3cea331738aacf3015b8.js:1)
    at Object.handleEvent (main.3cea331738aacf3015b8.js:1)
    at Object.handleEvent (main.3cea331738aacf3015b8.js:1)
    at Object.handleEvent (main.3cea331738aacf3015b8.js:1)
    at Br (main.3cea331738aacf3015b8.js:1)
    at main.3cea331738aacf3015b8.js:1
    at main.3cea331738aacf3015b8.js:1
    at e.invokeTask (polyfills.7a0e6866a34e280f48e7.js:1)
    at Object.onInvokeTask (main.3cea331738aacf3015b8.js:1)
    at e.invokeTask (polyfills.7a0e6866a34e280f48e7.js:1)
le @ main.3cea331738aacf3015b8.js:1

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular CLI: 6.0.7
Node: 10.3.0
OS: win32 x64
Angular: 6.0.5
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.7.0-beta.1
@angular/cdk                      6.3.0
@angular/flex-layout              6.0.0-beta.16
@angular/material                 6.3.0
@ngtools/webpack                  6.0.8
@schematics/angular               0.6.7 (cli-only)
@schematics/update                0.6.7 (cli-only)
rxjs                              6.2.1
typescript                        2.7.2
webpack                           4.8.3

Is there anything else we should know?
if i try:
ng serve --prod --optimization=false
Give me this error:
ERROR Error: StaticInjectorError(AppModule)[AppComponent -> MatSnackBar]:
  StaticInjectorError(Platform: core)[AppComponent -> MatSnackBar]:
    NullInjectorError: No provider for MatSnackBar!
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:31078)
    at resolveToken (main.1671513801bff42a5980.js:31328)
    at tryResolveToken (main.1671513801bff42a5980.js:31273)
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:31168)
    at resolveToken (main.1671513801bff42a5980.js:31328)
    at tryResolveToken (main.1671513801bff42a5980.js:31273)
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:31168)
    at resolveNgModuleDep (main.1671513801bff42a5980.js:38109)
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:38801)
    at resolveDep (main.1671513801bff42a5980.js:39167)
defaultErrorLogger @ main.1671513801bff42a5980.js:31671
<EMAIL_ADDRESS>@ main.1671513801bff42a5980.js:31719
(anonymous) @ main.1671513801bff42a5980.js:34368
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.f506ff5bbe08fb3ba254.js:2710
push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.f506ff5bbe08fb3ba254.js:2460
<EMAIL_ADDRESS>@ main.1671513801bff42a5980.js:33739
(anonymous) @ main.1671513801bff42a5980.js:34368
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.f506ff5bbe08fb3ba254.js:2710
onInvoke @ main.1671513801bff42a5980.js:33780
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.f506ff5bbe08fb3ba254.js:2709
push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.f506ff5bbe08fb3ba254.js:2460
(anonymous) @ polyfills.f506ff5bbe08fb3ba254.js:3194
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.f506ff5bbe08fb3ba254.js:2743
onInvokeTask @ main.1671513801bff42a5980.js:33771
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.f506ff5bbe08fb3ba254.js:2742
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ polyfills.f506ff5bbe08fb3ba254.js:2510
drainMicroTaskQueue @ polyfills.f506ff5bbe08fb3ba254.js:2917
Promise.then (async)
scheduleMicroTask @ polyfills.f506ff5bbe08fb3ba254.js:2900
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.f506ff5bbe08fb3ba254.js:2732
onScheduleTask @ polyfills.f506ff5bbe08fb3ba254.js:2619
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.f506ff5bbe08fb3ba254.js:2723
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ polyfills.f506ff5bbe08fb3ba254.js:2554
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ polyfills.f506ff5bbe08fb3ba254.js:2574
scheduleResolveOrReject @ polyfills.f506ff5bbe08fb3ba254.js:3184
ZoneAwarePromise.then @ polyfills.f506ff5bbe08fb3ba254.js:3284
<EMAIL_ADDRESS>@ main.1671513801bff42a5980.js:33034
(anonymous) @ main.1671513801bff42a5980.js:34273
_callAndReportToErrorHandler @ main.1671513801bff42a5980.js:34365
(anonymous) @ main.1671513801bff42a5980.js:34271
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.f506ff5bbe08fb3ba254.js:2710
onInvoke @ main.1671513801bff42a5980.js:33780
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.f506ff5bbe08fb3ba254.js:2709
push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.f506ff5bbe08fb3ba254.js:2460
<EMAIL_ADDRESS>@ main.1671513801bff42a5980.js:33694
<EMAIL_ADDRESS>@ main.1671513801bff42a5980.js:34262
./src/main.ts @ main.1671513801bff42a5980.js:207374
__webpack_require__ @ runtime.8c26f1fab6959b00a997.js:77
0 @ main.1671513801bff42a5980.js:207388
__webpack_require__ @ runtime.8c26f1fab6959b00a997.js:77
checkDeferredModules @ runtime.8c26f1fab6959b00a997.js:44
webpackJsonpCallback @ runtime.8c26f1fab6959b00a997.js:31
(anonymous) @ main.1671513801bff42a5980.js:1
main.1671513801bff42a5980.js:207375 Error: StaticInjectorError(AppModule)[AppComponent -> MatSnackBar]:
  StaticInjectorError(Platform: core)[AppComponent -> MatSnackBar]:
    NullInjectorError: No provider for MatSnackBar!
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:31078)
    at resolveToken (main.1671513801bff42a5980.js:31328)
    at tryResolveToken (main.1671513801bff42a5980.js:31273)
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:31168)
    at resolveToken (main.1671513801bff42a5980.js:31328)
    at tryResolveToken (main.1671513801bff42a5980.js:31273)
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:31168)
    at resolveNgModuleDep (main.1671513801bff42a5980.js:38109)
    at<EMAIL_ADDRESS>(main.1671513801bff42a5980.js:38801)
    at resolveDep (main.1671513801bff42a5980.js:39167)

The same code work well with old version.

I have exactly the same issue with MatBottomSheet - 'No provider for MatBottomSheet'. I've gone back to the previous version for now.

same here

I've set the latest tag on npm back to 6.2.1 while investigating this.
I ran into this as well while deploying material.angular.io and was able to fix it by doing a fresh install/build, so I assumed it was just an environment issue. However, with so many people running into it, it seems something is amiss.

Is someone able to share a project with a reproduction? I can't seem to reproduce it with material.angular.io any more.

I tried to recreate and couldn't. So I deleted the:
@angular, @angular-devkit, rxjs, rxjs-compat
folders from node_modules, then ran:
npm install
and it seems that the issue is resolved.
I've been using ng update, since v5? in case that's useful. I'm now on the following:
"@angular/animations": "^6.0.5",
"@angular/cdk": "^6.3.0",
"@angular/common": "^6.0.5",
"@angular/compiler": "^6.0.5",
"@angular/compiler-cli": "^6.0.5",
"@angular/core": "^6.0.5",
"@angular/flex-layout": "^6.0.0-beta.15",
"@angular/forms": "^6.0.5",
"@angular/http": "^6.0.5",
"@angular/material": "^6.3.0",
"@angular/platform-browser": "^6.0.5",
"@angular/platform-browser-dynamic": "^6.0.5",
"@angular/platform-server": "6.0.5",
"@angular/router": "^6.0.5",

I just updated to material 6.3.0 and I did not have this issue.
`Package                           Version
@angular-devkit/architect         0.6.7
@angular-devkit/build-angular     0.6.7
@angular-devkit/build-optimizer   0.6.7
@angular-devkit/core              0.6.7
@angular-devkit/schematics        0.6.7
@angular/cdk                      6.3.0
@angular/cli                      6.0.7
@angular/flex-layout              6.0.0-beta.15
@angular/material                 6.3.0
@angular/pwa                      0.7.0-beta.1
@ngtools/webpack                  6.0.7
@schematics/angular               0.6.7
@schematics/update                0.6.7
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.8.3
`

I just updated to version 6.3.0 and I dont have this issue. It worked perfectly!
Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.7
@angular-devkit/build-angular     0.6.7
@angular-devkit/build-optimizer   0.6.7
@angular-devkit/core              0.6.7
@angular-devkit/schematics        0.6.7
@angular/cdk                      6.3.0
@angular/cli                      6.0.7
@angular/flex-layout              6.0.0-beta.15
@angular/material                 6.3.0
@angular/pwa                      0.7.0-beta.1
@ngtools/webpack                  6.0.7
@schematics/angular               0.6.7
@schematics/update                0.6.7
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.8.3

Can anyone answer whether the issue goes away if you update @angular/cli and @angular-devkit/build-angular to the latest versions?

Updating @angular/cli and @angular-devkit/build-angular solved my problem, thank you Jeremy!

I am using an ejected project with Angular CLI 1.7.4 and the problems seems to be present on 6.3.0 but not on 6.2.1. By the way, I am using Angular 6.0.7.

@josephperrott and I have spent a while debugging this now, and we're relatively sure this is caused by some bug in @angular/cli, specifically the build-optimizer. In and environment where we're able to reproduce the issue, running with --build-optimizer=false works fine. We'e not able to reproduce it at all with the most recently released versions of the cli and devkit.
So, to resolve this, you should:

Update to the latest versions for @angular/cli and @angular-devkit (updating the other @angular packages probably wouldn't hurt)
Clear your node_modules and do a fresh install

Since the issue seems to be coming from elsewhere, I'm going to move the latest tag back to 6.3

Are we supposed to clear node_modules every time we do an ng update because frankly I'm getting sick of it trashing my project every time I use it for 0.1 more versions of angular.
Especially when it claims 'everything is fine!'

rimraf node_mdules yarn.lock did the trick

Deleting node_modules worked for Angular CLI 1.7.x also.

Hi all i delete node_modules  update @angular/cli  to latest  and now work well compile thanks @jelbourn

worked great with staging, as soon as i went to production, sentry caught TypeError: i.ɵnov(...)._getAriaLabel is not a function and i noticed most things worked but none of the Select controls were working.
I deleted node_modules and reinstalled redid prod build it worked.... so i went back to 6.2.0 did an install rebuild worked, only change was upgraded to 6.3.0 and it broke again... so between 6.2.0 and 6.3.0 node_modules has to be rewiped

@jelbourn I tried all the solutions mentioned by you and others,
I tried below the solutions

Cleared node_modules and installed everything freshly. (used<EMAIL_ADDRESS>&<EMAIL_ADDRESS><EMAIL_ADDRESS>Updated CLI and devkit still it doesn't work with<EMAIL_ADDRESS>version
downgraded material to 6.2.1 then it worked where I was trying to implement adding Material to existing project.

I since I was able to reproduce with versions of<EMAIL_ADDRESS>and<EMAIL_ADDRESS>CLI versions in my system(windows 10)

Let me know if really<EMAIL_ADDRESS>is having some issues
Regards
Soma

@somuenc, did you "ng update", then run any individual updates. Then delete node_modules folder. Then run "npm install"?
What's your build command, and what's your error message?

Hi Kevin,
My application package.json
"dependencies": {
"@angular/animations": "^6.0.0",
"@angular/cdk": "^6.3.0",
"@angular/common": "^6.0.0",
"@angular/compiler": "^6.0.0",
"@angular/core": "^6.0.0",
"@angular/forms": "^6.0.0",
"@angular/http": "^6.0.0",
"@angular/material": "^6.3.0",
"@angular/platform-browser": "^6.0.0",
"@angular/platform-browser-dynamic": "^6.0.0",
"@angular/router": "^6.0.0",
"core-js": "^2.5.4",
"rxjs": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "^6.0.0",
"@angular-devkit/build-angular": "~0.6.0",
"typescript": "~2.7.2",
"@angular/cli": "~6.0.0",
"@angular/language-service": "^6.0.0",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~1.7.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~1.4.2",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.3.0",
"ts-node": "~5.0.1",
"tslint": "~5.9.1"
}
and command with error

Regards
Soma

@kdubious  Its my bad my issue is related to https://github.com/angular/material2/issues/11836
Instead of posting this in 11836 I posted here.
Really I appreciate if someone look at this and see if its still reproducible.
Regards
Soma

Updating @angular-devkit/build-angular from 0.6.3 to 0.6.8 fixed my prod mode issues.

Also had this problem with 6.3.2 when I published an app that was working fine in dev, rolled back to 6.2.1 and that fixed it for me.

Deleting ./node_modules/ and reinstalling it fixed it for me (again). So, try that first before you change package versions.

Updating @angular-devkit/build-angular to 0.7.0-rc.2 worked for me today, don't know if this will be sustainable but that solved the issue at least for a time.

Same problem with material 6.4.0 in Angular 6.0.9

This error (Module build failed: Error: Debug Failure. Found typedef tag attached to node which it should not be!) is triggered when building with buildOptimizer=true and affects many node_modules like material, cdk, ol (OpenLayers)... I'm using Angular 6.0.9 with Material 6.4.0 (Angular CLI 6.0.8)
...
ERROR in<EMAIL_ADDRESS>Module build failed: Error: Debug Failure. Found typedef tag attached to node which it should not be!
ERROR in<EMAIL_ADDRESS>Module build failed: Error: Debug Failure. Found typedef tag attached to node which it should not be!
ERROR in<EMAIL_ADDRESS>Module build failed: Error: Debug Failure. Found typedef tag attached to node which it should not be!
ERROR in<EMAIL_ADDRESS>Module build failed: Error: Debug Failure. Found typedef tag attached to node which it should not be!
...

I'm going to close this since general consensus is that updating the CLI/devkit and fresh installing node_nodes fixes the issue. I'm honestly not sure what the root cause was, except that it has something to do with Angular CLI's build-optimizer.
Feel free to open a new issue if someone is able to provide a full reproduction, though it may be better to open it on the angular-cli repo.

CLI/devkit was the issue for me, i'm surprised how come it's not a part of ng update


How to disable panning for all nested elements?

   <TransformWrapper
      panning={{ excluded: ["panningDisabled"] }}
    >
      <TransformComponent>

         /* deep nested elements */

      </TransformComponent>
    </TransformWrapper>

How to disable panning for everything inside the div without explicitly providing "panningDisabled" for each and every element.

In our project, we have re-usable components (e.g. nestable containers)
Our simplified DOM:
.cpnContainer

.cpnContainer (lots of these that have absolute positioning)
We have cpnContainer set as an excluded panning class and on a previous version we could pan by 'grabbing the canvas' in-between the containers. Unfortunately, since everything is inside an excluded class, this no longer works now.
Perhaps it would be cleaner to ensure that if we DO exclude an element (because it has an ancestor that is excluded) we also check that said ancestor is a child of the zoom-pan component, and not an ancestor.
I'll send through a PR with this fix. Please let me know how you feel about this. I'm happy to discuss and rework.


iOS ends TCP connection after receiving response

We have an external device to which our app sends a PUT request. On specific conditions the device sends successful response with data requesting for additional information. After the external device does that, it should stay waiting for the response (TCP connection should not be ended).
On android device/emulator it works as expected. But on iOS device/simulator the connection is ended after the external device sends a response to our first request. While debugging with Wireshark we noticed that after the external device sends a response to our first request, the iOS app sends a FIN ACK packet to the device to end the connection. This doesn’t happen on android though.
We have tried to use axios, fetch and XMLHttpRequest for sending the requests to the device. Even tried adding keep-alive header.
What could we try to get it working as it should or what would be the source of the problem?
Environment
React Native version 0.59.5
Axios version 0.18.1
Simulator’s iOS version 12.0
React Native version
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Memory: 275.53 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/homebrew/bin/yarn
npm: 6.7.0 - /usr/local/homebrew/bin/npm
Watchman: 4.9.0 - /usr/local/homebrew/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
IDEs:
Android Studio: 3.3 AI-182.5<IP_ADDRESS>14842
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.5 => 0.59.5
npmGlobalPackages:
react-native-cli: 2.0.1
Steps to Reproduce
Unfortunately I can’t give specific example to reproduce it. You can look at “Expected Behavior” for the flow example how it should work.
Expected Behavior

React Native’s app sends a http request to external device or server
Device sends back a response requesting for additional information and waits for an answer
App receives the response
App checks if the device is requesting for some additional info, if so then sends it to the device
Device processes the data that was sent by the app and sends a response to the app
App receives the final response
The connection is ended

Actual Behavior

React Native’s app sends a http request to external device or server
Device sends back a response requesting for additional information and waits for an answer
App receives the response
App ends the connection with FIN ACK
Device stops the waiting process and goes into "default" mode

I think this is expected behavior, or every connection must end with a response. Or you might consider using WebSocket, which doesn't close connection automatically after a response.


People Directory: include * in search to correctly process query

Category

[ ] Bug Fix
[ ] New Feature
Related issues: No

What's in this Pull Request?
* is automatically added to the search query.
This change allows to return results, for example, in the next situation: user enters ale and wants to get Alex

Great Idea. Thanks Alex!


Feature Request: Add ability to skip already downloaded images

Love this tool, but I've noticed it will download previously grabbed images (and rename them) -- that is fine and all, but an option should really be given to skip downloads of files with the same MD5 hash rather than re-download and append -x to the end of the filename.
If this is something that you can add in quickly, I would appreciate it and would be more than willing to help test it out! I would write it myself but, I'm only a C/C++ coder. The syntax and language seems stylistically similar, so I'm sure with a bit of research I could probably hack it in, but I don't have the time at the moment. :/

Did you write it yourself?

I have been balancing between learning the code and writing it. Such a thing I can do in C++ pretty quickly so i just need to port the code. Like I said, more of a timing thing, but if you are interested I can keep you up to date


Error "rest_cannot_create", status 401

Hi,
I'm making an app with React Native, and I use this module to handle WP API requests. I'm just messing around right now, but I keep having an error: "rest_cannot_create", with status 401 and message saying that I don't have permission to perform my request.
Here's how I perform the basic auth:
const wp = new WPAPI({
  endpoint: 'https://www.my-url.com/wp-json',
  username: 'username',
  password: 'passphrase',
  auth: true
});

And my request looks like this:
wp.media()
        .file( uri )
        .create({
            title: 'My awesome image',
            alt_text: 'an image of something awesome',
            caption: 'This is the caption text',
            description: 'More explanatory information'
        })
        .then(function( response ) {
            console.log(response);
            var newImageId = response.id;
            return wp.media().id( newImageId ).update({
                post: userId
            });
        })
        .then(function( response ) {
            dispatch(setNewImageAvatar(response));
        })
        .catch(function( err ) {
          console.log(err);
        });

And well, I used the WP Basic Auth handler and enabled it: https://github.com/WP-API/Basic-Auth
What do I miss?

Well, I don't know why, the issue is gone now...

Hello! Glad to hear the initial error went away, although unfortunately I am not certain what could have been causing it.
As for the rest_upload_no_data issue, I'd suggest logging out the value of uri to understand what is being sent to the API in the initial file request. I have not attempted to integrate this with React Native, so it's possible that the method of accessing and passing through a file's information differs from node's or the browser's.

Hi, thanks for your reply.
The value of URI is a string like  file://Users/username/... as I'm testing on iOs simulator. As the docs says a String describing an image file path, e.g. '/path/to/the/image.jpg', I also tried removing file:/, with no success (still getting rest_upload_no_data error).
Just to be sure, I tried using posts() method, which works well.

My best guess is that in the React Native environment, there's some other piece of file access that we'd need to pass in lieu of that file: string... I unfortunately can't commit to building a proof-of-concept right now, but I'd recommend searching for examples of React Native image uploads to see what value they use to pass in to fetch or whatever upload library they're using.
If you make any progress that suggests a way in which our documentation can be improved please comment here and we'll get it up on the docs site as soon as we can!

I'm using react-native-image-picker right now. Following the docs (https://github.com/react-community/react-native-image-picker#the-response-object), I can retrieve the image path, some urls, base64 data, etc.
I'm trying getting image data as base64 and make a new buffer from it, passing it to wp.media().file(imageDataAsBase64)

So, here's the result, I changed the original uri string to a buffer containing the base64 image data:
function base64DataToBuffer(dataString) {
  response = new Buffer(dataString, 'base64');
  return response;
}

imageBase64Data = base64DataToBuffer(imageBase64Data);

return wp.media()
        .file( imageBase64Data )
        ...

This leads to an error (or something like an error) :

when using wp.media().file(imageBase64Data), imageBase64Data is a Uint8Array variable
I get this message in the console:

TypeError: One of the sources for assign has an enumerable key on the prototype chain. Are you trying to assign a prototype property? We don't allow it, as this is an edge case that we do not support. This error is a performance optimization and not spec compliant.

As I'm not familiar with this (base64, buffers), I'm not sure what's going on there.

Assuming I fixed the error I got earlier with the following:
response = new Buffer(dataString).toString('base64');
I still got the same error: 400, rest_upload_no_data

I have the same issue , my code is as below . I get the { code: 'rest_cannot_create',message: 'Sorry, you are not allowed to create posts as this user.',data: { status: 401 } } error.  How can I resolve this, and is there any extra config needed on the WP dashboard side?
var WPAPI = require('wpapi');
var wp = new WPAPI({
    endpoint: 'http://my-url.com/wp-json',
    username: 'username',
    password: ' password',
    auth: true
});

wp.posts().create({
    // "title" and "content" are the only required properties
    title: 'Your Post Title',
    content: 'Your post content',
    // Post will be created as a draft by default if a specific "status"
    // is not specified
    status: 'publish'
}).then(function(response) {
    // "response" will hold all properties of your newly-created post,
    // including the unique `id` the post was assigned on creation
    console.log(response.id);
}).catch(function(err) {
    console.log(err);
})

That seems obvious, but did you check that username / password are correct and registered on your WP install?
If you need more help on this, open your own issue please.

Before sending @anesumuz away, just wanted to point out again you need to use the Basic-Auth wordpress plugin to make this work.
See this quote from above:

And well, I used the WP Basic Auth handler and enabled it: https://github.com/WP-API/Basic-Auth
It's not available in the plugin repo so you need to download it here from Github.

@motleydev I did that, I can publish simple posts from my RN app to my distant WP install, I just can't upload media this way. Something's breaking up.

There are many authorization solutions located within this thread
https://github.com/WP-API/Basic-Auth/issues/35

So, its an issue with apache headers / CGI / etc preventing the Basic Auth headers from getting passed along to the wordpress / wordpress plugin. If you visit the issues thread on WP-API, the htaccess solutions aren't really working for everyone. Here's what I did to get it working:

Installed this alternate basic auth plugin:
https://github.com/eventespresso/Basic-Auth

go to (nodemodules folder)/wpapi/lib/http-transport.js and add this to the top of the invokeAndPromisfy function:

if(request.header.Authorization) {
  	request = request.query({'_authorization': request.header.Authorization })
  };

it is a hacky fix, but basically, its passing the auth information as a request variable instead of as a header. its working for me for now, so maybe thats helpful for anyone that is wanting to hack around on this without  messing with apache too much or before people that know alot more about it can figure out the basic auth situation. A lot of people seem to be having this problem :-/

@datesss Your method not sounds good, but really save my life, thanks!

@kadamwhite is this dead?

@braco  unfortunately, pretty much. I do not have bandwidth to maintain it right now, and we never completed an earlier attempt at migrating to typescript. If anybody else wants to maintain it, as long as the API stays similar, I would be happy to give commit and review an upcoming release.


Refactor Code.py

Deleted expense_record.json
Commit#

Fixed issue while saving/loading user_data
Commit# 475482d3d6cf47b60a492e46d46db663b98e52a0

I tested this out - The edit functionality is still not working. Please look into this next.

Created a new issue for edit fix and assigned it to @zedunaid
Issue Link: https://github.com/sak007/MyDollarBot/issues/3

/delete is not working. Code stops running when we execute /delete from the telegram UI.
Stack trace from Python:
Athithya@DESKTOP-DM1OEHR MINGW64 ~/Desktop/Classes/CSC510 SE/ProjectPhase2/MyDollarBot/code (backlogs)
$ python code.py
2021-10-19 21:47:35,224 (init.py:638 MainThread) INFO - TeleBot: "Started polling."
ERROR:root:getUserHistory() missing 1 required positional argument: 'chat_id'
Traceback (most recent call last):
File "C:\Users\Athithya\Desktop\Classes\CSC510 SE\ProjectPhase2\MyDollarBot\code\code.py", line 93, in main
bot.polling(none_stop=True)
File "C:\Users\Athithya\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot_init_.py", line 633, in polling
self._threaded_polling(non_stop, interval, timeout, long_polling_timeout, allowed_updates)
File "C:\Users\Athithya\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot_init.py", line 692, in _threaded_polling
raise e
File "C:\Users\Athithya\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot_init.py", line 655, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\Athithya\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\util.py", line 130, in raise_exceptions
raise self.exception_info
File "C:\Users\Athithya\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\util.py", line 82, in run
task(*args, **kwargs)
File "C:\Users\Athithya\Desktop\Classes\CSC510 SE\ProjectPhase2\MyDollarBot\code\code.py", line 79, in command_delete
delete.run(message, bot)
File "C:\Users\Athithya\Desktop\Classes\CSC510 SE\ProjectPhase2\MyDollarBot\code\delete.py", line 9, in run
user_list = helper.getUserHistory()
TypeError: getUserHistory() missing 1 required positional argument: 'chat_id'
2021-10-19 21:47:35.662534 name:Sri Athithya Kruth chat_id:1574038305
message: Food
2021-10-19 21:47:35.662534 name:Ashok chat_id:1222391743
message: Food
2021-10-19 21:47:39.670296 name:Sri Athithya Kruth chat_id:1574038305
message: hi
2021-10-19 21:47:42.250890 name:Sri Athithya Kruth chat_id:1574038305
message: /display
2021-10-19 21:47:51.893959 name:Sri Athithya Kruth chat_id:1574038305
message: /delete
Connection Timeout

We refactored the main file into multiple sub files and covered test cases for each functionality.
Good to close the issue.


Fix "make check" to work on debian/ubuntu

I also did some changes to allow compile with clang 3.6/3.7 and it does build but fail to "make check", gcc continues to build everything properly.

I committed the make check fix, but the rest of the changes are not quite right. I'll go through clang's errors tomorrow and figure out the proper fixes.


Code quality

This pull request adds linting with ruff and pre-commit hooks with pre-commit. It's part the first step to close #42 ; next up will be to set up github actions.

the pre-commit setup is close to the default; I added check-toml.
the setup for ruff is in pyproject.toml, which I already added to the main branch in order to work on testing infrastructure. The pyproject.toml file is largely based on our python project template, with some customisation.
add section on developer documentation
update requirements/translate.py for development dependencies.

So, this will cause some pain in the short run as files that are changed in commits will have several errors that require fixing. We can always loosen the constraints later.
But if you want, Dakota, you can check out the branch, make small changes in a file, try to commit and see what happens. You can revert any changes back to what is on the remote branch with git rebase --hard origin/code-quality. If you think there are things we don't want to be checked for at the moment, please raise them here/adapt.

waiting for merging #78


Outdir treated different for tsc and atom-typescript

When using the following project structure
src
└── index.ts
tsconfig.json

with tsconfig.json:
{
    "compilerOptions": {
        "outDir": "target"
     }
}

then tsc -p tsconfig.json produces:
target
└── index.js

but atom-typescript produces on save:
target
└── src
    └── index.js

tsc -v
Version 2.1.4
atom-typescript: 10.1.14 (uses tsc v2.1.4 accodring to package.json)
I want to get rid of the target/src dir and just have my index.js file in target/. The tsc compiler does this for me, but atom-typescript does not.

I have this issue too ,

Should be fixed with the newest version. Please open a new issue if it persists.

I have the same issue with Atom 1.18.9, atom-typescript 11.0.6 and tsc 2.4.1


Removed deprecated 'kotlin-android-extensions' plugin.

- Description for the changelog

Removed the kotlin-android-extensions plugin and updated the PostDetailsActivity to use mViewBinding.toolbar instead of toolbar from kotlinx.android.synthetic.main.activity_post_details

@2307vivek Thanks for this PR! Feel free to contribute again.


Bootstrap examples 5.1.3

Hi, I am in the process of learning react etc.  I downloaded your examples source code, extracted them and ran npm install followed by npm run.  However, they do not run a temporary server and the examples do not load.
Attached is the output.   Why doesnt it load a server and display the landing page?  Do I misunderstand how the examples would be shown?
outputerror.txt

I also tried npm start and npm test.  No joy.

Exemples are static HTML files, there's nothing to install. Just open it in your browser.

@temabu use the following link - https://react-bootstrap.github.io/getting-started/introduction

James thanks. I figured out what I want to do. download the examples sources code, then run VIsualCode.  Open the Bootstrap examples root folder, from the VC menu, run " Terminal->run tasks->npm"
You will then get a list of npm options (these I think are included in the package.json file?).  Select the task which states "npm: docs-serve"
This will compile and then run a temporary hugo localhost server (on port 9001) and display the content.
Thats was what I really wanted.


Add solution hint to error message

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable-int
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2244661

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2244656

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2244655

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2244651

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2244650

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2244665

bot merge


Don't use jQuery for registering pjax event in injectedcode.js

I got the following error in console, which seemed to break the pjax detection:
injectedcode.js:1 Uncaught TypeError: $ is not a function
(anonymous function) @ injectedcode.js:1

Using jQuery isn't even necessary there as regular document.addEventListener works the same.
Fixes #100
/cc @dpoeschl

Thank you!  I'll publish a new version tonight!

@dpoeschl ping

Tested locally. LGTM.


find_mm access of memory outside of allocated space is fixed

Do you accept pull requests? I use this library in my home project. It has bug with memory access (it is not appear during tests, but appears when memory allocated from heap). Comparison of pointers is not correct, if pointer points outsides of allocated memory and this memory is protected, the program fails with memory access violation (tested on Windows). Also program can receive memory from heap in the end of the memory address space, and comparison of addresses never get true result. Integer arithmetics does not have the problems.

I'm closing it since #33 fixed it, thanks @VladlenPopolitov


Make package compatible with PHP 7.3+

This simply replaces the HtmlDomParser package with a fork which has been made compatible with PHP 7.3+. The existing package returns the following error on PHP 7.3+:
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1378

@ammadeuss can you please merge this? Then I can work with this package :)


Gradle 8 Support

Hi,
Could you add gradle 8 support? Build halted with  Namespace not specified error.
Thanks

@pluzmedia Please try v1.0.1. Thanks.


Twiddle name of EA LTFF

I noticed that searching "EA" on the charity page doesn't bring this up, which is kind of ridiculous, so I fixed up the name.

 If you change the name, it will disassociate all previous transactions, which is bad. This issue would have to be fixed first.

Yeah, that sucks...I don't really want to deal with this right now so I will just write an issue and leave it be.


Fix code example - integration-with-aws-lambda.mdx

There was typo (duplicate bracket in the code example) for https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-aws-lambda#example

Thanks @tobias-hubql !


Bug with setting options

Describe the bug
When you trying to set ui or host settings it fails.
To Reproduce
Steps to reproduce the behavior:

Go to Settings
Click on something
See the bug

Expected behavior
Expected set the setting

Fixed


Get-IntuneManagedDevice don't always retrieve activationLockBypassCode

Seems like when running Get-IntuneManagedDevice towards multiple devices the output for activationLockBypassCode is always $null.
$Devices = Get-IntuneManagedDevice -Filter "contains(operatingsystem, 'iOS')" -select serialNumber, userDisplayName, activationLockBypassCode, managedDeviceOwnerType | Get-MSGraphAllPages
$Devices  | select -first 3

serialNumber userDisplayName activationLockBypassCode managedDeviceOwnerType
------------ --------------- ------------------------ ----------------------
############ Name SurName                             company
############ Some User                                company
############ Other User                               company

However, when specifying a deviceID this works great.
Get-IntuneManagedDevice -managedDeviceId $devices[1].ID -select activationLockBypassCode

@odata.context                                                                                activationLockBypassCode
--------------                                                                                ------------------------
https://graph.microsoft.com/v1.0/$metadata#deviceManagement/managedDevices(activationLockBypassCode)/$entity XXXXX-XXXXX-XXXX-XXXX-XXXX-XXXX

Not sure if this is as intended, but it seems like a bug to me. My guess is that GraphAPI by default don't retrieve activationLockBypassCode, but even when using -select it will return a $null value.
It can be worked around by first fetching all devices and then loop them through, but this add a lot of time for what should be a simple query.
I'm sure that this can be done by purely using GraphAPI, but I'm still a graph rookie and am much more comfortable using PowerShell.
Command: Get-IntuneManagedDevice
Module: Microsoft.Graph.Intune
Version: 6.1907.1.0

Same problem here ... in June 2024.
Wasted hours to figure out, that I can only retreive the activationLockBypassCode by passing the deviceID and not by filter.
What's going on here!?