Cannot read properties of undefined (reading 'split')

Environment
Related to Cloudflare pages
Inside devcontainer:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

Outside devcontainer:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 23.04
Release:	23.04
Codename:	lunar

Node:
$ node --version
v18.17.0
$ npm --version
9.8.1

from packages.json
  "devDependencies": {
    "@nuxt/devtools": "latest",
    "@types/node": "^18.17.3",
    "nuxt": "^3.6.5"
  },
  "dependencies": {
    "@auth/core": "^0.10.0",
    "h3": "1.8.0-rc.3",
    "@hebilicious/authjs-nuxt": "^0.3.0-beta.2",
    "nitropack": "npm:nitropack-edge@latest"
  },
  "overrides": {
    "h3": "1.8.0-rc.3",
    "nitropack": "npm:nitropack-edge@latest"
  }

Reproduction
Can be reproduced from here using devcontainer or not:
https://github.com/bisand/blog-test
Build step:
$ npm run build

> build
> nuxt build

Nuxi 3.6.5                                                                                6:13:08 AM
Nuxt 3.6.5 with Nitro 2.5.2                                                                                6:13:08 AM
ℹ Adding @auth/nuxt module... { verifyClientOnEveryRequest: true,                                                                                @auth/nuxt 6:13:09 AM
  guestRedirectTo: '/',
  authenticatedRedirectTo: '/',
  baseUrl: '' }
✔ Added @auth/nuxt module successfully.                                                                                @auth/nuxt 6:13:09 AM
ℹ Building client...                                                                                6:13:10 AM
ℹ vite v4.3.9 building for production...                                                                                6:13:10 AM
transforming (85) node_modules/pathe/dist/index.mjs
[6:13:11 AM]  WARN  [plugin:vite:resolve] Module "node:crypto" has been externalized for browser compatibility, imported by<EMAIL_ADDRESS>See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

ℹ ✓ 256 modules transformed.                                                                                6:13:12 AM
ℹ .nuxt/dist/client/manifest.json                                2.78 kB │ gzip:  0.48 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/error-500.c5df6088.css                 1.95 kB │ gzip:  0.74 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/error-404.7fc72018.css                 3.63 kB │ gzip:  1.12 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/entry.3c4ebcd6.css                    12.13 kB │ gzip:  2.49 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/__vite-browser-external.b25bb000.js    0.03 kB │ gzip:  0.05 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/guest-only.36354345.js                 0.37 kB │ gzip:  0.24 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/auth.9340b1e7.js                       0.37 kB │ gzip:  0.24 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/test.3851b75e.js                       0.60 kB │ gzip:  0.39 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/error-500.3e5fbd94.js                  1.88 kB │ gzip:  0.99 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/error-404.72b181b9.js                  6.53 kB │ gzip:  2.91 kB                                                                             6:13:13 AM
ℹ .nuxt/dist/client/_nuxt/entry.7dda54fb.js                    239.74 kB │ gzip: 71.31 kB                                                                             6:13:13 AM
ℹ ✓ built in 2.79s                                                                                6:13:13 AM
✔ Client built in 2805ms                                                                                6:13:13 AM
ℹ Building server...                                                                                6:13:13 AM
ℹ vite v4.3.9 building SSR bundle for production...                                                                                6:13:13 AM
ℹ ✓ 78 modules transformed.                                                                                6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles.8755339a.mjs             0.08 kB                                                                                6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/error-500-styles.cf4b3e80.mjs         0.15 kB                                                                                6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/error-404-styles.1e0dde27.mjs         0.15 kB                                                                                6:13:14 AM
ℹ .nuxt/dist/server/styles.mjs                                  0.46 kB                                                                                6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/auth-514615fe.js                      1.04 kB │ map:   0.87 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/guest-only-bd112471.js                1.04 kB │ map:   0.87 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/island-renderer-5a5e4c49.js           1.19 kB │ map:   1.40 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/test-49970a4b.js                      1.49 kB │ map:   0.84 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/error-500-styles-1.mjs-8fa81fcc.js    2.17 kB │ map:   0.12 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/error-500-7e82afc2.js                 3.16 kB │ map:   3.78 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/error-404-styles-1.mjs-e0837f4f.js    3.86 kB │ map:   0.12 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/error-404-aded3150.js                 9.81 kB │ map:  18.91 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/_nuxt/entry-styles-1.mjs-8b8449e7.js       12.38 kB │ map:   0.11 kB                                                                              6:13:14 AM
ℹ .nuxt/dist/server/server.mjs                                129.40 kB │ map: 186.85 kB                                                                              6:13:14 AM
ℹ ✓ built in 1.22s                                                                                6:13:14 AM
✔ Server built in 1230ms                                                                                6:13:14 AM
✔ Generated public .output/public                                                                                nitro 6:13:14 AM
ℹ Building Nitro Server (preset: cloudflare)                                                                                nitro 6:13:14 AM
<EMAIL_ADDRESS>(1:30) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
<EMAIL_ADDRESS>(1:38) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
<EMAIL_ADDRESS>(7:30) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
<EMAIL_ADDRESS>(7:38) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
✔ Nitro server built                                                                                nitro 6:13:29 AM
  └─ .output/server/index.mjs (1.08 MB) (306 kB gzip)
Σ Total size: 1.08 MB (306 kB gzip)
✔ You can preview this build using npx wrangler dev .output/server/index.mjs --site .output/public --local                                                      nitro 6:13:29 AM
✔ You can deploy this build using npx wrangler publish                                                                                nitro 6:13:29 AM

Run Cloudflare pages locally:
$ npx wrangler dev .output/server/index.mjs --site .output/public --local

 ⛅ wrangler 3.5.0
------------------
wrangler dev now uses local mode by default, powered by 🔥 Miniflare and 👷 workerd.
To run an edge preview session for your Worker, use wrangler dev --remote
▲ [WARNING] --local is no longer required and will be removed in a future version.

  `wrangler dev` now uses the local Cloudflare Workers runtime by default. 🎉

Your worker has access to the following bindings:
- KV Namespaces:
  - images_test: aaf56cc016f042ab91636d59b4875776
  - bisand_blog_test: 3e094d827b1f436d9cd16cdd3f860f24
⎔ Starting local server...
service core:user:bisand-blog-test: Uncaught TypeError: Cannot read properties of undefined (reading 'split')
  at core:user:bisand-blog-test:4513:38
  at core:user:bisand-blog-test:24327:4
  at core:user:bisand-blog-test:24328:3
✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit                                                                                │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Describe the bug
This issue is related to Cloudflare pages using nuxt 3.6.5 and @hebilicious/authjs-nuxt 0.3.0-beta.2. The error occurs both on local (wrangler) and on Cloudflare.
Not sure if this is a bug in your component or any of the dependencues, but the error occurred after installing and running v0.3.0-beta.2
This code section seems to be the culprit. Withouth further investigation, it seems to be a part of an auto generated javascript by Wrangler, located in the /tmp/ folder. In this particular case: /tmp/tmp-3050-TxBjBovMveML/index.js
...
1320  |   const L = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof global ? global : {};
1321  |   L.process = L.process || x;
1322  |   const R = L.process;
...
4576  |   const [Cs, Es] = R.versions.node.split(".").map((e2) => parseInt(e2, 10));
          //                            ^ undefined
...

I would be
Additional context
Link to generated javascript file:
/tmp/tmp-3050-TxBjBovMveML/index.js
Logs
No response

Could you try downgrading auth.js to 0.9.0 ?

I have done some testing. Only downgrading auth.js to 0.9.0 does not make any difference. However, when I downgrade @hebilicious/authjs-nuxt to 0.1.10 it seems to be working OK. Pages can be served via Wrangler without problems.
The issue seems to be introduced in 0.2.0-beta.0, because when I upgrade to this version and all the versions later, I encounter the same problem described in this issue.
Hope this can lead you in the right direction. I can do some more research later, but this is what I have come up with so far.
PS! Thanks for the great job of creating this plugin!

@bisand I think your issue is that you're using npm and overrides doesn't work as intended :/
If you delete your lockfile and use pnpm with
  "dependencies": {
    "@auth/core": "^0.10.0",
    "@hebilicious/authjs-nuxt": "^0.3.0-beta.2",
    "h3": "1.8.0-rc.3",
    "nitropack": "npm:nitropack-edge@latest"
  },
  "resolutions": {
    "h3": "1.8.0-rc.3",
    "nitropack": "npm:nitropack-edge@latest"
  }

it will work

That did the trick!
Thanks!


JFXListView: Mouse events not registered

Mouse events won't register on a JFXListView if the click was on an item on the list. The rippler action must be blocking listeners in some way. The only mouse events registered are on an empty part of the list view.

Hello, this issue is related to #215 which is already fixed. can you retest again using the latest JFoenix jar?
if the issue still persist, please provide a sample code demonstrating the issue.
Regards,

So I am not the only one with the problem. I have a listview and added a Popup that should be shown on Mouse Click. It shows when running my App from my IDE but isn't showing when running the App from an executable.

Hello, Can you retest using the latest version of JFoenix? as we were not able to reproduce the issue.
if the issue still persist please provide a sample code for demonstration.
Regards,

I am using version 1.0.0 (Maven dependency). It's the only version available from Maven.

That's the one I'm using too.

well it's not the latest version of JFoenix, it will get updated by the end of this month.
you can download the latest version of JFoenix from  here

Is there any actual versioning for JFoenix? I love the project; the features are amazing! But it is hard to download the new version manually every time, especially when I'm already using maven for my dependencies. It's also hard to tell when there is a new release, because there are no tags being used in Github. Thanks telling me that the maven hasn't been updated yet!


Develop

Add new feature of class 'implement'.

Coverage increased (+0.4%) to 32.245% when pulling 936d0031241f924061e25d472eb19f6693091807 on develop into e0a1b276caaaf7d8dfe78d4d31e45add51af80cf on master.


GoogleLegacyAuth Error: com.google.android.gms.common.api.ApiException: 10:

When i try to Sign in with goole i get this error 'GoogleLegacyAuth Error: com.google.android.gms.common.api.ApiException: 10'
and token return null and the sheet closed
2024-07-31 10:59:57.166  3888-5333  BufferQueueProducer     surfaceflinger                       E  healthcare_system.androidApp/com.google.android.gms.auth.api.signin.internal.SignInHubActivity$_23500#0 disconnect: not connected (req=1)
i double check SHA1 key it's the correct one and i checked the ID client also correct
i've been stuck on this error for like 3 days now i need help

i did that

https://www.youtube.com/watch?v=mLfqCyO8-Bc followed this tuto step by step he is using KMPAuth lib

used this one

maybe your google-services.json file is the old one if you use firebase, and after enabling google auth from firebase download google-services.json file and try again

i don't use firebase

check with other devices/emulator see if still happens.

still same error and i didn't add google-services.json i added client id directly

i also get this
GoogleAuthUiProvider error: During begin sign in, failure response from one tap: 10: [28444] Developer console is not set up correctly.

@Creat0r69
Attaching related solutions:
https://support.google.com/googleplay/android-developer/thread/233538051/one-tap-sign-in-not-working-on-production?hl=en
https://stackoverflow.com/questions/76823978/error-10-developer-console-is-not-set-up-correctly-not-using-firebase-one-t
Closing this issue as it not related library, but more about some configuration issue.


version 2.8 is not available in the registry

Version 2.8 appears to not be published:
$ docker pull mvance/testssl:2.8
Error response from daemon: manifest for mvance/testssl:2.8 not found
$ docker pull mvance/testssl:2.6
2.6: Pulling from mvance/testssl
Digest: sha256:6e5f135fba541269f4244d467f9678b48dce17baa091d713d899229e5bd81d40
Status: Image is up to date for mvance/testssl:2.6

You're correct. The build on Docker Hub failed. The error appears to be because the checksum for v2.8rc3.tar.gz didn't match. This should be updated to the none RC version. Also, I need to make a new build for the recently released 2.9.5-1 version.
curl -sSL https://github.com/drwetter/testssl.sh/archive/v2.8rc3.tar.gz -o testssl.tar.gz
sha1sum -c -
echo fd33400c580855136644b3300efc79ad53b80d3f *testssl.tar.gz
sha1sum: WARNING: 1 computed checksum did NOT match
testssl.tar.gz: FAILED

I just hit the same so I guess this project is abandoned.

My apologies. This is semi abandoned. I had hoped to resume some
maintenance once I had a bit more free time. I have been without Internet
access at home for a couple of weeks until yesterday so I couldn't even
push a build to the repo to resolve the earlier reported issue.
Short term workaround is to build the Dockerfile locally. That's probably
best anyway as I've been having trouble with the auto builds on Docker Hub
not finishing correctly.
On Tue, Sep 19, 2017, 12:43 PM David Green<EMAIL_ADDRESS>wrote:

Version 2.8 appears to not be published:
$ docker pull mvance/testssl:2.8
Error response from daemon: manifest for mvance/testssl:2.8 not found
$ docker pull mvance/testssl:2.6
2.6: Pulling from mvance/testssl
Digest: sha256:6e5f135fba541269f4244d467f9678b48dce17baa091d713d899229e5bd81d40
Status: Image is up to date for mvance/testssl:2.6
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MatthewVance/testssl-docker/issues/5, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ACjDuiEj135bxSesmXvqlRBaFjXS2hsgks5sj_03gaJpZM4PcxCL
.

No problem @MatthewVance!
It looks like there's now an "official" testssl.sh Dockerfile available from here: https://github.com/drwetter/testssl.sh
We've been using this successfully now for a few months, apologies for not updating you here.


Multiple choice questions are showing the CP extending beyond the resolution in the feed

See the picture below, in the feed multiple choice questions that resolve are showing a CP history beyond the resolution date, when it should stop at the resolution date.

Ready for testing on dev

LGTM on prod


Self-contained Label Studio notebook

A revised Label Studio notebook that's self-contained (i.e., does not rely on an existing running Label Studio instance).

This change is


[Bug]: Target page, context or browser has been closed

Playwright version
1.17.2
Operating system
Linux
What browsers are you seeing the problem on?
Chromium
Other information
No response
What happened? / Describe the bug
Target page, context or browser has been closed
I have a method, which will NewPageAsync, and then GotoAsync. After obtaining the data, it will temppage This error occurs after CloseAsync() is repeated hundreds of times.
Code snippet to reproduce your bug
public async Task<List<string?>> FindVideoSrc(string url)
        {

            List<string?> src = new List<string?>();
            var temppage = await context.NewPageAsync();
            try
            {

                await temppage.GotoAsync(url);
                var video = await temppage.QuerySelectorAllAsync("video");
                if (video == null && video.Count > 0)
                {

                }
                else
                {
                    foreach (var item in video)
                    {

                        string? s = "";
                        try
                        {
                            s = await item.GetAttributeAsync("src");
                        }
                        catch (Exception)
                        {

                        }
                        if (string.IsNullOrEmpty(s))
                        {
                            var source = await temppage.QuerySelectorAsync("source");
                            s = await source.GetAttributeAsync("src");
                        }

                        src.Add(s);
                    }

                }

            }
            catch (Exception ex)
            {
                Console.WriteLine("FindVideoSrc:" + ex.Message + "\r\n" + ex.StackTrace);
                try
                {
                    await browser.CloseAsync();
                }
                catch (Exception)
                {

                }

                return null;
            }
            try
            {
                await temppage.CloseAsync();
            }
            catch (Exception)
            {

            }

            return src;
        }

### Relevant log output

_No response_

I tried to run your code, see the attached program but was not able to reproduce.
using System.Threading.Tasks;
using Microsoft.Playwright;
using System;

class Program
{
    public static async Task Main()
    {
        await FindVideoSrc("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
    }

    public static async Task<List<string>> FindVideoSrc(string url)
        {
            using var playwright = await Playwright.CreateAsync();
            await using var browser = await playwright.Chromium.LaunchAsync(new() { Headless = false });
            var context = await browser.NewContextAsync();
            List<string> src = new List<string>();
            var temppage = await context.NewPageAsync();
            try
            {

                await temppage.GotoAsync(url);
                var video = await temppage.QuerySelectorAllAsync("video");
                if (video == null && video.Count > 0)
                {

                }
                else
                {
                    foreach (var item in video)
                    {

                        string s = "";
                        try
                        {
                            s = await item.GetAttributeAsync("src");
                        }
                        catch (Exception)
                        {

                        }
                        if (string.IsNullOrEmpty(s))
                        {
                            var source = await temppage.QuerySelectorAsync("source");
                            s = await source.GetAttributeAsync("src");
                        }

                        src.Add(s);
                    }

                }

            }
            catch (Exception ex)
            {
                Console.WriteLine("FindVideoSrc:" + ex.Message + "\r\n" + ex.StackTrace);
                try
                {
                    await browser.CloseAsync();
                }
                catch (Exception)
                {

                }

                return null;
            }
            try
            {
                await temppage.CloseAsync();
            }
            catch (Exception)
            {

            }

            return src;
        }

}

Whats your operating system / version?

Closing since it seems stale. Please create a new issue if you still encounter issues.


Added L2 simple monitoring

To fix the vulnerability, we need to update go to go1.22.5

Nope, it was fixed in go1.21.11 or go1.22.4 both released 2024-06-04. But in the vulnerability task we build with go1.21.10. We can update to 1.21.11 or 1.22.4.


Fixes issue where clustered readside processors don't start and configuration defaults incorrectly

Codecov Report

Merging #20 into master will not change coverage.
The diff coverage is 0%.

@@         Coverage Diff          @@
##           master   #20   +/-   ##
====================================
  Coverage       0%    0%
====================================
  Files          31    31
  Lines         743   749    +6
  Branches       31    29    -2
====================================
- Misses        743   749    +6

Impacted Files
Coverage Δ

...la/akka/contrib/d3/utils/LocalSingletonProxy.scala
0% <0%> (ø)
:arrow_up:

...scala/akka/contrib/d3/readside/ReadSideActor.scala
0% <0%> (ø)
:arrow_up:

...core/src/main/scala/akka/contrib/d3/ReadSide.scala
0% <0%> (ø)
:arrow_up:

.../contrib/d3/readside/ClusterReadSideProvider.scala
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Roll back crypto-browserify to 1.0.9

Issue #, if available:
After upgrading to 3.0.0, we found it causes errors in Angular 6 and react native
Description of changes:
Rollback to the previous version. Will try to replace crypto-browserify with sjcl
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #857 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #857   +/-   ##
======================================
  Coverage    87.3%   87.3%
======================================
  Files          77      77
  Lines        3670    3670
  Branches      696     696
======================================
  Hits         3204    3204
  Misses        443     443
  Partials       23      23

Continue to review full report at Codecov.

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


Main JavaScript file doesn't load in Compose Multiplatform project

Originally posted on StackOverflow, I was requested to file an issue here.
I'm trying to follow the Compose Multiplatform Web Getting Started guide. Most of it seems to work fine, but when I try to actually run the thing (gradle jsBrowserRun), it starts a browser, but it can't find the generated JavaScript file. The browser console shows a 404 for GET http://localhost:8080/kotlin-multi-web.js.
The file kotlin-multi-web.js is indeed the name of a file generated in web/build/compileSync/main/developmentExecutable/kotlin.
The page title matches the one I defined in my index.html, so that gets loaded correctly.
I have tried a pure Compose Web project (which isn't a Gradle multi module project), and there it does all load correctly. I checked, and didn't see any differences between the Gradle build files other than the extra dependency from the web project on common.
I have uploaded my project to github.com/jorn86/fox-kotlin-multi, if anyone wants to reproduce this.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Cannot activate the 'Pylance' extension because it depends on the 'Python' extension, which is not loaded. Would you like to reload the window to load the extension?

Python and pylance have been installed. It was able to run a few days ago, but suddenly it can’t be run today

Looks like you might have a bad update. Do the following to remove stale versions of the extension:

Uninstall Python extension (if you have pylance uninstall it first).
Close all instances of VS Code.
Go to, %USERPROFILE%/.vscode/extensions (on windows) or ~/.vscode/extensions on Linux/Mac.
Delete any folder with the name starting with ms-python.python*
Start VS Code, and install Python extension (also pylance if you uninstalled it in step 1).

Please provide the extension version when you file the bug.


chars.containerum.io no longer available

When I was trying to install it:
$ helm repo add containerum https://charts.containerum.io
Error: Looks like "https://charts.containerum.io" is not a valid chart repository or cannot be reached: error converting YAML to JSON: yaml: line 102: mapping values are not allowed in this context

Then, I tried to open the url in chrome, and I got a 404 and yellow hot air balloon!
What's happening? Is this project already dead?

Hi,
The repo is temporarily unavailable, sorry for that. But the project is by no means dead, it is currently under redesign and development.


CAMEL-13617: Improve testability of google-sheets component

also incorporate latest component enhancements to Camel 3.x

Merged, I just changed the codestyle a bit, you can check this through the maven profile sourcecheck

Thanks!


Correction to uri canonicalization info [Work Item 487269]

Documentation updated needed regarding Uri canonicalization with FTP scheme [Work Item 487269]
Uri canonicalization with FTP scheme [Work Item 487269]
The topic was describing scheme-specific compacting behavior as if it were a function of escaped (versus unescaped) characters. But in fact this compacting behavior is independent of whether or not the characters are escaped.
Summary
The changes involve changing the Remarks section to correct the info, and changing the code example and what it ouputs. Http and ftp behave the same way, and the code example now shows that.
Fixes #3036
Details
See Work Item 487269
Suggested Reviewers
If you know who should review this, use '@' to request a review.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Thanks, Maira! I just want to confirm where’s the best place for me to fix those two issues. Should I clock the staging link > Edit > then submit another PR? Or will any further changes roll into the current PR?
We’re good to merge, no further review necessary. 😊
Thank you!
From: Maira Wenzel<EMAIL_ADDRESS>Sent: Thursday, August 31, 2017 11:43 PM
To: dotnet/docs<EMAIL_ADDRESS>Cc: Steven White<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dotnet/docs] Correction to uri canonicalization info [Work Item 487269] (#3036)
@mairaw commented on this pull request.
Thanks @stevewhimshttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstevewhims&data=02|01|Steven.White%40microsoft.com|30cc53ff28474346704a08d4f104a969|72f988bf86f141af91ab2d7cd011db47|1|0|636398449708769275&sdata=tuOG8VBoa%2Fh0bXol8boAr4bGm4sccjEUZkzUYjYmNvo%3D&reserved=0. LGTM. Left some nit comments if you'd like to address them.
You can see the topic on staging at https://review.docs.microsoft.com/en-us/dotnet/api/system.uri?view=netframework-4.7&branch=pr-en-us-3036https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.docs.microsoft.com%2Fen-us%2Fdotnet%2Fapi%2Fsystem.uri%3Fview%3Dnetframework-4.7%26branch%3Dpr-en-us-3036&data=02|01|Steven.White%40microsoft.com|30cc53ff28474346704a08d4f104a969|72f988bf86f141af91ab2d7cd011db47|1|0|636398449708769275&sdata=%2BQ7TZovR1oS79XcQxvTQA7mwRF3GQwTnBSkT%2FKxX%2F4M%3D&reserved=0.
Do you need to request review from any SME or are we good to merge?

In xml/System/Uri.xmlhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fdocs%2Fpull%2F3036%23discussion_r136508066&data=02|01|Steven.White%40microsoft.com|30cc53ff28474346704a08d4f104a969|72f988bf86f141af91ab2d7cd011db47|1|0|636398449708769275&sdata=1YnRJolcCDAJWVg1z51v1Bljm6tnR7dHuuw9xqVIEGQ%3D&reserved=0:

@@ -52,52 +52,42 @@

If the host name is an IPv6 address, the canonical IPv6 address is used. ScopeId and other optional IPv6 data are removed.

--   Removes default and empty port numbers.

--   Canonicalizes the path for hierarchical URIs by compacting sequences such as /./, /../, //, including escaped representations. Note that there are some schemes for which escaped representations are not compacted.
+-   Removes default and empty port numbers.

+-   Escaped characters (also known as percent-encoded octets) that do not have a reserved purpose are decoded (also known as being unescaped). These unreserved characters include uppercase and lowercase letters (%41-%5A and %61-%7A), decimal digits (%30-%39), hyphen (%2D), period (%2E), underscore (%5F), and tilde (%7E).
nit: do not have -> don't have

In xml/System/Uri.xmlhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fdocs%2Fpull%2F3036%23discussion_r136508362&data=02|01|Steven.White%40microsoft.com|30cc53ff28474346704a08d4f104a969|72f988bf86f141af91ab2d7cd011db47|1|0|636398449708769275&sdata=VM5or3aGPrhjs6VW4s1y5GVqh7oeC720oa56tgJzL3k%3D&reserved=0:

For hierarchical URIs, if the host is not terminated with a forward slash (/), one is added.

--   By default, any reserved characters in the URI are escaped in accordance with RFC 2396. This behavior changes if International Resource Identifiers or International Domain Name parsing is enabled in which case reserved characters in the URI are escaped in accordance with RFC 3986 and RFC 3987.

As part of canonicalization in the constructor for some schemes, escaped representations are compacted. The schemes for which URI will compact escaped sequences include the following: file, http, https, net.pipe, and net.tcp. For all other schemes, escaped sequences are not compacted. For example: if you percent encode the two dots ".." as "%2E%2E" then the URI constructor will compact this sequence for some schemes. For example, the following code sample shows a URI constructor for the http scheme.

+-   By default, any reserved characters in the URI are escaped in accordance with RFC 2396. This behavior changes if International Resource Identifiers or International Domain Name parsing is enabled in which case reserved characters in the URI are escaped in accordance with RFC 3986 and RFC 3987.

As part of canonicalization in the constructor for some schemes, dot-segments and empty segments (/./, /../, and //) are compacted (in other words, they are removed). The schemes for which URI will compact these sequences include http, https, tcp, net.pipe, and net.tcp. For some other schemes, these sequences are not compacted. Here's how this compacting looks in practice.

nit: these empty lines before and after the samples seem unnecessary

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fdocs%2Fpull%2F3036%23pullrequestreview-60056419&data=02%7C01%7CSteven.White%40microsoft.com%7C30cc53ff28474346704a08d4f104a969%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636398449708769275&sdata=KT1sRtg2vQECSPOFYwjSdJODJK%2BpaTlvhrIr9K7iyNI%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAd0CB-OFEpYDSfpXtukC_-5l_eGJGssOks5sd6dogaJpZM4PJY6K&data=02%7C01%7CSteven.White%40microsoft.com%7C30cc53ff28474346704a08d4f104a969%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636398449708769275&sdata=hHSW49rDf90UDK1ComwwqGtmbV6EUvT4Gx5qz5FdnGo%3D&reserved=0>.

Any further commits will roll into the same PR @stevewhims. No need to open a new one.

Ok, great, I’ve made the 2nd commit and I’m ready for you to merge my branch into master please.
From: Maira Wenzel<EMAIL_ADDRESS>Sent: Friday, September 1, 2017 10:14 AM
To: dotnet/docs<EMAIL_ADDRESS>Cc: Steven White<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dotnet/docs] Correction to uri canonicalization info [Work Item 487269] (#3036)
Any further commits will roll into the same PR @stevewhimshttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstevewhims&data=02|01|Steven.White%40microsoft.com|92922cc65bbe4d26268708d4f15cdf06|72f988bf86f141af91ab2d7cd011db47|1|0|636398828565327155&sdata=0iymy0s%2BDExo3IIiWtySfk%2BMjoiV33iKP24Ag%2FypSGs%3D&reserved=0. No need to open a new one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fdocs%2Fpull%2F3036%23issuecomment-326635655&data=02|01|Steven.White%40microsoft.com|92922cc65bbe4d26268708d4f15cdf06|72f988bf86f141af91ab2d7cd011db47|1|0|636398828565327155&sdata=s1A8qgxzWPPo21AT64dhjaLjtQOtWK7OqMW9nKaW3ys%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAd0CB-UkFnem9SVRYNShGrmwp-utTY7Cks5seDtIgaJpZM4PJY6K&data=02|01|Steven.White%40microsoft.com|92922cc65bbe4d26268708d4f15cdf06|72f988bf86f141af91ab2d7cd011db47|1|0|636398828565327155&sdata=nwXO0nw4Mpb2zdsfewKWY1sjzA5PPnwYgrDx88nD83s%3D&reserved=0.

We'll push it live on a PR later today @stevewhims.


Change next.js app dir sample project to be entirely using "app" dir

Is this just related to the example in the docs or is there no current support for the app dir? I tried to adopt zenstack and have seen issues with resolving of the generated output. I made a small repro here: https://github.com/PhilGarb/my-blog-app. This is just following the guide and replacing the pages directory with the app directory.
When visiting the single available page: Error: Model meta cannot be loaded. Please make sure "zenstack generate" has been run. is thrown. I have run the generation like described in the guide.
Let me know if this is the wrong place and I will create another issue.

Is this just related to the example in the docs or is there no current support for the app dir? I tried to adopt zenstack and have seen issues with resolving of the generated output. I made a small repro here: https://github.com/PhilGarb/my-blog-app. This is just following the guide and replacing the pages directory with the app directory.
When visiting the single available page: Error: Model meta cannot be loaded. Please make sure "zenstack generate" has been run. is thrown. I have run the generation like described in the guide.
Let me know if this is the wrong place and I will create another issue.

Hi @PhilGarb , app dir is supported, it's just the sample project hasn't migrated the page UI components yet. Here's the code: https://github.com/zenstackhq/docs-tutorial-nextjs-app-dir
Please note that you need to exclude @zenstackhq/runtime package from nextjs's server component bundler. Please take a look at next.config.msj file.

Thank you so much! The hint with the next.config property worked for me.

Thank you so much! The hint with the next.config property worked for me.

Cool. I submitted a PR a while ago to next.js to make it built-in but hasn't been accepted ...


Possible to sort directorys by date + underlay files?

This addon is very nice. Thank You !
One thing i thin is  missing: the option to enable sort by date. Even just for folder creation date and plus sort by file creation in folders.
Is this even possible in lua? I'm using linux.

It is possible to do using mpv's utils.file_info function. This is the sort of thing to implement as an addon.
Here is an example of an addon that will always attempt to sort the directory based on when a file was last modified:
local msg = require 'mp.msg'
local utils = require 'mp.utils'
local fb = require 'file-browser'

local parser = {
    priority = 105,
    version = '1.0.0'
}

-- stores a table of the parsers loaded by file-browser
-- we will use this to check if a parser is for a local file system
local parsers

function parser:setup()
    parsers = fb.get_parsers()
end

-- do not bother to run on uri paths
function parser:can_parse(directory)
    return not fb.get_protocol(directory)
end

function parser:parse(directory)
    local list, opts = self:defer(directory)
    if not list then return list, opts end

    -- Only run this on parsers that are for the local filesystem.
    -- We assume that custom addons for the local filesystem are setting the keybind_name field to 'file'
    -- for compatability.
    if parsers[opts.id] then
        if parsers[opts.id].keybind_name ~= 'file' and parsers[opts.id].name ~= 'file' then
            return list, opts
        end
    end

    directory = opts.directory or directory
    local cache = {}

    -- gets the file info of an item
    -- uses memoisation to speed things up
    function get_file_info(item)
        if cache[item] then return cache[item] end

        local path = fb.get_full_path(item, directory)
        local file_info = utils.file_info(path)
        if not file_info then
            msg.warn('failed to read file info for', path)
            return {}
        end

        cache[item] = file_info
        return file_info
    end

    -- sorts the items based on the latest modification time
    -- if mtime is undefined due to a file read failure then use 0
    table.sort(list, function (a, b)
        return (get_file_info(a).mtime or 0) > (get_file_info(b).mtime or 0)
    end)

    opts.sorted = true
    return list, opts
end

return parser

This will slow directory reads down of course, but it probably won't be all that noticeable on local filesystems. It will definitely be noticeable when recursively opening directories since this IO operation isn't asynchronous meaning the whole browser will freeze during the operation.
I'm not sure you'd always want to do this sorting, but it would be trivial to modify the script to toggle the sorting with a keybind.

Here is a modified version that switches between sorting by modification date and alphabetical order when pressing ^. You could potentially add more sorting modes to this cycle as well.
local msg = require 'mp.msg'
local utils = require 'mp.utils'
local fb = require 'file-browser'

local parser = {
    priority = 105,
    version = '1.2.0'
}

-- stores a table of the parsers loaded by file-browser
-- we will use this to check if a parser is for a local file system
local parsers

local do_sorting = false

function parser:setup()
    parsers = fb.get_parsers()
end

-- do not bother to run on uri paths
function parser:can_parse(directory)
    return do_sorting and not fb.get_protocol(directory)
end

function parser:parse(directory)
    local list, opts = self:defer(directory)
    if not list then return list, opts end

    -- Only run this on parsers that are for the local filesystem.
    -- We assume that custom addons for the local filesystem are setting the keybind_name field to 'file'
    -- for compatability.
    if parsers[opts.id] then
        if parsers[opts.id].keybind_name ~= 'file' and parsers[opts.id].name ~= 'file' then
            return list, opts
        end
    end

    directory = opts.directory or directory
    local cache = {}

    -- gets the file info of an item
    -- uses memoisation to speed things up
    function get_file_info(item)
        if cache[item] then return cache[item] end

        local path = fb.get_full_path(item, directory)
        local file_info = utils.file_info(path)
        if not file_info then
            msg.warn('failed to read file info for', path)
            return {}
        end

        cache[item] = file_info
        return file_info
    end

    -- sorts the items based on the latest modification time
    -- if mtime is undefined due to a file read failure then use 0
    table.sort(list, function (a, b)
        return (get_file_info(a).mtime or 0) > (get_file_info(b).mtime or 0)
    end)

    opts.sorted = true
    return list, opts
end

-- adds the keybind to toggle sorting
parser.keybinds = {
    {
        key = '^',
        name = 'toggle-sort',
        command = function()
            do_sorting = not do_sorting
            fb.rescan()
        end
    }
}

return parser

Added more sorting methods for switching. Still don't know how to sort directories and files separately.
local msg = require 'mp.msg'
local utils = require 'mp.utils'
local fb = require 'file-browser'

local parser = {
    priority = 105,
    version = '1.2.0'
}

-- stores a table of the parsers loaded by file-browser
-- we will use this to check if a parser is for a local file system
local parsers

local sort_mode = 0

function parser:setup()
    parsers = fb.get_parsers()
end

function parser:parse(directory)
    if fb.get_protocol(directory) then return end
    local list, opts = self:defer(directory)
    if not list then return list, opts end

    -- Only run this on parsers that are for the local filesystem.
    -- We assume that custom addons for the local filesystem are setting the keybind_name field to 'file'
    -- for compatability.
    if parsers[opts.id] then
        if parsers[opts.id].keybind_name ~= 'file' and parsers[opts.id].name ~= 'file' then
            return list, opts
        end
    end

    directory = opts.directory or directory
    local cache = {}

    -- gets the file info of an item
    -- uses memoisation to speed things up
    function get_file_info(item)
        if cache[item] then return cache[item] end

        local path = fb.get_full_path(item, directory)
        local file_info = utils.file_info(path)
        if not file_info then
            msg.warn('failed to read file info for', path)
            return {}
        end

        cache[item] = file_info
        return file_info
    end

    -- sorts the items based on the latest modification time
    -- if mtime is undefined due to a file read failure then use 0
    table.sort(list, function(a, b)
        if sort_mode == 1 then
            return (get_file_info(a).mtime or 0) < (get_file_info(b).mtime or 0)
        elseif sort_mode == 2 then
            return (get_file_info(a).mtime or 0) > (get_file_info(b).mtime or 0)
        elseif sort_mode == 3 then
            return (get_file_info(a).size or 0) < (get_file_info(b).size or 0)
        elseif sort_mode == 4 then
            return (get_file_info(a).size or 0) > (get_file_info(b).size or 0)
        end
    end)

    if sort_mode == 0 then opts.sorted = false
    else opts.sorted = true end
    return list, opts
end

-- adds the keybind to toggle sorting
parser.keybinds = {
    {
        key = '^',
        name = 'toggle_sort',
        command = function()
            sort_mode = sort_mode + 1
            if sort_mode > 4 then sort_mode = 0 end
            fb.rescan()
        end
    }
}

return parser

Added more sorting methods for switching. Still don't know how to sort directories and files separately.

You should really add:
if sort_mode == 0 then return end

at the very top of the parse function so that performance isn't degraded when using the default sorting.
As for sorting files and directories separately you need to add:
-- `dir` will compare as less than `file`
if a.type ~= b.type then return a.type < b.type end

in whichever modes you want to sort them separately. (I have not actually had a chance to test this so it's possible I'm wrong).

Added more sorting methods for switching. Still don't know how to sort directories and files separately.

You should really add:
if sort_mode == 0 then return end

at the very top of the function so that performance isn't degraded when using the default sorting.parse
As for sorting files and directories separately you need to add:
-- `dir` will compare as less than `file`
if a.type ~= b.type then return a.type < b.type end

in whichever modes you want to sort them separately. (I have not actually had a chance to test this so it's possible I'm wrong).

Thanks. It is perfect.

I created sorting.lua and put your code in the file into the script-modules\file-browser-addons folder.
But still, nothing happens.
It looks like I miss something.

I created sorting.lua and put your code in the file into the script-modules\file-browser-addons folder. But still, nothing happens.
It looks like I miss something.

Please open a separate discussion thread and upload the log file generated by mpv --log-file=log.txt --msg-level=file_browser='debug'.


[feat] Import all certified devices from the zWave Alliance

Is your feature request related to a problem? Please describe.
The zWave Alliance has an xml file on every certified device, which includes the device id, firmware versions, configuration parameters, etc. The plan would be to import all of those provided device xmls into the project to ensure the largest number of potential working devices, amending existing device files where necessary and adding new ones. There are 3,466 device xmls available as of 1/10/2021, though there is duplication among devices due to firmware revisions so there are in practice fewer "devices" as most users would consider them. This covers all frequency spectrums/countries.
Note: I've already downloaded all xmls over a period of time so as to not abuse their server. Let's please not all go pull down all 3,466 xmls from the zwave alliance as I don't want them to decide the database isn't worth their server being pounded.
Here is an example file: https://products.z-wavealliance.org/Products/4024/XML
For curiosity sake, here is the year-by-year breakdown of devices included, by certification date:
2014: 71
2015: 234
2016: 425
2017: 513
2018: 398
2019: 486
2020: 280
2021: 10
These xmls also include inclusion/exclusion instructions, reset directions, etc. This information can be used to auto-generate some of the supported devices documentation: https://github.com/zwave-js/zwavejs2mqtt/issues/148
Describe the solution you'd like
Amend the current import configuration routines to process these xmls and to generate/amend project device files.

These xmls also include inclusion/exclusion instructions, reset directions, etc.

I'm open to adding that (which we can always do later though). Question is how much use the inclusion instructions are, as we can only show them after the device was included.

These xmls also include inclusion/exclusion instructions, reset directions, etc.

I'm open to adding that (which we can always do later though). Question is how much use the inclusion instructions are, as we can only show them after the device was included.

I'm open to adding that (which we can always do later though). Question is how much use the inclusion instructions are, as we can only show them after the device was included.

They'd be in the documentation, so if the user knows what device they have they could look.

I'm open to adding that (which we can always do later though). Question is how much use the inclusion instructions are, as we can only show them after the device was included.

They'd be in the documentation, so if the user knows what device they have they could look.

Having the wakeup/exclusion/etc metadata would be useful for the Home Assistant integration as well

Having the wakeup/exclusion/etc metadata would be useful for the Home Assistant integration as well

@blhoward2 anything left to do here?


Sync locale with child processes on Windows

Related to #34.
A typical nightmare due to Windows locale.
Tuw can show garbled strings if a child process does not use the default locale.
I should find a way to get locale for child processes or provide an option to set it by users.
I think there is nothing to do for unix-like systems because they use utf-8 basically.

Supporting all locales would be hard to test, so I decided to support utf-8 only.
I'll add an option codepage.
{
    "label": "UTF-8 output",
    "command": "a command that outputs utf-8 strings",
    "codepage": "utf-8",
    "components": []
 }

When utf-8 or utf8, tuw converts utf-8 strings to wstrings on Windows.
When default, tuw redirects output strings as it is.
Non-Windows platforms ignore the option.

Fixed with #43.


Question：sample-period

Hello：
I‘m confused about the sample_period, I set sample_period=1 for the dish washer but get bad results, the predict result can hardly match the actual data.May I ask about the sample_period for dish washer and microwave and how  you choose the value of them.Thanks a lot!

Hi @Merelynn, sorry for the extremely late reply. Typically the sampling period depends on the dataset. REDD samples data every 1sec and UKDALE every 6sec. This is the same sample_period that I usually use. Regarding the bad results, this can depend on the train data you might use, the number of epochs or other parameters.


Drag and drop quits working after callback using asp.net UpdatePanel

I have a user control with a sortable list of divs.
The user control is in an UpdatePanel.
If a control inside the usercontrol triggers an async postback, I lose the ability to drag and drop.
Anyone come across anything similiar?

https://github.com/RubaXa/Sortable/blob/master/CONTRIBUTING.md#issue


Add New Book to Competitive Programming #238

Is this issue still opens if yes then please assign it to me


Autoscale sink for openshift

Hello @jimmidyson @smarterclayton
Is an autoscale sink similar to this
https://github.com/kubernetes/heapster/blob/master/sinks/gcmautoscaling/driver.go
on roadmap for openshift ?
Regards,
Shilpa

Yes - it would be through the hawkular sync.

@mwringe

As far as I can tell, the gcmautoscaling sink is just a scaled down version of the gcm sink. Its only meant to gather the specific metrics autoscaling needs (cpu and memory) instead of all the metrics.
The Hawkular sink is already storing all the metrics coming in from Heapster, so it has access to the same cpu and memory metrics.
Is there a link to a card for autoscaling in OpenShift you can post?

#481 talks about providing access to data stored in different storage backends via a common API. I would like to integrate hawkular support for auto-scaling through this mechanism.

I would like to integrate hawkular support for auto-scaling through this mechanism.

Awesome :)

@smarterclayton : Is there some documentation explaining how openshift will use hawkular to implement auto-scaling. Is this the right place --https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/autoscaling.md

Yes, the OpenShift team members are trying to work with the autoscaling
team.  It's still in progress so unfortunately we don't have a single
document yet.
On Fri, Aug 28, 2015 at 4:26 AM, shilpapadgaonkar<EMAIL_ADDRESS>wrote:

@smarterclayton https://github.com/smarterclayton : Is there some
documentation explaining how openshift will use hawkular to implement
auto-scaling. Is this the right place --
https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/autoscaling.md
—
Reply to this email directly or view it on GitHub
https://github.com/kubernetes/heapster/issues/502#issuecomment-135661078
.

--
Clayton Coleman | Lead Engineer, OpenShift

This is obsolete. Cluster autoscaler for Kubernetes is implemented and it no longer needs signals from Heapster.
cc @mwielgus


fix: remove unused volumeMounts

This commit removes the unused superuser secret and app secret volumes, simplifying the pod definition. These volumes were never referenced in the code, and their removal prevents unnecessary instance restarts when enabling or disabling superuser access and when promoting a replica cluster.
Release notes
Fix:

Removed unused superuser secret and app secret volumes from Pods to prevent unnecessary instance restarts when enabling/disabling superuser access or promoting a replica cluster.

/test d=push

/test tl=4 d=push

@mnencia I also removed the volume, seems to me they are not been used too.

@mnencia I also removed the volume, seems to me they are not been used too.

You are 100% correct.

/test tl=4

Given that we managed to avoid the rollout on the upgrade, I've added back the backport request.

After discussion with @mnencia on that function just there to avoid another restart,
agreed that we can have a //TODO annotation in that function, mentioning 1.25 release.


ble_client example crash on disconnect with adafruit huzzah esp32

I am testing with an adafruit huzzah esp32, currently running the ble_client.ino example.  The only changes I made to the example were changing the serviceUUID to match an advertized service on the BLE peripheral I am testing, changing the scan time to 30 seconds, and commenting out the pRemoteCharacteristic->writeValue line since the characteristic isn't found.  Line 74 should disconnect from the server since the characteristic is not found.  Each time this disconnect occurs, the ESP32 crashes and reboots.  I have attached the serial monitor prinout below.  I found this is true for both the Arduino library version of the code and the newest master on the git repo.  I also commented out BLEDevice::getScan()->start(0); in line 156 to make sure the issue wasn't with restarting the scan.  Has anyone else experienced this?  Are there settings for the ESP32 that I am missing?
Thank you.
BLE Advertised Device found: Name: , Address: c0:28:8d:83:90:f5, manufacturer data: c0288d8390f5, serviceUUID: 72daa6c3-29c2-6283-0c4a-2818e4d37e75
BLE Advertised Device found: Name: ACGAM R1          , Address: ff:ff:97:01:6f:c7, serviceUUID: 00001812-0000-1000-8000-00805f9b34fb
Forming a connection to ff:ff:97:01:6f:c7

Created client
Connected to server
Found our service
Failed to find our characteristic UUID: beb5483e-36e1-4688-b7f5-ea07361b26a8
Guru Meditation Error: Core  1 panic'ed (IllegalInstruction). Exception was unhandled.

Failed to find our characteristic UUID: beb5483e-36e1-4688-b7f5-ea07361b26a8
Check characteristic UUID, or see this:
https://github.com/nkolban/esp32-snippets/issues/399#issuecomment-493703302

Thank you, @chegewara .  You're right - the issue was with the characteristic retrieval.  The timing of when it was crashing looked like it was later in the program than an issue with the characteristic.  I still have crashes when retrieving characteristics, but I was able to run the program far enough to find the characteristic UUID that I wanted, and adding that valid UUID prevents the crash.


Dx 2225

Added StarkEx Transfer to Sample Game
https://github.com/immutable/sample-unreal-game/assets/4755020/97378fc5-8d8d-4d1e-a125-660536ba0034

Can you push the endlessrun/API/ImmutableApi files as well? They're missing at the moment.

Can you push the endlessrun/API/ImmutableApi files as well? They're missing at the moment.

they are not required anymore. All the logic in moved into to the Blueprint nodes

I've tried on my main account and a brand new and both failed at the burning tokens stage.

Hey @nattb8 I had merge conflicts after your PR is merged into main for following 2 assets

MainMenu.asset
Gameoverscreen.uasset

I compared manually and added your only change as below for both assets, please confirm it is correct and is the only change made?

 I've tried on my main account and a brand new and both failed at the burning tokens stage.

ok, interesting. Let's try and huddle tomorrow to see what is the issue.

Can you try and package the game properly, too, to make sure it works? Not just playing it from the editor.
You should be able to do it by going to Project Launcher -> Click Advanced -> Change the Data Build to By the book -> Launch to WIndows/Mac. (UE4 it's in the Build Options menu, UE5.2 is in Platforms menu)

Yup, tested on both Windows and Mac. Works fine.

Failing for me as well

@dom-murray @nattb8 This PR should be good to merge now, I fixed up all the above mentioned issues. Please let me know if anymore issues.


Should we have a mechanism to highlight if a diagram is logical or physical?

With #106 we have decided to make interfaces optional on a relationship for now. If it was mandatory that would remove the ability to use CALM as a logical tool and mean that it is only a physical modelling tool.
We may need to consider whether we have a convention to mark what type of diagram this is
@rocketstack-matt, @yt-ms
Originally posted by @jpgough-ms in https://github.com/finos-labs/architecture-as-code/issues/48#issuecomment-2034364844

I don't think we need this with some of the new features.


adding background agg disabled field to member views

This adds the field background_aggregation_is_disabled to member examples
@Houwarnick

:shipit:


CSS Modules: Nested CSS Classes

Feature request
When importing CSS Modules, nested classes are not supported.
.foo {
    color: blue;

    .bar {
        color: red;
    }
}

import styles from "styles.module.css";

console.log(styles.bar);

Current Console Output:
> undefined

What is the expected behavior?
> src-styles-module-css__bar

Or something similar.
What is motivation or use case for adding/changing the behavior?
CSS Nesting has been available in all major browsers since December 2023. This ticket is to track the implementation to bring Webpack up to spec.
How should this be implemented in your opinion?
Nested CSS classes should be treated the same way as top-level classes.
Are you willing to work on this yourself?
Unfortunately, I don't have the capacity to right now :(

We already support it, just use import * as styles from "./styles.module.css";, by default we use named export, but we you can set it to false if you want to use default export

Ah! My apologies. Looks like the project is using postcss. Just tried with css-loader + style-loader (also probably would've been a better place for this issue to begin with), and it looks like it's working just fine!


Main screen : email input - accepts input without

A User can type in an incorrcet email address and still login, no error is displayed.

I think it's fixed, please test @steveEECSrubin

Tested, works fine, closing...


feat(authentication): all passport-shraga user details need to be saved in db

Save user details as received by profile in passport-shraga.

Closed by #69


Moving the window after opening a dialog will make the window weird

found in 1.12.2781.0 Bug Bash on 10/5/2021
REPRO:
1. Open the Terminal
2. Edit the json so it's invalid (delete a comma in the settings)
3. Move the window, so the warning dialog dismisses itself.
4. Edit the settings again. Leave it invalid. Add a newline
5. Notice, no dialog (ooooooooooh)
6. Now try to close the window, that won't work
This certainly regressed when I added support for dismissing that dialog when the window moved.

I think its because it get dismissed as a popup, not as a ContentDialog and the problem is upstream. What do you think?


Attach console text formatting

Bug description
The formatting of text in the attach console is broken
screen
Technical details:

Portainer version: 2.0.0
Docker version (managed by Portainer): 19.03.13
Platform (windows/linux): linux
Browser: Chrome

Additional context
I have few containers with game servers and I use attach to run commands on them.

Hi @Valdri ,
if you access that container directly using docker command, are the formatting of text in that container still broken?

Hi @ametdoohan ,
When I'm using docker attach directly through ssh everything is fine.
portainer attach vs ssh attach screenshot

Did you try using incognito or another browser to access that?

Its the same thing in Chrome incognito 85.0.4183.121 and Firefox 81.0

what's your image for that container? cause I cannot reproduce that using another image.

I'm using itzg/minecraft-server:latest
I notice that it happens when I have only interactive console selected without TTY.

oh i see, if you using attach it will run without interactive and tty and You might not be able to use the console properly.


main is broken

https://github.com/projectcontour/contour-operator/runs/2059896873?check_suite_focus=true

Scheduled CI runs are now consistently passing. For example:
https://github.com/projectcontour/contour-operator/actions/runs/634571122
https://github.com/projectcontour/contour-operator/actions/runs/634450047
https://github.com/projectcontour/contour-operator/actions/runs/634355813


Added support for circuit breaker max_requests

Added support for circuit breaker max_requests.
Using the same default value as Envoy (https://www.envoyproxy.io/docs/envoy/v1.5.0/api-v1/cluster_manager/cluster_circuit_breakers#per-priority-settings)
Added unit tests

Documentation to follow?

We'll obviously need some end-to-end tests for circuit breakers, but this looks fine as far as it goes.


chore: stop escaping strings in snapshots

🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Description
This makes the snapshots easier to read (and will be the default in Jest 29)

Type of change
N/A
Screenshots/Sandbox (if appropriate/relevant):
N/A
How Has This Been Tested?
N/A
Test Environment:
N/A
Checklist:

[x] I have followed the CONTRIBUTING doc and the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
N/A

Hi @SimenB!
Thank you for your contribution! ⚡


Homebridge stopped

Hi! When I installed the plugin into Homebridge, and do the settings like:
{
"name": "P1",
"serialport": "/dev/ttyUSB0",
"dsmr22": true,
"platform": "P1"
}
and I restart Homebridge, it wont start the service again. When I delete above rules then it will start again. Is there anything to repair this?
Im using a raspberry 3+ and running the homebridge in docker

this is the error I can see in the log:
[1/2/2020, 9:47:36 PM] [eDomoticz] Could not register platform accessory! (Gasverbruik)
Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 8530a57a-c836-4073-b779-f85eb864e7c2

Could you please capture a full debug logfile (see https://github.com/ebaauw/homebridge-hue#debug-log-file) and attach that?

{
"bridge": {
"name": "Homebridge 8C2B",
"username": "0E:C9:54:3B:8C:2B",
"port": 52710,
"pin": "031-45-154"
},
"accessories": [],
"mqtt": {
"host": "<IP_ADDRESS>",
"port": 1883,
"topic": "domoticz/out"
},
"platforms": [
{
"name": "eDomoticz",
"server"<EMAIL_ADDRESS>"port": 9999,
"roomid": 4,
"mqtt": true,
"ssl": false,
"debuglog": false,
"dimFix": 0,
"platform": "eDomoticz"
},
{
"name": "P1",
"serialport": "/dev/ttyUSB0",
"platform": "P1"
}
]
}

and also the log file errors:
[1/2/2020, 10:13:22 PM] Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 8530a57a-c836-4073-b779-f85eb864e7c2
at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:268:13)
at Server._configCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:396:18)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:93:8)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)

This is not helpful, please attach the full debug log file.  I need to see the errors in context.
I don’t think the errors are issued by homebridge-p1.  Did you try to run homebridge with only homebridge-p1 enabled?  Are you exposing your electricity and gas meters from eDomoticz as well?  “Energieverbruik” and “Gasverbruik” are not names used by homebridge-p1.

I've got it running now. I saw a few errors when installing your plugin. I repaired it by doing the following command: npm install --build-from-resource
after that it loaded successfully!
One thing left is that it won't recognize my USB port. it says "[P1] error: Error: No such file or directory, cannot open /dev/ttyUSB0
Im sure its the right port because Domoticz already runs this port with the P1 smart meter cable. Any suggestions?

Two:

Is the user running homebridge member of the dialout group?
Only one programme can access the serial port concurrently.  Do you see the same error when Domoticz is not running?  To overcome this, I'm setting up a web socket server in homebridge-p1, to relay the telegrams to other clients, see #5.__

Oh, you're running homebridge from inside a docker container.  Are you sure the serial port device has been made available to the container.  I'm sorry, but I have no clue how to do that.  While docker is great in the data centre, I think it's not worth the trouble in a home automation setup, where you need access to physical ports and local-link multicast network addresses (for Bonjour and UPnP).

Maybe you are right! I will try to uninstall the homebridge and install everything back without installing in a container. I tried already everything with rights and adding to dialup group but it wont work. I will let you know here if I get it working!

The did manage to get deCONZ running in a container, it needs access to the USB ZigBee stick.  Maybe that could give you some inspiration?  https://hub.docker.com/r/marthoc/deconz


doc: CLA instructions are out of date

https://golang.org/doc/contribute.html#cla suggests to navigate to Settings -> Agreements in gerrit. There is no menu entry called "Agreements" for me on https://go-review.googlesource.com/settings.

We could link directly to https://go-review.googlesource.com/settings/agreements, that page will inform you that you'll need to switch to the old UI if you are using polygerrit.


fatal error: yubikey.h: No such file or directory  #include <yubikey.h>

Can't compile under Fedora. When it gets to /lib/ folder it throws this fatal error:
compiling yubikeyutil.cpp
yubikeyutil.cpp:30:10: fatal error: yubikey.h: No such file or directory
 #include <yubikey.h>
          ^~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:250: yubikeyutil.o] Error 1

Indeed, there is no such header file in libs folder. There is only yubikeyutil.h
Tried to compile using g++.
Steps I took: cloned this repo - ran qmake-qt4 && make as instructed by readme.

for anyone encountering this in the future, you need to install headers
dnf install libyubikey-devel
and it works afterwards.


Opening a dirty custom editor to the side that cannot open more than once is weird

Testing #122030
I have a Luna paint image opened and dirty and select "Open to side" from the explorer. I get this dialog:

I would not expect getting asked to save for this action. And from the image it looks like the operation already took place?

Actually it looks like I can drag and drop the editor to the side just fine without getting asked, so I would expect the same here.

Adding important as this actually results in data loss as the new editor opened is based on what's on disk and doesn't include your dirty changes so it's unclear what save does in that case.

PR: https://github.com/microsoft/vscode/pull/136602

👏


[vue-tsc] ignore index.html

hey there,
we are using vue-tsc to run some type checking on .vue files... however, its also checking *.html files including Google tags and so on ...
Anyway to disable that?
We are also getting issues w/ imported .md files.
Great work though, much appreciated.

You can use the exclude option in your tsconfig.json i think.
https://www.typescriptlang.org/tsconfig#exclude


Add kernel support for AArch64 specific GGUF files, i.e.  Q4_0__

Hello,
llama.cpp recently added support for an AArch64 specific type of GGUF and AArch64 specific matmul kernels. Here is the merged PR https://github.com/ggerganov/llama.cpp/pull/5780#pullrequestreview-21657544660
Namely Q4_0_8_8, Q4_0_4_8 and more generic Q4_0_4_4 GGUF model formats.

@smpurkis thanks for the reference. Taking a look, this is on the radar.

@EricLBuehler I looked through the code and saw Candle is used for quantized tensors, so I've started looking/work on adding the datatype to Candle. https://github.com/huggingface/candle/issues/2605
Could do with some guidance if that is the right place to add it?


COND # not working

CLASS zcl_itab_aggregation DEFINITION
  PUBLIC
  FINAL
  CREATE PUBLIC .

  PUBLIC SECTION.
    TYPES group TYPE c LENGTH 1.
    TYPES: BEGIN OF initial_numbers_type,
             group  TYPE group,
             number TYPE i,
           END OF initial_numbers_type,
           initial_numbers TYPE STANDARD TABLE OF initial_numbers_type WITH EMPTY KEY.

    TYPES: BEGIN OF aggregated_data_type,
             group   TYPE group,
             count   TYPE i,
             sum     TYPE i,
             min     TYPE i,
             max     TYPE i,
             average TYPE f,
           END OF aggregated_data_type,
           aggregated_data TYPE STANDARD TABLE OF aggregated_data_type WITH EMPTY KEY.

    METHODS perform_aggregation
      IMPORTING
        initial_numbers        TYPE initial_numbers
      RETURNING
        VALUE(aggregated_data) TYPE aggregated_data.
  PROTECTED SECTION.
  PRIVATE SECTION.

ENDCLASS.

CLASS zcl_itab_aggregation IMPLEMENTATION.
  METHOD perform_aggregation.
    loop at initial_numbers assigning field-symbol(<fs_ini_numbers>).
      if line_exists( aggregated_data[ group = <fs_ini_numbers>-group ] ).
        aggregated_data[ group = <fs_ini_numbers>-group ]-count = aggregated_data[ group = <fs_ini_numbers>-group ]-count + 1.
        aggregated_data[ group = <fs_ini_numbers>-group ]-sum = aggregated_data[ group =
            <fs_ini_numbers>-group ]-sum + <fs_ini_numbers>-number.
        aggregated_data[ group = <fs_ini_numbers>-group ]-min = COND #(
          when <fs_ini_numbers>-number < aggregated_data[ group = <fs_ini_numbers>-group ]-min
          then <fs_ini_numbers>-number
          else aggregated_data[ group = <fs_ini_numbers>-group ]-min
          ).
        aggregated_data[ group = <fs_ini_numbers>-group ]-max = COND #(
          when <fs_ini_numbers>-number > aggregated_data[ group = <fs_ini_numbers>-group ]-max
          then <fs_ini_numbers>-number
          else aggregated_data[ group = <fs_ini_numbers>-group ]-max
          ).
      else.
        insert value #(
          group = <fs_ini_numbers>-group
          count = 1
          sum = <fs_ini_numbers>-number
          min = <fs_ini_numbers>-number
          max = <fs_ini_numbers>-number
        ) into table aggregated_data.
      endif.
    endloop.
    loop at aggregated_data assigning field-symbol(<fs_agg_data>).
      <fs_agg_data>-average = <fs_agg_data>-sum / <fs_agg_data>-count.
    endloop.
  ENDMETHOD.

ENDCLASS.

does not work. Replacing the "#" with the explicit "i" type solves the error, although the above should be valid code. Sorry, I don't have a system at hand that supports the new syntax and be 100% sure about that.
Originally posted by @AndreaBorgia-Abo in https://github.com/exercism/abap/issues/191#issuecomment-1255233162

@larshp done (not sure we get notifications for reactions)

solution confirmed correct,

https://github.com/abaplint/abaplint/pull/2703/commits/949484491ad31fe4ac67f96448596efa56094a21

@AndreaBorgia-Abo try again,

Confirmed working in the web editor, closing issue, thanks.


Added a new Example com_xpert_testimonials

Example added com_xpert_testimonials built using joomla-gulp. joomla-gulp is awesome!
xpert-testimonials

Thanks @shamsbd71 !


looking for browser script tag example

Hi -
I got the install files from here and put them in a directory along with an index.html that contains basically just this line: <script type="module" src="magick.js"></script>.
In the console I get the error message and stack trace below.  This makes me think it's almost working but not quite.  Is this script tag mode supportable?


Move to Elixir 1.14 and otp 25

Problem Statement
I want to purpose to move the current code base to latest elixir and Erlang/otp version.
Solution Brainstorm
No response

Or make it Elixir 1.15 and OTP 26 😅

why not

You could upgrade your app today. I upgraded the CI pipeline regardless.


Services are ordered weirdly in the Home app

Is your feature request related to a problem? Please describe:
As a user while I am using the Home app the order of the services always puts a contact sensor or motion sensor on top of the button that actually turns it on or off when they’re all grouped together.
Describe the solution you'd like:
It would be nice if the switch to turn the mower on was on top rather than always having to open the group to turn it on/off.
Describe alternatives you've considered:
Right now it just leaves everything at random so each user likely has a slightly different experience.
Additional context:
ebaauw mentioned on discord that using the service label index will let the dev manually control ordering the services.

After investigating, this will likely be a breaking change to anyone with existing mowers already registered and will need intervention to remove them so they can be reattached.

The characteristics in question are:

ConfiguredName
ServiceLabelIndex

For reference, it was kinda annoying me but I also ran across the following post on Reddit:
https://www.reddit.com/r/HomeKit/comments/vo66y6/when_you_have_multiple_accessories_grouped_into_a/
Basically asking the exact same thing as I have been.

There's nothing I can actually do to keep this corrected, even if I do this the minute they change how they're displaying Apple will take over control and do what they want anyway overriding what I've done.


Set no-teardown only on error

Looks good to me, but someone who uses this should approve.    :-)

LGTM!


can't delegate - Wont show the slider for the liquid bar

Wont show the slider for the liquid bar

Aware of this. Should be fixed when we include profiles in the feed directly. Will include in milestone.

Seems to happen with specific users. Likely legacy accounts. Will review asap.

looks like it was indeed a legacy way of handling delegations
Will verify in production since it has older data than in my node.


 I want to see how many people are viewing the image across sites. I know I can't filter out bots and spiders, but it's the best I got right now.
I delete everything in the log, and start over from the new update, so I can see how many went back and read based on the new stuff, and how many requests are being done per update.
The problem I'm having is that GoAccess keeps internal records of those logs, and adds the new log information to the report. How do I stop it from doing that?

Hi @BobaPearl
GoAccess use memory for storage of records.
I think do you need restart [i.e. stop and start] for clear previous info.

Also, are you using --persist and --restore. If you are, then please don't use them as they would keep restoring from disk whatever data was last parsed.

Any update on this? Thanks

I can't start and stop my server, as I'm using shared hosting to host my website, or at least the commands have been changed. I ended up purchasing a different access.log visualization program, which has less features, but was able to do what I wanted through some heavy use of filtering.


Php 7.3+ Error

In php version 7.3+ there are errors :

Notice: compact(): Undefined variable: min_envArgs in \mrclay\minify\lib\Minify\App.php on line 72
Notice: compact(): Undefined variable: min_factories in \mrclay\minify\lib\Minify\App.php on line 72

To fix this issue I added this variables in config file but I don't know if is a good fix:
$min_factories = [];
$min_envArgs = null;

Added the variables to the config file did not fix the issue for me :/

should be fixed with https://github.com/mrclay/minify/pull/646


Github workstream

If I remember correctly, I signed up for the GitHub workstream in OSF. Would you mind giving me some admin access to the repo? I would like to add notifications from this repo to our LinuxBoot Slack channel.
Also, are you on Slack? All LinuxBoot developers are on https://u-root.slack.com. You can sign up here: http://slack.u-root.com/

Shall all the LinuxBoot/u-root core contributors get access?

I think that might be a bit much, especially since there are 15 other workstreams. If we're just going to link to LinuxBoot from here (for now), not everybody needs access.

ping @rajeevsharma1 ?

@hugelgupf can you check? I have given you the write permission.


Library no longer normalizes its input

Hi! Thanks for making this library.
I noticed a change in behavior between 1.x and 2.x that tripped me up. It seems that percent-round no longer normalizes its input:
Before (1.0.3)
> percentRound([1,2,33333])
[ 0, 0, 100 ]

After (2.1.1)
> percentRound([1,2,33333])
[ -11078, -11077, 22255 ]

I guess its expected that you always input percentages now, instead of numbers that will be automatically normalized? However, I think the normalization was convenient. Also, assuming this function expects input that sums to 100... that can actually be hard in JavaScript when there are floating-point-precision blips. It'd be nice if this library was guaranteed to handle the normalization for you.

Ok,
I will fix this as soon as possible

Ok,
I will fix this as soon as possible

fixed in 2.2.0

fixed in 2.2.0


[BUG] SELECT.one.from(Model) does not return T | null

Is there an existing issue for this?

[X] I have searched the existing issues

Nature of Your Project
TypeScript
Current Behavior
Returns the type given in from
Expected Behavior
T | null
Steps To Reproduce
entity Foo {
  bar: LargeString;
}

Environment
| @cap-js/asyncapi       | 1.0.2
| @cap-js/cds-typer      | 0.30.0
| @cap-js/cds-types      | 0.8.0
| @cap-js/db-service     | 1.16.0
| @cap-js/openapi        | 1.0.7
| @cap-js/sqlite         | 1.7.7
| @sap/cds               | 8.5.0
| @sap/cds-compiler      | 5.5.0
| @sap/cds-dk            | 8.5.0
| @sap/cds-dk (global)   | 8.5.0
| @sap/cds-fiori         | 1.2.8
| @sap/cds-foss          | 5.0.1
| @sap/cds-hana          | 2.0.0
| @sap/cds-mtxs          | 2.4.0
| @sap/eslint-plugin-cds | 3.1.2
| Node.js                | v20.16.0
| home                   | node_modules/@sap/cds

Repository Containing a Minimal Reproducible Example
No response
Anything else?
import {Foo} from '#cds-models/Service'

const foo = await SELECT.one.from(Foo) // <- Foo instead of Foo | null

On a first glance seems ok.

Message ID: @.***>


App randomly restart after opening camera

Bug
Randomly only in one cellphone (Motorola g7) of my client, the app restarts after i try to launch camera, sometimes it works, sometimes it just restarts and today for the first time i got an error screen.

It says Network error for somereason, but it is happenning while we try to capture photos from the camera.
Environment info
Library version: "^1.1.0"
React native info output:
React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
      Memory: 1.38 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 11.12.0 - /usr/local/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.10.3 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
      Android SDK:
        API Levels: 28
        Build Tools: 28.0.3, 29.0.2
        System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64
    IDEs:
      Android Studio: 3.4 AI-183.6<IP_ADDRESS>92245
      Xcode: 10.3/10G8 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.9 => 0.59.9
    npmGlobalPackages:
      react-native-cli: 2.0.

Steps To Reproduce
handleChoosePhoto = type => {
    const options = {
      title: "Selecione uma Foto",
      chooseFromLibraryButtonTitle: "Escolha de galeria",
      takePhotoButtonTitle: "Tire uma foto",
      noData: true
    };
    ImagePicker.showImagePicker(options, response => {
      if (response.uri) {
        uri =
          Platform.OS === "android"
            ? response.uri
            : response.uri.replace("file://", "");
        this.setState({ [type]: uri });
      }
    });
  };

when this function is evoked trying to open camera it happens when the user taked tge photo, and when he is going to click on the check to save the photo, app restarts/
It should just open the camera normally
Reproducible sample code
class Files extends Component {
  state = {
    file: null,
  };

  handleChoosePhoto = type => {
    const options = {
      title: "Selecione uma Foto",
      chooseFromLibraryButtonTitle: "Escolha de galeria",
      takePhotoButtonTitle: "Tire uma foto",
      noData: true
    };
    ImagePicker.showImagePicker(options, response => {
      if (response.uri) {
        uri =
          Platform.OS === "android"
            ? response.uri
            : response.uri.replace("file://", "");
        this.setState({ [type]: uri });
      }
    });
  };

  render() {
    return (
      <ScrollView>
        <View>
          <TouchableOpacity
            style={{ flex: 1 }}
            onPress={() => this.handleChoosePhoto("file")}
          >
            <Image
              resizeMode="cover"
              source={
                this.state.file
                  ? { uri: this.state.file }
                  : null
              }
            />
            <View>
              <Text>
                File
              </Text>
            </View>
          </TouchableOpacity>
       </ScrollView>
    </View>
   }
}

any update?

Still experiencing this in production in a few motorola phones, app restarts after selecting a photo from the gallery. Sometimes it works sometimes it resets


please clarify NotifeeExtensionHelper behavior in background and foreground

Hello,
I'm trying to use NotifeeExtensionHelper to control remote notifications with notifee. I'm not using firebase at all on ios.
I'm using https://github.com/react-native-push-notification/ios to get apns token and that is it.
current behavior:

in the bg, the notification extension gets executed and then notification is displayed via calling NotifeeExtensionHelper.populateNotificationContent. There is no interaction with JS. Tapping the notification fires an event in JS. This is my expected behavior so this is fine.

in the fg, the notification extension gets executed and then no notification is displayed (which is fine) but also, notifee.onForegroundEvent is NOT called in JS - which is a problem for me because I want to be able to show the notification.

I verified that any notification handlers from https://github.com/react-native-push-notification/ios are not called either.
Is this a bug, is this intended? I'd like to ask for this to be documented, and fixed if this is a bug, thank you! :)

ok, now that the code is open sourced, I can point my issue to the fact that I was not supplying foregroundPresentationOptions and notifee was thus swallowing my notifications
this makes the code a little more readable https://github.com/invertase/notifee/pull/169


Writing Definition Files for existing JS Files

TypeScript Version:  2.0.3
Consider the following:
//  ./lib/core/file1.js
export class Foo {}

// file2.ts
let foo = require('./lib/core/file1');

In the code above, consider the case where we are migrating a large code base from JS to TS.  File1.js may be very large and easier to write a definition file than convert it.
If I write the definition file, where do I put it?  How do I tell tsc that the file1.d.ts is the definition file for file1.js?

Whenever possible, keep the defalcation file close to the corresponding .js file. for instance, if this is a node module, make sure the package has both. if this is a local file, put them next to each other.
For modules names, the TS compiler tries to follow the node resolution logic to find the module, then it looks for .ts or .tsx or .d.ts in the same location.
So for this example:
//  ./lib/core/file1.d.ts
export declare class Foo {}

The only change on the usage is to use import instead of var:
// file2.ts
import foo = require('./lib/core/file1');

or
// file2.ts
import {foo} from './lib/core/file1';

More details about declaration file authoring is available in http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html. Hope this helps.

Thanks @mhegazy, much appreciated.


Flaky co19/LibTest/io/WebSocket/closeCode_A01_t02 test

See this log:
exit code:
255

stderr:
Unhandled exception:
Expect.equals(expected: <1000>, actual: <null>) fails.
#0      _fail (file:///C:/b/s/w/ir/tests/co19/src/Utils/expect.dart:18)
#1      Expect.equals (file:///C:/b/s/w/ir/tests/co19/src/Utils/expect_common.dart:16)
#2      main.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///C:/b/s/w/ir/tests/co19/src/LibTest/io/WebSocket/closeCode_A01_t02.dart:31)
<asynchronous suspension>

--- Re-run this test:
python3 tools/test.py -n vm-aot-win-product-x64 co19/LibTest/io/WebSocket/closeCode_A01_t02

@brianquinlan Could you look into whether the test is testing the right thing here?

Just flipped to consistently failing: https://dart-ci.web.app/#showLatestFailures=false&test=co19/LibTest/io/WebSocket/closeCode_A01_t02&configurations=vm-aot-win-debug-x64c
Same error: https://dart-ci.appspot.com/log/vm-aot-win-debug-x64c/vm-aot-win-debug-x64c/96/co19/LibTest/io/WebSocket/closeCode_A01_t02

Consistently failing on both vm-aot-win-debug-x64c, which went to flaky and then back since Daco re-reported it, and now vm-win-release-ia32, same error (logs in links).

https://dart-ci.appspot.com/log/vm-aot-win-debug-x64c/vm-aot-win-debug-x64c/103/co19/LibTest/io/WebSocket/closeCode_A01_t02 from pass -> consistently failing. Still the same error message.

Same error again today.

Also flaky on vm-aot-win-release-x64.

Failed once again on vm-win-release-ia32: https://dart-ci.appspot.com/log/vm-win-release-ia32/vm-win-release-ia32/89/co19/LibTest/io/WebSocket/closeCode_A01_t02

vm-aot-win-release-x64
Pass -> RuntimeError (expected Pass)
co19/LibTest/io/WebSocket/closeCode_A01_t02
Same error: https://dart-ci.appspot.com/log/vm-aot-win-release-x64/vm-aot-win-release-x64/692/co19/LibTest/io/WebSocket/closeCode_A01_t02

Failed once again on vm-win-release-ia32: https://dart-ci.appspot.com/log/vm-win-release-ia32/vm-win-release-ia32/108/co19/LibTest/io/WebSocket/closeCode_A01_t02

happened again:
https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/vm-aot-win-release-x64/903/overview
https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/vm-win-release-ia32/116/overview

Happened again today.

happened again:
https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/vm-aot-win-release-x64/1064/overview

https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/vm-aot-win-release-x64/1211/overview

Raised https://github.com/dart-lang/co19/issues/2268 with proposed fix to the test


Add Kafka Kraft single node to the examples

Add a container to set cluster id by running:
kafka-storage.sh random-uuid

and then register it for the main Kafka Kraft container.


Cow: Watch easydriveae.com

Cow requests the watch of the watch_keyword easydriveae\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

easydriveae\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by VLAZ in Charcoal HQ


Style guides conflict with stubbing angular components in tests causing unavoidable lint errors

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Area
- [x] devkit
- [ ] schematics

Versions

Angular CLI: 6.0.8
Node: 8.11.2
Repro steps

Create an angular project
add to the app component test a stub for router-outlet as described in the stubbing unneeded components section of the testing docs

@Component( {selector: 'router-outlet', template: ''} )
class RouterOutletStubComponent {}

run ng lint

The log given by the failure

ERROR: /home/alex/Repos/linterr/src/app/app.component.spec.ts[3, 23]: The selector of the component "RouterOutletStubComponent" should have prefix "app" (https://angular.io/styleguide#style-02-07)

Desired functionality

Style guides about selectors should not be applied to mocked or stubbed components.

Hi @ajspera
The router outlet selector seems to be the odd one out here. It doesn't have a prefix, but the other components in the testing docs do - 'app'. As you point out, when you write the stub component for the router outlet, the selector needs to be 'router-outlet'. Otherwise it won't match the selector in the template under test:
<app-banner></app-banner>
<app-welcome></app-welcome>

  Dashboard
  Heroes
  About

<router-outlet></router-outlet>

I wonder whether an exception to the linting rule could be made just for the 'router-outlet' selector. I'm not sure whether there are other built in selectors like 'router-outlet' without a prefix.
On the other hand:

if the stub component template must always match the original component (the one being stubbed) then do we need this linting rule to remind us twice? (once for the original and again for the test)

should this linting rule apply to any components created in 'spec' files?

cheers,
Charlie

@CharlesSuttie good points. Since no components that don't exist would ever be defined in a spec file, it seems the rule could just be omitted for all spec files as a simple and sensible fix. Even in the case of a valid linting error, it should be enough to notify about the defining file rather than listing all the stubs in spec files. Those will trigger testing errors anyway once the violating component or directive is fixed. I'm willing to help out with this issue, but the first question is does this belong here? I temporarily solved this by commenting out the rule in the tslint.json generated by the cli which brought me here, but I'm not entirely sure where the actual source is whether it's here, tslint, codelyzer, or somehwere else.

When running lint there is not distinction if it's a spec file or not.
If you want to disable a rule in a file I suggest you use on of the disable flags. https://palantir.github.io/tslint/usage/rule-flags/

it should be enough to notify about the defining file rather than listing all the stubs in spec files
Well, this is the correct behaviour, For every lint error, one should get the line number and column and a detailed explain of the error, this is the norm in all the linters I'd say. At least I never saw a linter that does something else.

I think for this case the disable flag is the right approach. Specs often have dubious usage of APIs and need some disabling tslint on certain lines.
In the given example one is really stubbing the angular router outlet so I think that's a fair tslint error. Disabling it would be:
// tslint:disable-next-line:component-selector
@Component( {selector: 'router-outlet', template: ''} )
class RouterOutletStubComponent {}


frame size check added

When trying to fuzz LMstax , frame stack size more than 100(FRAME_STACK_MAX)  have been sent as inputs ,which caused an out of bounds error. Hence the frame max size check added.

Hi @VishwaRajV,
Can you start the commit message with a capital letter "Frame size check added".
And add the comment that you added here into the commit message.  I think this issue can be reproduced also without lmstax, so please remove that part.
Thanks,

Hi @HoratiuVultur ,
I'll update the description and update the commit messages too.
Thanks

Please squash the commits into a single one so it is easier to see the full changes.

Yes @HoratiuVultur, I have sqaushed the commits.
Thanks,

Hi,
Squashed the commits into one.

Thanks for changing it. I think it looks good.


feat: detect incompatible extensions

This will detect presence of known incompatible extensions and prompt user to remove them. Implementation is based on the same feature that redhat.yaml extension has.

Plz also fix the commit message / PR title to contain useful info (such as the high-level effect of the change for the user).

Plz also fix the commit message / PR title to contain useful info (such as the high-level effect of the change for the user).

Done, make pr title more in sync with the changelog entry, stating clearly
what this change does.


Error when clicking on spiderfied pin

I am getting the following error when I click on spiderfied pin:

Hello, I'm not able to reproduce  your issue with the provided information. Could you provide me with the maplibre version you're using and the spiderfy options you use? Also make sure you have your source has the cluster option set to true.


When interpolating an ops-file with a missing path, I'd like to know which ops-file failed

If I use an ops-file like:
- type: replace
  path: /my/name=key/does/name=not/exist
  value: "hello"

but the path does not resolve, I get a message like:
Evaluating manifest:
  Expected to find a map key 'exist' for path '/my/name=key/does/name=not/exist' (found map keys: 'name')

Exit code 1

If I have a lot of ops-files, it might be hard for me to find the offender. I'd like to know which ops-file was getting parsed at the time of the error (and even better, which link the operation was defined on)

which line you mean?
Sent from my iPhone

On Feb 21, 2017, at 11:01 AM, Dan Wendorf<EMAIL_ADDRESS>wrote:
If I use an ops-file like:

type: replace
path: /my/name=key/does/name=not/exist
value: "hello"
but the path does not resolve, I get a message like:

Evaluating manifest:
Expected to find a map key 'exist' for path '/my/name=key/does/name=not/exist' (found map keys: 'name')
Exit code 1
If I have a lot of ops-files, it might be hard for me to find the offender. I'd like to know which ops-file was getting parsed at the time of the error (and even better, which link the operation was defined on)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Yep, sorry. Typo.

Closing this as it is a duplicate of https://github.com/cloudfoundry/bosh-cli/issues/68


Watertank is always reported as on

So the vent animation is always on

Fixed in Pull #249

It should be fixed in 0.13.0 (thank you!)


Add semantic-release

semantic-release is for publishing NPM packages. Not suitable for simple version bumping.


Upgrade redoc library to fix disappearing menu

Description
The last menu item in the list of API services, VulnerabilityRequestService, would not appear unless you manually scrolled down to it and clicked around.
Upgrading to the latest version of this Swagger rendering library fixes it.
Checklist

[ ] Investigated and inspected CI test results

Testing Performed
Before upgrade

After Upgrade

/retest

Ironic that perfect-scrollbar apparently needed to be updated to become perfecter :)

Curiouser and curiouser
-Alice, while in Wonderland


Add test for client side hydration

We have no tests confirming client side hydration of islands works. We should add some integration tests. Probably should use puppeteer. Ideally we could run these tests against a local website, and against a live page running on Deploy.

We already have it. Nice work.