mashlib recipe with subdomain configuration

I'm able to create an account.

But when I click on the webid I got the following error
GET http://bourgeoa.localhost:3000/profile/card net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

when I click to the pod link. I got these 2 following errors

(index):89
GET http://bourgeoa.localhost:3000/.account/ 401 (Unauthorized)
(anonymous) @ (index):89
(anonymous) @ (index):98

(index):92
GET http://bourgeoa.localhost:3000/undefined 401 (Unauthorized)

{
    "@context": [
<EMAIL_ADDRESS>    ],
    "import": [
      "css:config/app/init/static-root.json",
      "css:config/app/main/default.json",
      "css:config/app/variables/default.json",
      "css:config/http/handler/default.json",
      "css:config/http/middleware/default.json",
      "css:config/http/notifications/all.json",
      "css:config/http/server-factory/http.json",
      "css:config/http/static/default.json",
      "css:config/identity/access/public.json",
      "css:config/identity/email/default.json",
      "css:config/identity/handler/default.json",
      "css:config/identity/oidc/default.json",
      "css:config/identity/ownership/token.json",
      "css:config/identity/pod/static.json",
      "css:config/ldp/authentication/dpop-bearer.json",
      "css:config/ldp/authorization/webacl.json",
      "css:config/ldp/handler/default.json",
      "css:config/ldp/metadata-parser/default.json",
      "css:config/ldp/metadata-writer/default.json",
      "css:config/ldp/modes/default.json",
      "css:config/storage/backend/file.json",
      "css:config/storage/key-value/resource-store.json",
      "css:config/storage/location/pod.json",
      "css:config/storage/middleware/default.json",
      "css:config/util/auxiliary/acl.json",
      "css:config/util/identifiers/suffix.json",
      "css:config/util/logging/winston.json",
      "css:config/util/representation-conversion/default.json",
      "css:config/util/resource-locker/file.json",
      "css:config/util/variables/default.json"
    ],
    "@graph": [
      {
        "comment": [
          "A filesystem-based server with Databrowser as UI.",
          "Derived from config/file-no-setup.json"
        ]
      },
      {
        "comment": "Serve Databrowser as default representation",
        "@id": "urn:solid-server:default:DefaultUiConverter",
        "@type": "ConstantConverter",
        "contentType": "text/html",
        "filePath": "./node_modules/mashlib/dist/databrowser.html",
        "options_container": true,
        "options_document": true,
        "options_minQuality": 1,
        "options_disabledMediaRanges": [
          "image/*",
          "application/pdf"
        ]
      },
      {
        "comment": "Serve Mashlib static files.",
        "@id": "urn:solid-server:default:StaticAssetHandler",
        "@type": "StaticAssetHandler",
        "assets": [
          {
            "@type": "StaticAssetEntry",
            "relativeUrl": "/mash.css",
            "filePath": "./node_modules/mashlib/dist/mash.css"
          },
          {
            "@type": "StaticAssetEntry",
            "relativeUrl": "/mashlib.min.js",
            "filePath": "./node_modules/mashlib/dist/mashlib.min.js"
          },
          {
            "@type": "StaticAssetEntry",
            "relativeUrl": "/mashlib.min.js.map",
            "filePath": "./node_modules/mashlib/dist/mashlib.min.js.map"
          }
        ]
      }
    ]
  }

There is no issue with suffix configuration.

There are 2 problems here.
The fact that the page on the root pod has problems with the links on it is a CSS issue. You're actually not even supposed to see that page when going to the root pod, only on the root of the server. You should see the root contents of the pod when going to it. This is an issue with the logic used for static files where it doesn't take the subdomain into account. I'll look into fixing that for CSS, but for now that means the static-root option does not work with subdomains.
I'm not exactly sure why accessing the WebID doesn't work though. I can confirm that it also doesn't work when I try it, although I get a different error. For me the error occurs on this line because node is null instead of a defined value: https://github.com/SolidOS/solid-ui/blob/ee8e69c20cc21d93eb942bc5479e4644d5704964/src/utils/index.js#L250. How data is accessed hasn't changed much in v7 and I don't know anything about the solid-ui code there so I can't immediately comment what would be an issue there.

Well to amend the previous reply, it's not that the server completely doesn't work with the static-root option, it's just that the page shown in the root of a pod will contain URLs that won't work. You can still login to your account by manually going to http://localhost:3000/.account/ instead of http://bourgeoa.localhost:3000/.account/.

Can I ask why you want to use the static-root option with subdomain pods? That option was mostly designed for the suffix case, which is why I forgot about subdomains, as in that case you are not allowed to put data in the root of the server, so this gets around that. For subdomains this is less relevant as there you should be able to put data in both the server root and the pods.

Can I ask why you want to use the static-root option with subdomain pods?

There was no reason. I did not think about it. It was the default in configurator.

There was no reason. I did not think about it. It was the default in configurator.

Good to know. Best solution might be to just disable that combination in the configurator then.

In between what option shall I use ?

So to be clear, in the configuration generator this is about the "Miscellaneous -> Initialize root" option. If you want to have an HTML document at the root, which I'm assuming you do, the "Accessible root" option probably does what you want. You would then have to update the ACL file in the root to make sure only you have write access there as by default it provides full access. You can then also put an index.html file in the root, which will be displayed when someone accesses the root through the browser.

I used the accessible root option and have add some improvement but still cannot login
THis is the message window
bourgeoa.localhost:3000 indique

Client registration failed: [Error: Dynamic Registration could not be completed because the issuer has no registration endpoint.]

Just found a different file structure for .internal location in v5 and v7

in v5 I have .internal only in data/www
in v7 I have 2 .internal one  in data and an other one in data/www

I'm not sure how this worked in the v5 release. I just tried it out there and it gives the same error. It is also expected behaviour. The URL of the IDP is the base URL, so http://localhost:3000. That is also the URl the WebID will reference using the solid:oidcProvider triple and is where the authentication client should send its request to.

Just found a different file structure for .internal location in v5 and v7

That is indeed a bug, but should have no major impact. It's just the locks being stored in a different location than the other internal data.

But when I click on the webid I got the following error
GET http://bourgeoa.localhost:3000/profile/card net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

I've had another look at this and I think I found the issue in CSS. Since v7 the server now also outputs the content-length. But in the case when configuring the server to return the mashlib HTML page instead of the resource that content length will be wrong as the original resource is not returned. I'll look into fixing this which should resolve the WebID issue.

But when I click on the webid I got the following error
GET http://bourgeoa.localhost:3000/profile/card net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

I've had another look at this and I think I found the issue in CSS. Since v7 the server now also outputs the content-length. But in the case when configuring the server to return the mashlib HTML page instead of the resource that content length will be wrong as the original resource is not returned. I'll look into fixing this which should resolve the WebID issue.

The fix in https://github.com/CommunitySolidServer/CommunitySolidServer/pull/1781 makes it so the WebID (and other resources) are accessible again. Will look into merging this and doing a new release soon.

The fix mentioned above is part of release v7.0.2.

Tested v7.0.2 and access to /profile/card is working.
After pod creation, login does not give any authenticated access to pod  content
PUT http://bourgeoa.localhost:3000/profile/card 401 (Unauthorized)

The webid claim to be an HTTPS URI or a localhost with port number HTTP URI

This is the cause of the issue. When using DPoP authentication you need to use a HTTPS URLs. The parsing library does also support using an HTTP URL if it is a localhost URL for debugging purposes, but it does not support subdomains of localhost.
It seems a fix was made to the library to also support this: https://github.com/CommunitySolidServer/access-token-verifier/pull/236. But there never was a release afterwards. Will have to see if it is possible to have a new release there. Until there is a new release there the solution would be to run the server as HTTPS.

It seems a fix was made to the library to also support this: CommunitySolidServer/access-token-verifier#236. But there never was a release afterwards. Will have to see if it is possible to have a new release there. Until there is a new release there the solution would be to run the server as HTTPS.

So I tried to run the server as HTTPS.
Now the issue is
2023-11-21T17:40:09.796Z [DPoPWebIdExtractor] {Primary} warn: Error verifying WebID via DPoP-bound access token: The WebID could not be dereferenced.
Actual: https://bourgeoa.localhost:3000/profile/card#me
Expected: A dereferenceable resource

I spent some time looking into this as this should work. Conclusion is that the problems all mostly stem from the fact that it's being tested on localhost which complicates some things.
I'm not sure which problems you might have so I'm going to cover all those I ran into.
The problem with using a subdomain in localhost is that fetch is not going to find it as only localhost is defined in the host file. So the host file needs to be extended with <IP_ADDRESS>       bourgeoa.localhost. I'm not sure why browsers didn't have an issue accessing a subdomain of localhost. I didn't look into this but I guess they are smart enough to take those into account.
You will probably not have this issue, but I was using an old certificate which was expired so I had to generate a new one.
By default, fetch requests will also fail on self-signed certificates. Node.js has an env variable that can be set to get around that for debugging purposes though. So I changed the start script in the package.json to set NODE_TLS_REJECT_UNAUTHORIZED=0&& npx community-solid-server -c config-mashlib.json (I'm on Windows).
After that the profile container can be accessed after logging in and the WebID can be modified.
Since the access token library doesn't print what actually went wrong I edited the file in<EMAIL_ADDRESS>to print the error thrown here to figure out what was going wrong.

Thanks for your detailed tests and explanation.
Sorry it does not work for me. I suppose I'm having a wrong parameter.
Can you share your config ?
This is mine :
    "start": "NODE_TLS_REJECT_UNAUTHORIZED=0&& npx community-solid-server -c ./config/https-mashlib-subdomain-file.json -f ./data --httpsKey ../privkey.pem --httpsCert ../fullchain.pem -b https://localhost:3000",

{
  "@context": [
<EMAIL_ADDRESS>  ],
  "import": [
    "css:config/app/init/default.json",
    "css:config/app/main/default.json",
    "css:config/app/variables/default.json",
    "css:config/http/handler/default.json",
    "css:config/http/middleware/default.json",
    "css:config/http/notifications/all.json",
    "css:config/http/server-factory/https.json",
    "css:config/http/static/default.json",
    "css:config/identity/access/public.json",
    "css:config/identity/email/example.json",
    "css:config/identity/handler/default.json",
    "css:config/identity/oidc/default.json",
    "css:config/identity/ownership/token.json",
    "css:config/identity/pod/static.json",
    "css:config/ldp/authentication/dpop-bearer.json",
    "css:config/ldp/authorization/webacl.json",
    "css:config/ldp/handler/default.json",
    "css:config/ldp/metadata-parser/default.json",
    "css:config/ldp/metadata-writer/default.json",
    "css:config/ldp/modes/default.json",
    "css:config/storage/backend/file.json",
    "css:config/storage/key-value/resource-store.json",
    "css:config/storage/location/pod.json",
    "css:config/storage/middleware/default.json",
    "css:config/util/auxiliary/acl.json",
    "css:config/util/identifiers/subdomain.json",
    "css:config/util/logging/winston.json",
    "css:config/util/representation-conversion/default.json",
    "css:config/util/resource-locker/file.json",
    "css:config/util/variables/default.json"
  ],
  "@graph": [
    {
      "comment": "The settings of your email server.",
      "@type": "Override",
      "overrideInstance": {
        "@id": "urn:solid-server:default:EmailSender"
      },
      "overrideParameters": {
        "@type": "BaseEmailSender",
        "senderName": "Community Solid Server<EMAIL_ADDRESS>        "emailConfig_host": "smtp.example.email",
        "emailConfig_port": 587,
        "emailConfig_auth_user"<EMAIL_ADDRESS>        "emailConfig_auth_pass": "NYEaCsqV7aVStRCbmC"
      }
    },
    {
      "comment": "The location of the new pod templates folder.",
      "@type": "Override",
      "overrideInstance": {
        "@id": "urn:solid-server:default:PodResourcesGenerator"
      },
      "overrideParameters": {
        "@type": "StaticFolderGenerator",
        "templateFolder": "@css:templates/pod"
      }
    },
    {
      "comment": "Where the WebID is located in the generated pod, relative to the root.",
      "@type": "Override",
      "overrideInstance": {
        "@id": "urn:solid-server:default:PodCreator"
      },
      "overrideParameters": {
        "@type": "BasePodCreator",
        "relativeWebIdPath": "profile/card#me"
      }
    },
    {
      "comment": [
        "A filesystem-based server with Databrowser as UI.",
        "Derived from config/file-no-setup.json"
      ]
    },
    {
      "comment": "Serve Databrowser as default representation",
      "@id": "urn:solid-server:default:DefaultUiConverter",
      "@type": "ConstantConverter",
      "contentType": "text/html",
      "filePath": "./node_modules/mashlib/dist/databrowser.html",
      "options_container": true,
      "options_document": true,
      "options_minQuality": 1,
      "options_disabledMediaRanges": [
        "image/*",
        "application/pdf"
      ]
    },
    {
      "comment": "Serve Mashlib static files.",
      "@id": "urn:solid-server:default:StaticAssetHandler",
      "@type": "StaticAssetHandler",
      "assets": [
        {
          "@type": "StaticAssetEntry",
          "relativeUrl": "/mash.css",
          "filePath": "./node_modules/mashlib/dist/mash.css"
        },
        {
          "@type": "StaticAssetEntry",
          "relativeUrl": "/mashlib.min.js",
          "filePath": "./node_modules/mashlib/dist/mashlib.min.js"
        },
        {
          "@type": "StaticAssetEntry",
          "relativeUrl": "/mashlib.min.js.map",
          "filePath": "./node_modules/mashlib/dist/mashlib.min.js.map"
        }
      ]
    }
  ]
}

To print the error what did you put in<EMAIL_ADDRESS>

The only difference in my config was the the email setting was disabled, which should not impact this.
To have the fetch error logged, insert console.error(e); at line 22 of that file. So in the catch block of dereferenceWebid. Knowing what the error is would indeed help finding out what the remaining issue is.
If you copy/pasted exactly what you did I think the problem is your start script. You wrote "start": "NODE_TLS_REJECT_UNAUTHORIZED=0&& npx..., but it should be "start": "set NODE_TLS_REJECT_UNAUTHORIZED=0&& npx... on Windows or "start": "NODE_TLS_REJECT_UNAUTHORIZED=0 npx... on Unix.

The printed error seems to be :
2023-11-22T15:59:12.145Z [PermissionBasedAuthorizer] {Primary} warn: Unauthenticated agent has no read permissions
2023-11-22T15:59:12.169Z [HandlerServerConfigurator] {Primary} info: Received GET request for /
FetchError: request to https://bourgeoa.localhost:3000/profile/card#me failed, reason: getaddrinfo ENOTFOUND bourgeoa.localhost
    at ClientRequest.<anonymous> (/mnt/d/github/source/workspaces/css-mashlib/node_modules/node-fetch/lib/index.js:1501:11)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:494:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND'
}
2023-11-22T15:59:12.196Z [DPoPWebIdExtractor] {Primary} warn: Error verifying WebID via DPoP-bound access token: The WebID could not be dereferenced.
Actual: https://bourgeoa.localhost:3000/profile/card#me
Expected: A dereferenceable resource
2023-11-22T15:59:12.198Z [WebAclReader] {Primary} info: Found applicable ACL document https://bourgeoa.localhost:3000/.acl```

I fixed the ENOTFOUND error by updating the host file. Did you add <IP_ADDRESS>       bourgeoa.localhost? Either in c:\Windows\System32\Drivers\etc\hosts or /etc/hosts depending on OS.

This is my /etc/hosts
root@DESKTOP-PIRJOCS:/mnt/d/github/source/workspaces/css-mashlib# cat /etc/hosts
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateHosts = false
<IP_ADDRESS>       localhost
<IP_ADDRESS>       DESKTOP-PIRJOCS.        DESKTOP-PIRJOCS

<IP_ADDRESS>       nic.localhost
<IP_ADDRESS>       tim.localhost
<IP_ADDRESS>       nicola.localhost
<IP_ADDRESS>    dsx
<IP_ADDRESS>  host.docker.internal
<IP_ADDRESS>  gateway.docker.internal
<IP_ADDRESS>       kubernetes.docker.internal

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

The problem with using a subdomain in localhost is that fetch is not going to find it as only localhost is defined in the host file. So the host file needs to be extended with <IP_ADDRESS> bourgeoa.localhost. I'm not sure why browsers didn't have an issue accessing a subdomain of localhost. I didn't look into this but I guess they are smart enough to take those into account.

It is working now.
Sorry to have not read your reply correctly.
Thank you for your patience.

It seems a fix was made to the library to also support this: https://github.com/CommunitySolidServer/access-token-verifier/pull/236. But there never was a release afterwards. Will have to see if it is possible to have a new release there. Until there is a new release there the solution would be to run the server as HTTPS.

Yes it may be easier to run on http://localhost:3000 when doing tests of SolidOS

It is working now.

Glad to hear you got it working, I'll close the issue then.

Yes it may be easier to run on http://localhost:3000 when doing tests of SolidOS

Yes I'll look into that. Although the change to the host file will still be required afterwards.

Yes it may be easier to run on http://localhost:3000 when doing tests of SolidOS

The latest version of the access-token-verifier library includes this change now. So you can make use of it if you reset your package-lock.json file so the new version is used.


Container inspect
No response
Anything else?
No response

Can you share a screenshot of the behaviour to make sure I understand the problem ?

To rule out an installation problem I also recreated the new docker in this way.
Once all the emails have been re-downloaded, it works for a few minutes, and once they are all set as read the problem returns.

Any ideas?

Do you have to change the default view to reproduce ?

no, the problem occurs with any view

any help?

I don't seem to reproduce the problem. Are you seeing the problem only when all emails are marked as read ? As long as an email is not read you don't have the problem ?
Also, can you try with the latest image released today?

With the last image I have the same problem.
Yes, it seems that as long as they are unread I can see them, and the problem only occurs when I set them all as read.
What could it depend on?


chore: remove sudo from bazzite setup script

bazzite setup seems to run with root priviledges as it writes to /etc directly. However some commands use sudo.
For some reason, using sudo delays boot by over 2 minutes in certain instances. So remove it.
Also remove pmf script from Ally since it is part of 6.11.

The delayed boot probably happens due to networking/hostname not yet being configured and sudo getting confused then timing out. Had toooooooooons of these problems when I was testing out systemd-nspawn


feat: add supabase-shadcn-database-example

name: "feat: add supabase-shadcn-database-example"
about: "Propose adding a new resource related to shadcn/ui"
labels:

feature

Describe the awesome resource you want to add
What is it?
This is a demo project that integrates Supabase with TanStack Table, showcasing how to efficiently fetch, filter, and display data with server-side rendering. The project extends the components from shadcn's data table example with additional functionalities like lazy loading, table size calculations, and basic filtering.
Which section does it belong to?

Libs and Components

Additional Details (optional)
The project uses Supabase for database interaction, TanStack Table for data visualization, and shadcn/ui. The code includes example implementations for common use cases.

Link: GitHub Repository
Screenshots/Demo: here

Checklist

[x] I verified that the resource is listed in alphabetical order within its section.
[x] I checked that the resource is not already listed.
[x] I provided a clear and concise description of the resource.
[x] I included a valid and working link to the resource.
[x] I assigned the correct section to the resource.

I think the validate markdown check doesn't fail because of my specific pull request


⚠ Bofrost.at has degraded performance

In b5cb95e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1886 ms

Resolved: Bofrost.at performance has improved in 7ba075a after 6 minutes.


Transfer volume across AZ's

In "Add Storage" if a user has a volume in another AZ it shows a warning.
Add a button to "Transfer here", which will:

Modify current EBS volume to provisioned iops type
Set iops to 50:1 iops:gb (to speed up snapshot creation)
Create snapshot
Create new volume in current AZ with snapshot
Delete original volume

#61 Hi i think i resolve this issue :)

Oh, sorry for so many strings changes.  If this important i can to try fix it.

#62

I've closed this now - you should be able to claim your bounty. If you have any trouble please let me know.

When you fill up the volume, eventually you get this error:
Resource is not in the state snapshotCompleted

Hi, please check it, #71 . Now it must working.


Adding fp32 ->bf16x2 / bf16x3 split tpp

yes, this we can do later, also AVX2, SVE support is missing.

SVE added, ready for merge


Use in a packed struct

BETTER_ENUM(address_t, uint8_t, one = 0x01, two = 0x02);
struct query_t {
    address_t address;
} __attribute__((packed, aligned(1)));

Gives a warning:
ignoring packed attribute because of unpacked non-POD field 'address_t query_t::address'

Try adding
#define BETTER_ENUMS_CLASS_ATTRIBUTE __attribute((packed, aligned(1)))__

before the enum. See Injecting tokens.


[ISSUE #6634] Polish the HA logs to better troubleshoot issues

Make sure set the target branch to develop
What is the purpose of the change

fix #6634
Brief changelog
Polish the HA logs to better troubleshoot issues
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #6635 (4a5f3cf) into develop (af6a95f) will increase coverage by 0.03%.
The diff coverage is 81.81%.

@@              Coverage Diff              @@
##             develop    #6635      +/-   ##
=============================================
+ Coverage      43.07%   43.11%   +0.03%
- Complexity      8990     8996       +6
=============================================
  Files           1107     1107
  Lines          78289    78297       +8
  Branches       10203    10204       +1
=============================================
+ Hits           33725    33756      +31
+ Misses         40341    40320      -21
+ Partials        4223     4221       -2

Impacted Files
Coverage Δ

...org/apache/rocketmq/store/DefaultMessageStore.java
46.86% <71.42%> (+0.10%)
:arrow_up:

...cketmq/store/ha/autoswitch/AutoSwitchHAClient.java
76.08% <100.00%> (+0.26%)
:arrow_up:

... and 18 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


fix(runtime-core): Suspense can correctly call the resolved of parent suspense when there is no async deps

close: #8206
relate:
62e71b5
#8242

@baiwusanyu-c

relate:
62e71b5

should be e1475129fc6f8c086c2ec667476900b8c8f46774


Respond to Rollup warning for i18n.mjs

What
This notice, which we think is coming from Rollup, currently appears in the test output:

Entry module “src/govuk/i18n.mjs” is implicitly using “default” export mode, which means for CommonJS output that its default export is assigned to “module.exports”. For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set “output.exports” to either “auto” or “default”, otherwise you might want to consider changing the signature of “src/govuk/i18n.mjs” to use named exports only.

Understand whether there are implications for consumers of GOV.UK Frontend and whether we need to make any changes.
If we don't need to make any changes, see if there's a way to silence the warning.
Why
src/govuk/i18n.mjs is a new file which has not yet been included in a release of GOV.UK Frontend.
We want to make sure that the way that we've written i18n.mjs will not impact consumers of GOV.UK Frontend once the next release has gone out.
Who needs to work on this
Developers
Who needs to review this
Developers
Done when

[ ] We understand the implications of the warning
[ ] We've made any changes required before shipping the next release
[ ] The warning no longer appears in the test output (unless it's not possible to silence it)

Maybe using a named export would make the warning disappear, as it seems to complain about the export being a default one. If that's the case, that might be a cheap, quick fix for the warning 😄

I'd prefer named exports too as it can also avoid compatibility problems with bundlers/compilers having to support a "synthetic default". Likely why Rollup is logging the issue
Two questions:

Any objections to switching to named imports?
Were we supposed to export I18n via all.js and all.mjs or is it private?

Before all.mjs
We import the default component, giving it a new name “Accordion”
import Accordion from './components/accordion/accordion.mjs'
export { Accordion }

After all.mjs
We import the already-named “Accordion” component
import { Accordion } from './components/accordion/accordion.mjs'
export { Accordion }

Subtle difference, but the “After” version will also let IDEs keep track of when things get renamed

Won’t moving to the second version be a breaking change if people are already importing single ESM components?

@romaricpascal For compatibility reasons perhaps we keep the default export (alongside the named one)?
But, do we actually support importing components directly like these examples?
Require/Import via filename default export
This is the current (working) approach to require/import components directly
// CommonJS modules
const Button = require('govuk-frontend/govuk/components/button/button')

// ECMAScript modules
import Button from 'govuk-frontend/govuk-esm/components/button/button.mjs'

// Both via dynamic import
const { default: Button } = await import('govuk-frontend/govuk-esm/components/button/button.mjs')

Require/Import via filename named export
This is the suggested Rollup approach but it's possible to support an export default fallback too
// CommonJS modules
const { Button } = require('govuk-frontend/govuk/components/button/button')

// ECMAScript modules
import { Button } from 'govuk-frontend/govuk-esm/components/button/button.mjs'

// Both via dynamic import
const { Button } = await import('govuk-frontend/govuk-esm/components/button/button.mjs')

Require/Import via govuk-frontend package exports
But really this may be the "public API" we'd expect people to use:
// CommonJS modules
const { Button } = require('govuk-frontend')

// ECMAScript modules
import { Button } from 'govuk-frontend'

// Both via dynamic import
const { Button } = await import('govuk-frontend')

☝ @romaricpascal It's this last example that will continue to work (even without an export default fallback) thanks to the named exports we're already using in all.mjs and all.js

If we want to avoid breaking "via filename named export" here's the compatibility suggestion:
Single default export only (current)
Currently Accordion isn't exported by name
function Accordion ($module, config) {} // Not exported
export default Accordion

Both named and default export (suggested)
But we could ensure Accordion keeps its default export
export function Accordion ($module, config) {} // Exported
export default Accordion

It's not really recommended (ESLint import plugin has a rule for it) but solves a temporary problem

Cheers for the thorough description 😄 On my side, I'd be happy to move towards named for everything, but that's a decision that'll need a wider discussion I think.
If we go for it though, having both named and not named while we wait for our next breaking release doesn't sounds like too bad a compromise. That's a neat idea 🙌🏻

Thanks @romaricpascal, there's one other potential issue as we use UMD bundles
I can't see the "interop" __esModule: true in the output
Questions

Does our pinned version of Rollup support __esModule?
Does Rollup support __esModule for UMD (see Babel's approach)
Should we identify bundlers that don't support the "interop" __esModule: true flag?

What does __esModule: true do?
The __esModule: true flag ensures (in most places) that ESM-to-XXX bundled code can still be imported as if it was an ECMAScript module. You can see where it's configured by default for Babel, Rollup, TypeScript and webpack
Ignoring UMD for this example, but something like:
Input
ECMAScript module via accordion.mjs
export function Accordion ($module, config) {} // Exported
export default Accordion

Output
CommonJS module via accordion.js
function Accordion ($module, config) {}

exports.__esModule = true
exports.Accordion = Accordion
exports.default = Accordion

No problem @romaricpascal 😊
Yeah require/import from 'govuk-frontend' will continue to work just fine
Older bundlers/resolvers will stick with "main": "govuk/all.js" but newer ones follow the exports entry points:
Using ./govuk/all.js for const { initAll } = require('govuk-frontend')
Using ./govuk-esm/all.mjs for import { initAll } from 'govuk-frontend
Like your example, if we went ahead and shipped named exports (alongside default exports) we could see some problems with older tooling that didn't understand __esModule.
You might have seen this with other libraries that haven't got it quite right:
const example = require('oops').default
import { default as example } from 'oops'

We'll have to consider how UMD bundles affect this too

Maybe this is something to discuss as a team? At the very least I'd like to check in with @querkmachine and see how it would feel about making it public now.

I don't think there's anything stopping I18n from being public.
It's been built around the needs of our existing components and is definitely not the most fully-featured i18n script around (no genders, contextual grammar, etc.), so external users may run into the limitations of it harder than we have, but it does work (🤞).


'Deploy to Netlify' button is broken

I believe that your Github username was knogobert and recently to moved to Knogobert.
That broke all Deploy to Netlify buttons, that still point to the lowercase username.
How to reproduce:

In README.md press the Deploy to Netlify button
Connect your Github account
Give the repo a random name
Press Save & Deploy

Places that should be fixed:

Netlify docs
README.md

Good catch! Netlify must've changed case-sensitivity it looks like. Still, the main reason is my name change.
I'll make sure these two places are changed. If anyone finds another place, please tell me (except from all of your own hard forks 🤦, that's a tough one).


Update meetup

Closes #506

@exercism/reviewers Exercise has been updated and gives input as noted in the description.


Updates no longer reported

I noticed that when there is an update for OMV, this is no longer detected by the plugin.
It seems something has changed in OMV, that prevents this from working.

Which version?

I run OMV 6.1.6-2 (Shaitan)
And the plug-in release is 1.3.0.

Just checked, same here.
Version
6.1.4-1 (Shaitan)
Processor
Intel(R) Core(TM) i3-10105F CPU @ 3.70GHz
Kernel
Linux 6.0.0-0.deb11.2-amd64

I have noticed the same issue.
Version
6.1.4-2 (Shaitan)
Integration release 1.3.0

I have the issue, that I cannot connect. "No response from host" when I try to login.

I can ping OMV with the Terminal-function of HA.

Hello, i have noticed the same issue.
Version
6.3.0-1 (Shaitan)
Integration release 1.3.0

Same here.
6.3.4-1 (Shaitan)
Integration release v1.3.0


Restore previous winbar instead of = nil if filetype is excluded

https://github.com/Ramilito/winbar.nvim/blob/main/lua/winbar/init.lua#L96
In here, the previous winbar is set to nil. This breaks things like e.g. dap-ui:

Before hovering the dap-repl window at the bottom

After hovering it
I'd expect the winbar not to change its contents if winbar.nvim has the filetype in filetype_exclude.

Yeah that feels wrong, it should leave the winbar alone if excluded, I'll remove it!

Fixed in commit 6379501


How can i control files extension of uploaded files ?

Hi,
I need to check in what extension have the file when uploaded.
I try to add accept:'image/png' in my collection schema but it don't work.
I'm looking for answer, but i never find one.
Thanks for the future answers

Hi,
Had similar issue, try accepts instead of accept.


Fix DokanNet.Tests [TestCategory.Manual]

Some test are now disable for appveyor (tagged as [TestCategory.Manual]) because they are not properly working and need to be fixed.
@viciousviper , I will make a new version tomorrow for your test.

Here is the new RC: https://github.com/dokan-dev/dokany/releases/tag/v0.8.0-RC2

@viciousviper
The new release: https://github.com/dokan-dev/dokany/releases/tag/v0.8.0-RC2

Thank you @viciousviper for fixing all Manual test.
There is no more remaining with your work :trophy:


Support for Node version 10

yarn global install reactql gives:
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=4 <=9".

should work now with the 3.0.0 release.


Allow configuring aiursoft WWW page navbar in configuration.

While the feature itself is added. We still need to change the setup script so the new dedicated environment will auto set correct navbar.


SSHMON data parsing issue

I’m doing a performance test using Jmeter and during the test I’m collecting the statistics for backend server performance , for this purpose I use SSHMON sample collector listener in my test plan https://github.com/tilln/jmeter-sshmon
I have also configured a CSV file path to check the response data received from the server Issue is that
Data is not recorded in the CSV file and also there is no graph shown for SSHMON listener
In the jemeter logs I can see the following error
 java.text.ParseException: Unparseable number: " [2J"
    at java.text.NumberFormat.parse(NumberFormat.java:434) ~[?:?]
    at nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonSampler.generateSamples(SSHMonSampler.java:86) [jmeter-sshmon-1.2.jar:?]
    at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.processConnectors(MonitoringResultsCollector.java:215) [jmeter-plugins-cmn-jmeter-0.6.jar:?]
    at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.run(MonitoringResultsCollector.java:122) [jmeter-plugins-cmn-jmeter-0.6.jar:?]   at java.lang.Thread.run(Thread.java:832) [?:?]

To verify the SSH configuration and the received data format , I tried to make a SSH connection to the backend server using putty and with same user/pwd and command , I get the data in Putty , please see the attached screenshot
Do I have to change the powershell script to change the format of CPU data, if yes then in which format? I did not get any info on plugin page.
I would really appreciate if you could provide me some help for this case.

Hi @harinderbora
Can you please confirm what plugin version you are using?
Version 1.3 should fix this issue.
Please upgrade and report back.
Also answered on Stackoverflow.

Hi @harinderbora
Can you please confirm what plugin version you are using?
Version 1.3 should fix this issue.
Please upgrade and report back.
Also answered on Stackoverflow.

Thanks a lot. It works now but it seems I had both 1.2 and 1.3 versions in  .lib\ext directory, I updated this already on 07.1.2020
so somehow if both versions are kept it does not take the latest version. but after removing version 1.2 , the graphs started working. but that's a minor thing.  I'm really very thankful for your help / hint.

Thanks a lot. It works now but it seems I had both 1.2 and 1.3 versions in  .lib\ext directory, I updated this already on 07.1.2020
so somehow if both versions are kept it does not take the latest version. but after removing version 1.2 , the graphs started working. but that's a minor thing.  I'm really very thankful for your help / hint.

sorry may be I was too quick in my response I did more tests  and now I get another error with parsing, please see the exception below
2021-01-11 07:40:11,731 ERROR n.c.b.j.v.s.SSHMonSampler: Sample failure for administrator@ltagw01.nrhitest.local:4444 [powershell.exe -ExecutionPolicy Bypass -File "E:\perf\Memory.ps1"]
java.text.ParseException: Unparseable number: ""
	at java.text.NumberFormat.parse(NumberFormat.java:434) ~[?:?]
	at nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonSampler.generateSamples(SSHMonSampler.java:71) [jmeter-sshmon-1.3.jar:?]
	at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.processConnectors(MonitoringResultsCollector.java:215) [jmeter-plugins-cmn-jmeter-0.6.jar:?]
	at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.run(MonitoringResultsCollector.java:122) [jmeter-plugins-cmn-jmeter-0.6.jar:?]
	at java.lang.Thread.run(Thread.java:832) [?:?]

sorry may be I was too quick in my response I did more tests  and now I get another error with parsing, please see the exception below
2021-01-11 07:40:11,731 ERROR n.c.b.j.v.s.SSHMonSampler: Sample failure for administrator@ltagw01.nrhitest.local:4444 [powershell.exe -ExecutionPolicy Bypass -File "E:\perf\Memory.ps1"]
java.text.ParseException: Unparseable number: ""
	at java.text.NumberFormat.parse(NumberFormat.java:434) ~[?:?]
	at nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonSampler.generateSamples(SSHMonSampler.java:71) [jmeter-sshmon-1.3.jar:?]
	at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.processConnectors(MonitoringResultsCollector.java:215) [jmeter-plugins-cmn-jmeter-0.6.jar:?]
	at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.run(MonitoringResultsCollector.java:122) [jmeter-plugins-cmn-jmeter-0.6.jar:?]
	at java.lang.Thread.run(Thread.java:832) [?:?]

Well, is it possible that this is the actual output of the remote command?
What's in the Memory.ps1 script?

Well, is it possible that this is the actual output of the remote command?
What's in the Memory.ps1 script?

Memory.ps1 was fine , you can see the results in the image which is attached with my first comment.
The issue was:
when I was running the sshd in debug mode to analyze the requests then it was taking the name of the performance counter in OS language ( German)  and when I used this as proper windows service, it started taking these counter name in English. So I just had to change the counter names from German language to English, then it started working again.. Thanks a lot for writing this plugin, it will help me a lot. I will close this issue now.

Memory.ps1 was fine , you can see the results in the image which is attached with my first comment.
The issue was:
when I was running the sshd in debug mode to analyze the requests then it was taking the name of the performance counter in OS language ( German)  and when I used this as proper windows service, it started taking these counter name in English. So I just had to change the counter names from German language to English, then it started working again.. Thanks a lot for writing this plugin, it will help me a lot. I will close this issue now.

By the way, you can change the JMeter Property jmeter.sshmon.locale to match the OS language.

By the way, you can change the JMeter Property jmeter.sshmon.locale to match the OS language.

Thanks and sorry for the late response, should the value be en for english, is there a link for location codes ?

Thanks and sorry for the late response, should the value be en for english, is there a link for location codes ?

Yes, en would work.
Here's a link https://en.m.wikipedia.org/wiki/List_of_ISO_639-1_codes

Yes, en would work.
Here's a link https://en.m.wikipedia.org/wiki/List_of_ISO_639-1_codes

Thanks I will try this out.

Thanks I will try this out.


Fix log file removal failure in windows

"fixed" with new username parameter, this will probably be used 100% of times when using config - when not using a config, it will still be an issue - but this should be very limited in the future.


DRILL-6639: Exception happens while displaying operator profiles for …

…some queries
Details in Jira ticket

@vdiravka adding operators names into proto fixes part of the issue. Query profile page should be displayed correctly even if operator name is not in proto. Show NA or something else. Actually, it was this way before, don’t know which commit changed this behavior.

@arina-ielchiieva The operator type was always (in earlier Drill versions) null, if operator doesn't exist in protobuf file. But DRILL-6279 (OperatorWrapper.getSpillCycleMetricIndex()) enabled using of operatorType without handling null cases. It is possible to handle everywhere such null cases. But the proper way is to update to the latest protobuf (3.6.0 for now) version, which allows to set UNRECOGNIZED Enum NullValue.
If it is fine I will proceed with a new Jira ticket.

@vdiravka could you please also check children of EasyFormatPlugin for missing operator types: public int getReaderOperatorType() { method. Looks like HttpdLogFormatPlugin, ImageFormatPlugin, SequenceFileFormatPlugin are missing value in proto enum.

+1, LGTM.


Document how to make this work

What if I want to do the same in France?

This is now done! Or at least the readme provides a decent set of pointers. :)


Google map3 58

Builds off of https://github.com/patsonluk/airline/commit/51b06895e92aa59f10c6e299cfaffde9bdf26272, so I'd suggest just looking at the individual commits.
Apologies in advance for the styling getting picked up.  I've since changed it to only format modifications on save.  Let me know if the request is too time consuming to discern differences and I'll try to get one up without styling changes.

Why

The current version is deprecated
I want to use some of the newer features like vector/3d maps in the future :)
Doing a large upgrade like this, touches a lot of places, so it helps me ramp up faster on how everything is fitting together from the UI perspective.

Major Changes:
Marker is deprecated
'AdvancedMarkerElement' is the replacement. Google's Migration Guide
Some key notes:

Custom data isn't allowed in the constructor, so this is set after the marker is constructed now
AdvancedMarker requires the use of MapId, googles way of setting map styles in the cloud. Note that with the use of Map ID, dynamically changing map styles locally is no longer supported for an existing map.  You're forced to create a new map, which is then billed, so I removed this functionality (more details in map-styles.js).
Icon can't be passed directly.  Instead, it needs an HTML element.  Also note that elements aren't cloned internally, so if you re-use an element in two markers, the map will 'move' it to the second assignment.
Reduction in setters  (e.g., marker.setMap, marker.setVisibility).  Suggested alternative is to directly modify the property (marker.map = null is equivalent to marker.setMap(null))
Needed to tweak the Z-indexes of the markers and the InfoWindows as by default with the new version, the markers were showing on-top of the info window.

New Constant
Given the MapId introduction above, this is now a constant that needs to be generated in the Google Map Cloud. See Google documentation on doing this.  I currently have the constant in map-styles.js: GOOGLE_MAPS_DARK_STYLE_MAP_ID  It's probably better suited for Constants.scala in the future though.
Known Bugs:

Animation on Flight path seems slightly offset for some reason.  I'm not sure why it's happening as the polyline remains using spherical as does the interpolate on the animation, both using the same to/from. Perhaps CSS related or some image artifact?
Application of Map ColorScheme has a slight flicker at the start (shows light then swaps to dark right after init)

👋🏼 Many thanks for the change again. I have started another branch with only the code change (exclude space, semi-colon changes).  https://github.com/patsonluk/airline/tree/google-map-3
Into the future, please make sure the PR has no space/styling changes, otherwise it's quite challenging to review the actual code changes and keep a relevant code history (i'm pretty sure you are aware of that already, since this is an older commit, doesn't hurt to bring that up again 😜 )
At this point, im reluctant to switch to V3  as u have already quite well documented with the styling issues. But just for reference in the future:

The cost will likely be similar as we are using the dynmaic API already (which most of the time we disabled it due to exceeded quota since it's just too expensive...)
Using Map ID itself is not too bad, to support 2 styles we will likely need to:
i. Setting 2 Map ID, one with light and another with dark styling. From the look of the google community, they aren't going to allow changing style on the fly. which sucks
ii. Because of i. we will likely need to force refresh to redraw everything :/
iii. And most importantly. It's just a pain to setup new map style. they don't even have any existing styling library to choose from, or important from legacy style json. It's a mess....im not going to rebuilding all the styling from ground up. Until they provide an easier mean to migrate, Im not going to switch.
If google map really is a huge pain to use, we might need to consider other map api. Unfortunately, that could mean some major rewrite or removal of certain animations. We will see...


Feature/fix cmake

Some cached parameters were allowing the build to pass on my pc, but fail on all others. Fixed cmake to actually work.
Also switched to angle only global optimization and tweaked parameters.

selfLGTM


Unable to parse HTML

Here's some HTML that Laramie fails to parse:
<!doctype html>

    <title>foo</title>

a	b	c

When you use parse on this string, you get an error:
[in-row] Cannot handle token: #f

The main part is important: if you drop the  and closing , there is no error.


Error "cannot unmarshal !str 'roborock...' into struct{}" when trying to setup Roborock camera

After following the steps from https://github.com/AlexxIT/go2rtc#source-roborock, in the last step "Copy roborock://... source for your vacuum and paste it to go2rtc.yaml config" this error is displayed:

streams:
  myrobot1: roborock://...

Thank you @AlexxIT for the quick response, and it works!!


Site not working on sutrastoriesrpg

Reported via Twitter.
This matches a couple of other reports I’ve had by email telling me that it starts reading posts from the API, then just gives up. I suspect I might be hitting a Tumblr rate limit somewhere, but hard to tell without more debugging.

I think this was fixed by 27d74be, please reopen if the issue persists.


Add ReBRAC configs and source

@vkurenkov @Scitator @Howuhh review is needed

I believe we should merge it after https://github.com/tinkoff-ai/CORL/issues/68 is done to avoid noqa

I believe we should merge it after #68 is done to avoid noqa

I think we can just live with that

@DT6A it's time to remove all # noqa once and for all! Merge main, reinstall dev requirements (ruff, pre-commit), and run pre-commit install -> pre-commit run --all-files.

@vkurenkov @Howuhh @Scitator ready to merge


GSE136831 - COPDalveolarNiche

Project short name:
COPDalveolarNiche
Primary Wrangler:
Enrique
Secondary Wrangler:
Associated files

Google Drive: folder

Published study links

Paper: Characterization of the COPD alveolar niche using single-cell RNA sequencing

Accessioned data:

GSE136831 - scRNA-seq patients
GSE168299 - scRNA-seq mouse
GSE47460 - microarray from total RNA

Ingest project

Key Events

[ ] Convert published metadata to HCA spreadsheet
[ ] Manually curate dataset to meet HCA metadata standard
[ ] Collect any matrix and cell-type annotation files
[ ] Are the analysis files suitable for CellxGene? If something is missing get in touch with the authors to request it
[ ] Upload sheet to validate metadata
[ ] Transfer raw files to ingest to validate data files
[ ] Check linking using ingest graph validator
[ ] Ask the Secondary Wrangler for an end-to-end review of the project. Ask the Expertise Wrangler to review specific tabs if needed
[ ] Submit dataset to Production
[ ] Complete the Export SOP
[ ] Convert project data to SCEA format following the SCEA conversion SOP if appropriate

I'm not sure which accession the network is interested in. My guess would be GSE136831 - scRNA-seq patients but the original paper for this data is actually  Single-cell RNA-seq reveals ectopic and aberrant lung-resident cell populations in idiopathic pulmonary fibrosis
The re-analysis paper uses a subset of the accession too.
I've emailed Ciro (lung bionetowork) and I'm waiting for a reply

Linking the two tickets here not to forget they both reference one single entry in the Lung Bionetwork tab (Rosas_Kaminsky 2022). #1084

only human data are required. @idazucchi to check if the fastq files exist in the DCP

lungPopulationsIPF was publisehd in the DCP in April 2022, while fastq files from GSE136831 only became public on 2022-10-03 so they are not in DCP.
I'm checking with CIro if they need both analysis and sequence files, but regardless of that I think we should update the project and add sequence files
reopening the old ticket for lungPopulationsIPF ?

@gabsie to reach out the lung integration contact. We can close the ticket. @ESapenaVentura to reference the zenhub ticket in Ingest and mark as stalled.


Compiling Error

I just installed react native on windows, then i typed
react-native init IslandFun
then
react-native start
in another DOS shell i typed
react-native run-android
then i get this error below, Does anybody know whats wrong???
.....
[snip]
Download https://jcenter.bintray.com/com/android/tools/jack/jack-api/0.13.0/jack-api-0.13.0.jar
Download https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.jar
Download https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.3.2/proguard-base-5.3.2.jar
Download https://jcenter.bintray.com/com/android/tools/external/com-intellij/uast/162.2228.14/uast-162.2228.14.jar
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to D:\Android\sdk \ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':app'.

Trailing char < > at index 14: D:\Android\sdk \package.xml

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 53.315 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

remove space in your sdk folder D:\Android\sdk \package.xml.

you mean space in my sdk folder name? there isnt any space

Maybe try to reconfigure you android sdk, possible just use the one bundled with android studio.

PROBLEM SOLVED - i started over and follows the steps at https://facebook.github.io/react-native/docs/getting-started.html
error went away, but now have different error..
I have the Android emulator open, and the adb server has already started, but still i get this error
112:21:08: Starting Android...
Error running adb: protocol failure
› Press a to open Android device or emulator.
› Press s to send the app URL to your phone number or email address
› Press q to display QR code.
› Press r to restart packager, or R to restart packager and clear cach
› Press d to toggle development mode. (current mode: development)

can you run adb devices in your terminal. Also you should ask such questions in stackoverflow.

never mind i tried Expo and it worked, everything work now, thanks

This is so F*** AMAZING!!!


Merriam Webster to Oxford Dictionary

If anything needs changing, please let me know

Be sure to change the name of the cog in main.py as well. Will do a more extensive review later in the month. Please keep PR open

Feat achieved in #154


can't open Pysilon.bat

When trying to open the file i get this message (Nie mo#===============================================================#
Software terminated.

If you like this project please consider giving me a star
to let others know that this is something worth looking into.
#===============================================================#
Press any key to continue . . .)

Same problem, bruh

dont run it as admin. If you run it as admin, it will search for the files in system32

Guys, go to microsoft store and download python. If it is still not working, try from the python website.

Hey! I am really sorry for my recent absence. I will look forward to fix the issues in the following week.

Guys, go to microsoft store and download python. If it is still not working, try from the python website.

Don't get it from the microsoft store please, it's a bad version, just get it from the official website. The latest release should be fine. Also, upon installing you'll be prompted with a checkbox which says "add python to PATH" you need to make sure to check that. Then try re-running the script and tell me how it went.

I am having this problem i just did what you said it doesnt work

you have an open issue no need to write in here.


Different cursor focus behavior for breakpoints & exceptions

Issue Type: Bug
There is different cursor focus behavior when a debug adapter reports a process stop due to a breakpoint and when the stop is due to an exception. The cursor focus is retained when hitting a breakpoint but not when hitting an exception.
Note that this behavior difference occurs when preserveFocusHint is not true in the Stopped event reported by the Debug Adapter. In both cases the file with the breakpoint/exception is opened if it wasn't already and the editor is recentered to display the line that caused the breakpoint/exception but the cursor only loses focus in the case of an exception.
Repro steps

git clone https://github.com/microsoft/vscode-mock-debug.git
cd vscode-mock-debug && npm install && code .
Run extension (F5)
Set a breakpoint on the first line under the Exceptions section in vscode-mock-debug/sampleWorkspace/readme.md (line 59)
Debug readme.md (F5)
*** Process stops at entry ***
Type anything into debug console (e.g. "abc")
Continue process (F5)
*** Process stops at breakpoint ***
Observe cursor is still focused on debug console and you can continue to enter text
Continue process (F5)
*** Process stops at exception ***
Observe cursor is no longer focused on debug console

VS Code version: Code 1.66.0 (Universal) (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:04.419Z)
OS version: Darwin x64 21.4.0
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2800)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
4, 5, 5

Memory (System)
16.00GB (0.17GB free)

Process Argv
. --crash-reporter-id b5a447da-2982-4269-91cd-d8398f01fd39

Screen Reader
no

VM
0%

Extensions (29)

Extension
Author (truncated)
Version

tsl-problem-matcher
amo
0.6.2

vscode-bazel
Baz
0.5.0

memento-explorer
bwa
0.1.1

esbuild-problem-matchers
con
0.0.2

arm
dan
1.7.4

binary-plist
dni
0.8.0

LogFileHighlighter
emi
2.15.0

vscode-diff
fab
1.4.2

shell-format
fox
7.2.2

misc-additions
iva
1.0.6

better-cpp-syntax
jef
1.15.13

nickel-syntax
kub
0.0.1

jupyter
ms-
2022.3.1000901801

remote-ssh
ms-
0.78.0

remote-ssh-edit
ms-
0.78.0

vscode-remote-extensionpack
ms-
0.21.0

vscode-js-profile-flame
ms-
1.0.0

indent-rainbow
ode
8.2.2

shellman
Rem
5.6.0

bash-debug
rog
0.3.9

shellcheck
tim
0.19.0

errorlens
use
3.4.2

vim
vsc
1.22.2

change-case
wma
1.0.0

clang-format
xav
1.9.0

propertylist
zho
0.0.2

material-theme
zhu
3.13.20

Friendly ping.
Just confirmed this is still an issue with:
Version: 1.69.2 (Universal)
Commit: 3b889b090b5ad5793f524b5d1d39fda662b96a2a
Date: 2022-07-18T16:12:57.074Z (2 wks ago)
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 21.6.0

Seems that we focus the exception widget purposely when it is shown, that is what you are commenting on, right? We do this for accessibility. If this is really annoying, we could probably provide a setting to disable it.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


UHF-11137: Reusable test workflow

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.17%. Comparing base (18aa1b6) to head (a52af59).
Report is 23 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #42      +/-   ##
============================================
+ Coverage     95.89%   96.17%   +0.27%
- Complexity       56       69      +13
============================================
  Files             4        5       +1
  Lines           195      235      +40
============================================
+ Hits            187      226      +39
- Misses            8        9       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Bug]: Refresh browser then logged out

What happened?
After login, when I perform F5 refresh operation on the interface, I am logged out to the login interface.
Steps to Reproduce
After login, when I perform F5 refresh operation on the interface, I am logged out to the login interface.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct

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

Not a bug, see this: https://github.com/danny-avila/LibreChat/discussions/572
TLDR: you need to access the app via HTTPS if you are not on localhost. There are many ways to do this or run the app in dev mode (Not recommended if remote deployment)


Importing IntroToRx.com content

Hello and thank you for contributing to dotnet/reactive. Before you proceed by creating a pull request (PR):

Please make sure your contribution is in line with the project's licensing model and
your employment allows you to contribute to open source. ✅

Please sign the Contributor License Agreement in case the CLA bot asks you
for being a new contributor. ✅ (Approved Thu, 14 May 2015)

Please make sure you target the main branch when creating the PR. ✅

What is the nature of your contribution?
Enhancement
This PR addresses #836 and #1563 .
Discussion has occurred offsite, and an agreement has been made for myself (@LeeCampbell) to hand over the IntroToRx content to the community as long as it retains attribution.
Further edits are underway, on the original IntroToRx site - https://github.com/LeeCampbell/IntroToRx/pull/36
These edits can now be migrated to this site.
Note that the content that is being imported was in an early version of markdown that was used to generate HTML for IntroToRx.com and the Kindle book available on Amazon.
As such it has formatting and content that will no longer be relevant and can be omitted.
cc @HowardvanRooijen @idg10

Thank you very much for this @LeeCampbell
Documentation is hugely important, and Rx in particular has some complex concepts people need to understand, so it really needs good explanations of why it works how it does, and how to use it. So we're very grateful to be able to build on your work. Your IntroToRx site was a great gift to the community, and we are excited to be able to give it a new lease of life as the basis of the main Rx.NET documentation site.


i want to just use ompl(rrt) as a local planner,is it feasible?

Originally posted by @longjianquan in https://github.com/gkouros/rsband_local_planner/issues/11#issuecomment-432073911

Wrapping the RRT implementation of OMPL is possible, but using it as a local planner might be ill-advised because due to the random nature of the planner, the robot would oscillate a lot.


Support local identity provider

Authenticate a user with his local account

The authentication &  consent are working since the commit : https://github.com/thabart/SimpleIdentityServer/commit/85d0fb67302f233cf8b4d3f29af51717b5396507


Events from same method always grouped into same group w/ sentry-logback

I've noticed all events from a function grouped into same group w/ sentry-logback.
With sentry-logback, all events will have exception interface or stacktrace interface. Since one of this if-else clause will always be true.
This means when we send log like logger.warn("hoge"), this event's interface will always be stacktrace interface (and I believe it will never be event with message interface).
In sentry side, grouping of events with stacktrace interface is decided at this method. And with sentry-logback which will not send context_line attribute, grouping will be done by just file name, class name and method name.
This result in titled situation, "Events from same method always grouped into same group w/ sentry-logback".
Note: The fingerprint can be used in this kind of situation. But raven-logback is not supporting it.

Hey @shimpeko
I agree this is an issue. I'll look into it.
Thanks

Created https://github.com/getsentry/sentry/pull/5428

Merged that PR, should fix on next deploy.

This actually had to be reverted here: https://github.com/getsentry/sentry/commit/439c413d803bbffcc38b03f8fe73fd446dafb80e
The problem is that parameterized logging support is very bad. If people log something like log.warn("Error with user {}", userId) then each of those becomes its own error.
We need a way to fix this for both "sides" of the issue.

@maciejwalkowiak do you know if this is still an issue?

I don't exactly understand the issue. Perhaps a code snippet that illustrates the problem would be handy.

Note: The fingerprint can be used in this kind of situation. But raven-logback is not supporting it.

We support fingerprint on 3.0:
Sentry.withScope(s -> {
s.setFingerprint(...);
logger.warn(..);
});


csv file does not import in tool

The tutorial for the Watson Conversation service asks to import a csv file  car_intents.csv into the conversation tooling. I can't manage import : is there something wrong with the format ?

Make sure you are importing a csv file. I just merged some changes to the README from @sgregglives.

@PhilippeComte As German said, make sure to check the format of the csv before importing. We've had complaints/issues from folks who have saved the html page https://github.com/watson-developer-cloud/conversation-simple/blob/master/training/car_intents.csv as a CSV file.. Users must navigate to this page to save as csv directly: https://raw.githubusercontent.com/watson-developer-cloud/conversation-simple/master/training/car_intents.csv

Conversation is asking to import CSV only and I can only find a JSON file under master/training!

Hello @alanbraz  , the Conversation tutorial does no longer require a csv file.
https://www.ibm.com/watson/developercloud/doc/conversation/tutorial_basic.shtml
The Conversation is either filled manually tool or you import a workspace (Import Workspace) which is a json file.
Import a workspace
Select a JSON ﬁle then choose which elements from the workspace to import.
So you should forget about csv file

I got it! Import a Workspace is a JSON file, so it is correct!
The first time I did it, I created the workspace manually, and tried to import internally, and that one, only accepts CSV!!
Thanks


Support for Google Global Site Tag (gtag)

Hi guys, I noticed that redux-beacon isn't working with Google Global Site Tag.
I started working on a PR for this, adding another module to targets folder named google-global-site-tag. Will update on progress!

Sounds good @shayc!
Let me know if you have any questions.

Thanks for reporting the issue @shayc !

Any news on this? Thanks

@mihaiblaga89 I've been having some packed days lately with (moving an apartment), hadn't had much time to work on a PR. Feel free to start your own just let me know, thanks!

For those needing Global Site Tag support here are the steps you can follow as we wait for this to be added to Redux Beacon.
Step 1
Like with the Google Analytics target, the first step is to add the tracking snippet to the head of your single page app's index.html file:
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments)};
  gtag('js', new Date());
  gtag('config', 'GA_TRACKING_ID', { 'send_page_view': false });
</script>

⚠ Be sure to delete the gtag('config', 'GA_TRACKING_ID'); line from the tracking snippet provided by Google Analytics, and replace it with gtag('config', 'GA_TRACKING_ID', { 'send_page_view': false }); where GA_TRACKING_ID is the one provided to you by Google Analytics.
Step 2
Next, copy & paste the following function wherever you are configuring Redux Beacon in your project.
function GoogleSiteTag(gaTrackingId) {
  return function target(events) {
    // Ensure the target works when doing SSR
    if (typeof window === 'undefined') {
      return;
    }

    // Ensure the Google Site Tag snippet is available
    if (typeof window.gtag !== 'function') {
      throw new Error('window.gtag is not a function. Did you forget to include the Google Site Tag snippet?');
    }

    // Push the events to Google Site Tag
    events.forEach(event => {
      if (event.type === 'page') {
        gtag('config', gaTrackingId, event);
      } else if (event.type === 'event') {
        gtag('event', event.name, event);
      }
    });
  };
}

Step 3
Then provide this function/target when creating the middleware or a meta reducer:
const gaTrackingId = 'My GA Tracking Id'; // <<< Replace with your tracking Id.
const middleware = createMiddleware(eventsMap, GoogleSiteTag(gaTrackingId));
const metaReducer = createMetaReducer(eventsMap, GoogleSiteTag(gaTrackingId));

Step 4
Finally, in your event definitions if you want to push a page view:
const pageView = (action) => ({
   type: 'page',
   page_title: 'whatever' // probably get this by mapping the route to a map of page titles
   page_location: action.payload.location // or wherever this is in your action
   page_path: action.payload.path // or wherever this is in your action
});

And, if you want to push an event:
const event = (action) => ({
   type: 'event',
   name: 'event_name', // You need this
   'parameter_1': 'value_1',
   'parameter_2': 'value_2',
});

Review
What we've done here is create a custom Redux Beacon target for Google Site Tag. It's a very bare-bones target that I hacked together on my lunch break. I'm leaning on y'all to help me test it out. I do intend to add a similar target to Redux Beacon in the next few days that is a little more robust and feature-rich. Until then, I hope this'll do.

I would love a pull request that adds this target to Redux Beacon (with tests and support for multiple tracking Ids)
I would also accept a pull request adding documentation around creating custom targets, for scenarios like these where Redux Beacon doesn't expose its own.

Happy analytics tracking 🙂

Finally published! https://rangle.gitbook.io/redux-beacon/targets/googleanalyticsgtag


Added single qoute as completion trigger character

It seems that when added single quote to list of completion trigger characters - VSCode trims it from completion value if it's there on the last position. As an effect, it fixes #219
However, I wasn't able to find any docs on this nor the code if that's really true - I found this fix by luck - so if I may - please triple check if it does not break anything.
One more - do I need to put this checklist below on PRs?
Contributing a feature

[x] I have opened a new issue for the proposal, or commented on an existing one, and ensured that the bicep maintainers are good with the design of the feature being implemented
[x] I have included "Fixes #{issue_number}" in the PR description, so GitHub can link to the issue and close it when the PR is merged
[x] I have appropriate test coverage of my new feature

Codecov Report

Merging #1377 (6d9f7b2) into main (b02617d) will increase coverage by 30.22%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main    #1377       +/-   ##
===========================================
+ Coverage   64.65%   94.87%   +30.22%
===========================================
  Files         343      339        -4
  Lines       17415    17256      -159
  Branches       14        0       -14
===========================================
+ Hits        11259    16372     +5113
+ Misses       6156      884     -5272

Flag
Coverage Δ

dotnet
94.87% <100.00%> (+29.93%)
:arrow_up:

typescript
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...icep.LangServer/Handlers/BicepCompletionHandler.cs
89.47% <100.00%> (+36.84%)
:arrow_up:

...cep.Core.UnitTests/FileSystem/FileResolverTests.cs
79.31% <0.00%> (-20.69%)
:arrow_down:

src/Bicep.Core.UnitTests/Utils/CompilerFlags.cs
33.33% <0.00%> (ø)

...Bicep.Core.UnitTests/FileSystem/PathHelperTests.cs
100.00% <0.00%> (ø)

src/vscode-bicep/src/utils/logger.ts

src/vscode-bicep/src/utils/telemetry.ts

src/vscode-bicep/src/language/client.ts

...rc/Bicep.Core/TypeSystem/ResourceScopeReference.cs

src/vscode-bicep/src/extension.ts

src/Bicep.Core/TypeSystem/ResourceReferenceType.cs
80.00% <0.00%> (ø)

... and 160 more

Codecov Report

Merging #1377 (6d9f7b2) into main (b02617d) will increase coverage by 30.22%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main    #1377       +/-   ##
===========================================
+ Coverage   64.65%   94.87%   +30.22%
===========================================
  Files         343      339        -4
  Lines       17415    17256      -159
  Branches       14        0       -14
===========================================
+ Hits        11259    16372     +5113
+ Misses       6156      884     -5272

Flag
Coverage Δ

dotnet
94.87% <100.00%> (+29.93%)
:arrow_up:

typescript
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...icep.LangServer/Handlers/BicepCompletionHandler.cs
89.47% <100.00%> (+36.84%)
:arrow_up:

...cep.Core.UnitTests/FileSystem/FileResolverTests.cs
79.31% <0.00%> (-20.69%)
:arrow_down:

src/Bicep.Core.UnitTests/Utils/CompilerFlags.cs
33.33% <0.00%> (ø)

...Bicep.Core.UnitTests/FileSystem/PathHelperTests.cs
100.00% <0.00%> (ø)

src/vscode-bicep/src/utils/logger.ts

src/vscode-bicep/src/utils/telemetry.ts

src/vscode-bicep/src/language/client.ts

...rc/Bicep.Core/TypeSystem/ResourceScopeReference.cs

src/vscode-bicep/src/extension.ts

src/Bicep.Core/TypeSystem/ResourceReferenceType.cs
80.00% <0.00%> (ø)

... and 160 more

Thanks for looking into it. I will take a look this week.

Thanks for looking into it. I will take a look this week.

@majastrz - how is it? I think we'll be good with it.

Didn't get a chance to look at it last week. Will try to do this week. I think it'll be ok - just need to manually go through all the completion scenarios.


Completed job not getting cleared out of active_hpc_job_ids

jade v0.4.9
In this screenshot, you can see that one job is done and two are submitted, but there are still three active_hpc_job_ids:

For reference, here is my HPC queue at the time:

It seems to have cleared itself overnight somehow ...

I must have forgotten something about the code. Perhaps you can only see the error if you run the jade show-status command. The fixes I described still apply, and I'll implement them next week. Thanks for reporting it.


Slightly simpler ESM

I'll write this down so you can eventually consider it, evaluate it, ignore it, throw it away, or insult me, if you feel like that.
This is a slightly simplification of the current file, for ESM.

less moving parts (no runtime fields added, such name or bind, and nothing is deleted. V8 is very fast with these kind of objects as long as delete is not used, and runtime properties are not assigned.
no need for the class. typeof is faster, and the signature already guard against strings or expected objects that could be just an interface, at this point
easier, scoped, strings and values access, removing the need to look for the right array to modify

Best Regards

export const SQL = (tpl, ...values) => {
  const strings = tpl.slice(0)
  return {

    // Accessors

    get bind() {
      return this.bound ? values : void 0
    },

    /** Returns the SQL Statement for Sequelize */
    get query() {
      return this.bound ? this.text : this.sql
    },

    get sql() {
      return strings.join('?')
    },

    /** Returns the SQL Statement for node-postgres */
    get text() {
      return strings.reduce((p, c, i) => `${p}$${i}${c}`)
    },

    get values() {
      return this.bound ? void 0 : values
    },

    // Methods

    /**
     * @param {SQLStatement|string} statement
     * @returns {this}
     */
    append(statement) {
      if (typeof statement === 'string')
        strings[strings.length - 1] += statement
      else {
        strings[strings.length - 1] += statement.strings[0]
        strings.push(...statement.strings.slice(1))
        values.push(...statement.values)
      }
      return this
    },

    /**
     * @param {string} name
     * @returns {this}
     */
    setName(name) {
      this.name = name
      return this
    },

    /**
     * Use a prepared statement with Sequelize.
     * Makes `query` return a query with `$n` syntax instead of `?`  and uses `bind` instead of `values`
     * @param {boolean} [bound=true] bound If omitted, defaults to `true`
     * @returns this
     */
    useBind(bound = true) {
      this.bound = bound
      return this
    },

    // Properties

    /** Default bound value as false */
    bound: false,

    /** Default name as empty string */
    name: '',

    /** Initial strings */
    strings
  }
}

export default SQL

Did you test this? It would make more sense to submit a PR so we can have CI run over it and see if all tests still pass.

I wanted to know if you'd be happy, since it's some refactoring and there's no exported class anymore.
GitHub also swallows the double $ in the reduce, there should be a $$i instead of $i.
I can try to test it whenever I have time and see how it goes. If it works, would you be OK with the MR?
Regards

I am not confident that this actually works yet so I can't promise you that it will be merged. Just submit a PR and when CI passes I can review it. Commenting on an issue is not an efficient way to comment on code.

All green, and coverage 100% https://github.com/felixfbecker/node-sql-template-strings/pull/103

OK, I'll close this since it's not moving and it won't bring much improvements on the real-world.


Helm: exporters x509 authentication

What did you do?
Bluemix does not allow bearerToken authentication against nodes, only x509 authentication. In the current Helm chart there is no way to specify for any or all exporters to use x509 authentication in place of bearerToken.
In my instance I manually updated that ServiceMonitor but am looking for a more maintainable way that still will work with the Helm chart. I haven't yet been able to come up with what I consider a clean implementation to update the kube-prometheus and exporter charts for this feature and was hoping someone in the community might have an idea of how to handle it.
I'd be happy to open a PR if someone had some insight on how best to achieve this.
Environment

Kubernetes cluster kind:
bluemix

Since we don't support the helm chart in this repo anymore, closing this issue. Feel free to open a new one if you think it's not valid, thanks!


change is_system_type() -> bool to system_type() -> Option<TypeId>

Objective

it would be nice to be able to associate a NodeId of a system type set to the NodeId of the actual system (used in bevy_mod_debugdump)

Solution

make system_type return the type id of the system

that way you can check if a dyn SystemSet is the system type set of a dyn System

I don't know if this information is already present somewhere else in the scheduler or if there is a better way to expose it

bors r+


Help with setup

I need help at setting up my Alpha ESS Monitoring at home.
My goal (big picture): I like to have a permanent display of my current PV kW and battery level. I'll build a device with two LED stripes, driven by an ESP32 or ESP8266 with WLED. Each stripe will show a percentage of power from PV and SOC. Connecting WLED with Home Assistant is no problem :) but I need some values from Alpha ESS to display ;)
My Home Assistant runs on Raspberry Pi 3 (pre-build Home Assistant Operating System 8.1) and downgraded to Home Assistant Core 2022.6.2 (read about #12 ), Alpha ESS to MQTT version 0.1.4, Mosquitto broker 6.1.2
Configuration YAML from Alpha ESS to MQTT
log_level: debug
base_topic: alphaess
timeout: 60
username: xxxxx
password: xxxxx
Running in debug log level, I can see values from my ESS in the log viewer:
Monitor data key: ALA00nnnnnnnnnn		{"_id": "xxxxxxxxxxxxxxxxxxxxxxxx", "createtime": "2022-07-17 18:47:36", "uploadtime": "2022-07-17 20:47:25", "sn": "ALA00nnnnnnnnnn", "ppv1": 0.0, "ppv2": 0.0, "ppv3": 0.0, "ppv4": 0.0, "preal_l1": 423.0, "preal_l2": 0.0, "preal_l3": 0.0, "pmeter_l1": -261.0, "pmeter_l2": 225.0, "pmeter_l3": 36.0, "pmeter_dc": 84.0, "soc": 100.0, "factory_flag": 0, "pbat": 302.0, "sva": 0.0, "varac": 0.0, "vardc": 0.0, "ev1_power": 0, "ev1_chgenergy_real": 0.0, "ev1_mode": 0, "ev2_power": 0, "ev2_chgenergy_real": 0.0, "ev2_mode": 0, "ev3_power": 0, "ev3_chgenergy_real": 0.0, "ev3_mode": 0, "ev4_power": 0, "ev4_chgenergy_real": 0.0, "ev4_mode": 0, "poc_meter_l1": 0.0, "poc_meter_l2": 0.0, "poc_meter_l3": 0.0}
Waiting 60 seconds
The Mosquitto broker is installed and default config is not changed:
Configuration YAML from Mosquitto broker
logins: []
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: false
folder: mosquitto
I did create a Home Assistant user named "mosquitto" according to the install documentation.
This user is "active" but not an "administrator" and got a password.
Log output from Mosquitto broker:
[services.d] starting services
[services.d] done.
[21:10:21] INFO: Starting NGINX for authentication handling...
[21:10:21] INFO: Starting mosquitto MQTT broker...
1658085021: Warning: Mosquitto should not be run as root/administrator.
[21:10:26] INFO: Successfully send discovery information to Home Assistant.
[21:10:27] INFO: Successfully send service information to the Supervisor.
On my Integration overview I see a panel named "localhost MQTT". I configured the following broker options:
Broker: core-mosquitto
Port: 1883
Username: mosquitto
Password: (same as defined in User management :) )
Discovery is "enabled"
When I start listening the the topic "alphaess" no messages are received for a plenty of minutes. On the other hand the Alpha ESS add-on pulls values every minute :)
My Question is: How can I ensure the Alpha ESS add-on delivers to mosquitto? Did I connect them properly? Where should the messages be viewable? And how can I generate events from the messages to update the WLED device?

So you're not getting any messages on any alphaess/# topic?
I just tried to listen to alphaess/# here: https://my.home-assistant.io/redirect/config_mqtt/
If the addon connects to your mosquitto MQTT Broker, you should see something like this as soon as the alphaess addon started:
1658088731: New connection from <IP_ADDRESS>:40065 on port 1883.
1658088731: New client connected from <IP_ADDRESS>:40065 as auto-7F808..some-id.. (p2, c1, k60, u'addons').

I think I forgot to attach /# :+1:
Listining to alphaess/# I see messages :)
Message 2 received on alphaess/ALA001021091154 at 18:21:
{
    "_id": "xxxxxxxxxxxxxxxxxxxxxxxx",
    "createtime": "2022-07-18 16:20:54",
    "uploadtime": "2022-07-18 18:20:43",
    "sn": "ALAnnnnnnnnnn",
    "ppv1": 164,
    "ppv2": 190,

Where do I configure the sensors from alphaess.yaml? I tried to add them to the Alpha ESS add-on but it doesn't change(reduce) the amount of data sent via mqtt.
I'm mainly interested in Solar Generation and Solar Battery SOC and like to trigger an automation with WLED, when a value gets updated

You configure these sensors in Home Assistant itself, not in the Addon. Basically you can add them to your configuration.yaml with something like this:
mqtt:
  sensor:
    - name: "Battery SOC"
      state_topic: "alphaess/ALxxx"
      unit_of_measurement: "%"
      icon: mdi:battery
      value_template: "{{ value_json.soc }}"

but i'd recommend, you take a look into splitting up your configuration to make sure, in the future you can find everything easily: https://www.home-assistant.io/docs/configuration/splitting_configuration/

Thank you, that worked 👍

The left part of the circle show the PV power (max is 9600), right part is the battery state of charge
For testing I have 14 automation defined (0-13 LEDs on), with their according ranges. Works but not smart :) Since WLED expects a value between 0 and 100, can I skip the condition and use the sensor.solar_battery_soc as value in action? like:
alias: Battery SOC
description: ''
mode: single
trigger:
  - platform: mqtt
    topic: alphaess/#
action:
  - device_id: f0b7606ddacb2e93067f5189017ceaf8
    domain: number
    entity_id: number.wled_intensity
    type: set_value
    value: '{{ sensor.solar_battery_soc }}'

Complains with Message malformed: expected float for dictionary value @ data['value']

Issue is resolved, thank you :)


ARROW-1238: [Java] Adding Decimal type JSON read and write support

This change adds support to reading and writing Decimal type vectors from JSON files.  Data values are written as encoded hex and padded with 0's up to 16 bytes.
Added roundtrip unit tests.

It ended up to be really awkward to write decimal values to the vector.  Maybe there is an easier way I just missed?  The DecimalVector API just has set(int index, ArrowBuf value) so the basic procedure I took assuming I have a Java BigDecimal value:

Get a pointer to the vector buffer
Use DecimalUtilty.writeBigDecimalToArrowBuf that converts the value to a byte array and writes to the buffer at the given index
Need to set the validity vector bit to 1 for the given index

This is not very user friendly and there is lots of room for error - it also unsafe and assumes the vector already has the needed capacity. I'm assuming we don't want the vector API to directly accept a BigDecimal but what about a byte array? That would make things a little better as the DecimalUtility could convert the BigDecimal to a byte array, then any work on the vector buffer could be done internal and allow for a setSafe method.
What are your thoughts on the above @jacques-n @julienledem @icexelloss ?

Definitely agree that the interface can be improved. I see no reason not to support BigDecimal as another interface. We'd just need to assert that precision/scale match expected. I'm not quite following the note on the validity vector and the capacity management as NullableDecimalVector.Mutator.setSafe* methods have numerous different options:
setSafe(int index, int isSet, int startField, ArrowBuf bufferField )
setSafe(int index, NullableDecimalHolder value)
setSafe(int index, DecimalHolder value)
setSafe(int index, ArrowBuf value)

Hi @jacques-n , thanks for your response.
Regarding the NullableDecimalVector setSafe methods, my point was that DecimalUtility does not use these, but writes directly to an ArrowBuf.  While it would be possible to create a new ArrowBuf, write the BigDecimal value to it and then call setSafe(int index, ArrowBuf value), it is not very efficient because the value is actually copied 3 times, using an intermediate byte array.
Instead, it is more efficient to write the decimal value right to the inner vector data buffer, e.g NullableDecimalVector.getDataBuffer(), but that requires that the buffer has enough capacity and also the validity bit needs to be set after.
Are you saying it would be ok to add the following methods to NullableDecimalVector and DecimalVector?
set(int index, BigDecimal value)
setSafe(int index, BigDecimal value)

If not, I could probably add these type of functions to the DecimalUtility to make it more user friendly at least.

It appears that decimals are always 16 bytes in memory in Java

@wesm , I could look into adding support for 8 and 4 bytes values either before or after this PR is done so we could get integration fully working for decimals?

It feels awkward to me to have to use DecimalUtitlity to write a BigDecimal object to the vector. I don't see reason why we don't add:
set(int index, BigDecimal value)
setSafe(int index, BigDecimal value)

Thanks for the review @icexelloss .  I'll try out adding set methods for BigDecimal to the vector classes, but I do wonder if maybe there was a design reason to not do this. Sort of like how the date/time vectors do not have and set methods with friendly classes, but rely on the DateTimeUtility to convert the time values to the required form (like a long value).

I updated with adding these methods the Decimal vector APIs
set(int index, BigDecimal value)
setSafe(int index, BigDecimal value)

and writeDecimal(BigDecimal value) to the writer API

Updated with check for BigDecimal mismatch and tests, and added docs to DecimalUtility

@BryanCutler Thank you! LGTM.
@jacques-n Do you want to take another look at the setSafe(BigDecimal) method?

Is there anything preventing this from being merged?

I don't think so, let me take a quick look and then merge if all looks good

thanks @BryanCutler and @icexelloss and others!


Fixed interaction with gesture recognizers

If the range slider is placed on a view with a gesture recognizer (eg a scroll view)
the gesture recognizer can grab touch events making the slider difficult to control.
The Apple documentation for the UIView gestureRecognizerShouldBegin method mentions
that this method is used by UISlider to overcome this issue, so this is the approach
this patch uses.
The new page sheet presentation style in iOS 13 makes it more likely that the view
the range slider is on will have a gesture recognizer, and therefore be effected by
this problem.
While debugging this issue similar symptoms to issue #69 ("Handle stays enlarged
when tapped during drag of parent view") were encountered and fixed. The exact
reproduction steps described in issue 69 haven't been retested, but it's possible
this patch also fixes that issue.

Thank you very much for this - looks great and much appreciated!


Critical dependency: the request of a dependency is an expression

❯ package-size mocha

  package  size  minified  minified+gzipped
  mocha    ...   ...       ...

 ERROR  Compiled with errors!

Error:
WARNING in /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
153:20-37 Critical dependency: the request of a dependency is an expression

WARNING in /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
185:17-30 Critical dependency: the request of a dependency is an expression

WARNING in /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
222:26-39 Critical dependency: the request of a dependency is an expression

ERROR in /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/growl/lib/growl.js
Module not found: Error: Can't resolve 'child_process' in '/private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/node_modules/growl/lib'
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/growl/lib/growl.js 7:11-35
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/growl/lib/growl.js
Module not found: Error: Can't resolve 'fs' in '/private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/node_modules/growl/lib'
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/growl/lib/growl.js 8:9-22
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/buffer/index.js
Module not found: Error: Can't resolve 'base64-js' in '/Users/zeke/.config/yarn/global/node_modules/buffer'
 @ /Users/zeke/.config/yarn/global/~/buffer/index.js 11:13-33
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/utils.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/buffer/index.js
Module not found: Error: Can't resolve 'ieee754' in '/Users/zeke/.config/yarn/global/node_modules/buffer'
 @ /Users/zeke/.config/yarn/global/~/buffer/index.js 12:14-32
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/utils.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/buffer/index.js
Module not found: Error: Can't resolve 'isarray' in '/Users/zeke/.config/yarn/global/node_modules/buffer'
 @ /Users/zeke/.config/yarn/global/~/buffer/index.js 13:14-32
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/utils.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/stream-browserify/index.js
Module not found: Error: Can't resolve 'readable-stream/readable.js' in '/Users/zeke/.config/yarn/global/node_modules/stream-browserify'
 @ /Users/zeke/.config/yarn/global/~/stream-browserify/index.js 28:18-56
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/browser-stdout/index.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/stream-browserify/index.js
Module not found: Error: Can't resolve 'readable-stream/writable.js' in '/Users/zeke/.config/yarn/global/node_modules/stream-browserify'
 @ /Users/zeke/.config/yarn/global/~/stream-browserify/index.js 29:18-56
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/browser-stdout/index.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/stream-browserify/index.js
Module not found: Error: Can't resolve 'readable-stream/duplex.js' in '/Users/zeke/.config/yarn/global/node_modules/stream-browserify'
 @ /Users/zeke/.config/yarn/global/~/stream-browserify/index.js 30:16-52
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/browser-stdout/index.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/stream-browserify/index.js
Module not found: Error: Can't resolve 'readable-stream/transform.js' in '/Users/zeke/.config/yarn/global/node_modules/stream-browserify'
 @ /Users/zeke/.config/yarn/global/~/stream-browserify/index.js 31:19-58
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/browser-stdout/index.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /Users/zeke/.config/yarn/global/~/stream-browserify/index.js
Module not found: Error: Can't resolve 'readable-stream/passthrough.js' in '/Users/zeke/.config/yarn/global/node_modules/stream-browserify'
 @ /Users/zeke/.config/yarn/global/~/stream-browserify/index.js 32:21-62
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/browser-stdout/index.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha

ERROR in /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mkdirp/index.js
Module not found: Error: Can't resolve 'fs' in '/private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/node_modules/mkdirp'
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mkdirp/index.js 2:9-22
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/reporters/xunit.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/reporters/index.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/lib/mocha.js
 @ /private/var/folders/nj/9554mvgj07xdh61jbyhkbtq80000gn/T/package-size-jy2zbwpuhoh3yccv7vi/~/mocha/browser-entry.js
 @ multi mocha
    at /Users/zeke/.config/yarn/global/node_modules/package-size/lib/index.js:114:11
    at next (native)
    at onFulfilled (/Users/zeke/.config/yarn/global/node_modules/co/index.js:65:19)

❯ package-size -v
1.1.1

hmm why do you want to see the bundle size of mocha? you will never use it in browser I guess and it only supports packages that can be used in browser.

Fair enough.. I just typed the first module name that came to mind. Maybe a more helpful error message would be good here.. something like "This doesn't appear to be a browser-friendly module"

Error:  Can't resolve 'fs':
// webpack.config.js
    node: {
      fs: 'empty'
    }

Error : (Critical dependency &&  /growl.js
Module not found: Error: Can't resolve 'child_process' )  How did you resolve this issure

@ChenYangShao this is for browser libs, why does it require fs?