README version 1.0?

You've released 2.0.1, but not update README, aha?

You need to go to the 2.x branch: https://github.com/trello/RxLifecycle/tree/2.x

:+1: Thank you very much. And you may show it in README. :smile:


accounts from the dropdown list have different widths

Describe the bug
Accounts from the dropdown list have different widths. if the imported account has a long name, then the width of the card in the drop-down list will be different

@smaroudasunicorn
Suggestion how to solve quickly: Let's use for all account names the horizontal animation shortening if the name is longer than space available. Logic is already existing and used in several UI spots across Superhero Wallet.

I agree

Fixed, LGTM


Wiki UX fixes

[ ] Home page for docs.frappe.io
[ ] Clear cache when wiki space navbar is updated
[ ] Remove scrolling animation for sidebar
[ ] Remove dark mode switch (use auto]
[ ] Page edit options near title (?)
[ ] 15px for body font? https://frappecloud.com/draft/home

hello @rmehta I have already raised PR against point 3, can you please review it.
https://github.com/frappe/wiki/pull/248


add javascript calculator project

Issue reference:
Proposed changes:
New project - JavaScript Calculator.
Type of change:

Changed files in the project folder.
Added initial setup for the project.

Setup delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Other (please specify)
[ ] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Additional info (if any):

Nice work @WeryZebra-Yue
Kudos to you 👏


Implement all required DataAccess methods

Context
 The current implementation is to read data from the CSV but I have written the csv data into our database and created DataAccess methods to get data from the SQL database instead
 #9

Your Changes
Description:
 I've made a new initDatabae package that contains methods to parse our csv datasets and insert all the data into the database. I have also made new interfaces in the DataAccess package and implemented their methods to be able to query data from our dartabase
Type of change (select all that apply):

[x] New feature (additional functionality separate from existing code)
[x] Breaking change (changing code functionality)
[x] Documentation update (adding more comments)
[x] User Interface change (design changes)
[x] Test update (adding test code)

Testing
 I have written explicit tests for most things but I'm able to see the results of most of my methods in the mysql client app I have on my laptop and evreything seems to check out.
Notes

Checklist

[x] Code is up to date with main branch (no merge conflicts)
[x] Code has been properly tested
[x] Code has been properly documented
[ ] One or two people have reviewed this pull request

#43


UP006 is getting incorrectly reported with Python 3.8

Our current Python version is still 3.8, so ruff's target-version is set to py38. However, UP006 is still getting reported on List[int], proposing list[int], which is only available from Python 3.9.
(From the sound of the documentation, I assume that target-version is all about setting the minimal Python version, but what can I do to limit the upper bound?)

Hmm, are you importing from futures at all? Like from __future__ import annotations?

In this particular file I do, however, I'm not quite sure this has been a concious decision. But using that import doesn't normally allow using list[int], if I'm not mistaken?

It does, as long as List[int] is used as an annotation and not as a runtime value.

(Unless I'm mistaken!)

Is there a good way to verify this? mypy seems to accept both, with or without futures import.

Without future import:
❯ cat main.py
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: main.py
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ from typing import List
   2   │
   3   │ x: List[int] = []
   4   │ x: list[int] = []
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────
~/workspace on  main [!] via 🐍 v3.11.0
❯ python3.7 main.py
Traceback (most recent call last):
  File "main.py", line 4, in <module>
    x: list[int] = []
TypeError: 'type' object is not subscriptable

With future import:
~/workspace on  main [!] via 🐍 v3.11.0
❯ cat main.py
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: main.py
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ from __future__ import annotations
   2   │
   3   │ from typing import List
   4   │
   5   │ x: List[int] = []
   6   │ x: list[int] = []
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────
~/workspace on  main [!] via 🐍 v3.11.0
❯ python3.7 main.py

I do this in ruff-lsp, all of this code is tested on Python 3.7 - 3.11.

OK, then it sound like a non-issue, thanks!
For any future visitors: it's extremely difficult to find this in the official docs, but https://peps.python.org/pep-0585/ does mention the futures import as a way to activate this.


Container action is only supported on Linux

hit the brick wall, getting the error below
##[error]Container action is only supported on Linux

You may use https://github.com/cilerler/test-github-actions2 as a scratchpad.

Pretty sure this is your problem.  My guess would be that Github's container actions are currently not supported on Windows.
A workaround (apart from not using Windows as base image) would be to, upload artifacts in this job, and then have a dependent linux-based job that downloads them, and uploads them to GH releases.


Updated Dockefile for crosscompilation compatibility

This update the Dockerfile to make it possible to cross build FLP container image.
Example of manual cross build command:
podman buildx build --platform=linux/ppc64le -t test -f ./contrib/docker/Dockerfile .
Could someone with docker installed could confirm that the cli API is identical and the example above also works with docker?

Codecov Report

Merging #358 (a8f43b0) into main (4835cc5) will increase coverage by 0.18%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #358      +/-   ##
==========================================
+ Coverage   68.86%   69.05%   +0.18%
==========================================
  Files          87       88       +1
  Lines        5101     5157      +56
==========================================
+ Hits         3513     3561      +48
- Misses       1369     1378       +9
+ Partials      219      218       -1

Flag
Coverage Δ

unittests
69.05% <ø> (+0.18%)
:arrow_up:

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

Impacted Files
Coverage Δ

pkg/api/transform_network.go
83.33% <0.00%> (-16.67%)
:arrow_down:

pkg/pipeline/transform/kubernetes/kubernetes.go
7.90% <0.00%> (-0.26%)
:arrow_down:

.../pipeline/transform/transform_network_direction.go
100.00% <0.00%> (ø)

pkg/pipeline/decode/decode_protobuf.go
77.08% <0.00%> (+0.48%)
:arrow_up:

pkg/pipeline/transform/transform_network.go
70.46% <0.00%> (+1.45%)
:arrow_up:

pkg/pipeline/extract/timebased/heap.go
100.00% <0.00%> (+2.17%)
:arrow_up:

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

@OlivierCazade it works for me but I'm not using docker either
cc @ronensc @eranra @KalmanMeth does it work for you too, in your environment?
Also Olivier, we should ensure it works with the github CI .. can you try adding this build in some of the workflows ? E.g. just temporarily in pull_request.yaml (just for testing, after that we can remove it); And after that we should consider adding it to release.yaml

By the way we should still try to fix it for mac if possible (or create an issue to fix it later)

I tried to run with docker and got an error.
docker buildx build --platform=linux/ppc64le -t test -f ./contrib/docker/Dockerfile .
[+] Building 160.8s (8/21)
=> [internal] load build definition from Dockerfile                                                                     0.1s
=> => transferring dockerfile: 640B                                                                                0.0s
=> [internal] load .dockerignore                                                                                0.2s
=> => transferring context: 45B                                                                                0.0s
=> [internal] load metadata for docker.io/library/golang:1.18                                                           5.0s
=> [internal] load metadata for registry.access.redhat.com/ubi8/ubi-minimal:8.7                                         2.8s
=> [internal] load build context                                                                                2.5s
=> => transferring context: 323.14MB                                                                                2.4s
=> CANCELED [builder  1/12] FROM docker.io/library/golang:1.18@sha256:00d63686b480f6dc866e93ddc4b29efa2db03274a687e6  155.6s
=> => resolve docker.io/library/golang:1.18@sha256:00d63686b480f6dc866e93ddc4b29efa2db03274a687e6495c2cfbfe615d638e     0.0s
=> => sha256:5363f0c14d79c77678586642d6ff9ef822416864a8358da267bef743bb215907 11.63MB / 11.63MB                         6.5s
=> => sha256:00d63686b480f6dc866e93ddc4b29efa2db03274a687e6495c2cfbfe615d638e 2.36kB / 2.36kB                           0.0s
=> => sha256:bdd0f8661015f601ef21ee0b43d6ac02e1b78b32bd5ceb1217efbe9f7f95d117 1.80kB / 1.80kB                           0.0s
=> => sha256:54d1c7d8aa9bd6a4eccbc8d2a6bfbff823a47ff684d332c8a50a2bb81dd94f1f 7.11kB / 7.11kB                           0.0s
=> => sha256:542880f4d15404af17d342ecbb76bb92724fc7cb8a91a5e18f26bd8f8811a38a 58.90MB / 58.90MB                        80.8s
=> => sha256:a9b0d1697a3bff7991f1c96b22ffd254326c700694ddcf45ba42cd27f8a9cb94 5.41MB / 5.41MB                           5.1s
=> => sha256:1ec399ef8d37e347a1f93e54dd49428d1cec8a8926b5b48c5823c1e9813d561a 58.87MB / 58.87MB                        96.5s
=> => sha256:641c1c2e99a77066b47db2913c8bb3d7c19ed2a95ea0cc897aac1501e3744ace 76.55MB / 80.44MB                       155.4s
=> => sha256:84324359b1058d26717ef39b7917b48fcb28409dcd5970d0e5214139494fd363 45.09MB / 109.13MB                      155.4s
=> => extracting sha256:542880f4d15404af17d342ecbb76bb92724fc7cb8a91a5e18f26bd8f8811a38a                                1.5s
=> => extracting sha256:a9b0d1697a3bff7991f1c96b22ffd254326c700694ddcf45ba42cd27f8a9cb94                                0.1s
=> => extracting sha256:5363f0c14d79c77678586642d6ff9ef822416864a8358da267bef743bb215907                                0.2s
=> => extracting sha256:1ec399ef8d37e347a1f93e54dd49428d1cec8a8926b5b48c5823c1e9813d561a                                1.6s
=> => sha256:3ffce554075f0c84744be2d3fec1c315f4684af55fccf8e238f1da1728610ae6 155B / 155B                              97.7s
=> [stage-1 1/4] FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7@sha256:5d2d4d4dbec470f8ffb679915e2a8ae25ad754c  153.9s
=> => resolve registry.access.redhat.com/ubi8/ubi-minimal:8.7@sha256:5d2d4d4dbec470f8ffb679915e2a8ae25ad754cd9193fa966  0.1s
=> => sha256:5d2d4d4dbec470f8ffb679915e2a8ae25ad754cd9193fa966deee1ecb7b3ee00 1.47kB / 1.47kB                           0.0s
=> => sha256:520a368f78807947b96ea773cc62b14e380f4af08bbfd8ed18f0ebc70dedef68 429B / 429B                               0.0s
=> => sha256:53c1fc317e043407339a90c76d41cfb385f0bb1fe45e9f7180d916bfaf9f1e4f 5.98kB / 5.98kB                           0.0s
=> => sha256:c35a4f7d28053265fc2bc203599b2038ece031bb651bc7c0a3dfb05222daff37 43.94MB / 43.94MB                       152.7s
=> => extracting sha256:c35a4f7d28053265fc2bc203599b2038ece031bb651bc7c0a3dfb05222daff37                                0.8s
=> ERROR [stage-1 2/4] RUN microdnf install -y   iputils   curl   net-tools   && microdnf -y clean all  && rm -rf /var  1.6s

[stage-1 2/4] RUN microdnf install -y   iputils   curl   net-tools   && microdnf -y clean all  && rm -rf /var/cache:
#0 0.422 exec /bin/sh: exec format error

error: failed to solve: executor failed running [/bin/sh -c microdnf install -y   iputils   curl   net-tools   && microdnf -y clean all  && rm -rf /var/cache]: exit code: 1

My mistake. I used the wrong branch.
Using the branch from this PR I now get the following:
docker buildx build --platform=linux/ppc64le -t test -f ./contrib/docker/Dockerfile .
[+] Building 0.2s (2/2) FINISHED
 => [internal] load build definition from Dockerfile                                                                     0.1s
 => => transferring dockerfile: 789B                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.1s
 => => transferring context: 45B                                                                                0.0s
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument

Explicitly defining BUILDPLATFORM, etc gets past this error:
docker buildx build --platform=linux/ppc64le --build-arg BUILDPLATFORM=linux/ppc64le --build-arg TARGETPLATFORM=linux/ppc64le -t test -f ./contrib/docker/Dockerfile
but it then gets stuck on git.

I installed docker locally to check at differences, BUILDPLATFORM and TARGETPLATFORM are supposed to be defined automatically when setting the --platform option.
But it looks like there are some differences, podman expect you to define them with ARG but not docker.
It looks like both are happy if the ARG part is defined after the first FROM.

I added new Makefile target:
DOCKER_IMG="quay.io/<user>/flowlogs-pipeline" DOCKER_TAG="test" make push-image-multiarch
It should automatically build for arm64, amd64 and ppc64le, build the corresponding manifest and push it.
I tested on my computer with both podman and docker

Ok, this time it is even working on GH action, it is a bit sad that we can not use easy feature from podman and docker to cross build and generate the manifest because both are incompatible and it would force us to maintain two Dockerfile

@OlivierCazade cool!
So wdyt, better to keep the multi-arch build per-PR, or only during release?
It increases the build time quite a bit, and will grow when we add new archs; if we're confident enough that there little chance to see compatibility issues in FLP code, I'd say we can keep building only amd64 on github PRs
And we'll do the multi-arch in the release scripts
?

@jotak based on what we tested during the hackathon and assuming we do a first round of testing with new arch, I would agree to only build amd64 during PR and build other architecture during release.


How to modify blade mass in BeamDyn_blade

Hello,everyone.
I want to use OpenFast to simulate the condition of blade mass imbalance. Previously, I set CompElast=1 which means the BeamDyn for blades is ignored. And I modified AdjBlMs in NRELOffshrBsline5MW_Blade.dat to achieve the goal of changing the mass of one blade. Now, I wanna set CompElast=2 which considers the BeamDyn module. But I can not find any parameter like AdjBlMs.
So my question is how to modify blade mass in BeamDyn module? I know DISTRIBUTED PROPERTIES contain stiffness matrices and mass  matrices of blades. Does it mean I need to modify all the mass density elements in mass matrices?
Thank you all !

Dear @hangzhouwangyuan,
Yes, BeamDyn does not currently support simple mass scaling, so, you must modify the sectional mass matrices directly.  You can use separate BeamDyn input files for each blade.
Best regards,

Dear  @jjonkman
Thanks for your quick reply.


Secure messages block the send queue if the handshake succeeds but no response is received

21:05:35.984 DRIVER » [Node 039] [REQ] [SendData]                                        [P: Normal]
                      │ transmitOptions: 0x25
                      │ callbackId:      92
                      └─[SecurityCCCommandEncapsulation]
                        └─[MultiChannelCCCommandEncapsulation]
                          │ source:      0
                          │ destination: 1
                          └─[BinarySwitchCCGet]
21:05:35.989 DRIVER   ACK received from controller for current transaction
21:05:35.996 DRIVER « [RES] [SendData]                                                [confirmation]
                        wasSent: true
21:05:36.048 DRIVER « [Node 039] [REQ] [ApplicationCommand]
                      └─[SecurityCCNonceGet]
21:05:36.050 DRIVER » [Node 039] [REQ] [SendData]                                     [P: Handshake]
                      │ transmitOptions: 0x24
                      │ callbackId:      0
                      └─[SecurityCCNonceReport]
21:05:36.053 DRIVER   ACK received from controller for current transaction
21:05:36.055 DRIVER « [RES] [SendData]                                            [fatal_controller]
                        wasSent: false
21:05:36.055 DRIVER     the message for the current transaction could not be sent, scheduling attemp
                      t (2/3) in 500 ms...
21:05:36.189 DRIVER « [REQ] [SendData]
                        callbackId:     0
                        transmitStatus: OK
21:05:36.190 DRIVER   handling request SendData (19)
21:05:36.190 DRIVER     no handlers registered!
21:05:36.556 DRIVER » [Node 039] [REQ] [SendData]                                      [attempt 2/3]
                      │ transmitOptions: 0x24
                      │ callbackId:      0
                      └─[SecurityCCNonceReport]
                          payload: 0xe48d563552770fe5
21:05:36.559 DRIVER   ACK received from controller for current transaction
21:05:36.566 DRIVER « [RES] [SendData]                                                       [final]
                        wasSent: true
21:05:36.567 DRIVER   ACK already received, resolving transaction
21:05:36.567 DRIVER   resuming send queue
21:05:36.567 DRIVER   workOffSendQueue > skipping because a transaction is pending:
...forever stuck...

The issue is that the sent message receives a "wasSent" from the controller, but no ACK from the node. This normally comes before the NonceGet.

We should not attempt to send another message before receiving the callback because that will garble the controller status. The specs expect us to wait up to 65s, then call SendDataAbort


Change default branch from dev to develop

@jwaspin The name change would make this consistent with the most other repos, which use develop as the default.
Any thoughts??

@hmaier-fws I was thinking the same thing. The more consistent we can be the better in my opinion. I think we just need to merge dev into master first, then we can branch the new develop off master and delete dev. Don't worry about the other branch I have going to remove npm module code, I can rebase that one to the develop branch and then open a PR for it.

closed by #26


Set operators for UD60x18 and SD59x18

Note: this can't pass checks until prettier supports user defined operators.
Closes #167.

Thanks, Hadrien! I will review this during the weekend.
Indeed, the link checks will pass only after prettier-plugin-solidity and @solidity-parser/parser add support for Solidity v0.8.19 and UDVT operators:
https://github.com/solidity-parser/parser/issues/80

@PaulRBerg Let me know if that's urgent for you. I opened an issue in Prettier Solidity but didn't implement it yet.

Thanks, @fvictorio.
This is relatively urgent, indeed, as we're prepping up for an audit of a code base that uses PRBMath, and it would be great to have this PR merged in before the audit starts (we'd prefer to use UDVT operators).

I did not realize that they were ordered alphabetically.
Note that the order I used for operator is the one provided by solidity in its documentation.
(ordering is transparent to me, I let you do how you prefer)

No worries! Thanks for the additional color.

Done: https://github.com/prettier-solidity/prettier-plugin-solidity/releases/tag/v1.1.3

Thank you so, so much, @fvictorio.
But now I just realized that the issue wasn't due to prettier-plugin-solidity, as I have recently moved this project to use forge fmt instead.
The issue is with Solhint :(
This command fails:
yarn solhint "{src,test}/**/*.sol"

Any chance you could also bump the Solidity parser in Solhint to fix this? 🙏

CI passed after upgrading to the latest version of Solhint. Merging now.
Thanks for your contribution, Hadrien!


Does this mean that Android can be used for real-time computing?

Does this mean that Android can be used for real-time computing?
https://ieeexplore.ieee.org/document/6454350

I don't See how this is related to rawdrawandroid.
Furtermore the last Paragraph oft the abstract sounds like the answer is no.

It's related in the sense that I was looking for rawdrawandroid to implement a C/C++ app without Java and its GC. Then in reference to the Oboe C++ library I thought that this would allow e.g. C++ level audio I/O latency. If it doesn't pass through the JVM and JNI, then I thought this library would be as fast as native C/C++ on desktop.

The paper also gives infor in the last paragraph regarding potential solutions, so perhaps this library does not in fact change anything about Android, but just programs it in C/C++.

 In other words, if one writes a GUI with this and e.g. signal processing using some C library, then all calls between the GUI and the DSP would have no added latency between except for those produced by C code.

I understand your question now, unfortunately there seems to be no one here who has the answer. AFAIK, RT was never a goal of this project.

I think that It is almost 100% true that pure C will not have GC latency and at certain will have less RAM consumtion and will be more realtime than java

I think this is answered as far as possible.


Improve documentation of the @computed_field decorator

As per https://github.com/pydantic/pydantic/discussions/10098
Checklist

[ ] The pull request title is a good summary of the changes - it will be used in the changelog
[ ] Unit tests for the changes exist
[ ] Tests pass on CI
[ ] Documentation reflects the changes where applicable
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@Viicos,
We have some custom logic for organizing release notes based on labels like relnotes-ignore, relnotes-fix, relnotes-performance, etc. We omit relnotes-ignore and documentation PRs from the release notes. Feel free to modify the labels on your PRs according to their category :).
We have some automatic application logic based on branch name, but it defaults to relnotes-fix if it can't figure it out.


sqlite3 result code 10: disk I/O error

The browser throws the error below. Any ideas?
sqlite3-opfs-async-proxy.js?type=classic&worker_file:90 OPFS asyncer: xOpen DOMException: A requested file or directory could not be found at the time an operation was processed.
logImpl @ sqlite3-opfs-async-proxy.js?type=classic&worker_file:90
error @ sqlite3-opfs-async-proxy.js?type=classic&worker_file:94
xOpen @ sqlite3-opfs-async-proxy.js?type=classic&worker_file:645
await in xOpen (async)
f @ sqlite3-opfs-async-proxy.js?type=classic&worker_file:951
await in f (async)
globalThis.onmessage @ sqlite3-opfs-async-proxy.js?type=classic&worker_file:990
Show 5 more frames
Show less
sqlite3-bundler-friendly.mjs?v=6b26e52b:12388 OPFS syncer: xOpen() async error: NotFoundError: A requested file or directory could not be found at the time an operation was processed.
logImpl @ sqlite3-bundler-friendly.mjs?v=6b26e52b:12388
error @ sqlite3-bundler-friendly.mjs?v=6b26e52b:12392
opRun @ sqlite3-bundler-friendly.mjs?v=6b26e52b:12614
f @ sqlite3-bundler-friendly.mjs?v=6b26e52b:12958
$func507 @ sqlite3.wasm:0x24d5f
$func501 @ sqlite3.wasm:0x240d9
$sqlite3_open_v2 @ sqlite3.wasm:0x251ea
(anonymous) @ sqlite3-bundler-friendly.mjs?v=6b26e52b:7747
ctor @ sqlite3-bundler-friendly.mjs?v=6b26e52b:10589
OpfsDb @ sqlite3-bundler-friendly.mjs?v=6b26e52b:13174
value @ processor.js?v=6b26e52b:56
await in value (async)
value @ processor.js?v=6b26e52b:125
value @ processor.js?v=6b26e52b:91
self.onmessage @ worker.js?type=module&worker_file:4
Show 14 more frames
Show less
client.js?v=6b26e52b:56 Uncaught SQLite3Error: SQLITE_IOERR: sqlite3 result code 10: disk I/O error
at toss3 (sqlite3-bundler-friendly.mjs?v=6b26e52b:10492:17)
at checkSqlite3Rc (sqlite3-bundler-friendly.mjs?v=6b26e52b:10511:13)
at OpfsDb.ctor (sqlite3-bundler-friendly.mjs?v=6b26e52b:10591:13)
at new OpfsDb (sqlite3-bundler-friendly.mjs?v=6b26e52b:13174:45)
at SQLocalProcessor.value [as init] (processor.js?v=6b26e52b:56:35)
value @ client.js?v=6b26e52b:56
Show 1 more frame
Show less

it occurs at this line: const { sql } = new SQLocal('database.sqlite3');
creating a file in OPFS manually works properly:
const opfsRoot = await navigator.storage.getDirectory();
const fileHandle = await opfsRoot.getFileHandle('database.sqlite3', { create: true });

weird.. everything works fine if i create the file with the code above first - then your lib has no problem updating it. but it doesn't want to create the file on its own. For now I am unblocked, but I'll keep the issue open so we can figure out the root of the issue.

That's not an issue I've run into. The file should be created automatically on the first write. What browser are you using? Is anything else in your app interacting with the OPFS?

i tried in latest Chrome, Chrome Beta and Safari. Same results. Nothing else is interacting with OPFS.

Hmmm. What operating system? Shouldn't matter but just in case there's some difference with how the browser implements storage between OS's.
Would you be able to make a minimal reproduction of the issue so we can see what's happening?

macOS 14.1. Here's a new repo with the code: https://github.com/proof-llc/sqlocal-demo
code doesn't work until we uncomment here: https://github.com/proof-llc/sqlocal-demo/blob/main/src/routes/%2Bpage.svelte#L10

Thanks for the reproduction. I found the issue. It was caused by a mistake I made in a change for 0.6.2. I've just released the fix in 0.6.3.

Awesome, thanks!


'Whisper' object has no attribute 'transcribe_audio'

File "/opt/whisper/whisper-at/src/noise_robust_asr/intermediate_feat_extract/as_full/extract_as_full_whisper_all.py", line 35, in extract_audio
_, audio_rep = mdl.transcribe_audio(wav)
File "/root/miniconda3/envs/whisper-at-new/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1695, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'Whisper' object has no attribute 'transcribe_audio'

hi there,
You would need some engineering. See https://github.com/YuanGongND/whisper-at/tree/main#11-whisper-feature-extraction for the instruction.
-Yuan

yes, but i can't find any transcribe_audio function in the whisper or whisper-at

please check the instruction
Option 1

You can use the released version of Whisper-AT and get the audio feature [at this line], by adding result.audio_features_for_at to the returns of transcribe function. You can get the pooled (x20 temporal downsampling) audio representation of each Whisper audio encoder. E.g., for Whisper-Large, result.audio_features_for_at is of shape [32, 75, 1280], where 32 is the number of Whisper encoder layer, 75 is the time length (30s * 100 = 3000 frames / 2 (Whisper downsample) / 20 (AT downsample) = 75). Note the Whisper window is always 30s. So if your input audio is 10s, you need to slice the first 25 time steps. i.e., [32, 25, 1280]. In addition, with the padded zeros and attention mechanism, the output won't be same as just inputting 10s audio without padding.
Advantage: polished code.
Disadvantage: always padded to 30s (which is acceptable), not used in our paper experiments.

for option 1, you need to change the code. change the return of transcribe and rename the function to transcribe_audio
Option 2

We also provide our actual code to extract feature at [here]. This code is researchy, but trims the audio to 10s instead of padding.
We don't have time to polish this, use if you are an expert on Whisper.

for option 2, please pip -e install our provided package.
The transcribe_audio is at https://github.com/YuanGongND/whisper-at/blob/main/src/noise_robust_asr/intermediate_feat_extract/whisper_feat_extracrt/whisper/transcribe.py
-Yuan

yes ,thanks you for you help ,but in the train stage,it still fail ,  File "/opt/whisper/whisper-at/src/whisper_at_train/models.py", line 172, in forward
audio_rep = audio_rep.reshape(Bself.n_layer, audio_rep.shape[2], audio_rep.shape[3]) # [B32, 25, 1280]
RuntimeError: shape '[192, 25, 80]' is invalid for input of size 95904000

herbiel

hi May i know how did you by pass this error ?
File "/opt/whisper/whisper-at/src/noise_robust_asr/intermediate_feat_extract/as_full/extract_as_full_whisper_all.py", line 35, in extract_audio
_, audio_rep = mdl.transcribe_audio(wav)
File "/root/miniconda3/envs/whisper-at-new/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1695, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'Whisper' object has no attribute 'transcribe_audio'
Im still facing this issue .

last answer can fix this problem.
for option 2, please pip -e install our provided package.
The transcribe_audio is at https://github.com/YuanGongND/whisper-at/blob/main/src/noise_robust_asr/intermediate_feat_extract/whisper_feat_extracrt/whisper/transcribe.py

Reference

can you share the steps to be followed in order ?  I installed the package , But still i have this issue .

just install from the https://github.com/YuanGongND/whisper-at/blob/main/src/noise_robust_asr/intermediate_feat_extract/whisper_feat_extracrt/whisper/ ,it will be normal


2022->2021

Ⅰ. Describe what this PR does
This pr is to add to fix typo in juicefsruntime_types.go
Ⅱ. Does this pull request fix one issue?

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

you should add -s when you use command "git commit". please modify


[GSProcessing] Categorical transformation

Provide encoding for categorical values for single and multi-column input, allowing one-hot and multi-hot encoding.

Stretch goal for 0.2.1, otherwise will end up in 0.3.


Use in decorating existing widgets?

Can (or will) I be able to style something like a TextField using Mix? Can I access design tokens outside of a BuildContext, or within the BuildContext of a standard widget?

To allow for mixing a TextField we might have to create it as a headless widget, to keep it outside of basic primitives. Design tokens can be accessed outside of BuildContext.
I will close this ticket and keep track of the TextField on #46


support for IKEA Tradfri LED1623G12

Hi Stas, can you please take the support for IKEA Tradfri LED1623G12?
If you tell me how I can read the data from the, I'm happy to help!
Thank you

I tried to add 2 Trädfri lamps LED1623G12 and both failed to connect. Also the suggested reset did not work. What can be the reason?

{"ieeeAddr":"0x000b57fffe302fd0","type":"Router","mode     l":"LED1623G12","friendly_name":"0x000b57fffe302fd0"}]}

{"id":10,"type":"EndDevice","ieeeAddr":"0x000b57fffe2ba3da","nwkAddr":53963,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"TRADFRI wireless dimmer","epList":[1],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":2064,"inClusterList":[0,1,3,9,2821,4096],"outClusterList":[3,4,6,8,25,4096],"clusters":{"genBasic":{"dir":{"value":1},"attrs":{}},"genPowerCfg":{"dir":{"value":1},"attrs":{"65533":1,"batteryVoltage":0,"batteryPercentageRemaining":47,"batterySize":5,"batteryQuantity":2,"batteryAlarmMask":3,"batteryVoltMinThres":24,"batteryPercentMinThres":0,"batteryPercentThres1":20}},"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genOnOff":{"dir":{"value":2},"attrs":{}},"genLevelCtrl":{"dir":{"value":2},"attrs":{}},"genAlarms":{"dir":{"value":1},"attrs":{"65533":1}},"genOta":{"dir":{"value":2},"attrs":{}},"haDiagnostic":{"dir":{"value":1},"attrs":{"65533":1}},"lightLink":{"dir":{"value":3},"attrs":{"65533":1}}}}},"_id":"ONKQWxBtCaCItJkR"}
{"id":10,"type":"EndDevice","ieeeAddr":"0x000b57fffe2ba3da","nwkAddr":53963,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Battery","modelId":"TRADFRI wireless dimmer","epList":[1],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":2064,"inClusterList":[0,1,3,9,2821,4096],"outClusterList":[3,4,6,8,25,4096],"clusters":{"genBasic":{"dir":{"value":1},"attrs":{}},"genPowerCfg":{"dir":{"value":1},"attrs":{"65533":1,"batteryVoltage":0,"batteryPercentageRemaining":47,"batterySize":5,"batteryQuantity":2,"batteryAlarmMask":3,"batteryVoltMinThres":24,"batteryPercentMinThres":0,"batteryPercentThres1":20}},"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genOnOff":{"dir":{"value":2},"attrs":{}},"genLevelCtrl":{"dir":{"value":2},"attrs":{}},"genAlarms":{"dir":{"value":1},"attrs":{"65533":1}},"genOta":{"dir":{"value":2},"attrs":{}},"haDiagnostic":{"dir":{"value":1},"attrs":{"65533":1}},"lightLink":{"dir":{"value":3},"attrs":{"65533":1}}}}},"_id":"ONKQWxBtCaCItJkR"}

{"id":2,"type":"Router","ieeeAddr":"0x000b57fffe302fd0","nwkAddr":51639,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"TRADFRI bulb E27 opal 1000lm","epList":[1],"status":"online","joinTime":1541007737,"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,3,4,5,6,8,2821,4096],"outClusterList":[5,25,32,4096],"clusters":{"genBasic":{"dir":{"value":1},"attrs":{"10":{},"65533":1,"zclVersion":1,"appVersion":17,"stackVersion":87,"hwVersion":1,"manufacturerName":"IKEA of Sweden","modelId":"TRADFRI bulb E27 opal 1000lm","dateCode":"20160919","powerSource":1}},"genIdentify":{"dir":{"value":1},"attrs":{"65533":1,"identifyTime":0}},"genGroups":{"dir":{"value":1},"attrs":{"65533":1,"nameSupport":0}},"genScenes":{"dir":{"value":3},"attrs":{"65533":1,"count":0,"currentScene":0,"currentGroup":0,"sceneValid":0,"nameSupport":0}},"genOnOff":{"dir":{"value":1},"attrs":{"16387":1,"65533":1,"onOff":1,"globalSceneCtrl":1,"onTime":0,"offWaitTime":0}},"genLevelCtrl":{"dir":{"value":1},"attrs":{"15":0,"16384":254,"65533":1,"currentLevel":1,"remainingTime":0,"onOffTransitionTime":5,"onLevel":255}},"genOta":{"dir":{"value":2},"attrs":{}},"genPollCtrl":{"dir":{"value":2},"attrs":{}},"haDiagnostic":{"dir":{"value":1},"attrs":{"65533":1,"numberOfResets":0,"macRxBcast":0,"macTxBcast":0,"aPSRxBcast":0,"aPSTxBcast":0,"nwkFcFailure":0,"packetBufferAllocateFailures":0,"averageMacRetryPerApsMessageSent":1,"lastMessageLqi":64,"lastMessageRssi":-84}},"lightLink":{"dir":{"value":3},"attrs":{"65533":1}}}}},"_id":"lg3iLHYIg6jzO0dI"}

@salopette could you please check with latest plugin

Device LED1623G12
Hi Stas, Device LED1623G12 is not working properly anymore.
I can not dim it and turn it off.


OutdatedVirtualMachineInstanceWorkloads edits

Signed-off-by: Avital Pinnick<EMAIL_ADDRESS>

@sradco Ready for review

@sradco @enp0s3
I updated the Mitigation. Please review.
I do need to know whether KubeVirt CR in KubeVirt NS needs to be changed to HyperConverted CR in HCO NS in downstream docs.

@apinnick Kubevirt CR and HCO CR are two different CRs, because they belong to 2 different operators. Also. Kubevirt CR in upstream is the same as in d/s, its also true for HCO CR.

@apinnick Kubevirt CR and HCO CR are two different CRs, because they belong to 2 different operators. Also. Kubevirt CR in upstream is the same as in d/s, its also true for HCO CR.

@enp0s3  Just to clarify -- Does this mean the KubeVirt CR procedures can be left "as is" for downstream? No changes necessary?

@apinnick Kubevirt CR and HCO CR are two different CRs, because they belong to 2 different operators. Also. Kubevirt CR in upstream is the same as in d/s, its also true for HCO CR.

@enp0s3 Just to clarify -- Does this mean the KubeVirt CR procedures can be left "as is" for downstream? No changes necessary?

You are correct, and moreover, in downstream, Kubevirt CR should not be modified directy. HCO operator is controlling all the CRs of all the CNV operators. If someone wants to modify the Kubevirt CR in downstream, it must be done via HCO CR modification. The HCO operator then reconciles the Kubevirt CR according to the changes made in HCO CR.

/lgtm
@apinnick Thank you!

@enp0s3
Please confirm:
For downstream ONLY: User must modify the HCO CR, not the KubeVirt CR, because the HCO Operator reconciles changes made to its operands.
Is this correct?
If yes, then I will have to check all the mitigations that mention editing the KubeVirt CR and make sure that the DS mitigation says to edit the HCO CR.

@apinnick Kubevirt CR and HCO CR are two different CRs, because they belong to 2 different operators. Also. Kubevirt CR in upstream is the same as in d/s, its also true for HCO CR.

@enp0s3 Just to clarify -- Does this mean the KubeVirt CR procedures can be left "as is" for downstream? No changes necessary?

You are correct, and moreover, in downstream, Kubevirt CR should not be modified directy. HCO operator is controlling all the CRs of all the CNV operators. If someone wants to modify the Kubevirt CR in downstream, it must be done via HCO CR modification. The HCO operator then reconciles the Kubevirt CR according to the changes made in HCO CR.

I am going to update the Mitigation to simplify it. Runbooks are not a substitute for the actual documentation. :-)


fix code stop / minecraft hour of code

hot fix for hour of code tutorials
~I'm fairly confident this will work but waiting for my local build to test real quick, putting up now to get build started~ tested and appears to work, though that's just comparing the generated code / haven't got an easy way to test in game at the moment

change looks fine to me, but which part of the new release caused the behavior to change?

the sorting pushing main.ts to the end was added in https://github.com/microsoft/pxt/pull/7332, previously it was just done on the emitter/driver.ts side

shouldn't that have caused it to break for all hoc2019 tutorials and not just the fifth one?

It was breaking for me on all of them (showing the 'failure' message) but inconsistent on whether that reset things / terminated the code and tried to restart - I couldn't get past the maze one personally.

I believe this particular tutorial has while  code in the on start. That condition won't be true if the TUTORIAL_CODE_STOP is executed?

Ahh you're right I think, hazards remain must return false after the 'code finished' setting ran

You can modify the world to link to /beta URL and see if the bug is fixed.

code stop just executes a slash command specified in the markdown--i think for these tutorials it was just setting a scoreboard value to 1 and the world would listen for the scoreboard change then check if the task was successfully completed. i'm a little surprised it even worked for "open door" since it was running before the "open door" block would run, but maybe there's some time delay when they check for success/failure...

I realized I had a debug build loaded up that I could use to test, can confirm this seems to fix it.


results on webqsp

Hi Sun,
When I reimplemented the results of your paper, I found that the Hits and F1 values of only-KB were higher than those of Text + KB under the settings of Full KB and 50% KB. I wonder why that is.
Wish for your reply！

Hi, I am trying to run this code but have some problem. Could you send me an answer of WebQSP-test-full. Thank you. email<EMAIL_ADDRESS>


feat(coil-extension): impl gpc-sec: 1 via declarativeNetRequest

I assume this is to allow us to provide an option for users to send the https://globalprivacycontrol.org/ header?

@adrianhopebailie
Yep, was just looking at what it took
Last time I took a quick look at it I used declarativeWebRequest rather than declarativeNetRequest and I couldn't get it to work
It's a good point that it should be optional
When I get a chance, I'll see about programmatically toggling the rule (I assume you can reference the declared rule id)


UI comments

must manually update samples list when samples are created
create samples: let indices begin at 0
must manually refresh to get edges in workflow graph
create samples, add input samples (i.e. created configurations depends on the prim)
computational processes file under "Measurements"
edit process date?
samples as nodes in workflow graph?
save workflow graph state after dragging elements around

These issues may need to be split out into separate issues. Also, some imply design changes. Probably need to evaluate those.

This needs to be reviewed (in consort with the other issues in it's epic) - review scheduled for June.


Danish sentence tokenizer fails to split on newline

When sentences are terminated with a newline rather than .!? the tokenizer fails to split. If it's wrong in Danish, it is probably wrong in a bunch of other languages.
nltk version 3.4.5
Python version 3.6.9
Ubuntu Linux 18.04
import nltk
sent_tokenizer = nltk.data.load('tokenizers/punkt/danish.pickle')
text = """Den normale kropstemperatur er 37,0ºC, når den måles i endetarmen; temperaturen er lavere, når den måles i f.eks. øret eller munden
Feber defineres som kernetemperatur over 38°C målt i endetarmen
De allerfleste sygdomme med feber er harmløse og helbreder sig selv. Det gælder f.eks. forkølelser og andre virussygdomme
I nogle tilfælde kan feberen skyldes alvorlige infektioner, som f.eks. hjernehindebetændelse (meningitis), blodforgiftning (sepsis) og nyrebækkenbetændelse (pyelonefritis)
"""
print(sent_tokenizer.tokenize(text))

['Den normale kropstemperatur er 37,0ºC, når den måles i endetarmen; temperaturen er lavere, når den måles i f.eks. øret eller munden\nFeber defineres som kernetemperatur over 38°C målt i endetarmen\nDe allerfleste sygdomme med feber er harmløse og helbreder sig selv.', 'Det gælder f.eks. forkølelser og andre virussygdomme\nI nogle tilfælde kan feberen skyldes alvorlige infektioner, som f.eks. hjernehindebetændelse (meningitis), blodforgiftning (sepsis) og nyrebækkenbetændelse (pyelonefritis)']

This is intentional, as it is common for e-mails and other such text formats to introduce line break characters mid-sentence. The accepted solution is to pre- or post- split your text into newline delimited chunks if you know that line breaks are sentence delimiters. Alternatively, you can create a class that extends nltk.tokenize.punkt.PunktLanguageVars and then assign an instance to sent_tokenizer._lang_vars.
To anyone reading: if this comment has inspired you to create the aforementioned class, I'd love to know about it, please answer in this thread if you can.

Okay, when I said wrong I meant that it was inconsistent with the behaviour I observed for the English version. That is how I remember it anyway.

Okay, when I said wrong I meant that it was inconsistent with the behaviour I observed for the English version. That is how I remember it anyway.

@grofte
I'm afraid you are misremembering.
import nltk
sent_tokenizer = nltk.data.load('tokenizers/punkt/english.pickle')
text = """The normal body temperature is 37.0ºC when measured in the rectum; the temperature is lower when measured in e.g. ear or mouth
Fever is defined as the core temperature above 38 ° C measured in the rectum
The vast majority of diseases with fever are harmless and heal themselves. This applies to e.g. colds and other viral diseases
In some cases, the fever may be due to serious infections, such as meningitis, sepsis and pelvic inflammatory disease (pyelonephritis)
"""
print(sent_tokenizer.tokenize(text))

produces
['The normal body temperature is 37.0ºC when measured in the rectum; the temperature is lower when measured in e.g.',
'ear or mouth\nFever is defined as the core temperature above 38 ° C measured in the rectum\nThe vast majority of diseases with fever are harmless and heal themselves.',
'This applies to e.g.',
'colds and other viral diseases\nIn some cases, the fever may be due to serious infections, such as meningitis, sepsis and pelvic inflammatory disease (pyelonephritis)']

Which are not split by sentence.
As @gpiat mentioned, these sentences should be split beforehand or afterwards.
Note, if you're looking for a solution in NLTK itself, adding \n to the sent_end_chars in a subclass of PunktLanguageVars, and then passing an instance of that subclass as lang_vars to a PunktSentenceTokenizer instance does not work, as the regexes are seemingly not built to have a whitespace sentence end character.

Line breaks have not been considered sentence delimiters since at least 2012.

adding \n to the sent_end_chars in a subclass [...] does not work

Indeed, the regex _period_context_fmt basically defines the end of a sentence as a group of characters including a sentence-ending-character and punctuation or a whitespace. It implicitly does not support single-character sentence delimiters.

I am embarrassed by how poorly I reported this issue. And I found out why I got the expected number of lines with English. I used the Danish text which has the abbreviation "f.eks." multiple times. And it split on those.
But I learnt something about sentence splitting. Thank you very much everyone (and writing better issues but I swear I am much better at that now than I was in Nov 2019).

(FYI part of the design of Punkt and probably other sentence segmenters is to treat the task as a classification problem, to make a binary judgement as to whether any instance of [.?!] is sentence-ending.)


whatsapp app not working after recompiling using apktool.

hello @sigalor youre "NOTE : Hardcoded md5 hash only valid for version 2.18.46" worked successfully could you please explain me the changes that you have done into the smali's, it worked perfectly on version 2.18.46 only...PS. i want to make a change in the latest one .

This repository deals with WhatsApp Web, not the regular WhatsApp Android application.


Static properties are transpiled to enumerable properties on the resulting constructor

TypeScript Version:  2.7.0

Search Terms:
object.keys static
static class enumerable
class static defineProperty
Code
class A {
    static init() {
    	Object.assign(A, {t:2});
    }
    static another() {
        return 5;
    }
}

A.init();
console.log(Object.keys(A));

Expected behavior:
["t"] should be the output (which is what happens when you copy/paste that code into the browser console or to node.
Actual behavior:
["init", "another", "t"] is the output.
Playground Link: Click me
Related Issues:

None I could find

Extra:
This happens because TypeScript emits static methods and variables as direct assignment on A (i.e. A.init = function() {...}, instead of the more correct Object.defineProperty() with enumerable: false.
Babel with the es2015-loose-preset exhibits the same behavior. Without the loose preset, the emitted code is correct there. TypeScript has no such option, though.

Seems broken to me. Link to Babel in strict mode, displaying correct behaviour.

Duplicate of https://github.com/Microsoft/TypeScript/issues/15038


How to make a http request on newline progress output?

Hey guys!
I'm new to python and I just want to drop a handful of lines into the code so they will be executed whenever youtube-dl is outputting a new progress message line into the cmd.
I've looked into the files and found something like progress hooks but I wasn't sure where exactly to take a look at.
How can I make this happen? What are the files/lines of code I need to take a look at?
Thank you!
Erwin

I've found it! See > downloader > commons.py around line 215


ISPN-5409 Primitive values lead to failure with remote non-indexed query

jira: https://issues.jboss.org/browse/ISPN-5409

looking

Merged, thanks!


Add a visitor counter

Fixes #51.

I removed this GIF, which I thought was annoying:

Happy to add it back if we want that #aesthetic.


Add app.php to Symfony gitignore

Adding app.php to gitgnore and add an app.php.dist file is a best practice to avoid setting up a production application on checkout.

@nunorafaelrocha Is there any supporting links you can give which explain what this file represents and why it can be safely ignored from version control?

Closing due to conflicts and inactivity. @nunorafaelrocha please have a look at the latest template to see if any other changes need to be included.


[Proposal]Incorrect kotlin-stdlib-jdk7 is added as a dependency for newly generated projects on Android

$ flutter --version
Flutter 2.10.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c860cba910 (12 days ago) • 2022-03-25 00:23:12 -0500
Engine • revision 57d3bac3dd
Tools • Dart 2.16.2 • DevTools 2.9.2

When a new project is created with flutter create ... the org.jetbrains.kotlin:kotlin-stdlib-jdk7 dependency is added by default in android/app/build.gradle but it is not strictly correct: as the project by default targets Java 8 it should use the kotlin-stdlib-jdk8 artifact id.
However, it could be best to just remove this dependency altogether because it is added by default by the Kotlin Gradle plugin (https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library) - always the correct one and always in the correct version (corresponding to the Kotlin Gradle plugin version). This way any future updates of the artifact id (e.g. when stdlib-jdk11 or whatever comes along and Flutter wants to use it) nothing will need to be done except update the Kotlin plugin version and the target Java version.

Hi @wujek-srujek, Thanks for filing the issue. Leaving this issue open for further insights from the team.

Just to add more context: a native Android app project created with Android Studio also doesn't explicitly add the dependency on stdlib.

Still exists in Flutter 3.0.0 and after creating a fresh project and building the APK:
dev $ flutter --version
Flutter 3.0.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ee4e09cce0 (3 days ago) • 2022-05-09 16:45:18 -0700
Engine • revision d1b9a6938a
Tools • Dart 2.17.0 • DevTools 2.12.2
VSCodeProjects $ flutter create --project-name f_test f_test --platforms android,ios
Signing iOS app for device deployment using developer identity: "Apple Development: xxxxxxx"
Creating project f_test...
Running "flutter pub get" in f_test...                           1,268ms
Wrote 73 files.

All done!
In order to run your application, type:

  $ cd f_test
  $ flutter run

Your application code is in f_test/lib/main.dart.

dev $ cd f_test/
f_test $ tail -n 4 android/app/build.gradle

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
f_test $ flutter build apk

💪 Building with sound null safety 💪

w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6)
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.10/b8af3fe6f1ca88526914929add63cf5e7c5049af/kotlin-stdlib-1.6.10.jar (version 1.6)
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.6.10/c118700e3a33c8a0d9adc920e9dec0831171925/kotlin-stdlib-common-1.6.10.jar (version 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6)
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.10/b8af3fe6f1ca88526914929add63cf5e7c5049af/kotlin-stdlib-1.6.10.jar (version 1.6)
    /Users/wujek/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.6.10/c118700e3a33c8a0d9adc920e9dec0831171925/kotlin-stdlib-common-1.6.10.jar (version 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
Running Gradle task 'assembleRelease'...                           19.5s
✓  Built build/app/outputs/flutter-apk/app-release.apk (16.0MB).
f_test $ vim android/app/build.gradle # remove the 'dependencies' block
f_test $ tail -n 4 android/app/build.gradle

flutter {
    source '../..'
}
f_test $ flutter build apk

💪 Building with sound null safety 💪

Running Gradle task 'assembleRelease'...                            7.3s
✓  Built build/app/outputs/flutter-apk/app-release.apk (16.0MB).

As you can see the default setup results in warnings and simply removing the dependency on stdlib-jdk7 removes them gets rid of them.

Based on https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library, removing this dependency makes sense.


installing pyobjc pip-manager

installing pyobjc will break pip manager and will get stuck in wait init.

fixed


Entry types for arXiv preprints in Bib(La)TeX exports

This is a follow-up to this discussion on the Zotero forum. (See also #460 for a related discussion.)
For Better BibLaTeX, arXiv preprints are now already exported as @online by default. (See here for the code.)
For Better BibTeX, this BBT postscript can be used for exporting arXiv preprints as @misc:
if (Translator.BetterBibTeX && reference.referencetype === 'article' && item.arXiv) {
  if (reference.has.journal && item.arXiv.source === 'publicationTitle') {
    reference.remove('journal');
  }
  if (!reference.has.journal) reference.referencetype = 'misc'
}

Currently, the postscript will depend on the presence of a libraryCatalog entry, see here.
I created a pull-request (#1666) that removes the dependency on the Library Catalog field. Here is some reasoning for this change:

The arXiv ID can be expected in two Zotero fields, Publication and Extra.
If at least one arXiv ID is found, item.arXiv should be set.
For an arXiv ID in Publication: item.arXiv.source = 'publicationTitle'.
If the arXiv ID is only found in Extra: item.arXiv.source = 'extra'.
For recognizing arXiv preprints, the best criterion seems to be a Publication field that either contains an arXiv ID or is empty. Zotero's Library Catalog field, on the other hand, seems irrelevant. (For example, it might not be populated for references imported from a .bib file.) The entry types in Bib(La)TeX exports should not depend on it.

(The condition item.libraryCatalog.match(/^arxiv(\.org)?$/i) could still be used in a BBT postscript, if needed.)

The sample has been added to the site, and a new release build has been started that includes the PR. Both should show up in 15 minutes or so.


Support TagHelper

Today VSCode does not support TagHelper, ie I can not develop custom taghelper for my application and interact with VSCode, I would like to know if there is any forecast to support this functionality

@tgemelgo, some basic TagHelper support (completions for instance) will be added in the next release (alpha3). That release is currently planned to be shipped sometime end of april. Stay tuned!


[$250] IOS - ND hybrid - Back button in About page is not responsive after logging out and relogin

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.49-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause - Internal Team
Action Performed:

Launch OD hybrid app
Log in
Switch to ND
Log out on the ND hybrid app
Log in again
Go to Account settings > About
Tap app back button

Expected Result:
App back button will be responsive
Actual Result:
App back button is not responsive after logging out on ND hybrid app and relogin
This issue also happens in Workspaces, Profile page etc
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/user-attachments/assets/a9246f14-491a-4447-87c0-010606bf3b27
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021846319548406136512
Upwork Job ID:<PHONE_NUMBER>406136512
Last Price Increase: 2024-10-15

Issue OwnerCurrent Issue Owner: @akinwale

@jliexpensify  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

is there any way for external contributors to work on hybrid app development?

ios <> Android bug swap

@AndrewGable can contributors work on the hybrid app?

Looks like only specific contributors can work on Hybrid App - https://expensify.slack.com/archives/CC7NECV4L/p1727973214891969

Asked SWM to help with this here.

hey @kadiealexander is there any procedure if I would like to work on hybrid app?

Hey @ChavdaSachin, we're keeping the access pretty tight for now, but keep an eye out in Slack in case we decide to open it up!

BTW, I saw a bug on hybrid app - Android - Production,  sign out button is missing on settings screen currently 😅.

It seems to be related to the change caused by this PR 🤔 I'll try to reproduce it locally

I've tried to reproduce this bug on a local build, but I was unable to do that... I've tested on both, simulators and physical devices, but it seems like the navigation works just fine. If the issue persists on the newest release (9.0.50) I'll try to reproduce that again!

Sounds like it's no longer reproducible, so I'm closing! Please reopen if you disagree.

This is still happening any page with a back button:
https://github.com/user-attachments/assets/2171b49a-a52e-42b6-94f5-aa3d03f4ff8c

Could you see if the issue is reproducible on a production built? We've been suspecting that it is only a TestFlight problem 🤔

Hm TestFlight and production are the same ipa/APKs 🤔

I can't reproduce this on my actual iPhone.
https://github.com/user-attachments/assets/0fd0fdc2-4bf5-4f71-8855-84b478cf4ab5

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

Getting a retest

Still reproducible. The back button across the app doesn’t work after login. Need to close and relaunch the app for it to work
https://github.com/user-attachments/assets/796a2049-be6c-418a-ac50-205fd9a07813

Not overdue, but I still suspect it's only happening in testflight.

Asked about this in one of our agency rooms here.

Holding on
https://github.com/Expensify/App/issues/44242
https://github.com/Expensify/App/pull/49937

On hold (see above)

Still on hold, PR is still open.

Issue not reproducible during KI retests. (First week)


Build Failed: What should I do ?

clang: error: no such file or directory: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/CarrierBundleUtilities.tbd'
clang: error: no such file or directory: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/gcrt1.o'
clang: error: no such file or directory: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/IOABPLib.tbd'

That looks like a problem with the simulator. You may want to download a new copy of it and/or Xcode.

But I use Xcode 7.3 and iOS 9.3 simulator. I solved the first and the last problem,"Link Binary With Libraries", frameWork Optional.But the second problem don't be solved in this way!

It looks like your copy of the simulator may be corrupt.

The last I use Carthage to build.


⚠ Samsung has degraded performance

In 3f20386, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2463 ms

Resolved: Samsung performance has improved in f98a192.


Paper code DFJSP

I really like your work, and found your Paper  An End-to-end Hierarchical Reinforcement Learning Framework for Large-scale Dynamic Flexible Job-shop Scheduling Problem, could you also provide the code for this interesting work?

You will see the source code soon. Thanks!
从 Windows 版邮件发送
发件人: Magnus Müller
发送时间: 2023年2月21日 22:50
收件人: leikun-starting/leikun-starting
抄送: Subscribed
主题: [leikun-starting/leikun-starting] Paper code DFJSP (Issue #1)
I really like your work, and found your Paper An End-to-end Hierarchical Reinforcement Learning Framework for Large-scale Dynamic Flexible Job-shop Scheduling Problem, could you also provide the code for this interesting work?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Perfect, thank you, I am really looking forward!

Hello teacher, your Paper An End-to-end Hierarchical Reinforcement Learning Framework for Large-scale Dynamic Flexible Job-shop Scheduling Problem
I have benefited a lot, but for some of the details are still not clear, I don't know if it is inconvenient for you to send a source code for me to refer to and learn, thank you very much, teacher!

I hope this message finds you well. I recently came across your paper titled "An End-to-end Hierarchical Reinforcement Learning Framework for Large-scale Dynamic Flexible Job-shop Scheduling Problem" and found it incredibly insightful and relevant to my research interests.
I am particularly interested in the methodology and implementation details you described. Would it be possible for you to share the source code or any related materials that you used in your study? Having access to the code would greatly enhance my understanding and allow me to build upon your work in my own research.
Thank you very much for your time and consideration. I look forward to your response.


Append coverage data from tox runs to unit test coverage

Presently, coverage from tox commands is not included in the unit test coverage report. This PR updates those commands to produce coverage data, and updates the test_unit make target to combine the coverage output.
Resolves #1880

Coverage report shows 83% compared to ~60% before this PR.


Use context for RepositoryList.LoadAttributes

Codecov Report

Merging #23435 (8a69bac) into main (cdc9e91) will increase coverage by 0.00%.
The diff coverage is 25.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main   #23435   +/-   ##
=======================================
  Coverage   47.11%   47.11%
=======================================
  Files        1149     1149
  Lines      151476   151474    -2
=======================================
  Hits        71370    71370
+ Misses      71671    71667    -4
- Partials     8435     8437    +2

Impacted Files
Coverage Δ

routers/api/v1/user/repo.go
53.90% <0.00%> (ø)

routers/web/user/notification.go
15.69% <0.00%> (ø)

models/repo/repo_list.go
78.33% <50.00%> (-0.10%)
:arrow_down:

... and 8 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Allow subclassing TextView and overriding certain methods

This is a great library and works really well, and I enjoyed the challenge of wrapping my head around Tree-sitter!
I'm using Runestone's TextView in a project that allows writing expressions including Xcode-like autocompletion that is anchored to the selected text. That requires the ability to subclass TextView (to intercept certain keystrokes for interacting with the autocompletion list) and to access the underlying UITextInput protocol (to get the rectangle of the selection, to put the autocompletion list next to it).
For consistency, I made the various methods that are overridden open or that provide UITextInput-like functionality.

@nighthawk I'm fine with opening up the class for subclassing. That makes sense.
I'm a little in doubt which direction it makes sense to take to expose some of the underlying UITextInput operations. This PR both exposes the underlying UITextInput instance through the new textInput property and it exposes deleteBackward() of the underlying text input through the new deleteBackward() function.
Would it make sense to avoid exposing the underlying text input and make "proxy functions" for everything?

Would it make sense to avoid exposing the underlying text input and make "proxy functions" for everything?

Sure, that makes sense. Added that textInput was more of a shortcut for not having all those proxy functions, but it's more consistent to have them.
I've added several proxy functions where TextInputView will return something non-nil.


Some confusion about random dataset

Hello,
I'm looking at your randomDataset code when I'm writing code, but two parts of it look a little strange, and I'm not sure if you did it on purpose or if it's a bug.
This function processing process is a bit strange. Could you help explain it ?
https://github.com/nnstreamer/nntrainer/blob/5fbaf163c26cec26ac3b8df8c1aec4b9df8a09f4/Applications/utils/datagen/cifar/cifar_dataloader.cpp#L31-L39
And Why is the label passed in here? It should be the value of cur_label_tensor passed in my understanding.
https://github.com/nnstreamer/nntrainer/blob/5fbaf163c26cec26ac3b8df8c1aec4b9df8a09f4/Applications/utils/datagen/cifar/cifar_dataloader.cpp#L103

:octocat: cibot: Thank you for posting issue #2525. The person in charge will reply soon.

收到，谢谢

maybe.. we need
33: *data = 1.0;
,
38: *(data + label) = 1.0;
, and a parameter check, label < length.
and additional doxygen entry or comments.

It is for the different cases to take labels.
Let's say the class ID is 10 for the truck in CFAR10.
Then, if the size == 1, the data will be filled with 9 and if it is not it will be [ 0,0,0,0,0,0,0,0,1 ]
Hope it will help.

Dooray! Failure Notice
    Failure Notice

    Your message sent to

@.***
has failed to be delivered.
      Please refer to the below for details.

        * Recipient :

@.***
        * Sent time :

2024-03-29T07:53:07
        * Subject :

Re: [nnstreamer/nntrainer] Some confusion about random dataset (Issue #2525)
            * Remote host said :

대외비/기밀 메일은 외부 계정으로 발송이 제한되어 일부 메일 발송 실패(수신자가 전달 설정한 경우 포함)
      This message was sent from a notification-only address that cannot accept incoming email.
      For more information, please contact<EMAIL_ADDRESS>

    © Dooray!.

It is for the different cases to take labels. Let's say the class ID is 10 for the truck in CFAR10. Then, if the size == 1, the data will be filled with 9 and if it is not it will be [ 0,0,0,0,0,0,0,0,1 ]
Hope it will help.

Oh, I can understand the case , thanks for your explian,  but I think it should add a check that.
label < length

Yes. you are right.

Okay . thanks for your help,
and how about the second question?

Okay . thanks for your help, and how about the second question?

yes. it is better to use cur_label_tensor. Thanks!

Okay . thanks for your help, and how about the second question?

yes. it is better to use cur_label_tensor. Thanks!

thanks for your help!!!
I also have other problem about nntrainer, I will raise another issue


Update HTTP client to have unique values for traceparent

We had a discussion with @jonsequitur and @davidfowl today regarding how the HTTP editor in VS uses the same value for the traceparent header. Each request sent in the HTTP editor should have its own unique value for traceparent. Jon is familiar with the issue and has a good idea about how to fix it.

@davidfowl I'm hearing from @samsp-msft that adding traceparent header is breaking some scenarios using OTel and he is recommending that we do not add that header. What's the correct behavior, do we need an option for this?
cc @vijayrkn

The problem that Sayed mentions above has also been raised on this internal ticket - https://developercommunity.visualstudio.com/t/The-http-file-feature-is-sending-a-Trac/10791833

@shyamnamboodiripad I don't think this is the same issue.


flow; hxcpp specific flags

These are partially implemented on cli already, can be passed via hxcpp xml injection already, but having a project node for these seems reasonable

this was implemented a while back (build.hxcpp.flags)


mas steps should be ignored on linux

On Linux, casks in the Brewfile are ignored by default. Why, then, should mas apps make the bundling process return a nonzero exit code?
E.g., installing packages from this Brewfile on Linux does not result in any error
cask "iterm2"

while, installing packages from this, makes the process return a nonzero exit code
cask "iterm2"
mas "Xcode", id: 497799835

Sorry, my bad: my installation was failing when brew installing mas itself, not when installing mas apps.


[1.19] Data Gen Time

So this makes tagging available for extensions/mods to categorize something as an alternative/derivative of an item/block?
Cool!

Let me know when this PR is ready, so I can properly take a look at it


deldir: specify iconv library for darwin.

Description of changes
fix #196940 on x86_64
@Aehmlo Does this fix for aarch64 ?

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Will take a look when I'm back at a computer.

It does look like this fixes deldir. There's another iconv-related issue that arises when trying to install interp (the package I'm really after), but nix-shell -E 'with import ./default.nix {}; runCommand "dummy" { buildInputs = [ rPackages.deldir ]; } ""' works without issue for me on aarch64-darwin.


CVE-2024-24790

The latest temporalio/admin-tools, temporalio/server and temporalio/ui images are using a version of Go that is impacted by CVE-2024-24790.
Updating Go to 1.21.11 or newer would fix the issue.

Thanks for reporting this!
We are aware of this issue and have published documentation regarding Worker Versioning, an experimental feature that helps mitigate risks when upgrading Temporal Applications.
Worker Versioning aims to improve the upgrade process for Temporal applications by introducing a system of version sets. This allows for a more controlled rollout of new code versions, ensuring compatibility between Workers and Workflows.
It's important to note that the current version of the Temporal Server is affected by the vulnerability you mentioned. The recommended fix is to update Go to 1.21.11 or newer.
We're committed to providing secure and reliable solutions, and we appreciate you bringing this to our attention.


[OAP-1492]Change spark 3.0.0 from preview version to formal release version

Change the downloaded Spark binary from preview version to formal version.

LGTM.

Although we did not change Spark, let's keep it as it now - users can refer this as how RPMem can be build and installed.


cmd/cue: strings.Join fails with [string, ...string] list

What version of CUE are you using (cue version)?

$ cue version
cue version +aa87887 linux/amd64

Does this issue reproduce with the latest release?
Yes
What did you do?
-- x.cue --
package x

import "strings"

#c: {
	list: [...string]
	result: strings.Join(list, " ")
}

c: #c & {
	list: ["a", "b", "c"]
}

$ cue eval

What did you expect to see?
#c: {
    list: []
    result: ""
}
c: {
    list: ["a", "b", "c"]
    result: "a b c"
}

What did you see instead?
#c.list.0: error in call to strings.Join: element 0 of list argument 0: non-concrete value string

I can't seem to reproduce this on tip or even the indicated version. Could you please verify?

That is very strange. I can't repro this either. Closing for now. Will re-open if I can find out what version triggered this.

I stumbled upon this while porting an internal repo to the new evaluator. It reproduces with [string, ...string]:
-- x.cue --
package x

import "strings"

#c: {
	list: [string, ...string]
	result: strings.Join(list, " ")
}

c: #c & {
	list: ["a", "b", "c"]
}

Is this a bug or a feature?

Thanks @leoluk. Re-opening because this does indeed appear to be an issue as of 778719ed:
exec cue eval

-- x.cue --
package x

import "strings"

#c: {
	list: [string, ...string]
	result: strings.Join(list, " ")
}

c: #c & {
	list: ["a", "b", "c"]
}

Thanks @leoluk. Re-opening because this does indeed appear to be an issue as of 778719ed:
exec cue eval

-- x.cue --
package x

import "strings"

#c: {
	list: [string, ...string]
	result: strings.Join(list, " ")
}

c: #c & {
	list: ["a", "b", "c"]
}

This issue has been migrated to https://github.com/cue-lang/cue/issues/585.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


typo fixes

#sign-off

@outinyman : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Allow to override package target paths from MSBuild

@kekekeks Thanks! Do you invoke these targets manually via dotnet msbuild or do you plan to expose them via the various dotnet- utilities as well?

I'm planning to create a packaging utility for AvaloniaUI-based apps. The idea is to populate MSBuild items with required files and package dependencies from a separate Target/Task and then invoke CreateRpm/CreateDeb.
The tool will have presets for supported distro versions, so user won't need to know anything about Linux packaging at all. Just run dotnet package-avalonia-app --os=ubuntu.16.04 and get an installable package with .desktop launcher file, icon, etc.

Ah, makes sense. Definitively something we'd like to support with dotnet packaging!


Routing error when using group_send

Hello,
This issue might be related to #181 but I'm not sure because I don't have any problem sending messages from the server when I'm not using Group.
My configuration
On a brand new Django 1.9.6 project, Python 2.7.6
foo
├── db.sqlite3
├── foo
│   ├── __init__.py
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
├── group_test
│   ├── admin.py
│   ├── apps.py
│   ├── channel_routing.py
│   ├── consumers.py
│   ├── __init__.py
│   ├── migrations
│   │   └── __init__.py
│   ├── models.py
│   ├── tests.py
│   └── views.py
├── manage.py
└── templates

Installed packages
asgiref==0.13.0
autobahn==0.14.1
channels==0.14.0
daphne==0.12.1
Django==1.9.6
six==1.10.0
Twisted==16.2.0
txaio==2.5.1
zope.interface==4.1.3

Settings
CHANNEL_LAYERS = {
    'default': {
        "BACKEND": "asgiref.inmemory.ChannelLayer",
        "ROUTING": "group_test.channel_routing.routing",
    }
}

Routing
# -*- coding: utf-8 -*-

from channels.routing import include, route_class

sub_routing = [
    route_class('group_test.consumers.MyConsumer', path=r'^/(?P<group_name>.+)/$'),
]

routing = [
    include(sub_routing, path=r'^/foo'),
]

consumers.py
# -*- coding: utf-8 -*-

from channels.generic.websockets import JsonWebsocketConsumer

class MyConsumer(JsonWebsocketConsumer):
    strict_ordering = False
    slight_ordering = False

    def connection_groups(self, **kwargs):
        return [kwargs['group_name']]

    def connect(self, message, **kwargs):
        group_name = kwargs['group_name']
        self.group_send(group_name, ['hello'])

    def receive(self, content, **kwargs):
        group_name = kwargs['group_name']
        self.group_send(group_name, content)

    def disconnect(self, message, **kwargs):
        group_name = kwargs['group_name']
        self.group_send(group_name, ['bye'])

The error
Whenever I try to use group_send I get an error in the logs and no responses from the server:
let ws = new WebSocket('ws://<IP_ADDRESS>:8080/foo/bar/');

[2016/06/02 09:14:51] WebSocket CONNECT /foo/bar/ [<IP_ADDRESS>:40218]
2016-06-02 09:14:51,309 - ERROR - worker - Could not find match for message on websocket.connect! Check your routing.
None

If I use send it works as expected but, of course, only the original client gets the response.
I can't figure out how to make this works, is there something I misconfigured or misunderstood about groups?

seems like just a typo, please help to review PR, thanks!

Your changes fixes the problem for me, group_send works as expected now. :+1:
Thanks!


Style: optimize yaml template to avoid line breaks.

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation

/kind enhancement

/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage

What this PR does / why we need it:
To optimize yaml template style to avoid line breaks by adding a '-' in forefront.
{{- if .param}}

{{- end}}
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/assign @rambohe-ch
Does this PR introduce a user-facing change?

NONE

other Note

/assign @rambohe-ch @kadisi

@jingxiongljx Very appreciate for your pull request. please fix github actions' errors.

@jingxiongljx please fix golangci lint error. and you run make lint locally before git push

Wrong email commit in git log. Will request this pr later.


lattices should be bounded (rationals -> extended rationals)

The semantics of rewrite rules is that everything on the LHS is query, and everything on the RHS is action (populating terms only, no query). For example, in
(rewrite ((add a b)) ((= (lo x) (+ (lo a) (lo b)))))

(lo x), (lo a), (lo b) will be created on the fly with the default bottom value (so the above is usually not the rule we want). For this to be true, lattices should have a least element.

Looking back at my egg# tutorial, I think the semantics we wanted is "analysis relations has a default, but the default is not necessarily the lattice bottom", so we can support normal functions like (in egg# syntax):
rel add1(i: i64) -> i64(i + 1).

In egg#, lattices are implicitly bounded (bottom is "does not exist" and top is crash), so if this is true for egg-smol, implementations of lattices do not need to be bounded. However, to support default values for rationals, we still need to extend rationals with oo and -oo as default values for relations like lo and hi.

I think we can close this based on in-person conversations. Essentially, it's not the engines problem at the moment, this should be checked at a higher level.