shape issues in rpn_bbox_pred, bbox_pred in resnet50 & coco_2014

with anchor_scales=[8, 16, 32], i have error
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [48] rhs shape= [60]
[[Node: save/Assign_269 = Assign[T=DT_FLOAT, _class=["loc:@resnet_v1_50/rpn_bbox_pred/biases"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](resnet_v1_50/rpn_bbox_pred/biases, save/RestoreV2_269)]]
after that, i change anchor_scales to [2, 4, 8, 16, 32] to fit rpn_bbox_pred shape to [60], i have another error in bbox_pred
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [2048,84] rhs shape= [2048,324]
[[Node: save/Assign_1 = Assign[T=DT_FLOAT, _class=["loc:@resnet_v1_50/bbox_pred/weights"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](resnet_v1_50/bbox_pred/weights, save/RestoreV2_1)]]
How to solve it? Thank you!

you are using coco models instead of voc ones somewhere?
-Xinlei
On Thu, Jul 20, 2017 at 7:11 PM, Dat Tran<EMAIL_ADDRESS>wrote:

with anchor_scales=[8, 16, 32], i have error
InvalidArgumentError (see above for traceback): Assign requires shapes of
both tensors to match. lhs shape= [48] rhs shape= [60]
[[Node: save/Assign_269 = Assign[T=DT_FLOAT, _class=["loc:@resnet_v1_50/rpn_bbox_pred/biases"],
use_locking=true, validate_shape=true, _device="/job:localhost/
replica:0/task:0/cpu:0"](resnet_v1_50/rpn_bbox_pred/biases,
save/RestoreV2_269)]]
after that, i change anchor_scales to [2, 4, 8, 16, 32] to fit
rpn_bbox_pred shape to [60], i have another error in bbox_pred
InvalidArgumentError (see above for traceback): Assign requires shapes of
both tensors to match. lhs shape= [2048,84] rhs shape= [2048,324]
[[Node: save/Assign_1 = Assign[T=DT_FLOAT, _class=["loc:@resnet_v1_50/bbox_pred/weights"],
use_locking=true, validate_shape=true, _device="/job:localhost/
replica:0/task:0/cpu:0"](resnet_v1_50/bbox_pred/weights,
save/RestoreV2_1)]]
How to solve it? Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/endernewton/tf-faster-rcnn/issues/164, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ACTwETuoauw5FfL8nZV2UciNvzH5Ygclks5sQAjUgaJpZM4Oe4F3
.

i only use demo.py. it works well with voc, but i change to coco with resnet50 or resnet101 it leads to problems

demo works with voc. you may want to change some code to make it work on
coco
-Xinlei
On Thu, Jul 20, 2017 at 7:19 PM, Dat Tran<EMAIL_ADDRESS>wrote:

i only use demo.py. it works well with voc, but i change to coco with
resnet50 or resnet101 it leads to problems
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/endernewton/tf-faster-rcnn/issues/164#issuecomment-316883358,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTwEe7m8LbviBebZngWZz2GCaqxtyNnks5sQAqugaJpZM4Oe4F3
.

thank you, but where i need to change to work with resnet50?


initial start

let's start!

Great start! Keep going!! :-)

yes, please review, feedback and approve?


[Feature] support spill_mem_limit_threshold in resource group

Why I'm doing:
We already have the spill_mem_limit_threshold session variable to control the timing of a single query triggering spill, but multiple queries cannot sense each other, so the following scenario may occur: two queries in the same resource group not reach the respective spill_mem_limit_threshold,  but the memory limit of the resource group has been exceeded, which eventually led to OOM.
In this PR, I added the spill_mem_limit_threshold setting for the resource group. When the overall memory usage of the resource group exceeds a certain threshold, the query that enables spill will also trigger spill.
What I'm doing:
Fixes #issue
What type of PR is this:

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@mergify backport branch-3.1 branch-3.2


with vLLM embedding api，got 'Detected embedding dimension: 3584 An error occurred: Embedding dim mismatch, expected: 3584, but loaded: 768'

vLLM embedding model is BAAI-bge-multilingual-gemma2 , with cli "vllm serve  BAAI-bge-multilingual-gemma2" start

You may need to adjust the embed dim according to the embedding model being used.
Here i'm sharing ollama demo script as ref.
rag = LightRAG(
    working_dir=WORKING_DIR,
    llm_model_func=ollama_model_complete,
    llm_model_name="gemma2:2b",
    llm_model_max_async=4,
    llm_model_max_token_size=32000,
    llm_model_kwargs={"host": "http://localhost:11434", "options": {"num_ctx": 32768}},
    embedding_func=EmbeddingFunc(
        embedding_dim=768, ###  #Change this value accordingly
        max_token_size=8192,
        func=lambda texts: ollama_embedding(
            texts, embed_model="nomic-embed-text", host="http://localhost:11434"
        ),
    ),
)

thanks for reply，i don't have ollama，my embedding model served by local vLLM，llm serverd by remote Yi-lighting api， It  works after modify vdb_chunks.json entities relationships... embedding_dim  to 3584，i don't know why

Did you create the database directory first with the nomic-embed-text model and then try to infer using BAAI-bge-multilingual-gemma2?
If this is the case, since the nomic-embed-text embedding dimension is 768, the vector embeddings in the nanodb would have been created with an "embedding_dim" of 768. However, if you then rerun the process using another embedding model with a dimension of 3584 without deleting the database directory, there will be a mismatch, as all the vdb JSON files will contain:
{
    "embedding_dim": 768
}

This indicates that they were encoded based on the previous model.
Whenever you change your LLM or embedding model, make sure to delete the old directory or rename it to reflect the effective changes of the current run.
Hope this helps. Let me know if you need additional clarity on this.

Feel free to close this issue, if you got the fix and answer 😄

Feel free to close this issue, if you got the fix and answer 😄

Did you create the database directory first with the nomic-embed-text model and then try to infer using BAAI-bge-multilingual-gemma2?
If this is the case, since the nomic-embed-text embedding dimension is 768, the vector embeddings in the nanodb would have been created with an "embedding_dim" of 768. However, if you then rerun the process using another embedding model with a dimension of 3584 without deleting the database directory, there will be a mismatch, as all the vdb JSON files will contain:
{
    "embedding_dim": 768
}

This indicates that they were encoded based on the previous model.
Whenever you change your LLM or embedding model, make sure to delete the old directory or rename it to reflect the effective changes of the current run.
Hope this helps. Let me know if you need additional clarity on this.

yes，you are correct，i think it was solved

Glad to hear you got a fix. You can consider closing this issue.


Large _FIRCLSHexMap symbol in binary

Description
I was doing some binary analysis using bloaty on an app that uses Firebase and _FIRCLSHexMap is the single largest symbol, taking up 2.88Mi (roughly 3.4% of the binary's file size). Is there anything we can do to reduce this number? What feature is this class map used for?
I create a minimal example using SPM and the symbol still takes up 1.3% of the binary.
Reproducing the issue
firebase-bloaty.zip
swift build -c release
bloaty -d symbols --debug-file=./.build/arm64-apple-macosx/release/firebase-bloaty.dSYM/Contents/Resources/DWARF/firebase-bloaty ./.build/arm64-apple-macosx/release/firebase-bloaty

Firebase SDK Version
10.27.0
Xcode Version
15.3
Installation Method
Swift Package Manager
Firebase Product(s)
Analytics, Crashlytics
Targeted Platforms
iOS
Relevant Log Output
➜  firebase-bloaty ../bloaty/build/bloaty -d symbols --debug-file=./.build/arm64-apple-macosx/release/firebase-bloaty.dSYM/Contents/Resources/DWARF/firebase-bloaty ./.build/arm64-apple-macosx/release/firebase-bloaty
    FILE SIZE        VM SIZE
 --------------  --------------
  52.4%  1.10Mi  52.2%  1.11Mi    [__LINKEDIT]
  36.3%   782Ki  36.1%   785Ki    [9049 Others]
   2.7%  58.8Ki   2.7%  58.8Ki    [__TEXT,__objc_methname]
   1.7%  36.7Ki   1.7%  36.7Ki    [__TEXT,__cstring]
   1.3%  28.7Ki   1.3%  28.7Ki    _FIRCLSHexMap
   1.3%  28.5Ki   1.3%  28.5Ki    [__DATA_CONST,__cfstring]
   0.0%      32   0.7%  15.9Ki    __mh_execute_header
   0.7%  15.8Ki   0.0%      21    [__TEXT]
   0.6%  13.7Ki   0.6%  13.7Ki    [__DATA,__objc_selrefs]
   0.0%       0   0.6%  12.7Ki    [__DATA]
   0.5%  11.5Ki   0.5%  11.5Ki    [__TEXT,__unwind_info]
   0.5%  10.6Ki   0.5%  10.6Ki    [__TEXT,__objc_methtype]
   0.3%  5.80Ki   0.3%  5.80Ki    [__TEXT,__stub_helper]
   0.3%  5.80Ki   0.3%  5.80Ki    [__TEXT,__stubs]
   0.2%  4.48Ki   0.2%  4.48Ki    [__DATA_CONST]
   0.2%  4.33Ki   0.2%  4.33Ki    [__TEXT,__objc_classname]
   0.2%  4.02Ki   0.2%  4.02Ki    [__TEXT,__eh_frame]
   0.2%  3.85Ki   0.2%  3.85Ki    [__DATA,__la_symbol_ptr]
   0.2%  3.60Ki   0.2%  3.60Ki    _$s16FirebaseSessions21DevEventConsoleLoggerC11prettyPrint5protoySo037_firebase_appquality_sessions_SessionD0V_tF
   0.1%  2.79Ki   0.1%  2.79Ki    _$s20FirebaseCoreInternal16HeartbeatsBundleV6appendyyAA9HeartbeatVF
   0.1%  2.44Ki   0.1%  2.44Ki    _decode_field
 100.0%  2.10Mi 100.0%  2.12Mi    TOTAL

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

{
  "originHash" : "f9fbccdcd9df8b2d727415364544414f5974f2acb2fa57fb3d444506251e36ae",
  "pins" : [
    {
      "identity" : "abseil-cpp-binary",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/abseil-cpp-binary.git",
      "state" : {
        "revision" : "748c7837511d0e6a507737353af268484e1745e2",
        "version" : "1.2024011601.1"
      }
    },
    {
      "identity" : "app-check",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/app-check.git",
      "state" : {
        "revision" : "076b241a625e25eac22f8849be256dfb960fcdfe",
        "version" : "10.19.1"
      }
    },
    {
      "identity" : "firebase-ios-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/firebase-ios-sdk.git",
      "state" : {
        "revision" : "8bcaf973b1d84e119b7c7c119abad72ed460979f",
        "version" : "10.27.0"
      }
    },
    {
      "identity" : "googleappmeasurement",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleAppMeasurement.git",
      "state" : {
        "revision" : "70df02431e216bed98dd461e0c4665889245ba70",
        "version" : "10.27.0"
      }
    },
    {
      "identity" : "googledatatransport",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleDataTransport.git",
      "state" : {
        "revision" : "a637d318ae7ae246b02d7305121275bc75ed5565",
        "version" : "9.4.0"
      }
    },
    {
      "identity" : "googleutilities",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleUtilities.git",
      "state" : {
        "revision" : "57a1d307f42df690fdef2637f3e5b776da02aad6",
        "version" : "7.13.3"
      }
    },
    {
      "identity" : "grpc-binary",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/grpc-binary.git",
      "state" : {
        "revision" : "e9fad491d0673bdda7063a0341fb6b47a30c5359",
        "version" : "1.62.2"
      }
    },
    {
      "identity" : "gtm-session-fetcher",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/gtm-session-fetcher.git",
      "state" : {
        "revision" : "0382ca27f22fb3494cf657d8dc356dc282cd1193",
        "version" : "3.4.1"
      }
    },
    {
      "identity" : "interop-ios-for-google-sdks",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/interop-ios-for-google-sdks.git",
      "state" : {
        "revision" : "2d12673670417654f08f5f90fdd62926dc3a2648",
        "version" : "100.0.0"
      }
    },
    {
      "identity" : "leveldb",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/leveldb.git",
      "state" : {
        "revision" : "a0bc79961d7be727d258d33d5a6b2f1023270ba1",
        "version" : "1.22.5"
      }
    },
    {
      "identity" : "nanopb",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/nanopb.git",
      "state" : {
        "revision" : "b7e1104502eca3a213b46303391ca4d3bc8ddec1",
        "version" : "2.30910.0"
      }
    },
    {
      "identity" : "promises",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/promises.git",
      "state" : {
        "revision" : "540318ecedd63d883069ae7f1ed811a2df00b6ac",
        "version" : "2.4.0"
      }
    },
    {
      "identity" : "swift-protobuf",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/apple/swift-protobuf.git",
      "state" : {
        "revision" : "9f0c76544701845ad98716f3f6a774a892152bcb",
        "version" : "1.26.0"
      }
    }
  ],
  "version" : 3
}

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

From the source, it looks like FIRCLSHexMap should only be 17 bytes - https://github.com/firebase/firebase-ios-sdk/blob/main/Crashlytics/Shared/FIRCLSByteUtility.m#L22
So maybe the bloaty tool doesn't correctly handle C static char arrays?  Does making FIRCLSHexMap a local variable inside the FIRCLSHexFromByte function make any measurable difference on the overall size?

@paulb777 I cloned this repo locally, switched to the 10.27.0 branch, then referenced the local checkout in my test package. I created another release build, then made the following change:
 #pragma mark Private functions

-static const char FIRCLSHexMap[] = "0123456789abcdef";
-
 void FIRCLSHexFromByte(uint8_t c, char output[]) {
   if (!output) {
     return;
   }

+  char FIRCLSHexMap[] = "0123456789abcdef";
+
   output[0] = FIRCLSHexMap[c >> 4];
   output[1] = FIRCLSHexMap[c & 0x0f];
 }

(My C is rusty, so please correct me if that is incorrect)
I then created another release build and compared the binary size and bloaty output.
Binary size decreased from 2,199,808 bytes to 2,199,776 (-32 bytes), and the 28.7Ki _FIRCLSHexMap symbol is no longer listed in bloaty's output. Looks like a bug in bloaty after all. Thanks for your help, you can close this issue.


Carthage improvements

Please have a look at the individual commit messages for the details.

@sschuberth  @MarcelBochtler  Another improvement, please add Carthage to https://github.com/oss-review-toolkit/ort/blob/master/Dockerfile - see this was missed in the original PR were Carthage was added.

@sschuberth @MarcelBochtler Another improvement, please add Carthage to https://github.com/oss-review-toolkit/ort/blob/master/Dockerfile - see this was missed in the original PR were Carthage was added.

Let's do this in a new PR to not reset PR checks for this one. Can you approve @tsteenbe?


Setting a document type to Prisma does not allow you to use the Prisma formatting logic (and other LSP features)

When I create a new document in VSCode and paste a Prisma Schema, I have to switch to Prisma on the bottom right to be get syntax highlighting. But the formatting option in the Right Click Menu does not appear by doing that, but only when I save the file as .prisma.

Auto completion also does not work :(

Open question: Is this even possible in VS Code?

This is working as expected @janpio and behaves the same as with other languages.
That option at the bottom right is only for syntax highlighting. So if I were to open a file and use the same flow to select rust, I also wouldn't get access to the rust LS, it would only be highlighted as if it were a rust file


batect doesn't appear to work with Minikube docker daemon

When I use minikube, I set the following environment variables:
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://<IP_ADDRESS>:2376"
export DOCKER_CERT_PATH="/Users/aidan.steele/.minikube/certs"

This fails to run my task and returns the following error:

Docker is not installed, not running or not compatible with batect: Unexpected status line:

Hey @aidansteele, thanks for the feedback. I'll take a look.


[Task] Remove the prepared statements toggle and move it to settings

Show a warning banner in response tab when the prepared statement toggle is on.
Design: https://app.zeplin.io/project/6683c698d2210f2b0697d978/screen/66951e174073dc249b335471

Closing this task since this is moved to individual query config update tasks.


Allow attaching components to teams

As in scoreboard teams ? What's the use case ?

They would be useful for minigames that require a state shared between players, or things such as shared backpacks.


net: lib: http_server: close file descriptors before calling http_server_init again

Describe the bug
HTTP server crashes after a restart
To Reproduce
I start to play with a modified version of samples/net/sockets/http_server with a index.html which loads a JavaScript application.
When refreshing the page with F5, the http_server_run function returns and http_server_init is called again.
https://github.com/zephyrproject-rtos/zephyr/blob/67a31ef2d781231aacb44b6a99681750a01123d5/subsys/net/lib/http/http_server_core.c#L749-L762
Expected behavior
No crash.
Impact
?
Logs and console output

with CONFIG_ZVFS_EVENTFD_MAX=1

*** Booting Zephyr OS build v3.7.0-rc2 ***
[00:00:03.846,000] <inf> net_config: Initializing network
[00:00:03.846,000] <inf> net_config: IPv4 address: <IP_ADDRESS>
[00:00:31.163,000] <inf> net_http_server: Re-starting server (-12)
[00:00:31.163,000] <err> net_http_server: eventfd failed (-12)
[00:00:31.163,000] <err> net_http_server: Failed to initialize HTTP2 server
[00:00:31.223,000] <err> eth_nxp_enet_mac: ENET_GetRxFrameSize return: 4001
[00:00:32.163,000] <err> os: ***** USAGE FAULT *****
[00:00:32.163,000] <err> os:   Illegal use of the EPSR
[00:00:32.163,000] <err> os: r0/a1:  0x801253a0  r1/a2:  0x00000000  r2/a3:  0x800013cc
[00:00:32.163,000] <err> os: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x6002a65d
[00:00:32.163,000] <err> os:  xpsr:  0x4000000f
[00:00:32.163,000] <err> os: Faulting instruction address (r15/pc): 0x00000000
[00:00:32.163,000] <err> os: >>> ZEPHYR FATAL ERROR 35: Unknown error on CPU 0
[00:00:32.163,000] <err> os: Fault during interrupt handling

[00:00:32.163,000] <err> os: Current thread: 0x80125fe8 (idle)
[00:00:32.175,000] <err> os: Halting system

with CONFIG_ZVFS_EVENTFD_MAX=16

*** Booting Zephyr OS build v3.7.0-rc2 ***
[00:00:04.048,000] <inf> net_config: Initializing network
[00:00:04.048,000] <inf> net_config: IPv4 address: <IP_ADDRESS>
[00:00:31.642,000] <inf> net_http_server: Re-starting server (-12)
[00:00:31.642,000] <err> net_ctx: Port 80 is in use!
[00:00:31.642,000] <err> net_http_server: bind: 112
[00:00:31.642,000] <err> net_http_server: All services failed (1)
[00:00:31.642,000] <err> net_http_server: Failed to initialize HTTP2 server
[00:00:32.642,000] <err> os: ***** USAGE FAULT *****
[00:00:32.642,000] <err> os:   Illegal use of the EPSR
[00:00:32.642,000] <err> os: r0/a1:  0x80125670  r1/a2:  0x00000000  r2/a3:  0x800013cc
[00:00:32.642,000] <err> os: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x6002a65d
[00:00:32.642,000] <err> os:  xpsr:  0x4000000f
[00:00:32.642,000] <err> os: Faulting instruction address (r15/pc): 0x00000000
[00:00:32.642,000] <err> os: >>> ZEPHYR FATAL ERROR 35: Unknown error on CPU 0
[00:00:32.642,000] <err> os: Fault during interrupt handling

[00:00:32.642,000] <err> os: Current thread: 0x801262b8 (idle)
[00:00:32.656,000] <err> os: Halting system

Environment:

OS: Ubuntu 20.04
Toolchain (e.g Zephyr SDK, ...): 0.16.3
Commit SHA or Version used: v3.7.0-rc2

Additional context
When http_server_init is called a second time, file descriptors (eventfd, sockets, ...) are already opened but the following code clears them:
https://github.com/zephyrproject-rtos/zephyr/blob/67a31ef2d781231aacb44b6a99681750a01123d5/subsys/net/lib/http/http_server_core.c#L77-L78

Not sure about the crash, but we were clearly missing some cleanup in case of errors. Can you check if https://github.com/zephyrproject-rtos/zephyr/pull/75663 helps with your case?
I'm also curious what would be to root cause for the server restart, could you perhaps enable debug logging and see what causes the restart?

Not sure about the crash, but we were clearly missing some cleanup in case of errors. Can you check if #75663 helps with your case?

It's working fine with net/http-server-core-cleanup-on-error: no more crash and no more "Re-starting server".

I'm also curious what would be to root cause for the server restart, could you perhaps enable debug logging and see what causes the restart?

 So apparently you were affected with some other regression we had temporarily on main, which caused zsock_poll() to return ENOMEM, as CONFIG_NET_SOCKETS_POLL_MAX was ineffective. That's no longer the case on my branch.
However, there's apparently something more that causes the server restart crash than the socket cleanup from my PR, I can still reproduce it when I simulate that ENOMEM scenario. Need to dig more into this.

Ok, I've extended #75663 with additional fixes for the problems I've identified, server restarting should work fine now (at least that was the case on my side).

Ok, I've extended #75663 with additional fixes for the problems I've identified, server restarting should work fine now (at least that was the case on my side).

But maybe it's just a browser cache issue?
I also randomly have some new error messages now:
[00:01:00.230,000] <err> net_tcp: conn: 0x8012f8bc, new bytes 342 during TIME-WAIT state sending reset

But maybe it's just a browser cache issue?

I'd check with wireshark how the packets fly, I. e. whether the response is sent out immediately or is there indeed some unexpected delay on the Zephyr side. I don't think any of my changes should have an impact here.

I also randomly have some new error messages now:

[00:01:00.230,000]  net_tcp: conn: 0x8012f8bc, new bytes 342 during TIME-WAIT state sending reset

Can you identify (again, Wireshark could help here) what's actually being sent after the connection is closed on our side? Is it just another request? Perhaps we shouldn't be closing the connection right after serving HTTP1 request.

@blemouzy I've pushed one extra commit to my branch, fixing the server behavior when there's no "Connection: close" header - the connection should remain open in such case. I hope this helps for those TCP errors you see.

I'd check with wireshark how the packets fly, I. e. whether the response is sent out immediately or is there indeed some unexpected delay on the Zephyr side.

The response is indeed sent immediately:

But 13.69 seconds for a 234 KiB file looks huge:/

I don't think any of my changes should have an impact here.

Yeah, probably not related to your changes.

Can you identify (again, Wireshark could help here) what's actually being sent after the connection is closed on our side? Is it just another request? Perhaps we shouldn't be closing the connection right after serving HTTP1 request.

"TCP Retransmission" frames in Wireshark when the error occurs

@blemouzy I've pushed one extra commit to my branch, fixing the server behavior when there's no "Connection: close" header - the connection should remain open in such case. I hope this helps for those TCP errors you see.

That looks worse:
[00:00:43.871,000] <err> net_pkt: Data buffer (1500) allocation failed.
[00:00:43.871,000] <err> net_tcp: conn: 0x801304bc packet allocation failed, len=1460
[00:00:43.971,000] <err> net_pkt: Data buffer (1340) allocation failed.
[00:00:43.971,000] <err> net_tcp: conn: 0x8013026c packet allocation failed, len=1292
[00:00:44.072,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:44.172,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:44.172,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:00:44.617,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:44.617,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:00:45.235,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:45.235,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:00:46.110,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:46.110,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:00:47.372,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:47.372,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:00:49.215,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:49.215,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:00:51.930,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:51.930,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:00:53.724,000] <dbg> net_http_server: client_timeout: Client 0x80123828 timeout
[00:00:53.727,000] <dbg> net_http_server: client_timeout: Client 0x80123cd0 timeout
[00:00:54.072,000] <dbg> net_http_server: client_timeout: Client 0x80124178 timeout
[00:00:54.132,000] <err> net_http_server: HTTP request handling error (-105)
[00:00:54.132,000] <dbg> net_http_server: http_server_run: Client #0 has disconnected
[00:00:54.132,000] <dbg> net_http_server: http_server_run: Client #1 has disconnected
[00:00:54.462,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:00:54.462,000] <err> net_tcp: TCP failed to allocate buffer in retransmission
[00:01:00.444,000] <err> net_pkt: Data buffer (68) allocation failed.
[00:01:00.444,000] <err> net_tcp: TCP failed to allocate buffer in retransmission

Have you by any chance lowered CONFIG_NET_BUF_TX_COUNT (the sample defaults to 128)? That'd explain degraded performance, the TCP TX window seems to be pretty small according to wireshark. And with small buffer count and large TCP traffic, it sometimes ends up with those buffer allocation issues (which indicate that for the current net buf count the TX window should be lowered even more).

Have you by any chance lowered CONFIG_NET_BUF_TX_COUNT (the sample defaults to 128)? That'd explain degraded performance, the TCP TX window seems to be pretty small according to wireshark. And with small buffer count and large TCP traffic, it sometimes ends up with those buffer allocation issues (which indicate that for the current net buf count the TX window should be lowered even more).

Indeed, I set back the value to its default value during tests...
With same tuning as http_server sample, only 0.097 seconds are needed to download the js file.
Sorry for this.


Caption and credit missing for image in magazine article with 50-50 banner

Looks like the issue with missing caption and credit for image if using 50-50 banner wasn't fixed for magazine template with #1862?

@meols This is still in ready to deploy, and is fixed in dev and preprod. Yet to be released to production.

Fixed on #1862


rm -r ./test/testdata/syntax_transform/

I screwed this part up during my rewriter rename and duplicated all these
Motivation

Test plan

See included automated tests.

Yeah, I should have caught that in my rewrite scripts :(


[Deploy] ClickUp support

Service
ClickUp productivity software integration (app.clickup.com)
Link to your repository
https://github.com/gengue/franz-recipe-clickup

Code seems okay. Could any of the mantainers take a look at this? :)

Is this recipe getting approved? It's the only other service I need, and the code seems correct, webview seems to link properly.

I'm using it as a custom dev recipe, and it's working, too bad I have to install it manually on each of my PC's


PANOS 9.x fw.show_system_resources() fails

Hi,
When trying to get the system resources I get the following error after upgrade to 9.x
----snip----
Python 3.7.3 (default, Mar 27 2019, 09:23:15)
[Clang 10.0.1 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

from pandevice import firewall
fw = firewall.Firewall('<IP_ADDRESS>', 'admin', 'very_secret_password')
getstats = fw.show_system_resources()
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.7/site-packages/pandevice/firewall.py", line 364, in show_system_resources
pan_device=self)
pandevice.errors.PanDeviceError: Problem parsing show system resources
----snip----

This works fine when connecting to a 8.x gw.
Thanks

Reason is in 8.x the top output looked like this:
top - 10:29:54 up  1:14,  2 users,  load average: 0.56, 0.78, 1.00
Tasks: 132 total,   2 running, 130 sleeping,   0 stopped,   0 zombie
Cpu(s): 11.6%us,  6.0%sy,  0.4%ni, 81.8%id,  0.1%wa,  0.0%hi,  0.2%si,  0.0%st
Mem:   4561772k total,  4150224k used,   411548k free,    46492k buffers
Swap:        0k total,        0k used,        0k free,  2245248k cached
In 9.x it looks like this:
top - 17:27:58 up 3 days,  9:24,  1 user,  load average: 2.18, 2.15, 2.20
Tasks: 135 total,   3 running, 132 sleeping,   0 stopped,   0 zombie
%Cpu(s): 52.5 us,  1.2 sy,  0.7 ni, 45.6 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  4119652 total,   272224 free,  1901384 used,  1946044 buff/cache
KiB Swap:     1972 total,     1972 free,        0 used.  1740796 avail Mem
Which makes the following regex fail in pandevice.firewall:
regex = re.compile(r"load average: ([\d.]+).* ([\d.]+)%id.Mem:.?([\d.]+)k total.*?([\d]+)k free", re.DOTALL)


Output suggestion: add a new line after AssertionFailedException

It might be visually easier to compare the expected and actual output like this:
To reproduce
Diffract.Assert(true, false)

Actual
Diffract.AssertionFailedException: Expect = true
Actual = false

Expected
Diffract.AssertionFailedException
Expect = true
Actual = false

But not when there is a text after
Diffract.AssertionFailedException: ResultValue collection differs:
  ResultValue[0].Item.Amount Expect = 101M
                             Actual = 10M

The goal would be to have a alignement between Expect and Actual.

Good point! I think it would make sense to implement this for Assert, and leave ToString and Write as is, since this is an issue that only really happens due to the way exceptions are printed.
Or maybe this could be an option in PrintParams; this way Assert would defaut it to true and the others to false.


Please make dark mode native.

Is your feature request related to a problem? Please describe.
I love Franz, have been using the paid version for months. However, the dark mode recipes aren't working on any of my services (namely, Telegram, WhatsApp, FB Messenger and Instagram).
Not to mention every time Franz updates, it breaks the recipes even when they were working.
I have uninstalled and reinstalled Franz and been through the entire process of installing the recipes multiple times.
The author of the custom CSS dark modes is very unresponsive, I've tried creating an issue on that Github but it's been dead for a month now.
Describe the solution you'd like
Just please make dark mode an option officially. I guess most of the code for it is done already...
Or, maybe just help me get it working?
Thanks!

I think that depends on the service. If you have latest WhatsApp version in franz you can enable the dark mode (I did it). But this is not the case of Telegram web, which is still in version 0.7. If you switch to desktop you can set a dark theme.

No, I can't.
I just finished installing a fresh version of Windows on my machine, and reinstalled Franz from scratch.
Then I installed all the services, and when I tried to install the dark mode CSS in each...
Nope. Doesn't work.
It can't be that hard for the team to do this natively.
And I highly doubt I'm the only one after this feature...

I assume you mean that Franz should respect the system settings for Dark Mode? e.g., if the OS changes to Dark Mode at sunset, then Franz should also go dark automatically. This would be great.


How to implements routing-like SPA?

Check example: https://github.com/pragmagic/karax/blob/master/examples/todoapp/todoapp.nim#L144
If you need variables in the routing you'll need to implement something like this:
https://github.com/dom96/jester/blob/master/jester/private/patterns.nim

I can't understand how to do...
Can anybody show me how to use variables in the routing more specific?

@itsumura-h i updated the links in my original comment to the corresponding files in those 2 projects.

Here is how I've done it in the Nim forum: https://github.com/nim-lang/nimforum/blob/master/src/frontend/forum.nim#L80

I recently brought this up on the Nim Discord, but should (better) routing be included as a part of Karax, similar to Kajax? By better, I mean something very similar to the way Nim forum does it, but with a bit more syntactic sugar like Jester. In https://forum.nim-lang.org/t/4991#31305 @dom96 brought up moving the forum routing code to karax.
My suggestion would be something like this/Jester:
route "/@id":
    renderThreadList(getLoggedInUser(), some(@"id".parseInt))

Along with a function that could be used to directly change the view, such as router.visit("/5") or something similar.

I'm pretty much out of frontend development, sorry, I don't have an opinion. But you can create a PR and I'll have a look.

I tried doing something like what I said here:
https://github.com/ajusa/kautil/blob/master/karoute.nim#L36
Only possible issue is that it relies on jester for the route parsing. If you think that is okay, I can polish it up and create a PR for karoute.

Meh... Parsing is a finger excercise... The stdlib has strscans for it.

While I mostly agree with you, I also don't want to basically copy paste/rewrite the routing handling that Jester already does. Code duplication is almost never a good sign.
Plus this only imports one module within Jester, so it wouldn't be compiling all of Jester anyway. It shouldn't add bloat to Karax (well no more than the Nim Forums, since it also uses the jester/patterns implementation).

Routing logic should be in a separate package IMO. Even React does it this way. But yes, depending on Jester here is the right way to do it: it means that you can easily reuse the router for both.

The point is not to avoid "bloat" or to introduce "code duplication". The point is that I like to iterate over the routing DSL design without concern about how e.g. Jester does it.

Well, the routing DSL can be pretty easily changed without worrying about Jester. The only thing that Jester is being used for is for parsing a route and extracting information in the route. It really is just a glorified string matching function :smile:
/asdf/@id? -> seeing if a URL matches and extracting the variable "id" is all Jester uses. The rest of the code was written by me, for handling creation of routes, the DSL, and making sure that it works for websites by using the #.
I honestly can't really think of any more complicated patterns that we'd want to allow for the parsing. If do need to do that at some point, then we could fork that bit of code from Jester but I'm not sure of any examples where that might be needed. Hope that clears stuff up! Again, let me know if you approve and I can create a formal PR, I'm treating this more as an "RFC" issue.

Again, let me know if you approve and I can create a formal PR, I'm treating this more as an "RFC" issue.

Alright, approved.

The only thing that Jester is being used for is for parsing a route and extracting information in the route.

then maybe that API can be added to stdlib to avoid karax depending on jester?
(and jester can reuse too with when (NimVersion, ...) >= 1.5.1): useStdlib else: redefine, but that's optional)

There are several good options for routing at the moment, from those mentioned above to the recently published nimble packages kroutes and kraut.
I'm going to close this for now. At some point we should consider adding these routing options to the documentation.
Please feel free to re-open and comment if you want to discuss further!


Metric outcome "AdvancedNormalizedCorrelation" -1 for the same images

I am experiencing an issue with the AdvancedNormalizedCorrelation metric in elastix. Specifically, the metric consistently returns a value of -1, even when the input images are identical. Given that the images are exactly the same, I would expect the metric to return a value of 1, indicating perfect correlation.
I have tried multiple combinations of parameters in the parameter file. However, the metric outcome remains -1. One of the parameter files is given below.
I would appreciate any insights or suggestions on why the AdvancedNormalizedCorrelation metric might be returning -1 for identical images and how to resolve this issue. Is there a known bug, or are there additional configurations or steps I might be missing?
Thank you in advance!
Example of parameter file:
(FixedInternalImagePixelType "float")
(MovingInternalImagePixelType "float")
(FixedImageDimension 3)
(MovingImageDimension 3)
(Registration "MultiResolutionRegistration")
(Transform "TranslationTransform")
(Metric "AdvancedNormalizedCorrelation")
(Optimizer "AdaptiveStochasticGradientDescent")
(Interpolator "LinearInterpolator")
(ImageSampler "Full")
(NumberOfResolutions 1)
(ImagePyramidSchedule 1 1 1)
(MaximumNumberOfIterations 10)
// Output settings
(WriteResultImage "true")
(ResultImageFormat "mhd")
// Debugging options
(WriteTransformParametersEachIteration "true")
(WriteResultImageAfterEachResolution "true")
(WriteLogFile "true")
(LogToConsole "true")
(LogToFile "true")

Interesting! I do indeed see the text appear, saying:

Final metric value  = -1

Since elastix, like ITK, only minimizes an objective, the objective is here the negative correlation. Same for mutual information.

OK, thanks @mstaring so -1 means 100% correlation. @han050 Does that answer your question?

Thank you both for your quick response. As I understand it, a correlation coefficient of -1 indicates a perfect negative correlation, meaning that low intensity values in scan 1 correspond to high intensity values in scan 2, and vice versa. However, given that the inputs are two identical CT scans with the same HU values (the same intensity values), I would expect a perfect positive correlation, which would be indicated by a correlation coefficient of 1.
Therefore, I am still confused about how the outcome could be -1 instead of 1 in this context. Can you provide further clarification on why this might be happening or do I misunderstand the answer of @mstaring?
Thanks again!

A correlation coefficient of 1 (two identical images) means the correlation metric will be -1. The key is understanding that the correlation metric is not the correlation coefficient, it's the negative of it.
As Marius mentioned, the reason for this is that optimizers are typically built to minimize things. In order to maximize a correlation, you ask the optimizer to try to minimize the correlation metric (which is just the negative of the correlation coefficient). By minimizing the correlation metric, the optimizer will maximize the image correlation, which is what you want.


Elgato Streamdeck Failed to connect to wss

This plugin worked great until a few days ago.  Now all my Streamdeck integrations say:
Failed to connect to wss://mylocaldomainname:8443/api/websocket
I had to clear cookies on my browser to get access to https://mylocaldomainname:8443 and I am wondering if Streamdeck or this plugin can clear their cookies as well?
I have re-installed this plugin and restarted my HA several times..
Thanks for any help or thoughts.

Nevermind.  My Let's Encrypt cert expired for my local HA instance.  I renewed my cert and all works again.  Sorry to bother.


add configuration for custom pkg names

When not using fully qualified url package names (eg mod foobar instead of mod github.com/foo/bar), the code that strips the package from the path strips too much of it.
This change leaves the default behavior unchanged (stripping github.com/owner/repo) and adds ability to configure custom package name to make path stripping work correctly with custom module names.

Actually, it's called module in go mod, eg:
module column

go 1.15

so we can rename it to module-name

Actually, it's called module in go mod, eg:
module foobar

go 1.15

so we can rename it to module-name


Figure out where 5etools data goes

Aaron @reersa has determined that the data is multiple megabytes (the filtered list of items alone is 1.5M). This makes it somewhat infeasible to store locally and serve and also probably wasteful to store in Firestore. We should instead explore fetching it and storing it in memory in the web app, or using Redis or something similar.


Fixes issue #345: pfe-content-set

… dom

@kylebuch8 Thanks for the updates!  This is looking great.  I'll pull it down and test.  Have you done browser testing already?


Delete Key Fix

Delete key now works. Both the backspace and delete keys now take a higher priority, triggering a content disparity check each time they are pressed. The changes in #5 were required for the fix, and so they are included in this PR.

This fixes #4.


Include a flutter preview device with the Flutter SDK that supports hot reload

Use case
This would allow new Flutter developers to experience Flutter's hot reload developer experience before installing a native build toolchain (such as Xcode, or Visual Studio).

[ ] introduce a new, hidden flutter build _preview sub-command https://github.com/flutter/flutter/pull/135639
[ ] introduce a new, PreviewDevice device available to Windows host users on release channels https://github.com/flutter/flutter/pull/135639
[ ] add error handling for when a user tries to build an app with plugins
[ ] start building preview device in packaging script

@christopherfujino Is this a dupe of https://github.com/flutter/flutter/issues/85329?

@christopherfujino Is this a dupe of #85329?

good catch, closed that in favor of this one, as it more closely reflects the steps I'm working on.


Remove context

This is a port of dcuddeback/libudev-rs#22 by @agrover, removing udev::Context from the API. This cleans up a fair bit of code, and I took the opportunity to perform internal cleanup too, which should make it more maintainable.

Cool, i was actually just looking around for a udev library for Rust - any feedback from the library authors on this one? :)


Unable to generate Attack Graph, FlexFringe Error: Incorrectly specified number of symbols in trace

I tried the default dataset, but none worked using default parameters. I tried changing number of symbols in "sage.py" in flexfringe function.
Output Logs
flexfringe.log
exp-ccdc.txt
exp-2018.txt
exp-2017.txt
------ Reading alerts ------
About to read json files...
Reading # alerts:  4274
Filtered # alerts (remaining): 4183
Reading # alerts:  8413
Filtered # alerts (remaining): 7485
Reading # alerts:  2233
Filtered # alerts (remaining): 2199
Reading # alerts:  4712
Filtered # alerts (remaining): 4220
Reading # alerts:  2923
Filtered # alerts (remaining): 2904
Reading # alerts:  7801
Filtered # alerts (remaining): 7232
Reading # alerts:  1912
Filtered # alerts (remaining): 1890
Reading # alerts:  3353
Filtered # alerts (remaining): 3293
Reading # alerts:  7150
Filtered # alerts (remaining): 4944
Reading # alerts:  5105
Filtered # alerts (remaining): 4949
------ Converting to episodes ------
---------------- TEAMS -------------------------
0 1 2 3 4 5 6 7 8 9
------ Converting to episode sequences ------
# teams: 10
----- TEAMS -----
0 1 2 3 4 5 6 7 8 9
# episode sequences: 61
------ Breaking into sub-sequences and generating traces ------
----- Sub-sequences -----
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
# sub-sequences: 2339

# episode traces: 1102
------ Learning S-PDFA ------
-6 Using heuristic alergia
Using input file: exp-2017.txt
 terminate called after throwing an instance of 'std::runtime_error'
  what():  Error parsing abbadingo input: line 2 - Incorrectly specified number of symbols in trace

Loguru caught a signal: SIGABRT

Error: dot: can't open exp-2017.txt.ff.final.dot
------ !! Special: Fixing syntax error in main model and sink files ------
--- Sinks
Traceback (most recent call last):
  File "/home/faheem/projects/SAGE/sage.py", line 328, in <module>
    with open(path_to_traces + ".ff.finalsinks.json", 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'exp-2017.txt.ff.finalsinks.json'

The issue is in the latest build of flexfringe. Checkout the flexfringe commit with id a39cd54, recompile flexfringe, and it should all work well.


Need help for two issues

Hey bro,
I do love this package. It's amazing and can help me a lot.
But I have two issues when using this package with typescript.
First issue:
I have some queries like
mutation logout {
	logout @client {
		success
	}
}

Error:
GraphQL Error: Unknown directive "client".

Looks like the generator does not like "@client"  syntax. But another generator can generate the code correctly.
Second issue:
	export function HOC<TProps = {}>(
		operationOptions?: ReactApollo.OperationOption<TProps, Query, Variables>
	) {
		return ReactApollo.graphql<TProps, Query, Variables>(
			Document,
			operationOptions
		);
	}

The HOC is generated correctly but with a type error for operationOptions. It's happening on all queries.
The type error is:
Argument of type 'OperationOption<TProps, Query, Variables, ChildProps<TProps, Query, Variables>> | undefined' is not assignable to parameter of type 'OperationOption<TProps, Query, Variables, Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>> | undefined'.
  Type 'OperationOption<TProps, Query, Variables, ChildProps<TProps, Query, Variables>>' is not assignable to type 'OperationOption<TProps, Query, Variables, Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>>'.
    Types of property 'props' are incompatible.
      Type '((props: OptionProps<TProps, Query, Variables>, lastProps?: void | ChildProps<TProps, Query, Variables> | undefined) => ChildProps<TProps, Query, Variables>) | undefined' is not assignable to type '((props: OptionProps<TProps, Query, Variables>, lastProps?: void | (Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>) | undefined) => Partial<...> & Partial<...>) | undefined'.
        Type '(props: OptionProps<TProps, Query, Variables>, lastProps?: void | ChildProps<TProps, Query, Variables> | undefined) => ChildProps<TProps, Query, Variables>' is not assignable to type '(props: OptionProps<TProps, Query, Variables>, lastProps?: void | (Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>) | undefined) => Partial<...> & Partial<...>'.
          Types of parameters 'lastProps' and 'lastProps' are incompatible.
            Type 'void | (Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>) | undefined' is not assignable to type 'void | ChildProps<TProps, Query, Variables> | undefined'.
              Type 'Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>' is not assignable to type 'void | ChildProps<TProps, Query, Variables> | undefined'.
                Type 'Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>' is not assignable to type 'ChildProps<TProps, Query, Variables>'.
                  Type 'Partial<DataProps<Query, Variables>> & Partial<MutateProps<Query, Variables>>' is not assignable to type 'TProps'.

Please fell free to point out what I did wrong or what I can do to fix them. I really want to use it :)
Thanks again for everyone's effort to build this handy package 👍

@cjnoname Which version of the codegen and the templates do you use?

@cjnoname Which version of graphql, the codegen and the templates do you use?

graphql 0.13.0 is it too old? :)
both codegen and template are at 0.12.6

@cjnoname 0.13.0 should work. I'll take a look at the issue with the @client soon.
@ardatan can you please take a look at the issue with the React HOC template?

@cjnoname 0.13.0 should work. I'll take a look at the issue with the @client soon.
@ardatan can you please take a look at the issue with the React HOC template?

Thank you so much for your quick response :)

@cjnoname And until a stable version, you can use the following alpha versions that includes this fix:
Successfully published:
 -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS>lerna success publish finished

Generated typings now supports strict TypeScript settings.
It has to be fixed in the following versions;
Successfully published:
 -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS>

Hi @ardatan,
Thanks for your quick fix, the type is way better now.
I think there is only one issue left which is a tiny bug:
export namespace GetOrganisations {
export const Document = gql`
query getOrganisations {
organisations {
...organisationFields
}
}
	${OrganisationFields.Document}
`;
export class Component extends React.Component<
	Partial<ReactApollo.QueryProps<Query, Variables>>
> {
	render() {
		return (
			<ReactApollo.Query<Query, Variables>
				query={Document}
				{...this["props"] as any}
			/>
		);
	}
}
export function HOC<
	TProps = any,
	OperationOptions = ReactApollo.OperationOption<TProps, Query, Variables>
>(operationOptions: OperationOptions) {
	return ReactApollo.graphql<TProps, Query, Variables>(
		Document,
		operationOptions
	);
}

}
Base on the generated code, I got this error from ${OrganisationFields.Document}.
Because OrganisationFields is not existed.
I manually changed it to organisationFields then it's looking all good.
Thanks for your quick fix 👍

@ardatan please take a look :)
@cjnoname regarding the @client errors, you have to provide your client-side schema for the codegen as well. there is a flag called --client-schema.

@cjnoname I need to see the declaration of fragment document etc to see what the problem is.

I am having similar issues, I just tried the latest alpha version but client is still not working for me.
@dotansimha is there some examples of code with a client-schema definition file ?
@ardatan
Here are some of my code samples if it helps
app.ts angular component
import { Component, HostBinding, OnInit } from "@angular/core";
import { OverlayContainer } from "@angular/cdk/overlay";
import gql from "graphql-tag";
import { Apollo } from "apollo-angular";

@Component({
  selector: "help-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.sass"]
})
export class AppComponent implements OnInit {
  @HostBinding("class") componentCssClass: string | null = null;
  constructor(
    private overlayContainer: OverlayContainer,
    private apollo: Apollo
  ) {}

  setTheme(theme: string) {
    this.componentCssClass = theme;
  }

  ngOnInit() {
    const query = gql(`
          query {
            currentTheme @client {
              theme
            }
          }
        `);

    this.apollo
      .watchQuery({
        query: query
      })
      .valueChanges.subscribe(({ data }: any) => {
        this.setTheme(data.currentTheme.theme);
      });
  }
}

relevant error
21:13:33.780 - error: [./src/app/app.component.ts] GraphQL Error: Cannot query field "currentTheme" on type "Query". Did you mean "currency"?
21:13:33.780 - error: [./src/app/app.component.ts] GraphQL Error: Unknown directive "client".

theme.lgraphql.ts
export const themeResolverMutation = {
  updateCurrentTheme: (_: any, { theme }: any, { cache }: any) => {
    const data = {
      currentTheme: {
        __typename: "CurrentTheme",
        theme
      }
    };
    cache.writeData({ data });
    return null;
  }
};

export const themeDefault = {
  currentTheme: {
    __typename: "CurrentTheme",
    theme: "light-theme"
  }
};

This file is used as a resolver for apollo-link-state
relevant error
21:13:33.783 - error: [./src/app/shared/graphql/theme/theme.lgraphql.spec.ts] GraphQL Error: This anonymous operation must be the only defined operation.
21:13:33.783 - error: [./src/app/shared/graphql/theme/theme.lgraphql.spec.ts] GraphQL Error: Cannot query field "currentTheme" on type "Query". Did you mean "currency"?
21:13:33.783 - error: [./src/app/shared/graphql/theme/theme.lgraphql.spec.ts] GraphQL Error: Unknown directive "client".
21:13:33.783 - error: [./src/app/shared/graphql/theme/theme.lgraphql.spec.ts] GraphQL Error: Cannot query field "updateCurrentTheme" on type "Mutation".
21:13:33.783 - error: [./src/app/shared/graphql/theme/theme.lgraphql.spec.ts] GraphQL Error: Unknown directive "client".

I could put this in a sample repo if it would help.

@vespertilian please take a look here: https://github.com/dotansimha/graphql-code-generator/pull/561

@ardatan please take a look :)
@cjnoname regarding the @client errors, you have to provide your client-side schema for the codegen as well. there is a flag called --client-schema.

Thanks mate, it's fixed for me. Thanks for your great work.
By the way, do you know that is there any way to generate the schema json automatically?

@cjnoname I need to see the declaration of fragment document etc to see what the problem is. Could you share that part?

Hi Ardatan,
I think it's just a case issue.
The query is
query getOrganisations {
	organisations {
		...organisationFields
	}
}

The generated code is
export namespace GetOrganisations {
	export const Document = gql`
		query getOrganisations {
			organisations {
				...organisationFields
			}
		}

		${OrganisationFields.Document}
	`;
	export class Component extends React.Component<
		Partial<ReactApollo.QueryProps<Query, Variables>>
	> {
		render() {
			return (
				<ReactApollo.Query<Query, Variables>
					query={Document}
					{...this["props"] as any}
				/>
			);
		}
	}
	export function HOC<
		TProps = any,
		OperationOptions = ReactApollo.OperationOption<TProps, Query, Variables>
	>(operationOptions: OperationOptions) {
		return ReactApollo.graphql<TProps, Query, Variables>(
			Document,
			operationOptions
		);
	}
}

You can see that OrganisationFields with capital O, which is not exisiting in the file at all. I changed it to lower case then it can work.
Hope it can help.
The whole thing is almost perfect.

@ardatan hey, thanks for working on that awesome tool. I'm facing similar issues at the moment and using alpha version helped to solve part of them. But I still have a problem with TypeScript typings for generated HOC component. Specifically for operationOptions .
If I change its type operationOptions?: ReactApollo.ChildProps<TProps, Query, Variables> ts-server is happy and removes the error. Is it a problem in my setup or we need a PR to fix that?

TS server even requests for more verbose type description in the other editor:
Argument of type 'ChildProps<TProps, CountQuery, CountVariables> | undefined' is not assignable to parameter of type 'OperationOption<TProps, CountQuery, CountVariables, Partial<DataProps<CountQuery, CountVariables>> & Partial<MutateProps<CountQuery, CountVariables>>> | undefined'.
  Type 'ChildProps<TProps, CountQuery, CountVariables>' is not assignable to type 'OperationOption<TProps, CountQuery, CountVariables, Partial<DataProps<CountQuery, CountVariables>> & Partial<MutateProps<CountQuery, CountVariables>>> | undefined'.
    Type 'ChildProps<TProps, CountQuery, CountVariables>' has no properties in common with type 'OperationOption<TProps, CountQuery, CountVariables, Partial<DataProps<CountQuery, CountVariables>> & Partial<MutateProps<CountQuery, CountVariables>>>'.

If I set it to:
operationOptions?: ReactApollo.OperationOption<TProps, CountQuery, CountVariables, Partial<ReactApollo.DataProps<CountQuery, CountVariables>> & Partial<ReactApollo.MutateProps<CountQuery, CountVariables>>>,

Linter is happy.
Guys, @ardatan @cjnoname, could you suggest is the problem on my side or react-apollo template should be updated? Thanks!

@valerybugakov
Are you using the latest stable version, because it's supposed to be fixed in the following versions;
Successfully published:
 -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS> -<EMAIL_ADDRESS>

@ardatan you're right, the latest version of the react-apollo-template fixes the issue for me, thanks!

I'm getting an error in the same generated component.
  export class Component extends React.Component<
    Partial<ReactApollo.QueryProps<Query, Variables>>
  > {
    render() {
      return (
        <ReactApollo.Query<Query, Variables>
          query={Document}
          {...this['props'] as any}
        />
      )
    }
  }

I keep getting Cannot find name 'query'. when I compile with Typescript using CRA (typescript version)

This appears to still be an issue with
"graphql-code-generator": "^0.13.0-alpha.f8c8892a",
"graphql-codegen-typescript-react-apollo-template": "^0.13.0-alpha.f8c8892a",

command used:
gql-gen --schema http://app.sharpspring.localhost.com:3000/graphql --clientSchema ./src/store/schema.graphql --header "Authorization: Bearer [token removed]" --template graphql-codegen-typescript-react-apollo-template --out ./src/store/types/index.ts "./src/**/*.+(graphql|ts|tsx)

@moonray can you please try 0.13.0?

All fixes are available now in 0.14 🎉

For the @client support, you can add this following line to any .graphql file containing your schema:
directive @client(always: Boolean) on FIELD
This will let the compiler know you can use a directive @client and that this directive can take a boolean always.


Complete schemas/models for job listing, resumes, employers, and seekers. Add initial tests

Also can't merge because of conflicts with server/server.js


HARVESTER: fix permission issues

Summary
PR Checklist

Is this a multi-tenancy feature/bug?

[x] Yes, the relevant RBAC changes are at:
~- Do we need to backport changes to the old Rancher UI, such as RKE1?~
~- [ ] Yes, the relevant PR is at:~
~- Are backend engineers aware of UI changes?~
~- [ ] Yes, the backend owner is:~

Fixes #

https://github.com/harvester/harvester/issues/3873

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

@merify backport release-harvester-v1.1


Remove space

There is a space you probably don't want there 😊 This PR removes that space.

Thanks!


Pre-trained model for genomic sequences

Good morning,
Thank you for sharing the paper, code and pre-trained model for NLP text data. Your research work results are impressive. Because I am developing embeddings solutions for genes and proteins, the application to genomic sequences part interests me the most.
Is there any chance to try BigBird nucleotide-based pre-trained model for research purpose? I would like to include it in my benchmark and compare it with existing non-contextual embeddings (Word2Vec, FastText and Glove).
Regards,
Piotr

Hi Piotr,
Thanks for interest in our work. We are working on releasing the model pretrained on DNA fragments.
Thanks!

Might we get the code for genome pretraining,  as well as the pretrained network weights themselves please?

Hi, any update on this?

Greetings, manzilz
I also work on nucleotide-based language models and would appreciate if you could release a pretrained-model, for me to use as a benchmark
Thanks a lot!

Hi,
Any update about the release date?

@manzilz any updates on the release? 😃

Any update on this? This would be very useful for embedding dna/rna sequences

I'm absolutely sure that they DON'T HAVE ANY PLANS about releasing DNA models.

We have replicated BigBird pre-training on more recent T2T human genome assembly. The model is available via HuggingFace: https://huggingface.co/AIRI-Institute/gena-lm-bigbird-base-t2t. Any kind of feedback is welcome!


model error?

should the model  in ssd_300
conv8_1 = Conv2D(128, (1, 1), activation='relu', padding='same', kernel_initializer='he_normal', name='conv8_1')(conv7_2)
    conv8_2 = Conv2D(256, (3, 3), strides=(1, 1), activation='relu', padding='valid', kernel_initializer='he_normal', name='conv8_2')(conv8_1)

    conv9_1 = Conv2D(128, (1, 1), activation='relu', padding='same', kernel_initializer='he_normal', name='conv9_1')(conv8_2)
    conv9_2 = Conv2D(256, (3, 3), strides=(1, 1), activation='relu', padding='valid', kernel_initializer='he_normal', name='conv9_2')(conv9_1)

the strides be (3,3) not (1,1) from original paper?

What you see in keras_ssd300.py is the original model configuration. You can download the original Caffe model on Wei Liu's GitHub and check out the .prototxt files that contain the model definition to convince yourself of this fact.


Add polymorphic docs

[X] Use a meaningful title for the pull request. Include the name of the package modified.
[X] Test the change in your own code.
[X] Include the URL where we can test the change in the body of your PR.

This pull request:

[ ] Fixes a bug
[ ] Adds additional features/functionality
[X] Updates documentation or example code
[ ] Other

Link to page: https://website-git-add-polymorphic-docs-radix-ui.vercel.app/primitives/docs/utilities/polymorphic

LGTM <3


Serializing metadata scope variables causes assert_failure/crash

I am back to hooking up evals and there is an issue in processing constant pool entries which come from metadata in yp_parse_serialize.   Largely, the problem is that yp_ptrdifft_to_u32 assumes there is a connection between constant->start and parser->start but the constant in question comes from a pointer inside the metadata parameter (and not parser).
Here is a reduced testcase:
#include "yarp.h"

void main(char **argv, int argc) {
  char *metadata = "\0\0\0\0\1\0\0\0\1\0\0\0\3\0\0\0foo";
  char *source = "p foo";

  yp_buffer_t buf;
  yp_buffer_init(&buf);
  yp_parse_serialize(source, 5, &buf, metadata);
}

I dang, I see why this is happening. Thanks for the report Tom. We need to properly support constants that aren't a slice of the source anyway, so this is a good push.


Support autocorrecton for Style/CommentAnnotation when note does not exist on the same line but exist on the next line

This PR is support autocorrecton for Style/CommentAnnotation when note does not exist on the same line but exist on the next line
Even in cases where note does not exist on the same line, if there is a comment on the next line, it will be merged and automatically modified to the good case.
# @example RequireColon: true (default)
# bad
# HACK:
# does not work

# good
# HACK: does not work

# @example RequireColon: false
# bad
# HACK
# does not work

# good
# HACK does not work

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

I'm curious about the following things.

I don't think the title "Support autocorrecton for Style/CommentAnnotation" is appropriate because Style/CommentAnnotation cop has auto-correction
Style/CommentAnnotation cop only mentions colon and space after annotation. So, this is a rule change and it's unclear why this is the right thing to do.

https://github.com/rubocop/ruby-style-guide#annotate-keywords

I don't think the title "Support autocorrecton for Style/CommentAnnotation" is appropriate because Style/CommentAnnotation cop has autocorrection.

Indeed it is. Change this PR title and changelog.

Style/CommentAnnotation cop only mentions colon and space after annotation. So, this is a rule change and it's unclear why this is the right thing to do.

Yes. Indeed it is, but the behavior when there is a comment on the next line is originally offense.
The space is trailing because it is at the end of a line, and the space after annotation always be nothing.
Therefore, I was having trouble with the following comments not being autocorrected.
# NOTE:
# This is the text of the note
# :

Perhaps I don't fully understand the use case. IMHO, it looks like an over-warning as this cop role. Anyway I don't have a strong opinion for this, so I'll leave it to @rubocop/rubocop-core.

Either treat it as an offense as before and automatically correct it, or change it to a good case as an excessive offense in the first place, both of which are good outcomes for the use case I have.
The proposal was to match the existing behavior, but I think it would be acceptable to change to the other one.

I agree with @koic and I don't think we should be rewriting people's comments. It's also unclear to me from your tests what would happen in this case with RequireColon: true.
# HACK
# something else

Also this slightly modified example from your tests would change comment semantics IMO:
# HACK:
# - the API may not always return this
# - the response format may change

... becomes ...

# HACK - the API may not always return this
# - the response format may change

Ultimately we should leave it to developers to choose how to format their comments.

I see. I certainly did not take that case into account.
I would like to change the approach a little and not make the space after the colon offense even if it is removed when followed by a comment as shown below. How about this?
The following cases change bad to good:
# @example RequireColon: true (default)
# TODO:
# some comment

# @example RequireColon: false
# TODO
# some comment

However, this also moves away from the original style guide reference: https://rubystyle.guide/#annotate-keywords .
I will close this PR if it looks good as before.

I've reconsidered and certainly think this is an excessive change, so I think I'll close it.
Thanks for your time @koic @dvandersluis .


How is the facial recognition works?

Hi,
I saw the facial recognition demo video on youtube. So I saw you first click the train to train the face and then it could recognize the people. So how does this exactly works? How did you use your pre-trained model to train new faces and how are new face class added to the original model? I don't really understand the code there. Can anyone just give me quick explanation on that?
Thanks!

Hi @Ripppah - see our tech report here for details about how OpenFace and that demo works. In that demo, we use an SVM to classify faces and re-train it as new frames are added.
-Brandon.

So do you have to train on the whole dataset whenever the new frames are added? Will that be possible that you based on the pre-trained model, you get information from there and add person class? For example on the demo, you already trained two people, will that be possible add the third person without training the whole dataset again? Otherwise it's gonna took a while as the dataset is getting larger.

Right, you have to re-train the classifier (but not the neural network) on the dataset you want to classify. For 100's to 1000's of images, re-training an SVM like we use in our examples is very fast. If you want to scale beyond this, you can post on our or another related mailing list and somebody else might have some advice.

Thank you for the reply! I'll try your SVM here. To be honest, I don't really know how to solve this problem. Only the re-train seems to be the best way to do that. I was thinking that if there is anyway that computer can remember the faces that it has already trained and learn the new face. It will be much faster if it can but It seems no because once the new faces are added, everything changes.
I'll keep following you guys. Which other mailing list you are talking about here?


Transfer legacy login to client side

Currently the non-OIDC login is working server side-wise using flask. This should be changed to be consistent with OIDC.
E.g. an access_token is requested from the server, stored in the client and forwarded with any request.

Expires_in must be calculated on request.

Check admin dashboard, change password, ...


Use debugNetworkImageHttpClientProvider and clear cache

Status
READY
Breaking Changes
YES
Description

The implementation is dangers, because it will effect other tests in the test file.
For example the following app renders normally a network image and if there is an error,
the error builder should be used.
/// Sample app used to showcase `mocktail_image_network`
class FakeApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Image.network(
            kImageUrl,
            errorBuilder: (
              context,
              error,
              stackTrace,
            ) {
              return const Text(kErrorText);
            },
          ),
        ),
      ),
    );
  }
}

/// public image url for testing
const kImageUrl = 'https://randmom-uri.com';

/// public error text for testing
const kErrorText = 'You are Doomed!';

The following test should work:
void main() {
  testWidgets('Client will return with a valid image', (tester) async {
    await mockNetworkImages(() async {
      await tester.pumpWidget(FakeApp());
      var image = find.image(const NetworkImage(kImageUrl));
      expect(image, findsOneWidget);
      await tester.pump();
      expect(image, findsOneWidget);
    });
  });

  testWidgets(
    'Client will return with failure and error widget will be shown',
    (tester) async {
      await tester.pumpWidget(FakeApp());
      expect(find.image(const NetworkImage(kImageUrl)), findsOneWidget);
      await tester.pump();
      expect(find.text(kErrorText), findsOneWidget);
    },
  );
}

Unfortunately the don't because the client will be used again.
So the result of the second test will be a failure because the error text does not exist.
In the debug setting  is an other way described to do so:
/// Provider from which [NetworkImage] will get its [HttpClient] in debug builds.
///
/// If this value is unset, [NetworkImage] will use its own internally-managed
/// [HttpClient].
///
/// This setting can be overridden for testing to ensure that each test receives
/// a mock client that hasn't been affected by other tests.
///
/// This value is ignored in non-debug builds.
HttpClientProvider? debugNetworkImageHttpClientProvider;

So I adjusted the code accordingly.
Still there is some issue, because already cached network images, will still be available.
So I added the functionality to also delete the cache.
Type of Change

❌ Breaking change (fix or feature that would cause existing functionality to change)

Hi @SimonWeidemann
I believe this is a the issue described in https://github.com/felangel/mocktail/issues/134#issuecomment-1550731486. See my comment regarding scoping the zone override to just the widget under test

Hi @SimonWeidemann I believe this is a duplicate of the issue described in #134 (comment). See my comment regarding scoping the zone override to just the widget under test

I checked out your comment and adjusted the tests:
void main() {
  testWidgets('Client will return with a valid image', (tester) async {
    await mockNetworkImages(() async {
      final widget = mockNetworkImages(() => FakeApp());
      await tester.pumpWidget(widget);
      var image = find.image(const NetworkImage(kImageUrl));
      expect(image, findsOneWidget);
      await tester.pump();
      expect(image, findsOneWidget);
    });
  });

  testWidgets(
    'Client will return with failure and error widget will be shown',
    (tester) async {
      await tester.pumpWidget(FakeApp());
      debugNetworkImageHttpClientProvider = null;
      expect(find.image(const NetworkImage(kImageUrl)), findsOneWidget);
      await tester.pump();
      expect(find.text(kErrorText), findsOneWidget);
    },
  );
}

The second  test still results in an error.
Also when I clean up the states.
I think the change would still be necessary.
The underlying code in the network image looks like this:
  // Do not access this field directly; use [_httpClient] instead.
  // We set `autoUncompress` to false to ensure that we can trust the value of
  // the `Content-Length` HTTP header. We automatically uncompress the content
  // in our call to [consolidateHttpClientResponseBytes].
  static final HttpClient _sharedHttpClient = HttpClient()..autoUncompress = false;

  static HttpClient get _httpClient {
    HttpClient client = _sharedHttpClient;
    assert(() {
      if (debugNetworkImageHttpClientProvider != null) {
        client = debugNetworkImageHttpClientProvider!();
      }
      return true;
    }());
    return client;
  }
  ```
The http client is brought by a factory.
It could be that this one return the same client again.

 ```
   factory HttpClient({SecurityContext? context}) {
    HttpOverrides? overrides = HttpOverrides.current;
    if (overrides == null) {
      return _HttpClient(context);
    }
    return overrides.createHttpClient(context);
  }
 ```

I made a mistake by scoping.
The code is working how  it should.
Sorry for wasting time.


What happened to your website? I can't confirm an invited expense for reason "email already exists" even though I already signed in. And it even 404 on my own profile.

@KSXGitHub : Could you please send us a support request at https://opencollective.com/contact ?  Please note down the expense that you are trying to submit.


JOAD pin score inner circle

Is your feature request related to a problem? Please describe.
Could we add a column when looking at the pin scores that says if it is inner circle or not? Right now we have to click into each score to see it, so looking for errors or whatnot is very slow.

Column added


Better Scaling with gui change

Not sure how easy this would be, but to make everything scale the same when the gui scale is changed.
Large Gui size

Normal Gui size

Maybe making a seperate config for each gui size would fix this?

So what in that picture is not scaling with the rest?

Also i feel like your alignment is wrong. The buttons and the "gray line" at the bottom should have the bottom alignment, otherwise they won't stick to it when the window is resized.

It was the alignment I was missing. All is good now. Thanks!

Ok :), will leave this open for the different menus for different gui scales thingy because i think that could actually be useful.

Im having an issue where adding an alignment doesn't work...
    "singleplayer":
    {
        "text" : "menu.singleplayer",
        "posX" : -100,
        "posY" : 48,
        "width" : 200,
        "height" : 20,
        "action" :
        {
            "type" : "openGui",
            "gui" : "singleplayer"
        }

[AFTER]
    "singleplayer":
    {
        "text" : "menu.singleplayer",
        "posX" : 55,
        "posY" : -35,
        "width" : 90,
        "height" : 20,
        "alignment" : "left_center"
        "action" :
        {
            "type" : "openGui",
            "gui" : "singleplayer"
        }

And that does NOTHING or?

After I add the alignment line when I hit refresh It says can't load the config. I had to remove the alignment in order to get it to load the config.

Well yes :P, you are missing a comma behind the property.

LOL Wow Lumien I stared at this all night long.  must have been so tired I couldn't see the comma

I don't know if this is an issue on your part or mine, but when the window isn't maximised, or people are playing on low res screens, you can't always see the whole window.
This is what it looks like for them:

This is what it should look like:

I will have to look into this but really, the only thing i could try to prevent this is to allow customization of the "point" at which everything gets resized to be smaller.


[BUG] Using the resource on RedM

Describe the bug
When installing a resource (I also changed the manifest) in the game, all players hear each other at an unlimited distance and at normal volume.
To Reproduce
Steps to reproduce the behavior:

Change fxmanifest for RedM
Set the necessary settings in the config
Enable the resource on the server
Turn on the server
Join the server (you must also have a player with you)
Try voice chat

Expected behavior
When using the resource, the voice chat should be heard at a certain distance, and become quieter when you move away from the object
Server Info:

Server Version: 4355
Client Version: canary
Client Build: 1311 (rdr2)

Additional context

I don't think RedM has mumble built into it, though I'm going to leave this open until I get some official confirmation.

RedM doesn't currently have mumble-voip built in.


Assimp library linking error using pinocchio in ROS

Hello,
Thank you for your great effort in maintaining this awesome repo.
I have a question regarding the assimp library linking error.
I created my own library (let's say Library A) which is ROS-independent by using pinocchio installed from source (/usr/local/lib). I did several testing but the Library A works fine without any problem.
However, when I installed the Library A in the system (/usr/local/lib) and tried to use the Library A within ROS by target linking Library A with my ROS nodelet library (let's say Library B), for instance, target_link_libraries(Library B Library A),  the ROS keeps complaining  undefined symbol: _ZNK6Assimp8IOSystem12ComparePathsEPKcS2_. It seems that when integrated within ROS. pinocchio is not able to find the assimp library correctly. Do you have any suggestions or guidance to debug this issue?
Another thing to ask is how I could build the pinocchio with the assimp library. Even though there is a cmake module for the assimp within pinocchio repo, any CMakeLists.txt in the pinocchio repo does not have any options to be built with the assimp. Maybe I missed but I would really appreciate any guidance if possible.
Thank you,
Seung Hyeon

I am afraid I cannot debug based on the information given. It's a bit unclear how Pinocchio was installed (from source, then globally isntalled) but with which version of EigenPy and HPP-FCL? And whether ROS-Pinocchio is installed at the same time? Where is assimp from? Is Pinocchio linked publicly based on the targets to the library or with pkg-config or explicit name?

Thanks @wxmerkt for the quick feedback. @shbang91 Could you provide the missing info?

@jcarpent In my machine, I used assimp version 4.0 and I also looked into https://github.com/dartsim/dart/issues/549. It seems same error but mine is runtime error instead of build error.
@wxmerkt Since I only use cpp version of pinocchio and some functions like (getjacobian, getmassmatrix, forwardkinematics, etc), I did not install EigenPy and HPP-FCL. Also, I did not install ROS-Pinocchio.
Library_A is built as a static library and target_link_libraries(Library_A PUBLIC ${pinocchio_LIBRARIES}) and this Library_A is ROS independent.
Library_B is a shared library and target_link_libraries(Library_B PUBLIC Library_A) then I installed Library_B and Library_A globally (in /usr/local/lib) and tried to use Library_B as an external library in ROS by using custom-made CMake module to find Library_B.
I made a Library_C which is a ROS nodelet but target_link_libraries(Library_C Library_B) and when I roslaunch the Library_C, I got the above runtime error which is undefined symbol: _ZNK6Assimp8IOSystem12ComparePathsEPKcS2_.
Since the pinocchio that I globally installed is not dependent on the HPP-FCL, I believe it should have not complained about the assimp-related runtime error. But one thing I doubted is whether I should make the Library_A as a shared library. Or, should I install HPP-FCL in order for assimp library to be dependent on the pinocchio library?
Do you have any thoughts or suggestions?

I just tried that but it gives me the same error.

My hunch is that the assimp requirement comes from urdfdom which is used by Pinocchio's URDF parser. As such, I wonder if the dependency has not been correctly exported. However, without access to a minimally reproducible example (e.g. a Docker image) I am afraid I wont be able to provide further insight

Thank you for your comment. One more question from my side is that do you think ROS environment somehow messes up the assimp dependency to Pinocchio? When I used Library B (robot controller) that I mentioned above without ROS, it works perfectly without any error (no assimp-related runtime error).

assimp is linked to pinocchio via hpp-fcl.

@jcarpent Do you think hpp-fcl is the only place where the assimp is linked to Pinocchio or there are somewhere else?

This is the only place. But you have a too-old version of assimp apparently as I mentioned this morning.

@wxmerkt Yes, I did not install Eigen-py and HPP-FCL.

@wxmerkt One another information I would like to provide is that when I do ldd Library_A, Library_B, Libray_C I don't see any libassimp.so dependency at all.

@shbang91 The best would be to share a docker image which replicates your issue.
This minimal effort will help us to find your issue.

@jcarpent Thank you for the suggestion. I'll try to share the docker image and get back to you soon.

I will close this issue as there is no more activity on it.


Split SortImports class into smaller classes, part 1

I want to start working on a https://github.com/timothycrosley/isort/issues/818, but decided to refactor the project a bit to make it a little more extensible.
Diff ended up being too big, and current develop won't merge cleanly in new branch at all, so I cherry-picked part of it which is mergeable.
And in general, what do you think about it? Is it a good idea? I want to split big SortImports object into a number of smaller ones to

Reuse parsing logic for function / if-block scoped imports.

Slept on it, I think one big PR with refactoring is not a good idea. I'll prepare a number of smaller less invasive ones, with additional test coverage.

I love the ideas represented here! isort right now has way too much functionality tucked away in an an __init__ method within a single isort module. I'm going to take a bit of time merging it just because I think I need to get at lost one additional hotfix in for the 2.7.x supported release before I go full steam ahead on isort 5.0.0 - as much as I want to do that!

This looks great, thank you!


Please include request_id in data submitted by Sentry.Plug

Plug provides Plug.RequestId, which assigns a unique request id to every request.  If you're using Phoenix, it automatically wires this up for you.
Given request_id goes in Logger.metadata and we have configured logger to include it in every message, it would be suuuuper useful in Sentry.Plug sent the request id to sentry when reporting errors.  Then when investigating the cause of an error, I can grep through our logs looking for that request id to find every single log message related to the request.
Would you consider sending request_id to sentry from Sentry.Plug?

@myronmarston good call, we should be able to do this without using logger or metadata, we'll just use the conn.

Release 1.1.1 should include this :)


Adding a “show html” button in Quill (Wysiwyg). (New Feature)

Here is a component i made for Quill showing a "Source" show Html option to the Wysiwyg.
See - https://gist.github.com/izzygld/0762dce7292baf2168f9c7b2aa99b535

hai, how can i use it on Blazor?

This issue is stale because it has been open for 60 days with no activity.

This issue was closed because it has been inactive for 7 days since being marked as stale.


Possibility of change the server id

I was using this tool and I seems it is missing the possibility of change serverId and delete a serverId. I don't have enough of knowledge in c# to create it to share

You can add this sting:
<client version="770" description="Client 7.70" otbversion="3" datsignature="439D5A33" sprsignature="439852BE"/>
to file PluginTwo.xml


Update CONTRIBUTORS.md

Hey @sajdakabir,
Thanks for your PR & contribution :wave:!
Don't forget to join follow me, join our organization, & follow our organization to stay updated with the latest developments 💻
Thank you, and have a good day ahead 😊


model error: size of ... undefined

When trying to generate the (preliminary) CoAP model, I get the following error:
s$ rflx generate coap.rflx tmp/
Parsing coap.rflx... OK
Generating... rflx: model error: size of "Payload_Marker_Type" undefined in "CoAP.Datagram"

Payload_Marker_Type only exists once and has an explicit type set. AFAICT this should work.

Fixed by #32.


guile.socket: Sending excess newlines hangs up client

I found a small(ish) issue while putting the new Guile client through its paces.  Steps to reproduce:

Open new file, connect client etc.  Verify correct operation by sending some test forms.
Place the cursor on an empty line in the file, with another empty line below
Enter visual selection mode with v, press down/j to select just the newline character
Send visual selection to Conjure with <LocalLeader>E
Attempt to send the same test forms as in step 1.

Expected outcome: the new evaluations proceed exactly as before.
Actual outcome: no further Conjure output until client is disconnected and reconnected with <LocalLeader>cd followed by <LocalLeader>cc.
Complete log output is below, but I think what's happening is that Conjure is waiting for a new prompt in response to the newline, as you would expect to see if you were to press enter on an empty line in a REPL.  However, the socket REPL behaves differently.  Connecting to the socket (using nc -U ~/starlet/guile.socket), then pressing enter on an empty line, does not produce a new prompt.  Entering any kind of expression (e.g. 1) results in a normal evaluation and a new prompt:
$ nc -U ~/starlet/guile.socket
GNU Guile <IP_ADDRESS>-de5d1
Copyright (C) 1995-2020 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (+ 1 2)
$21 = 3
scheme@(guile-user)>                                       <----- press enter a few times

1
$22 = 1
scheme@(guile-user)> (+ 2 3)
$23 = 5
scheme@(guile-user)>

Sending a single newline is a somewhat contrived example of course, but I came across the problem while trying to evaluate bigger blocks of code - any trailing newline causes the problem.  A simple fix would be to strip out any trailing newlines before sending anything to the REPL.  This filtering could be specific to the Guile client, or more global.  Hopefully other socket-based REPLs have better behaviour!
Complete Conjure log output with debug:
; Sponsored by @penryu ❤
",m (guile-user)\
"
; --------------------------------------------------------------------------------
; /home/taw/starlet/guile.socket (connected)
; debug: receive
"GNU Guile <IP_ADDRESS>-de5d1\
Copyright (C) 1995-2020 Free Software Foundation, Inc.\
\
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.\
This program is free software, and you are welcome to redistribute it\
under certain conditions; type `,show c' for details.\
\
Enter `,help' for help.\
scheme@(guile-user)> scheme@(guile-user)> "
; debug: send
",m (guile-user)\
"
; debug: receive
"scheme@(guile-user)> "
; --------------------------------------------------------------------------------
; eval (root-form): (use-modules (srfi srfi-1))
; debug: send
"(use-modules (srfi srfi-1))"
; debug: receive
"scheme@(guile-user)> "
; Empty result
; --------------------------------------------------------------------------------
; eval (root-form): (display "Hello\n")
; debug: send
"(display \"Hello\\n\")"
; debug: receive
"Hello\
"
; debug: receive
"Hello\
scheme@(guile-user)> "
; Empty result
; --------------------------------------------------------------------------------
; eval (root-form): (+ 1 2)
; debug: send
"(+ 1 2)"
; debug: receive
"$18 = "
; debug: receive
"$18 = 3\
scheme@(guile-user)> "
3
; --------------------------------------------------------------------------------
; eval (selection):
; debug: send
"\
"
; --------------------------------------------------------------------------------
; eval (root-form): (+ 1 2)
; --------------------------------------------------------------------------------
; eval (root-form): (display "Hello\n")
; --------------------------------------------------------------------------------
; eval (root-form): (+ 1 2)

Thanks for spotting this! Should be fixed on develop, I'm trimming the code strings down before sending them now and then just not doing it if it's blank. So sending just whitespace won't do anything now.
Guile's REPL doesn't display a new prompt on whitespace + new line, unlike basically every other REPL I can think of :sweat_smile:

Thanks, seems to be fixed 100%!
Yeah, the different REPL behaviour took me by surprise as well.  It's even different within a single Guile process between the terminal REPL and the socket REPL.  I'm not sure why, even after looking at the code - maybe it's not intentional.


Issues with defrost binary sensor

System Health details
N/A
Checklist

[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of currently previous issues..

Describe the issue
I experience a lot of Defrost cases with my HP1 while it is not defrosting at all. It happens during start of the HP.

in my case it is caused by a small temperature difference of the water inlet and outlet sensor when the HP is not in use. This results in the power measurement becoming negative, exceeding -100W and triggering the defrost binary sensor.

Maybe some additional parameters should be checked to determine defrost situations?
Reproduction steps
N/A
Debug logs
N/A

Diagnostics dump
No response

As the heat power decreases up to -6000W during defrost I would suggest to change the threshold to something like -2000W instead of -100W

What I see in the code is that it uses the power and powerinput from the Quatt and not the waterdelta.
Can you create a graph of a longer period of the power and powerinput of HP1?

Looking at my own Quatt (don't have a duo), it seems like that changing the heatpower check to -2500 could do the trick.

Could you change in the file coordinator.py (custom_components/quatt) the computedDefrost function?
Especially the return statement which checks the ranges of the input and output power.
After the change you have to restart Home Assistant to activate the change.
Please check whether that fixes the issue for you.
    def computedDefrost(self, parent_key: str | None = None):
        """Compute Quatt Defrost State."""
        if parent_key is None:
            return None

        powerInput = self.getValue(parent_key + ".powerInput")
        powerOutput = self.getValue(parent_key + ".power")

        LOGGER.debug("%s.computedDefrost.powerInput %s", parent_key, powerInput)
        LOGGER.debug("%s.computedDefrost.powerOutput %s", parent_key, powerOutput)

        if powerInput is None or powerOutput is None:
            return None

        powerOutput = float(powerOutput)
        powerInput = float(powerInput)

        return powerOutput < -2500 and powerInput > 100

What I see in the code is that it uses the power and powerinput from the Quatt and not the waterdelta. Can you create a graph of a longer period of the power and powerinput of HP1?

The power is a calculated value within the CiC. It is the flow * heat capacity of water * T_waterdelta. As the  T_waterdelta becomes slightly negative (-0,1 degC), the resulting power measurement also get's negative. This exceeds the threshold of -100W and triggers the defrost binary.
I will change the coordinator.py file, thanks for the suggestion!

What I see in the code is that it uses the power and powerinput from the Quatt and not the waterdelta. Can you create a graph of a longer period of the power and powerinput of HP1?

The power is a calculated value within the CiC. It is the flow * heat capacity of water * T_waterdelta. As the  T_waterdelta becomes slightly negative (-0,1 degC), the resulting power measurement also get's negative. This exceeds the threshold of -100W and triggers the defrost binary.
I will change the coordinator.py file, thanks for the suggestion!

You are right that the CIC uses a similar formula as the Quatt integration when an external powermeter is used to calculate the produced heat computedWaterDelta * flowRate * 1.137888.
Great that you are going to test out the change. Please report back whether it fixes the issue. I will also apply the change myself and check the effects on a single Quatt. After some testing I will create a pull request (PR) for the change.

It worked as expected. Binary sensor indicated defrost when power was below -2500W.
No defrost for small power drops (for example the -233W around 12:00)

@jeroen85, I created a PR with the fix. Hopefully it will be merged soon.

I will, unfortunately no defrosts these days


How to get raw array from VM props?

Hi @ManuelDeLeon, I have some props in VM like:
  testData: ['a', 'b','c','d','e']

Then I'd like to get the the array by
 @testData!

That always gives me
{"0":"a","1":"b","2":"c","3":"d","4":"e","length":5}

I was expecting to get back the raw array but turns out can't do so. Is there a way to get the raw array directly? Is this VM specific?
I could use
  testData: -> ['a', 'b','c','d','e']

But then I'm lost how to set the data ...

The array is converted to a reactive array.  You can get the raw one via
@testData().array()
On Jan 14, 2016 1:46 AM, "Dave Lee"<EMAIL_ADDRESS>wrote:

Hi @ManuelDeLeon https://github.com/ManuelDeLeon, I have some props in
VM like:
testData: ['a', 'b','c','d','e']
Then I'd like to get the the array by
@testData!
That always gives me
{"0":"a","1":"b","2":"c","3":"d","4":"e","length":5}
I was expecting to get back the raw array but turns out can't do so Is
there a way to get the raw array directly?
—
Reply to this email directly or view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/155.


Patch file for v14.16.0 is throwing error

Hi,
I tried to generate a binary for v14.16.0 and used the patch that you have here.
Not sure what the issue is here?

Learn how to use patch utility first, and make sure that you have the right patch. Check CI workflows and related files for details about how to apply a patch:
https://github.com/jesec/pkg-fetch/blob/aed52efc5cb4a5f6962c1692a094a5816e6801c2/lib/build.js#L61

Got it. I think I posted the comment in haste. Apologies! I had been so frustrated as I was not getting anywhere. Seems I grabbed the file incorrectly. It is working fine now.

Got it. I think I posted the comment in haste. Apologies! I had been so frustrated as I was not getting anywhere. Seems I grabbed the file incorrectly. It is working fine now.

Feel free to close the issue.


Allow td nodes with useFirstRowForHeadings

First row don't need to use canonical th nodes to mark headers. Found at https://wiki.ubuntu.com/Releases

Fixed, It has a typo. I've also updated eslint dependencies.

Please also update the package-lock.json here...

Please also update the package-lock.json here...

Done :-)

Pull Request Test Coverage Report for Build 62

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 98.352%

Totals

Change from base Build 54:
0.03%

Covered Lines:
98

Relevant Lines:
98

💛  - Coveralls

Thanks! :-D


How to use moment and moment-precise-range plugin together in Angular 5 app?

Hi.
In my application, I use moment package as follows:
import * as moment from 'moment'
How can I use this plugin together in my app?

closing, this is not an issue with the project but a question about how to use it with angular (which I am not familiar with, sorry)


v1.10 backports 2022-04-05

#18859 -- test: Wait until host EP is ready (=regenerated) (@brb)
#19276 -- docs: Clarify use of the eni.subnetTagsFilter option (@gandro)
#19258 -- ipcache: Add test asserting out-of-order Kubernetes events (@christarazi)
#19307 -- workflows: Use docker manifest inspect for waiting images (@YutaroHayakawa)

Minor conflicts on workflow files that don't exist in v1.10.

Once this PR is merged, you can update the PR labels via:
$ for pr in 18859 19276 19258 19307; do contrib/backporting/set-labels.py $pr done 1.10; done

/test

/test-backport-1.10

(🎩: I have set the backport labels to done:tm: for all PRs backported by this)


Converge ChangeDependencyVersion options

The other ChangeDependency* recipes had differing options than those of ChangeDependencyVersion. This PR brings those into alignment.
This PR is based off of the latest release tag because main is missing a pair of classes at this time.

@shanman190 Could you rebase this branch on top of latest main? If not, can do it here as well.

Merged with 5f79c2babfff71a2016b6f7bdeac12c62fc9f531.


Update Azure Security Center to Microsoft Defender for Cloud

Description
Replaced all instances of ASC/Security Center/Azure Security Center with Defender/Microsoft Defender for Cloud
Note:  Remember to add deployDefender=true to parameters when deploying to test.
Issue reference
The issue this PR will close: #630
Checklist
Please make sure you've completed the relevant tasks for this PR out of the following list:

[X] All acceptance criteria in the backlog item are met
[X] The documentation is updated to cover any new or changed features
[X] Manual tests have passed
[X] Relevant issues are linked to this PR

#668 just went in, so merging latest main should kick off the generation of an accurate _manifest dir