Invalid signatures due to URL encoding changes (0.36.1-beta vs 1.0.0+)

Describe the bug
When using ApiGatewayManagementClient (AWS Kotlin SDK 1.0.0 or higher) to send a message on an API GW Websocket calls to ApiGatewayManagementClient.postToConnection now fail with a InvalidSignatureException due to a signature validation error.
This exception did not occur with v0.36.1-beta or previous versions.
This appears to be related to the URL encoding changes, specifically the canonicalization of a Url here.  A quick review of that code allows @ as a valid (hence unescaped) character, whereas it was previously escaped, with the endpoint expecting it to be escaped.
Walking through both SDK versions with a debugger we end up with a string-to-sign (fragment) of:

0.36.1-beta (works): /%40connections/PiJ_BfnLoAMCJEw%253D
1.0.0+ (fails): /@connections/PiJ_BfnLoAMCJEw%253D

Note the failing version does not escape @ as noted earlier.
While this specific issue pertains to API GW WS SDK calls it's likely there are other areas that are similarly affected given the convergence of signing / canonicalization.  Any SDK call with @ in the path will fail to generate the correct canonical string; there may be other characters likewise affected.
Expected Behavior
SDK calls generate a proper, valid signature, as expected and validated by AWS endpoints.
Current Behavior
The noted SDK call generates an invalid signature and is rejected by the AWS endpoint.
The full exception (sensitive portions redacted):
Exception in thread "main" aws.sdk.kotlin.services.apigatewaymanagementapi.model.ApiGatewayManagementException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

The Canonical String for this request should have been
'POST
/%40connections/PiJ_BfnLoAMCJEw%253D

amz-sdk-invocation-id:<redcated>
amz-sdk-request:attempt=1; max=3
content-type:application/octet-stream
host:<redacted>
x-amz-date:20231206T200102Z
x-amz-security-token:<redacted>
x-amz-user-agent:aws-sdk-kotlin/1.0.10

amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-date;x-amz-security-token;x-amz-user-agent
7aa80cee51dcb3ca48c9f0af0a4b30a6ebdcf5bfdcca57352c6dfe7bb96cf64d'

The String-to-Sign should have been
'AWS4-HMAC-SHA256
20231206T200102Z
20231206/us-east-1/execute-api/aws4_request
ee606f6d4ade53ffc098d07d92eb55db183510cbcd6662c08669c6cc211c8027'

	at aws.sdk.kotlin.services.apigatewaymanagementapi.serde.PostToConnectionOperationDeserializerKt.throwPostToConnectionError(PostToConnectionOperationDeserializer.kt:49)
	at aws.sdk.kotlin.services.apigatewaymanagementapi.serde.PostToConnectionOperationDeserializerKt.access$throwPostToConnectionError(PostToConnectionOperationDeserializer.kt:1)
	at aws.sdk.kotlin.services.apigatewaymanagementapi.serde.PostToConnectionOperationDeserializerKt$throwPostToConnectionError$1.invokeSuspend(PostToConnectionOperationDeserializer.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:283)
	at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith$default(DispatchedContinuation.kt:278)
	at kotlinx.coroutines.DispatchedCoroutine.afterResume(Builders.common.kt:261)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Steps to Reproduce
A reproducer can be made available if need be; the above information should be enough to craft unit tests to validate issues with canonicalization.
Possible Solution
n/a
Context
This issue affects the SDK 1.0.0+ and prevents use of SDK calls that incorrectly sign the request.  At the moment, for our use cases, it is limited to AWS API GW Websocket 'post to connection' calls.
Any SDK calls that have @ in the URL path may also be affected in a similar manner; the issue may extend beyond just the failure to escape @ and include other characters that invalidate the signature.
Your Environment

Smithy Kotlin version used: 0.36.1-beta works; 1.0.0+ (incl. 1.0.10) fail as noted above
Platform (JVM/JS/Native): JVM
Operating System and version: MacOS & Linux

Thanks for the bug report, @cloudshiftchris, I've reproduced the issue locally and I should have a fix available shortly.

The fix for this issue has been pushed to main and released in smithy-kotlin 1.0.3. The change should be available in the latest release of aws-sdk-kotlin later today.

The fix is now release and available in aws-sdk-kotlin 1.0.14.

Ran a repro with 1.0.14 with the same (failing) results; it looks like 1.0.14 still depends on smithy 1.0.2?

The latest 1.0.15 release of aws-sdk-kotlin now references the correct smithy-kotlin release and properly signs URLs containing special characters.


unable to start Tekno mod - Process crashed on init

I get this error every time I try to open the bat file or exe
late edit: the Reshade mod is messing up the exe/bat for some reason and I can't run both at once which is weird because I'm assuming they "should" work since they're both in this pack together

Hmmm, I've never actually encountered that error before with Tekno and Reshade together. :/ And yes, these two should work fine, since

Haha, apologies. Not too used to Github.
Hmmm, I've never actually encountered that error before with Tekno and Reshade together. :/ And yes, these two should work fine, since it's just a shader injector.
Were you able to run Reshade without Tekno? I know integrated GPUs will sometimes, if not always, guarantee a crash at start, from my findings at least.

Were you able to run Reshade without Tekno? I know integrated GPUs will sometimes, if not always, guarantee a crash at start, from my findings at least.

Yeah, I've actually been using it for like 3-4 years before I ever found these other mods. I did a fresh install of everything and I can run it fine but then it just broke my entire game when i tried to add other things. I can't use the Terrorist Hunt Control either. It just does nothing.

Hmmm, do you have the standalone version of Vegas 2 or the Steam version? I can imagine a previous update on the standalone version could cause it to crash.
If you right-click the 'Run TeknoR6Vegas2 (Admin only)' shortcut, and 'Edit', what do you see?

Hmmm, do you have the standalone version of Vegas 2 or the Steam version?

I have the Steam version

If you right-click the 'Run TeknoR6Vegas2 (Admin only)' shortcut, and 'Edit', what do you see?

edit: every time I try to run the bat it opens another process that uses 100% of my CPU and doesn't close

You should probably close those other instances via Task Manager. Not too sure why they're duplicating...

You can get that here: https://www.dropbox.com/s/galg0fzrkmvjq16/R6Vegas2_Game.zip?dl=0
Just replace R6Vegas2_Game.exe and that should work.

Yeah, I've been using that one. I'll try with the one you linked I guess. I just copied this video and did what he did. I've also tried other things like installing the Tekno mod from another site and dragging the files into the Binaries folder (which worked one time, then broke instantly)

oops

Yeah, I've been using that one. I'll try with the one you linked I guess. I just copied this video and did what he did.

Ahhh, I see. Well, knowing that it was duplicating earlier, you should probably make sure no other instance is running before you attempt to run Tekno again.

oops, didn't mean to hit that, this is my first time every writing messages on here
so I was able to get the Terrorist Hunt Control and FOV mods working fine at least, I'll see what else I can do

Haha, yeah... no worries.
Gotcha. Let me know if you discover something.

Gotcha. Let me know if you discover something.

I just turned my computer off and back on in safe mode and everything works 100% fine. I don't know what that means exactly but something I have running etc is interfering with it somehow.

3rd party antiviruses can be a hassle, especially if it's strict, and detecting the .bat's and .exe's as false positives.

3rd party antiviruses can be a hassle, especially if it's strict, and detecting the .bat's and the .exe as false positives. Do you happen to have Avast, AVG, etc?

Funny, that used to happen to me 10~ years ago when I used AVG and I know it's a major issue with that one in particular but no, I only use Windows Defender and even turned it off which didn't help. I have no idea what's causing the problem but it's something running in the background. Do you think there's an incompatibility issue with my GTX 3090 TI?

I have no idea what's causing the problem but it's something running in the background.

Unless Windows 10/11 did something unusual, it's probably something you have on startup, maybe?

Do you think there's an incompatibility issue with my GTX 3090 TI?

Not likely. A member from the Vegas 2 discord has an RTX 3060, and he runs the game with little to no issues.

Unless Windows 10/11 did something unusual with one of their updates, it's probably something you have on startup, maybe?

After starting my PC normally I turned off and disabled everything possible and it still didn't work so I'm assuming it has something to do with Nvidia since I can't turn that off but in safe mode the drivers are disabled.
I can try to do some more troubleshooting since I'm done with breakfast.

After starting my PC normally I turned off and disabled everything possible and it still didn't work so I'm assuming it has something to do with Nvidia since I can't turn that off but in safe mode the drivers are disabled.

Any luck finding which driver is causing the crash?

Something I've now noticed is that certain attachment options for every weapon type is gone (high capacity magazine, recoil control stock). What mod does that? I only have Teknor, Reshade, Terrorist Control, FOV. I don't want any weapon changes if possible.

Through installedmods.txt (if you used the batch scripts), it shows what you have currently installed. If you didn't install Vegas 2 Realism or The Complete Overhaul mod, then you should have vanilla weapons. Which weapons are missing certain attachments?

I have no idea what's going on with the drivers or whatever may be hindering my experience and I nearly bricked my PC messing with safe mode so I'm giving up for now haha.
For some reason the ini files were still modified from maybe way earlier when I did have The Complete Overhaul installed so I just put the original files back and it's all good.

I have no idea what's going on with the drivers or whatever may be hindering my experience and I nearly bricked my PC messing with safe mode so I'm giving up for now haha.

xD I see. Well, I'll keep this issue open if you ever find anything. Sorry I couldn't be of further assistance.

For some reason the ini files were still modified from maybe way earlier when I did have The Complete Overhaul installed so I just put the original files back and it's all good.

If you did use the batch scripts, I automatically make backups to revert back to vanilla. Just 'Uninstall' via Run.bat, and you should be good. Or... if you want to do it manually, go to the 'Backup' folder in the game directory and everything should be there.


Add flow for user changes

Problem
The realm java sdk as well as the realm swift sdk both have methods of getting notified when a user changes.
In the realm java sdk, there is an AuthenticationListener that you can register with the App that gets notified when a user logs in or out.
Solution
It would be useful if a similar functionality exists for the realm kotlin sdk. For example, a flow that emits User objects when a new user gets logged in would be great.
Alternatives
No response
How important is this improvement for you?
I would like to have it but have a workaround
Feature would mainly be used with
Atlas App Services: Auth or Functions etc

Thanks for reporting this. This issue is already being tracked here: https://github.com/realm/realm-kotlin/issues/1349, but I agree that exposing it as a Flow will probably make more sense in Kotlin.
Folding this into #1349 as a duplicate.


LPB and LP issue

Hey, I have a bungeecord network. Luckperms Bungee on my bungee, rest are Luckperms spigot.
lp info

lpb info

All the permissions are synced, doing lbp editor and lp editor will show the same permission nodes.
I have advancedBan running on my bungee, all the perms added to my mods. For some reason my mod team cannot /tempban as it says no perms.
i tried running a command /lpb <user> permission set ab.ban.temp true and the tempban worked.
i'm pretty sure that the bungee commands should work since everything is in sync.. am i doing something wrong?

Make sure the UUIDs match, when you run lp(b) user <user> info.
If they don't be sure to follow this: https://github.com/lucko/LuckPerms/wiki/Network-Installation#pre-setup

That guide is how I installed LPB and LP. I'm pretty sure all UUIDs match cz it's happening to all of my mods.

Any updates on this?

Yes it would happen to all players. Please verify they match.


Why is uuid translated as string?

If I use a uuid (as a primary key) in a postgres table, sqlboiler generates a string field in the model. Is there a reasoning behind this?
I'm not too bothered by this, but I think it should either be [16]byte or a type UUID [16]byte. It would make using https://github.com/satori/go.uuid easier, and it would consume less memory as it would be 16 bytes instead of 36 bytes (characters) plus the string header.
CC @teasherm

Hi @mvdan. First let me apologize for not getting back to you quicker. I saw this issue right away and then promptly got distracted by other things.
I'm going to respond to both issues here since they're essentially the same kind of problem. And the first thing I want to say is that I agree with you that there are inefficiencies in the in-memory representation. However it's a trade-off on multiple levels. The reason they behave like they do currently is that was the path of least resistance to get it working for these cases. Let me elaborate on the reasons:
UUID:

[16]byte is not supported by the lib/pq driver (which we shamelessly assume everyone uses). Meaning we would have to have created another type and the less types we create the better since we then become the maintainers of those types. I know we have a lot already but they were all absolutely necessary, a UUID type is not.
[16]byte is not supported nicely by things like JSON and we'd be forced to implement MarshalJSON, MarshalTOML, TextMarshal, BinaryMarshal etc etc and support all that too.

Now these things could be circumvented by using []byte but then you've lost a lot of the reason for making the change since you're saving some 3 integers or so by not having the slice header. And recall that you'll always have multiple allocations of this anyway since you'll be forced into converting to slice all over the place (as usual when using non-slices).
Char:

byte is not a supported type for the lib/pq library to scan a char(N) into, because it's a variable width type. So in order to accomplish this one we'd not only need a custom byte type, but we'd have to dig into another level of metadata for field types inside databases (the length of variable width columns) which we'd like to avoid if possible since it puts more requirements on information_schema support and may impact later additions of say SQLite.

In summary the positive side of these changes are:

Leaner (and truer) in-memory representation of these types

The downsides are:

More custom SQLBoiler types for users to deal with, rather than pure Go types.
Array usage in Go, which complicates usage of the struct fields, with no usability gains since you're still converting to/from a separate UUID package
Unpleasant representations in other serialization formats that we currently try to support.
Requires additional metadata from the information_schema

I recognize the inefficiencies, and hopefully you recognize the tradeoffs that I've outlined and that neither is an ideal state. I don't want to say we'll never do this because this kind of inefficiency makes me really sad but I think we need some more data on whether or not this amounts to being a bottleneck in real-world applications. I'm sure there's some awful cases like a table with 80 char(1) columns... but I'd like to see something in the wild where this is hurting enough to make the change. I think rather than have this, I'd prefer a mechanism whereby users can select the types generated via config files - but that has it's own downsides in terms of complexity.

JSON/TOML and the rest would be covered by the Text one. And I don't know why Binary would be important here - currently it's just the string version, so you could just use Text as well.

Now these things could be circumvented by using []byte but then you've lost a lot of the reason for making the change since you're saving some 3 integers or so by not having the slice header.

Remember that the []byte would contain 16 bytes, not the 36 bytes (chars) that it takes when stringified. But yes, it would be a small gain to go from string to []byte.

And recall that you'll always have multiple allocations of this anyway since you'll be forced into converting to slice all over the place (as usual when using non-slices).

Depends on the use-case. My understanding is that right now there is one stringification and allocation when gathering the fields from postgres. If we used [16]byte, this would not happen upfront and it would be up to the user to do if needed.

In summary the positive side of these changes are:

Leaner (and truer) in-memory representation of these types

I would add the ability to use go.uuid a lot easier. Right now, you have to use String() everywhere.

The downsides are:

More custom SQLBoiler types for users to deal with, rather than pure Go types.

I understand that's only because lib/pq does not support it.

Array usage in Go, which complicates usage of the struct fields, with no usability gains since you're still converting to/from a separate UUID package

Complicates how?
There would be usability gains. If go.uuid defines type UUID [16]byte, you can assign and convert to [16]byte easily. If not, you have to do str = uuid.String() everywhere.

Unpleasant representations in other serialization formats that we currently try to support.

If this is a problem, you could always fall back to the text marshaling which is what is currently done, right?

Requires additional metadata from the information_schema

I don't know anything about that :)
I'm not going to insist, so feel free to close this issue if you want to decline this request/proposal. This was more of a "I wonder why they do it this way" issue.
I have a different view of the ups and downs of [16]byte vs string, but I do see that there are still disadvantages. And since you guys know more about sqlboiler and SQL in general than me, I'll leave it to your judgement.
Thanks again!

Also, since you merged the "char" issue into this one.

byte is not a supported type for the lib/pq library to scan a char(N) into, because it's a variable width type. So in order to accomplish this one we'd not only need a custom byte type, but we'd have to dig into another level of metadata for field types inside databases (the length of variable width columns) which we'd like to avoid if possible since it puts more requirements on information_schema support and may impact later additions of say SQLite.

I understood that "char" and char(1) were different things. Like byte and [1]byte are in Go.
If "char" really is a byte in postgres, then I think what I said makes sense. If "char" is just a synonim for char(1), then I misread the documentation and it's nonsense.

You're right about serialization I THINK. Having said that I've never had the TextMarshal work for JSON encoding for me. Not sure why but I'm sure I tried several times. Going to test this again :)
The one point I made that was sort of lost here I think was any use of the [16]byte requires a slice struct to be created regardless, since no method in Go takes [n]byte you may end up doing something like this: strings.ToUpper(uuid[:]), but this is also assuming you actually need to use it in some function you didn't write, and since it's a uuid you probably don't. This is why I mentioned extra allocs. It's possible they live on the stack though. I also considered this a "complication" hence my point where I said "Array usage in Go, which complicated the usage of struct fields". Arrays in Go are more cumbersome to use than a string or []byte.
lib/pq not supporting it does force us to make additional types yes, you're right.
I hadn't realized that a type alias for [16]byte would allow assignment, somehow I thought you still needed to have an explicit conversion.
Just so you're aware we harvest metadata from columns from the information_schema parts, this is an SQL Standard and if we're to maintain compatibility across multiple database engines, we need to make sure they all support the attributes that we ask for. It -is- a standard but like most things it's half implemented by every sql database :|
You're also absolutely right about char, thanks very much for pointing it out! This may change things for us depending on what's in the information_schema tables.
Anyway. I'm going to think about this a little more with renewed enthusiasm about char. It's really not a bad idea. Thanks for all the discussion :)

Hey @mvdan. We've been busy on other projects so let this issue drift a little.
Did a bit more research on this one, we're good to go on all fronts. Aside from it being a breaking and just an optimization forgive me for a little more drift :) The facts we gathered were all correct -and- I found that the TextMarshaler problems I've seen in the past were probably my own doing. The information_schema data is also sufficient.
We'll get to this one.

Awesome! I assume you're talking about "char" - if so, could you change the title?

https://github.com/vattle/sqlboiler/releases/tag/v2.1.0


new(libsinsp/test): Test open/openat/creat NULL filenames and enter/exit string disagreements

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area libsinsp
/area tests

Does this PR require a change in the driver versions?

/version driver-API-version-major

/version driver-API-version-minor

/version driver-API-version-patch

/version driver-SCHEMA-version-major

/version driver-SCHEMA-version-minor

/version driver-SCHEMA-version-patch

What this PR does / why we need it:
Add more tests to the libsinsp suite for open, openat and creat:

check for NULL file name during open/openat/creat on entry event but present on exit. The exit name should be used in this case
check what libsinsp infers from disagreeing params, in that case the entry one should take precedence.

Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

@Andreagit97 all comments have been addressed, plus now the existing entry tests are refactored to check every combination of open, openat(2), creat and , (NULL), NULL input strings. If you're wondering what << test_context is, it's just a string that will be printed if a test fails, so you can know at which iteration of the specific for loop there may be a problem, otherwise you'd only have the line which would not be very useful on its own.

LGTM label has been added.  Git tree hash: bc216778cdcee2ab260b7d2f7a68e1ab5eb0c395

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, FedeDP, LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Andreagit97,FedeDP,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Added more params

Added pid and env-file
Added docs for creating new transformers and parameters
Closes #44

Coverage remained the same at 100.0% when pulling 62ac6631e7980aa221cab050a760d502cdd2c636 on more-params into 05e4d363994333489ae50367aa05fc48594f84f2 on master.


⚠ Bofrost.lu has degraded performance

In b4a5e98, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1735 ms

Resolved: Bofrost.lu performance has improved in 93e708c after 20 minutes.


Improve Navbar

Try Building new Styles in Navbar or just modify the existing ones in index.js

Would you like the mobile and the desktop versions of the Navbar improved? I can do both.

Sent pull request. Let me know if you have any questions.

Thanks


Correct S1012

Signed-off-by: Gábor Lipták<EMAIL_ADDRESS>

@rvantonder please review

Good catch, thank you!


TF 2.0  ft.GradientTape() gradient()  second gradient None

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows Anaconda
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):
TensorFlow version (use command below): tensorflow 2.0b1
Python version:  3.7
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
second gradient with input  is None
Describe the expected behavior
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
import tensorflow as tf
import numpy as np
from matplotlib import pyplot as plt
import time
import math
import tensorflow as tf
import numpy as np
import tensorflow as keras
from tensorflow.keras import layers
from tensorflow import keras
from tensorflow.keras.utils import plot_model
from scipy . stats import multivariate_normal as normal

d = 2
batch_size = 3

def func(x):
    x = x*x
    x = keras.layers.Dense(d)(x)
    return x

Input  = keras.Input(shape = (d,), dtype = tf.float64, name = 'X' )
Output = func(Input)
model = keras.Model(inputs=Input, outputs=Output)

x_train = tf.random.uniform( (batch_size, d), minval=0, maxval=1, dtype=tf.float64, seed=1000)

for epoch in range (1):
    with tf.GradientTape() as t1:
        t1.watch(x_train)
        with tf.GradientTape() as t2:
            t2.watch(x_train)
            predictions = model( x_train )

        dy_dx = t2.gradient(predictions, x_train)
        print("dy_dx = ", dy_dx)
    dyy_dx = t1.gradient(dy_dx, x_train)

    print("dyy_dx = ", dyy_dx)

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
W0811 23:13:04.473541 11804 ag_logging.py:145] Entity <bound method TensorFlowOpLayer._defun_call of <tensorflow.python.eager.function.TfMethodTarget object at 0x0000025C98A045F8>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: converting <bound method TensorFlowOpLayer._defun_call of <tensorflow.python.eager.function.TfMethodTarget object at 0x0000025C98A045F8>>: AssertionError:
WARNING: Entity <bound method TensorFlowOpLayer._defun_call of <tensorflow.python.eager.function.TfMethodTarget object at 0x0000025C98A045F8>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: converting <bound method TensorFlowOpLayer._defun_call of <tensorflow.python.eager.function.TfMethodTarget object at 0x0000025C98A045F8>>: AssertionError:
dy_dx =  tf.Tensor(
[[0.03395048 0.86635576]
[0.52642456 0.80100264]
[1.05554004 0.05975098]], shape=(3, 2), dtype=float64)
dyy_dx =  None

@zwenju ,
Hi,When tried executing the given code error NameError: name 'neutron_network' is not defined was faced.Thanks!

Please , try the new code,  I have change neutron_network to func.  thanks

@zwenju,
Thank you for the code,when tried executing the given code i got the output as per the screenshot

Thank you,      dyy_dx = None  is  actually not the expect results.
Could you fix this bug ?
Thanks.

This is fixed with latest version TF 2.0 nightly
Output in TF 2.X nightly version 2.0.0-dev20190821
dy_dx =  tf.Tensor(
[[ 2.84032801 -0.34441594]
 [ 0.12755782 -0.69508436]
 [ 1.86527439 -0.02203789]], shape=(3, 2), dtype=float64)
dyy_dx =  tf.Tensor(
[[ 3.79678631 -0.80638027]
 [ 3.79678631 -0.80638027]
 [ 3.79678631 -0.80638027]], shape=(3, 2), dtype=float64)

Great Thanks.


remove v1alph1 routing references

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: frankbu
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content/OWNERS [frankbu]
content_zh/OWNERS [frankbu]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/lgtm
/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: frankbu, geeknoid
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content/OWNERS [frankbu,geeknoid]
content_zh/OWNERS [frankbu,geeknoid]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[4.2.2] selecting multiple lines of code and "CMD + SHIFT + DOWN_ARROW" behaviour is wrong

Tested versions
Reproducible in 4.2.2
System information
Godot v4.2.2.stable - macOS 14.1.1 - Vulkan (Forward+) - integrated Apple M1 - Apple M1 (8 Threads)
Issue description
EXPECTED BEHAVIOUR : After selecting two lines of code, pressing CMD + SHIFT + DOWN_ARROW should duplicate them together after the last selected line.
CURRENT BEHAVIOUR :   After selecting two lines of code, pressing CMD + SHIFT + DOWN_ARROW duplicates each line separately. (Attached screen shot for reference)

Steps to reproduce
Select 2 lines of code and press CMD + SHIFT + DOWN_ARROW
Minimal reproduction project (MRP)
N/A - It is there in the latest version (4.2.2)

Cant reproduce this in 4.3rc1 with CTRL + ALT + DOWN

I tested in 4.3 version and it works fine. Then I built 4.2.2 and tested and it was producing the issue.
I went through the code and I believe the issue is in void CodeEdit::duplicate_lines()

Ok I understood the problem, If select the text from top to bottom (where the caret is at the bottom) this logic works perfectly.

But if I select the text from bottom to top, where the caret is in the start of the selection, only in this case, it wont work as expected.

duplicate of https://github.com/godotengine/godot/issues/83589
fixed in https://github.com/godotengine/godot/pull/86978


Benchmarking Workflows in Cytosnake with Memray 📊

modified from EmbeddedArtistry
Description
Thank you for your contribution to CytoSnake!
Please succinctly summarize your proposed change.
What motivated you to make this change?
This PR introduces memray in Cytosnake to benchmark workflows. This means we can now pinpoint memory leaks, fine-tune performance, and measure elapsed time more accurately. By doing this, we are obtaining precise metrics to track its performance like: memory usage, time elapse, resource management, etc.
To activate benchmarking, users need to go to the configuration.yaml file as set enable_profiling to True
# profiling is off (default)
enable_profiling: False

# profiling is on
enable_profiling: True

Other Updates
This PR also changes:

added a new function that updates configs file at runtime
added unit tests
The integration of Memray into all environment files.
Documentation update on how to conduct benchmarking. Preview shown here (NOTE: this will be removed once merged)

Please also link to any relevant issues that your code is associated with.
What is the nature of your change?

[ ] Bug fix (fixes an issue).
[X] Enhancement (adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).
[X] This change requires a documentation update.

Checklist
Please ensure that all boxes are checked before indicating that a pull request is ready for review.

[X] I have read the CONTRIBUTING.md guidelines.
[X] My code follows the style guidelines of this project.
[X] I have performed a self-review of my own code.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[X] New and existing unit tests pass locally with my changes.
[X] I have added tests that prove my fix is effective or that my feature works.
[ ] I have deleted all non-relevant text in this pull request template.

Hello @d33bs and @gwaybio I have attended all comments and suggestions. However, @d33bs I have left some comments on some of your suggestions and wanted to see if you can check them out before I merge!
Thanks for all your help!


add test for Tanh and Sigmoid inplace

includes test for Tanh and Sigmoid activations using inplace mode

tanh and sigmoid cant be done in-place right?

Yes. I assume the tests are passing?

@soumith don't you have automatic tests checker for PR?

no we dont have gpu builds for this repo

Hmm, the I/O tests are failing on my machine (regular ones are passing, as they should, because cudnn supports this).

I/O tests are failing because testIO does not clone input, and for inplace layers it is overwritten
https://github.com/torch/nn/blob/master/Jacobian.lua#L292
so the second time the layer is run with the different input.
The reason ReLU is passing is because ReLU(input) = ReLU(ReLU(input))
@soumith, should this be fixed in Jacobian?

ohh. yea, fixing Jacobian seems appropriate.


Script for GLPK?

We're facing installation issues for igraph on macOS CI/CD, related to GLPK. I wonder if it's worth adding an installer script. How do other packages that require GLPK do it? Thanks!
CC @Antonov548.

A build of glpk 5 is on the CRAN servers: https://github.com/R-macos/recipes/blob/master/recipes/glpk
Binaries are here: https://mac.r-project.org/bin/darwin20/

A build of glpk 5 is on the CRAN servers: https://github.com/R-macos/recipes/blob/master/recipes/glpk Binaries are here: https://mac.r-project.org/bin/darwin20/ In the r-universe CI these are automatically preinstalled.

Thanks for the response.
Is there example how to integrate it to configure to provide include path and path to library for R package?

Example anticonf from other package: https://github.com/cran/rDEA/blob/aab922688625021041388ef9373d30cee0d92062/configure#L55
@jeroen: Is this the way to go?
If this doesn't work for our CI/CD, perhaps debug it with https://github.com/mxschmitt/action-tmate? Any other suggestions?


--fill argument in BreachDepressionsLeastCost not honored

In testing of the BreachDepressionsLeastCost tool, (via Python API and whitebox_tools.exe), I have found that regardless of whether or not the --fill parameter is provided, all non-breached depressions are filled. The results of running the tool with and without the --fill parameter are indeed different from each other, but both raise (fill) elevation values in the output when compared to the input DEM. If I interpret the documentation correctly, the intention of the --fill parameter is to allow a user to perform a 'breach-only' run of the Breach Depressions (Least Cost) tool, which is what I am trying to do, but even without placing any limits on the breach cost or distance, the result contains filled areas. Let me know if you need any example files.

As I often use this tool I wanted to check but I can't replicate your issue. Without the --fill parameter, unbreached depressions really remain untouched. Are you testing with the latest release (1.4.0) ?

Similar to @jfbourdon I also tested this issue with similar results. Without the --fill parameter, unbreached depressions in my test DEM remained untouched. I have also been testing with the latest stable release (1.5.0). I am going to close this issue as I can replicate it. If you are still experiencing this issue, I can re-open and look into it further.

Now that I started using the Python API a bit more, I'm pretty sure it was caused by the fact that the fill parameter is set to True by default in the Python API but is set to false when using WBT in command-line. See #194 for the details.


BUG: Dark Mode Not Working in Login Page and Navbar is not alike in Login Page

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Dark Mode Not Working in Login Page and Navbar is not alike in Login Page

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@RitiChandak Please Assign me this issue

Assigned!
Make sure to attach before & after screenshots in your PR. Also, star the repo
before working on it. While creating your PR, ensure you pull all existing changes
beforehand to avoid conflicts.
Happy open-source contributing!

@RitiChandak please assign me this issue excited to contribute

@Tarungupta18 Issues are assigned on a first-come, first-served basis. If a contributor doesn't
contribute within 1 week, it will be reassigned to the next person who requested it.
You can wait or find another bug/feature to contribute to. Thank you!

Is there an existing issue for this?

[x]  I have searched the existing issues

What happened?
Dark Mode Not Working in Login Page and Navbar is not alike in Login Page

Record

[x]  I agree to follow this project's Code of Conduct
[x]  I'm a GSSOC'24 contributor
[x]  I want to work on this issue

Assigned!
Make sure to attach before & after screenshots in your PR and include the issue number.
Also, please star the repo before working on it. Happy open-source contributing!


Can the docs be updated to contain this?

The instruction to get the new styles according to the doc, is misleading. One has to search closed issues to find this;
@YashKarthik Can you please try with  "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum', 'calt', 'liga'"?
Originally posted by @alexdima in https://github.com/microsoft/vscode/issues/100264#issuecomment-650210805

Also see Stack Overflow, https://stackoverflow.com/questions/58965575/vscode-update-to-stylistic-sets-using-font-ligatures-with-fira-code

These settings are specific for Fira Code. Each font family can define the font feature settings and stylistic sets names. IMHO we should not start documenting such details about font families in our documentation, especially given that these might change with every font release.


Add command optional flags explanation on Wiki

What happened 👀
Resolve #26

Add instruction on wiki
Update README

Insight 📝
N/A
Proof Of Work 📹
N/A

The template uses Cookiecutter to generate a new application project. By default, the main branch is used. However, a different branch, just as develop - can be used.

Fixed https://github.com/nimblehq/gin-templates/wiki/Commands.
I used the free version of Grammarly to correct the grammar and seems like my phrase doesn't break any of their rules. Not sure if Grammarly can adjust the phrase same as you suggest?

@gutakk Note that you can also use our education allowance to subscribe to a paid version of Grammarly.


Investigate how hard it is to get the flambda switch to work

A lot of our time is spent in ocaml and not in serious z3 computation.
flambda is an ocaml compiler variant that has more optimization options.
See if we can get our plugin running in it. How much does it slow down compilation. How much of a boost do we get?

See https://discuss.ocaml.org/t/ann-bap-2-1-0-release/5906 for the relevant discussion. Up to twice speedup, provided that you enable O3 for all upstream packages. Make sure that you have enough hard drive space and RAM before you start compiling.

I did some preliminary investigation and wasn't finding much speedup. So little in fact, that I suspect I have failed to get the optimizations to fire.
I used a fresh flambda switch and compiled after export OCAMLPARAM=_,O3=1
Perhaps this underscore was meant to be filled in by my other parameters?


Create World “map-createdat-2023-01-12-worldname-agriculture”

Automatically generated by Netlify CMS

👷 Deploy Preview for spectacular-crostata-851cec processing.

Name
Link

🔨 Latest commit
578b9387488fbd43950dd555c27c1f8ff9dd664b

🔍 Latest deploy log
https://app.netlify.com/sites/spectacular-crostata-851cec/deploys/63bff1a236472f0009ce8399


[SMALL] Ignore system tables for reverse engineering

Fix for #5126.

:shipit:

:shipit:

Updated as suggested by @divega and @ErikEJ and checked in with commit e86848c.


Cannot change the shape of cursor between modes.

Hi everyone,
I'm using CMDer terminal emulator for Vim, previously, the cursor will be automatically switch to a thin vertical bar when entering "Insert mode".
However, recently, I re-install  Vim and the cursor was changed to a rectangle. I've been trying various ways that I could find on Reddit/Stackoverflow but it seems that there is no way to change the shape of the cursor.
Is there something wrong in the basic.vim or extended.vim that does not allow the cursor to be changed?

This isn't related to my vimrc 👍 Please check your vim installation.


IONode.toml

@bengtlofgren please merge my node into namada-testnets/namada-public-testnet-9

Sorry, I don't merge people who mention me on github. Try again next testnet


chore: Remove removeHighContrastHeader global flag

Description

depends on https://github.com/cloudscape-design/components/pull/2150
will not be merged to mainline. Several PRs will be merged at the same time in the future

How has this been tested?
Locally

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

Changes include appropriate documentation updates. N/A
Changes are backward-compatible if not indicated, see CONTRIBUTING.md. N/A
Changes do not include unsupported browser features, see CONTRIBUTING.md. N/A
Changes were manually tested for accessibility, see accessibility guidelines. N/A

Security

If the code handles URLs: all URLs are validated through the checkSafeUrl function. N/A

Testing

Changes are covered with new/existing unit tests? N/A
Changes are covered with new/existing integration tests? N/A

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Besides the removal of the dark header background, the Backstop tests also show a difference in the header heights; is this expected?
(Although if there is an issue, I don't think it comes from this PR in particular)

Will doubke-check, thank you for reporting. Indeed, there are failures coming from previous PRs that I need to investigate


feat: Create WWW-Authenticate metadata writer

Closes #655.
Depends on #760.

Just a thought, do with it what you want 🙂
Imagine a ConditionalMetadataWriter that checks the status code, and then invokes another writer. In this case the existing constant header writer 😃

Imagine a ConditionalMetadataWriter that checks the status code, and then invokes another writer. In this case the existing constant header writer 😃

Let's get back to that for #673 😉

Let's get back to that for #673 😉

Amazing. I'm sensing an ConditionalHandler implements AsyncHandler<T extends AsyncHandler> implements T that checks status code.


Photo scanner for QR code login in.

I can't login in scanning my QR code,cuz I don't have another monitor or a printer

Soon (1-2 months) you will be able to manage your SkyID identity and login using only your mobile device.


munit-0.7.29, scodec-bits-1.1.28

A couple dependency bumps as the release train rolls on.

The Actions queue is a mile long and this error is fixed on the branch.  I'm going to gamble.


How to add a "safe" CSP for templ generated HTML and Javascript

When I use a script in templ, if I want to use a content security policy (CSP), then I need to include a script-src 'unsafe-hashes' CSP because any javascript included in an html attribute (e.g. onload) needs the unsafe-hashes CSP.
The suggestion from the unsafe-hashes CSP page is:

Whenever you see the prefix unsafe in a CSP keyword, that means that using this is not the most secure way to go. It is better to refactor your code to avoid using HTML event handler attributes (such as onload, onclick, onmouseover etc.)

Of course you might accept the risk of having an unsafe CSP depending on what your app does, but many organisations will enforce a "safe" CSP.
The example in this repo has a page with a script. When served, this generates a page that looks like:
<!doctype html>

Check the console for a log!

Since the body tag includes an onload attribute with javascript in it, we need to include unsafe-hashes in the CSP.
Note that the repo above has some tests in to validate any fix.
Looking at the conversation in https://github.com/a-h/templ/issues/126 a potential solution could be what I've done on the no-changes branch (see the diff). So potentially this could just be a change to the documentation to explain how to use a safe CSP.
As an improvement to what's on the no-changes branch we could add the scripts or the sha-256's to the context too to allow them to be picked up separately and added to the header. I don't want to go too far down this route though before hearing other opinions and ideas!

Just thinking outloud here, but how would this work with something like HTMX? I wonder if a partial update of a page with a script element will hit the same issue. Does HTMX support ammending the CSP rules? Or do CSP rules need to be set on page load only?

'ey up @joerdav! Good question. I've added the htmx branch to my example repo and from the diff you can see I've added the htmx library along with the htmx handler that responds without a CSP header. All I needed to do was add the htmx SHAs to the CSP, although note two things:

Since htmx by default tries to add indicator classes through javascript, we need the style-src CSP (see https://github.com/bigskysoftware/htmx/issues/1062).
It is the connect-src 'self' part of the CSP that allows the page to perform the hx-get request. Whilst this is added by default if you include the default-src 'self' CSP, I thought in the code I'd make it more explicit by changing that default-src 'self' to connect-src 'self'.

The htmx-no-changes branch shows that taking the same approach, even with htmx, works.
To summarise: adding htmx doesn't fundamentally change the approach - whatever approach you take, including  connect-src 'self' in the CSP will be enough for htmx requests to work. As with any library, you'll need to include something (e.g. a SHA) in the CSP to allow the browser to load the library.
Tackling the other bit of your question, if the hx-get request responds with a script tag alongside the html, then this will need to be included in the CSP for the initial request for the whole page - see the failing example on the htmx-with-script branch. From my understanding there's no way to update the CSP from new requests (or using htmx). So you'd need to know what scripts your hx-gets were going to respond with "ahead of time" so that they could be included in the CSP for the main page. An alternate approach here might be to explore using a nonce (although we'd need to remember the nonce between the main page request and the hx-get).

Templ now supports rendering scripts as script elements directly. https://templ.guide/syntax-and-usage/script-templates#script-templates
So this would allow you to avoid having to write a custom inline component, when you're rendering scripts.
I had to do some investigation around struct transport recently as part of the day job, and think a possible solution would be for a nonce to be allowed to be passed into the render context (which I think you alluded to), and any script/style tag that is created will be decorated with it.

Thanks for this. A little busy at the minute, but will take a look!

I was able to solve the CSP problem with HTMX+Templ for my use-case. Hopefully this can help others: https://gist.github.com/egtann/0f686c0fadbd3c52121dc910b849ed3e

Thanks for those participating in the conversation, it seems we now have various approaches for those that encounter this.


feat: game7 testnet 1.4.1

Add new chain

Template to provide information about the new chain. Only add extra information in the bottom section. Ensure that the contracts are deployed on the chain, if not deploy with safe-contracts. Only one chain ID, one Safe version and one deployment type per PR. This entire paragraph should be deleted.

Please fill the following form:
Provide the Chain ID (Only 1 chain id per PR).

Chain_ID: 13746

Provide RPC URL for the chain (should be able to query atleast 10 requests per minute for automatic PR check).

RPC_URL: https://testnet-rpc.game7.io

Relevant information:
Issue: https://github.com/safe-global/safe-deployments/issues/841
Block Explorer: https://testnet.game7.io

@remedcu
Thank you, deployed and updated .json files. Also noted for the future PRs :)
deploying "SafeToL2Setup" (tx: 0x8a5879c3ff0d3a97f8986da8620b1b529082194c60a776f62b0ecce7ead62687)...: deployed at 0xBD89A1CE4DDe368FFAB0eC35506eEcE0b1fFdc54 with 242255 gas
deploying "SafeToL2Migration" (tx: 0x02526dfb464f0756de431f73d80a87b641eed82ed4c495a40b9293955d3d6b5f)...: deployed at 0xfF83F6335d8930cBad1c0D439A841f01888D9f69 with 1314518 gas
deploying "SafeMigration" (tx: 0x39e44c0b3583faa4b3a7d99860a11e041e15e4d73683c1f62e8a78cd886046dc)...: deployed at 0x526643F69b81B008F46d95CD5ced5eC0edFFDaC6 with 531514 gas


Can I shrink/fit resultset column width to match cell string length?

Currently column width is automatically set to match the column name. My column names are longer than my cell contents. This is causing low screen estate utilization. Can I have a checkbox under Windows > Preferences to shrink it?

thx


index_counters.go:35: too many errors

Can't build exporter with Go 1.73

I'm having this same problem.
github.com/Percona-Lab/prometheus_mongodb_exporter/collector/mongod
collector/mongod/asserts.go:26: assertsTotal.WithLabelValues("regular").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/asserts.go:27: assertsTotal.WithLabelValues("warning").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/asserts.go:28: assertsTotal.WithLabelValues("msg").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/asserts.go:29: assertsTotal.WithLabelValues("user").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/asserts.go:30: assertsTotal.WithLabelValues("rollovers").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/background_flushing.go:53: backgroundFlushingflushesTotal.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/background_flushing.go:54: backgroundFlushingtotalMilliseconds.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/connections.go:36: connectionsMetricsCreatedTotal.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/global_lock.go:79: globalLockTotal.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/index_counters.go:35: indexCountersTotal.WithLabelValues("accesses").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongod/index_counters.go:35: too many errors
github.com/Percona-Lab/prometheus_mongodb_exporter/collector/mongos
collector/mongos/asserts.go:26: assertsTotal.WithLabelValues("regular").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/asserts.go:27: assertsTotal.WithLabelValues("warning").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/asserts.go:28: assertsTotal.WithLabelValues("msg").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/asserts.go:29: assertsTotal.WithLabelValues("user").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/asserts.go:30: assertsTotal.WithLabelValues("rollovers").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/connections.go:36: connectionsMetricsCreatedTotal.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/metrics.go:60: metricsGetLastErrorWtimeTotalMilliseconds.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/metrics.go:62: metricsGetLastErrorWtimeoutsTotal.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/metrics.go:80: metricsCursorTimedOutTotal.Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/network.go:32: networkBytesTotal.WithLabelValues("in_bytes").Set undefined (type prometheus.Counter has no field or method Set)
collector/mongos/network.go:32: too many errors
I've tried on coreos 1122.3.0, and Ubuntu 16.10. It happens both when checking out the code and doing a simple make build, and when trying to do a docker build.

this has nothing to do w/ Go version... It looks like the Prometheus Golang client changed up and the version was not pinned so these broke...
Updating to work w/ the latest version...

Hi, https://github.com/dcu/mongodb_exporter/pull/44 is not solving the problem for me.
go version
go version go1.6.3 linux/amd64

go get -u github.com/dcu/mongodb_exporter
# github.com/dcu/mongodb_exporter/collector
workspace/go/src/github.com/dcu/mongodb_exporter/collector/asserts.go:26: assertsTotal.WithLabelValues("regular").Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/asserts.go:27: assertsTotal.WithLabelValues("warning").Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/asserts.go:28: assertsTotal.WithLabelValues("msg").Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/asserts.go:29: assertsTotal.WithLabelValues("user").Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/asserts.go:30: assertsTotal.WithLabelValues("rollovers").Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/background_flushing.go:53: backgroundFlushingflushesTotal.Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/background_flushing.go:54: backgroundFlushingtotalMilliseconds.Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/connections.go:36: connectionsMetricsCreatedTotal.Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/global_lock.go:79: globalLockTotal.Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/index_counters.go:35: indexCountersTotal.WithLabelValues("accesses").Set undefined (type prometheus.Counter has no field or method Set)
workspace/go/src/github.com/dcu/mongodb_exporter/collector/index_counters.go:35: too many errors

#44 was never merged, that's why the compile issues still exist...
we'll have to pin the version of prometheus client in order for what's on master to work

@deepthawtz : I've submitted a PR to vendor prometheus client to v0.8.0, using gopkg.in would have been the best option but unfortunately that didn't work, I think because of the underscore in the prometheus client repo.


mac ios11  brew install sbt error!

The latest points to 1.4.3 but it's downloading 1.3.13. In general though Homebrew recipe https://github.com/Homebrew/homebrew-core/blob/master/Formula/sbt.rb is maintained by volunteers in the community, and I'm not currently involved.

This is likely more to do with your Homebrew setup. See https://discourse.brew.sh/t/homebrew-installation-fail/7439 for example.


frdm_k64f：failed to run test case tests/subsys/modbus/modbus.rtu/server_setup_low_none

Describe the bug
The test appears to be failing , and an interruption occurs  and log "W: Frame length error" while the test is judged to pass. When the length is greater than 256 and less than 4, such a log will output: "W: Frame length error ", and the length is 1 at this time.  The test shows pass in twister.log but blocks in twister.json.
The log prints here zephyr/subsys/modbus/modbus_serial.c:253.
To Reproduce
Steps to reproduce the behavior:

source zephyr-env.sh
west build -p always -b frdm_k64f tests/subsys/modbus/
Open another terminal and execute: picocom -b 115200 /dev/ttyACM0
See error
or
2.twister --device-testing --hardware-map $HOME/frdm_k64f.file -T tests/subsys/modbus/ -v
3.See error

Expected behavior
The test should show pass in twister.log and twister.json .
Impact
The test shows block in twister.json.
Logs and console output
*** Booting Zephyr OS build v3.1.0-rc3-4-g2ef3fe7bca13  ***
Running TESTSUITE modbus_client_test
===================================================================
START - test_server_setup_low_none
I: RTU timeout 4010 us
PASS - test_server_setW: Frame length error
up_low_none in 0.3 seconds
===================================================================
START - test_client_setup_low_none
I: RTU timeout 4010 us
PASS - test_client_setup_low_none in 0.3 seconds
===================================================================

Environment:
OS: Linux,
Toolchain Zephyr SDK 0.14.1
Commit SHA or Version: 2ef3fe7bca13

This is a known twister issue, has nothing to do with this test case. So close it.

Except twister issue, one thing we want to ensure is:   is the "W: Frame length error"  happens in the report of the test_server_setup_low_none a normal behavior.
Could you please help to check if this is a issue or not? Thanks!

Except twister issue, one thing we want to ensure is: is the "W: Frame length error" happens in the report of the test_server_setup_low_none a normal behavior.
Could you please help to check if this is a issue or not? Thanks!

Not an issue as long all test cases pass. "W: Frame length error" warning comes from the modbus subsystem, caused by test cases which intentionally send wrong frames.


Support subuser

Provide a resource to manage a subuser.

I confirmed that make testacc passes in the development environment.


Add SP2600ZB/SP2610ZB support

These plugs would report energy usage in Wh instead of kWh in ZHA.

Codecov Report

Merging #1266 (5fd2922) into dev (b0bbbfb) will increase coverage by 0.01%.
The diff coverage is 86.66%.

@@            Coverage Diff             @@
##              dev    #1266      +/-   ##
==========================================
+ Coverage   80.27%   80.29%   +0.01%
==========================================
  Files         207      208       +1
  Lines        5693     5708      +15
==========================================
+ Hits         4570     4583      +13
- Misses       1123     1125       +2

Impacted Files
Coverage Δ

zhaquirks/sinope/switch.py
86.66% <86.66%> (ø)

Continue to review full report at Codecov.

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

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

13 of 15 (86.67%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 80.291%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

zhaquirks/sinope/switch.py
13
15
86.67%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
4583

Relevant Lines:
5708

💛  - Coveralls

This quirks is to add support for Sinope SP2600ZB and SP2610ZB devices where energy usage is wrongly reported. Device send Wh instead of kWh for energy measurement reporting.

It would affect all attribute values. Maybe better just correct attribute values for divisor attributes? Check Tuya ts0121 osmart plug quirk for example.

@EtienneMD see here for an example: https://github.com/zigpy/zha-device-handlers/blob/6d50032e3cfb16a55a5a0d748fc84bad0c7e2029/zhaquirks/tuya/init.py#L866

Thank you both for steering me in the right direction. Appears to be working fine so far on my devices.


Kineticist burn reduction on 1.3.12

Describe the bug
Im on 1.3.12 and i think the kineticist burn reduction slider is not working.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Save Files
To help us reproduce your issue, please attach a named save file
Please zip it or GitHub will not accept it.
Screenshots
If applicable, add screenshots to help explain your problem.
Settings
Please attach your settings.xml file from the mod folder
Version Info:

ToyBox Version: [e.g. 1.3.4]
OS: [e.g. iOS]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

I am unable to reproduce this. Setting burn reduction to 0

vs setting burn reduction to 2

Given no additional cases and a direct inability to reproduce by multiple users, I'm closing this. If you have an example that allows this to be reproduced, please re-open this issue.


fix: Fixed the width of the Input tag and placed the input in new line

Hey this is the final output refer the below screenshot.

@vishalpawarR well its mostly from github, for me I can't see how fork my repos.
anyway,  there are some commands like
git pull or on the left bottom of vscode theres a two circle arrow which can sync, sync or pull only happened when you have updated something on cloud and its not updated on local machine (sometimes conflict occurs)
you said you are new in open source but you still manages to create a new branch for the changes its not a noob move.
I'm telling you ways how you can update your repo

git pull (make sure to commit your changes, or else it will reset)
git fetch && git merge
git checkout main && git pull && git branch NEW_BRANCH_NAME && git switch NEW_BRANCH_NAME
the 3rd one, will take you to the main branch, it will update itself with github's present code, then a new branch will be created and will be switch to it.

Choose whatsoever will work for you. Ping me if you stuck anywhere.

this issue has been solved: #21


setChangeCurrentIndexBlock isn't called initially - help wanted

I set the ChangeCurrentIndexBlock in viewDidLoad, but it seems like it isn't called until i actually change the selection. This results in an buttonBarView without any visible selection, any suggestions?

I set the ChangeCurrentIndexBlock in viewDidLoad, but it seems like it isn't called until i actually change the selection. This results in an buttonBarView without any visible selection, any suggestions?

nervermind :)


Adding custom addressability options to the SolrCloud spec.

Issue number of the reported bug or feature request: Resolves #36
Describe your changes
Added the following addressability options for SolrCloud. All changes are backwards compatible and will work with the ingressBaseDomain option for the solr-operator.
Eventually we will remove the option from the operator as a whole and require use of the following options:
type SolrAddressabilityOptions struct {
	// External defines the way in which this SolrCloud nodes should be made addressable externally, from outside the Kubernetes cluster.
	// If none is provided, the Solr Cloud will not be made addressable externally.
	// +optional
	External *ExternalAddressability `json:"external,omitempty"`

	// PodPort defines the port to have the Solr Pod listen on.
	// Defaults to 8983
	// +optional
	PodPort int `json:"podPort,omitempty"`

	// CommonServicePort defines the port to have the common Solr service listen on.
	// Defaults to 80
	// +optional
	CommonServicePort int `json:"commonServicePort,omitempty"`

	// KubeDomain allows for the specification of an override of the default "cluster.local" Kubernetes cluster domain.
	// Only use this option if the Kubernetes cluster has been setup with a custom domain.
	// +optional
	KubeDomain string `json:"kubeDomain,omitempty"`
}

// ExternalAddressability defines the config for making Solr services available externally to kubernetes.
// Be careful when using LoadBalanced and includeNodes, as many IP addresses could be created if you are running many large solrClouds.
type ExternalAddressability struct {
	// The way in which this SolrCloud's service(s) should be made addressable externally.
	Method ExternalAddressabilityMethod `json:"method"`

	// Use the external address to advertise the SolrNode, defaults to false.
	//
	// If false, the external address will be available, however Solr (and clients using the CloudSolrClient in SolrJ) will only be aware of the internal URLs.
	// If true, Solr will startup with the hostname of the external address.
	//
	// NOTE: This option cannot be true when hideNodes is set to true. So it will be auto-set to false if that is the case.
	//
	// Deprecation warning: When an ingress-base-domain is passed in to the operator, this value defaults to true.
	// +optional
	UseExternalAddress bool `json:"useExternalAddress"`

	// Do not expose the common Solr service externally. This affects a single service.
	// Defaults to false.
	// +optional
	HideCommon bool `json:"hideCommon,omitempty"`

	// Do not expose each of the Solr Node services externally.
	// The number of services this affects could range from 1 (a headless service for ExternalDNS) to the number of Solr pods your cloud contains (individual node services for Ingress/LoadBalancer).
	// Defaults to false.
	// +optional
	HideNodes bool `json:"hideNodes,omitempty"`

	// Override the domainName provided as startup parameters to the operator, used by ingresses and externalDNS.
	// The common and/or node services will be addressable by unique names under the given domain.
	// e.g. default-example-solrcloud.given.domain.name.com
	//
	// This options will be required for the Ingress and ExternalDNS methods once the ingressBaseDomain startup parameter is removed.
	//
	// For the LoadBalancer method, this field is optional and will only be used when useExternalAddress=true.
	// If used with the LoadBalancer method, you will need DNS routing to the LoadBalancer IP address through the url template given above.
	// +optional
	DomainName string `json:"domainName,omitempty"`

	// Provide additional domainNames that the Ingress or ExternalDNS should listen on.
	// This option is ignored with the LoadBalancer method.
	// +optional
	AdditionalDomainNames []string `json:"additionalDomains,omitempty"`

	// NodePortOverride defines the port to have all Solr node service(s) listen on and advertise itself as if advertising through an Ingress or LoadBalancer.
	// This overrides the default usage of the podPort.
	//
	// This is option is only used when HideNodes=false, otherwise the the port each Solr Node will advertise itself with the podPort.
	// This option is also unavailable with the ExternalDNS method.
	//
	// If using method=Ingress, your ingress controller is required to listen on this port.
	// If your ingress controller is not listening on the podPort, then this option is required for solr to be addressable via an Ingress.
	//
	// Defaults to 80 if HideNodes=false and method=Ingress, otherwise this is optional.
	// TODO: Should this be defaulted idk?
	// +optional
	NodePortOverride int `json:"nodePortOverride,omitempty"`
}

// ExternalAddressability is a string enumeration type that enumerates
// all possible ways that a SolrCloud can be made addressable external to the kubernetes cluster.
// +kubebuilder:validation:Enum=Ingress;ExternalDNS
type ExternalAddressabilityMethod string

const (
	// Use an ingress to make the Solr service(s) externally addressable
	Ingress ExternalAddressabilityMethod = "Ingress"

	// Use ExternalDNS to make the Solr service(s) externally addressable
	ExternalDNS ExternalAddressabilityMethod = "ExternalDNS"
)

Testing performed
There are currently unit tests for all of these features. Not all of them have been tested in a live cluster however.

Any ETA on this? We would love to use / test it out!
Recently had to disable ingress on solr-operator because it would configure zk solrcloud host entries using the ingress fqdns which lead to performance issues when k8s solr client apps made requests using zk autoconfig lookups and used ingress to talk to solrcloud replicas. So, we have been setting up ingress outside of operator ever since.

If you want to merge this first, I can rebase my latest MR (Since you handle port changes way better here! :) )

Hey @sepulworld i'm looking to get through this as soon as possible -- hopefully this week.

Thanks @bsankara!

This looks great, thanks @HoustonPutman


Error: DriverError(CUDA_ERROR_NOT_FOUND, "named symbol not found") when loading cast_f32_bf16

root@C.10515727:~/ai-server$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/ai-server`
retrieved the files in 16.361172ms
Error: DriverError(CUDA_ERROR_NOT_FOUND, "named symbol not found") when loading cast_f32_bf16
root@C.10515727:~/ai-server$ nvidia-smi --query-gpu=name,compute_cap,driver_version --format=csv
name, compute_cap, driver_version
NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07
NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07
NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07
NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07                                                                                NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07
NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07
NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07
NVIDIA GeForce RTX 2080 Ti, 7.5, 535.161.07
root@C.10515727:~/ai-server$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Fri_Jan__6_16:45:21_PST_2023
Cuda compilation tools, release 12.0, V12.0.140
Build cuda_12.0.r12.0/compiler.32267302_0
root@C.10515727:~/ai-server$ uname -a
Linux fb0f7633e4cb 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:
```22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

[dependencies]

candle-nn = "0.4.1"
candle-core = "0.4.1"
candle-datasets = "0.4.1"
candle-transformers = "0.4.1"
candle-examples = "0.4.1"
hf-hub = "0.3.2"
tokenizers = "0.15.2"

Hi @evgenyigumnov, upgrading cuda driver to >= 545 should work: https://github.com/huggingface/candle/issues/1761.

Got the same issue today while running the gemma ("codegemma-7b-it") example on my legacy RTX2070 gpu 😞

Error: DriverError(CUDA_ERROR_NOT_FOUND, "named symbol not found") when loading cast_u32_bf16

nvidia-smi --query-gpu=name,compute_cap,driver_version --format=csv

NVIDIA GeForce RTX 2070 with Max-Q Design, 7.5, 552.12

The issue is our Gpu's don't support those capabilities
As seen from  Kernel code HERE:
https://github.com/huggingface/candle/blob/main/candle-kernels/src/cast.cu#L73
Only supports Architectures with Capabilities >= 800 (8.0) and above while my gpu and @evgenyigumnov  's 2080 fall under lower
And it's  set to >=800 for a reason
The 16-bit __nv_bfloat16 floating-point version of atomicAdd() is only supported by devices of compute capability 8.x and higher.
Docs: https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#compute-capabilities

Search for "The 16-bit __nv_bfloat16"

Gpu capabilities:
https://developer.nvidia.com/cuda-gpus (RTX Gpu is under "CUDA-Enabled GeForce and TITAN Products" )
Related Issue : https://github.com/huggingface/candle/issues/1911
So unfortunately both me and @evgenyigumnov  can't run code including dependency on that kernel matrix function on current Gpu architectures :( .
8.0 Capability is mostly 3000 gen chips after ours ... (as seen from "Gpu capabilities" page)

Some relevant docs if you want to know more.
Docs:
Compute capabilities:
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#compute-capabilities
Bfloat16
https://en.wikipedia.org/wiki/Bfloat16_floating-point_format
virtual-architecture-macros
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#virtual-architecture-macros
using-cuda-arch
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#using-cuda-arch
__nv_bfloat16 samples
https://github.com/NVIDIA/cuda-samples/tree/master/Samples/3_CUDA_Features/bf16TensorCoreGemm
Hope it helps : )


Add test for file upload

Add Selenium test for file upload

This should be first tested in KitchenSink - https://github.com/StarcounterSamples/KitchenSink/issues/85

Done in https://github.com/StarcounterSamples/KitchenSink/pull/83

Let's get back to this in February, when we are adding tests to sample apps.

@warpech for me it should ba made as path (integration test):

User click new image
User upload image
User cancel image
User upload image again
User save image
User go to edit image
User cancel image
User upload new image
User save image
User delete new image


Add a --verbose flag for the progress bar to display each downloaded package on the fly.

A good idea is to use 2-nested progress bar instead: The top one for total progress (#downloaded files / #total packages) and the bottom one for the current downloading.

A good idea is to use 2-nested progress bar instead: The top one for total progress (#downloaded files / #total packages) and the bottom one for the current downloading.

Yeah, that's the idea : ))


flutter run --verbose should send --verbose-logging to the engine

Without --verbose-logging, the engine will hide all INFO level log which is the default level of logging. I think it defeats the purpose of --verbose from engine's perspective.

CC @chinmaygarde @jonahwilliams

That might be a bit overloaded with verbose tool output, should we have a separate debugging option for verbose system logs?

@liyuqian: Does Android pick up the flag from the intent and forward it to the shell? If not, we should wire that up at least. iOS forwards args to the shell so I just add it as an extra command line option in the Xcode scheme and bypass the tools completely for system logs.

Does Android pick up the flag from the intent and forward it to the shell?

Yes,  https://github.com/flutter/engine/blob/cc27cafb840f6fd57b86a36a3e7ed5461575f10a/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java#L318.

cc @liyuqian I landed the flag change, the tool should pass this to the intent on Android now

Verified that this has been fixed.


add wait for sync issue

Pull Request Test Coverage Report for Build 686388795

13 of 19 (68.42%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.8%) to 81.194%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lnd.go
13
19
68.42%

Totals

Change from base Build 685125489:
-0.8%

Covered Lines:
272

Relevant Lines:
335

💛  - Coveralls


Order a CI IT application in ServiceNow for EDS

[ ] Talk with Nils Magne about using the IT DEVELOPMENT AND INNOVATION SUPPORT  assignment group

[ ] Create a request on S@E to have the CI created

[ ] Provide necessary info to fill out CI and create new issues for bigger things we need like runbook.


[Question] I can't see my pull history anymore

Checklist

[X] I have already read docs/Tips.md, but my question is not solved.
[X] My question was not mentioned by others, and it is not a duplicate question.

Description
I can't see my pull history anymore

I've tried everything and I couldn't, my game ID doesn't even appear selected anymore, I completely lost my patience, I exploded here..._
Starward Version
0.12.1
Windows Version
22621.3958
Log
No response
Additional Context
No response

Forgive me if I'm making a very silly mistake, but the multiple attempts I've made have made me completely lose my patience and come looking for support.

You can try Preview version! (may be fixed on #991)

@hinaloe I don't even know if it's an error/bug or something silly on my part. I lost my patience after trying so many things and i ended up exploding lol

Click the button Clear URL Cache Files and then delete the selected file data_2. Start game and try again. If the problem still happens, please upload the file data_2.

@Scighost I'm sorry, but could you tell me step by step how I can see my pull history? As if I had installed Starward again and wanted to use this function. I think I'm missing something that I did the first time and maybe I've forgotten now.


personal API: unlock wallet and sign TX

scalastyle problems will be fixed along with review updates

there was compilation failure

there was compilation failure

yeah, I did not verify the merge, should be good now

Apart from CircleCI currently failing, LGTM!


datatracker draft diff failure

Describe the issue
I'm trying to diff between the last two versions of this draft:
https://datatracker.ietf.org/doc/draft-ietf-ippm-rfc8321bis/history/
This returns a page with the following error message:
./rfcdiff: Error: Failed to create temporary directory '/tmp/rfcdiff-8431'.
Perhaps out of space, or the directory already exists?
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

This was a transient error at IETFA that has been corrected.


Invisibles color

The @comment color is really distracting when also applied to the invisible characters (white-spaces and such).
I found that the following is easier on the eyes:
@invisible: #3d302d;
@syntax-guide:  @invisible;

thanks a lot @adamellsworth


Twitter bug

white-space: pre-wrap is the culprit here
I don't really want to split up text nodes, but it seems like this is the only option.


[refactor] Remove fieldname argument from the field validators

Field validators used the fieldname argument in the __init__ method to get the class variable name they were assigned to. That led to redundant typing of the attribute's name twice:
cc = fields.TypeField('cc', str)

This field validators now have the __set_name__ method implemented, which automatically imports the class variable name:
cc = fields.TypeField(str)

Jenkins CI passed after a retry.

Jenkins CI passed after a retry.

@jenkins-cscs retry all

@jenkins-cscs retry all

Codecov Report

Merging #1680 (7b22535) into master (9d85b5f) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1680      +/-   ##
==========================================
- Coverage   87.21%   87.17%   -0.04%
==========================================
  Files          45       45
  Lines        7546     7527      -19
==========================================
- Hits         6581     6562      -19
  Misses        965      965

Impacted Files
Coverage Δ

reframe/core/buildsystems.py
97.50% <100.00%> (ø)

reframe/core/containers.py
100.00% <100.00%> (ø)

reframe/core/environments.py
97.08% <100.00%> (ø)

reframe/core/fields.py
98.75% <100.00%> (-0.24%)
:arrow_down:

reframe/core/launchers/__init__.py
95.00% <100.00%> (ø)

reframe/core/modules.py
56.62% <100.00%> (ø)

reframe/core/pipeline.py
91.98% <100.00%> (ø)

reframe/core/schedulers/__init__.py
97.77% <100.00%> (ø)

Continue to review full report at Codecov.

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

Codecov Report

Merging #1680 (7b22535) into master (9d85b5f) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1680      +/-   ##
==========================================
- Coverage   87.21%   87.17%   -0.04%
==========================================
  Files          45       45
  Lines        7546     7527      -19
==========================================
- Hits         6581     6562      -19
  Misses        965      965

Impacted Files
Coverage Δ

reframe/core/buildsystems.py
97.50% <100.00%> (ø)

reframe/core/containers.py
100.00% <100.00%> (ø)

reframe/core/environments.py
97.08% <100.00%> (ø)

reframe/core/fields.py
98.75% <100.00%> (-0.24%)
:arrow_down:

reframe/core/launchers/__init__.py
95.00% <100.00%> (ø)

reframe/core/modules.py
56.62% <100.00%> (ø)

reframe/core/pipeline.py
91.98% <100.00%> (ø)

reframe/core/schedulers/__init__.py
97.77% <100.00%> (ø)

Continue to review full report at Codecov.

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

@jjotero Can you also fix the unused imports that the CI complains about?

@jjotero Can you also fix the unused imports that the CI complains about?

@jenkins-cscs retry all

@jenkins-cscs retry all


Update data model diagram and dictionary to match v. 1.3

After implementing all data model changes which still go into v. 1.3, update also the (minimal) documentation in the form of the data model diagram.

@tomaham @davidzbiral
Data model Diagram was updated:

IReferenceStatements model
_legacyId attribute added to IEntity model
isTemplate, usedTemplate and templateData attributes added to IEntity model


[Feature Request] Size nodes and edges by property

Community Note

Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Graph Explorer Version (and Graph Database and Version used if applicable)
All versions
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Allow the user to select a property that is used to set the edge or node size
Additional context
Add any other context or screenshots about the feature request here. Describe any alternatives you've considered.

I would also suggest expanding this into "Conditional Formatting" options.  This could also include things like:

Size of node visualization by number of connected edges.
Highlight nodes (via color or icon) with specific edges or number of edges.
Collapsing edges of a certain number into a single visualized edge with a certain thickness.
Editing edge thickness by edge numeric property.
Etc.

Related to #321
Related to #313


Build error

Alright, here we go. I just pulled fresh copies of the server and Andromeda down, edited CONFIG.plist, and when I try to build I get the error "No such module 'GRDB'".
Did I miss installing a dependency?

Are you using the .xcworkspace? It's a white icon vs the blue one. GRDB is the webserver installed using Cocoa pods and so to compile properly you need to use the special workspace . I thought of this after so if you're doing this already correctly read on
Hmm, this didn't happen last time I tried to clone but we'll work with. You need to use cocoa pods. Install it on your system and then cd into the project directory and run pod install
I swear I pushed the pods to the repo but guess what it doesn't work haha. I'll update the read me if you have to do this.

 I opened the wrong file 🙄. So you recommend I run this from the command line?

Yeah, use the .command file in the main folder. Put the script in the same directory as the built application file and just double click the script. It happens lol

IT'S ALIVE. Thanks for all of your hard work!


in dark mode source code is not visible

Do you think I should change "source code" text color to #fff or what you recommend?

@Arman-ali-khan-786 Do you think I should change "source code" text color to #fff or what you recommend?

yeah it will be great

anyone still working on it ?

@Arman-ali-khan-786 Do you think I should change "source code" text color to #fff or what you recommend?

yeah it will be great

onit

anyone still working on it ?

yeah

@Arman-ali-khan-786  created the PR

anyone still working on it ?

yeah

Ok bro 🙌🏻


port the get function

Looks like we're missing the basic user-facing functions, get and put   D
I'm tracing the get function in JS and it would help a lot to see the respective parts in a Rust interlinear!

There is a $180 open bounty on this issue. Add to the bounty at Bountysource.

I'm tracing the get function in JS

What do you mean with "I'm tracing" ?

Taking

Hey! Thanks for the https://github.com/ArtemGr/gun/commit/9431ef7c4097695066eaac7772bfdf2305492834, I guess I would now have something to compare the JS tracing with   <3

Yeah the final implementation of get should be done by the end of today and is gonna look pretty different

Well it's a very basic implementation but it works!
"get.once" and "get.on" are now functional and "get.put" has a temporary hack for testing purposes but the hardcoded data functions on a real network.
I decided to switch back to tokio as plain tungstenite was giving me problems and I also felt async is much more user-friendly. Should be okay as long as futures can work in wasm and kernels.

So, should I get put fully working and then close the issue?

It's actually been said that the user API has been the hardest thing to implement and there is a lot that goes behind many of the functions that look simple such as chain, put, etc. So I'm not really sure how "finished" should be defined with this one because working on the API is like cutting off hydra heads.

Hey, @GiraffeKey !
Did a video reply!
https://youtu.be/QnbcxdLRsdg

It's actually been said that the user API has been the hardest thing to implement

Been there, done that  D
Some API designs are inheently harder to implement and/or understand/maintain

and there is a lot that goes behind many of the functions that look simple such as chain, put, etc. So I'm not really sure how "finished" should be defined with this one because working on the API is like cutting off hydra heads.

No need to refactor and optimize here, but I'll need to catch up with you before I can close the issue.
You can go ahead and close the issue yourself though, if it feels right?

@ArtemGr @GiraffeKey correct, and beware, its only the wire/protocol code that is mostly solid & worth porting (altho new performance version does have some changes coming up), the JS chaining API code is pretty ugly and probably more of a headache than not. I think rust should have a simpler API, no?

Hey, nice video, it was very explanatory.
Yeah I simply wasn't paying much attention to the positions of others and trying to rush through things too much (I tend to be a bit impatient and I also have very asocial tendencies).
There were many core GUN concepts that I still do not understand on a very fundamental level and certain parts of the code focused more on the porting/logic/getting things done than planning/good practices/design.
So I'll slow it down and start paying more attention to the collective, perhaps write some much needed tests, add some comments/documentation to the codebase, set up a benchmarking suite with Criterion, etc.

Yeah I simply was ... trying to rush through things too much

And it's awesome that you did!
Great to have the working Rust interlinear!
Now, the benefit of the cross-functional teams is to have both the people who can breach in guns blasing, and then people who can later move slow and do a CSI on the scene   D

So I'll slow it down and start paying more attention to the collective

Yeah, it pays to pay attention.
And you're more than welcome to move fast and make the port useful to you!
It's just I'll need some time to catch up. Busy with MUSL builds and patching websocket implementations right now.

I'm going to close this as the mentioned task has been completed. We can open other issues for other parts of the API.


Eureka/Inspiration Reminder

Describe the bug
The notification that a tech/civic can now be completed with a eureka/inspiration does not show up.
To Reproduce
Steps to reproduce the behavior:
I just started a new game with ONLY CQUI installed and progressed far enough until a civic was researched enough to be finished with an inspiration. No notification was present.
Expected behavior
#152 suggests there should be a notification for that. I poorly worded that issue so I opened this one.
General informations

OS: [e.g. iOS] Windows 10
Version <IP_ADDRESS>
Expansions: Rise and Fall, Gathering Storm, New Frontier Pass
Other mods: None

Save game and logs
save.zip
logs.zip

IIRC, it doesn't pop up a warning, it does however pop up the tech/civic screen. So I guess that itself is the notification.

I looked through the code, I think this was something removed a while ago - prior to when I was working on it.  I'm still not sure what it was supposed to do - and there exists a mechanism in game for this.  I removed the item from the list of "features" on the Workshop site, barring something better to do


improve BookmarksViewModelTest coverage

What I have done and why

Improve coverage of BookmarksViewModel
Add test for setNewsResourceViewed method and undoBookmarkRemoval method

Fixes #1333
How I'm testing it

Unit tests

Do tests pass?

[ ] Run local tests on DemoDebug variant: ./gradlew testDemoDebug
[x] Check formatting: ./gradlew --init-script gradle/init.gradle.kts spotlessApply

Screenshot test is failed. But new tests pass.
Is this your first pull request?

[x] Sign the CLA
[x] Run ./tools/setup.sh
[x] Import the code formatting style as explained in the setup script.

Thanks for your PR. Currently there are conflicts that need to be resolved before we can move on to possibly accepting your contribution. Please resolve the conflicts.

@keyboardsurfer
I fix conflicts. Please review.

Unfortunately this PR does not pass on CI. Please address the issue and we can run it again.

BookmarksViewModelTest > feedUiState_undoneBookmarkRemoval_bookmarkIsRestored FAILED
    kotlinx.coroutines.test.UncompletedCoroutinesError at TestBuilders.kt:354

> Task :feature:bookmarks:testDemoDebugUnitTest FAILED
5 tests completed, 1 failed

677 actionable tasks: 97 executed, 132 from cache, 448 up-to-date
Configuration cache entry stored.
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':feature:bookmarks:testDemoDebugUnitTest'.
> There were failing tests. See the report at: file:///home/runner/work/nowinandroid/nowinandroid/feature/bookmarks/build/reports/tests/testDemoDebugUnitTest/index.html

* Try:
> Run with --scan to get full insights.

BUILD FAILED in 1m 47s
Error: Process completed with exit code 1.

@keyboardsurfer
Sorry, I have a misstake. I fix it.


jproxy passing general java objects

I have tried to read the documentation but I think I might not be enough of an expert to understand. Basically what I want to do is using in python an interface which defines a function that takes in another java object as input parameter. Looking at your tests it seems that you are only testing that you can pass primitive types (if that is the correct term). May I ask if this is supposed to be possible?
Something along the lines of:
public interface MyInterface {
  public void myFun(AnotherInterface anotherInterface);
}

and then in Python:
...
class MyInterface:
  def myFun(self, anotherInterface):
    anotherInterface.anotherFunction()
my_interface=MyInterface()
jpype.JProxy("MyInterface", inst=my_interface)
...

I have tried this with a toy setup. I managed fine to set up a proxy defining functions that would get doubles, integers or similar. As soon as I call a function like myFun() above though, the function runs once but then at exit I get a fatal error from Java:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001006a45b7, pid=8915, tid=19215
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [Python+0x555b7]  subtype_dealloc+0x42
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/yngvelevinsen/Downloads/hs_err_pid8915.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
zsh: abort      python -d test_jpype_proxy.py

Hi,
I'm having the same problem here on

Linux  ( 2.6.32-504.3.3.el6.x86_64 )
java 1.7.0_45
Python 2.7.9 :: Anaconda 2.1.0 (64-bit)

I made a small test setup to reproduce the bug in an ipython notebook.
Calling the JProxy from Java works fine with primitive types as arguments.
But as soon as a Java Object is handed over, the JVM crashes After the python callback is executed. The Python kernel crashes as well. I attached the error message below.
Any suspicions on what could be going on here?
Cheers YFL.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f96cf92f52d, pid=28676, tid=140285703464704
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libpython2.7.so.1.0+0xac52d]  subtype_dealloc+0x10d
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /afs/cern.ch/user/m/mbetz/PY_JAPC/jvmCrash/hs_err_pid28676.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Same problem here with

python 2.7.9 (64-bit)
Windows 64-bit
JDK 1.7.0_67 (64-bit)

I am using javassist to create a proxy of an abstract class, which involves creating a JProxy for the MethodHandler interface.


ctfe public key format is not limited to ECDSA

Can be ECDSA, RSA or EDDSA/ED25519, handle this appropriately when loading the key for verification.
https://github.com/sigstore/sigstore-java/blob/main/src/main/java/dev/sigstore/fulcio/client/FulcioValidator.java#L50

Ideally we would have something utility that can parse these things for us that we can use all over the client.
public class Keys {
  public static PublicKey parseKey(byte[] keyBytes);
  public static X509Certificate parseCertificate(byte[] certificateBytes);
}

fixed by #13


Is there any way to assign a specific gpu device ID for mediapipe web(js api)?

such as "pose.gpu_device=1, pose.send(image) ", This is very necessary when there are multiple graphics cards on the machine

Hi @senshin998, Could you please elaborate your use case with complete details. Thanks!

thanks for your reply, I'm  using  Body Pose Tracking with MediaPipe web api ,while  there are three graphics cards on my machine  and web pose api   alway chose Gpu 0 ,I want to  assign a specific gpu device ID  for it  such as only use gpu 2,Is this possible?
os:windows 10
Browser:  chorme

Have a look at this https://github.com/google/mediapipe/issues/2472#issuecomment-962167806

This is more of a question about your web browser and its APIs, and not something MediaPipe has any control over.  MediaPipe uses WebGL for its rendering, which provides no way to choose GPU device.  I don't even know of any way within the browser to choose GPU device.  However, there are external programs which will let you choose (like gSwitch on Mac, or driver-specific control panels on Windows [NVIDIA Control Panel, AMD Catalyst Control Center]).  If you have updated Windows 10, though, then it looks like you should be able to assign GPUs to specific applications.

Hi @senshin998, Could you please go through  the above comment