Implement ordering for Device tree to avoid frequent updates

Currently iml-device sees a new Device tree once every couple of seconds.

@mkpankov Can we close this one?


Opening inspector of a MeshInstance3D with specific shader makes computer freeze

Tested versions

v4.2.1.stable.mono.official [b09f793f5]
v4.1.1.stable.mono.official [bd6af8e0e] (first time I found it)

System information
Windows 10 - v4.2.1.stable.mono.official - Vulkan (Forward +) - GeForce GT 750M (V.Pilote 425.31) - Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
Issue description
I added a water shader to a MeshInstance3D. When I open the inspector to modify some parameters, my whole computer freeze and I have to restart it.
Here is a small video of the problem: (I'm sorry for the quality but since my computer crashes I can't find an other way to capture it)
https://youtu.be/t6cyyRodafI?si=zNEruuoTPwc0fc4c
Steps to reproduce
I have a scene with a MeshInstance3D with a shader material that I found online
https://godotshaders.com/shader/another-water-shader/

shader_type spatial;

uniform sampler2D DEPTH_TEXTURE : hint_depth_texture, repeat_disable, filter_nearest;

uniform float depth_fade_distance : hint_range(0.0, 10.0) = 1.0;
uniform float absorbance : hint_range(0.0, 10.0) = 2.0;

uniform vec3 shallow_color : source_color = vec3(0.22, 0.66, 1.0);
uniform vec3 deep_color : source_color = vec3(0.0, 0.25, 0.45);

uniform float foam_amount : hint_range(0.0, 2.0) = 0.2;
uniform vec3 foam_color : source_color = vec3(1);
uniform sampler2D foam_noise : hint_default_white;

uniform float roughness : hint_range(0.0, 1.0) = 0.05;

uniform sampler2D wave_texture;
uniform float wave_scale = 4.0;
uniform float height_scale = 0.15;
varying float wave_height;
varying vec3 uv_world_pos;

uniform sampler2D normal1;
uniform vec2 wave_dir1 = vec2(1.0, 0.0);
uniform sampler2D normal2;
uniform vec2 wave_dir2 = vec2(0.0, 1.0);
uniform float wave_speed : hint_range(0.0, 0.2) = 0.015;

vec3 screen(vec3 base, vec3 blend){
	return 1.0 - (1.0 - base) * (1.0 - blend);
}

void vertex() {
	// Vertext displacement for waves
	uv_world_pos = (MODEL_MATRIX * vec4(VERTEX, 1.0)).xyz;
	wave_height = texture(wave_texture, uv_world_pos.xz / wave_scale + TIME * wave_speed).r;
	VERTEX.y += wave_height * height_scale;
}

void fragment()
{
	// Depth texture magic
	float depth = texture(DEPTH_TEXTURE, SCREEN_UV, 0.0).r;
	vec3 ndc = vec3(SCREEN_UV * 2.0 - 1.0, depth);
	vec4 world = INV_VIEW_MATRIX * INV_PROJECTION_MATRIX * vec4(ndc, 1.0);
	float depth_texture_y = world.y / world.w;
	float vertex_y = (INV_VIEW_MATRIX * vec4(VERTEX, 1.0)).y;
	float vertical_depth = vertex_y - depth_texture_y;

	// Changes the color of geometry behind it as the water gets deeper
	float depth_fade_blend = exp(-vertical_depth / depth_fade_distance);
	depth_fade_blend = clamp(depth_fade_blend, 0.0, 1.0);

	// Makes the water more transparent as it gets more shallow
	float alpha_blend = -vertical_depth * absorbance;
	alpha_blend = clamp(1.0 - exp(alpha_blend), 0.0, 1.0);

	// Small layer of foam
	float foam_blend = clamp(1.0 - (vertical_depth / foam_amount), 0.0, 1.0);
	vec3 foam = foam_blend * foam_color;

	// Mix them all together
	vec3 color_out = mix(deep_color, shallow_color, depth_fade_blend);
	color_out = screen(color_out, foam);

	// Normal maps
	vec2 normal_offset1 = (TIME * wave_dir1) * wave_speed;
	vec2 normal_offset2 = (TIME * wave_dir2) * wave_speed;
	vec3 normal_blend = mix(texture(normal1, uv_world_pos.xz / wave_scale + normal_offset1), texture(normal2, uv_world_pos.xz / wave_scale + normal_offset2), 0.5).rgb;

	ALBEDO = color_out;
	ALPHA = alpha_blend;
	ROUGHNESS = roughness;
	NORMAL_MAP = normal_blend;
}

Create a scene with a MeshInstance3D
Set the material to ShaderMaterial with the shader I provided
Close/Open project (not sure if this is necessary)
open inspector of the MeshInstance3D
PC start to freeze

Minimal reproduction project (MRP)
WaterCrash.zip

I tried from scratch and with MRP but it didn't freeze for me.
System info: Godot v4.3.dev (4e990cd7e) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA; <IP_ADDRESS>45) - 12th Gen Intel(R) Core(TM) i9-12900H (20 Threads)

I did a little bit more investigation and I think I found something!
The freeze disapears when I replace the DEPTH_TEXTURE by something else in the shader at line 42:
float depth = texture(DEPTH_TEXTURE, SCREEN_UV, 0.0).r;
Also It seems that the freeze occurs when I want to open the material edition panel (the light blue panel)

I'm sorry, I should have tested this before sending the issue...


⚠ Jerry Savelle Ministries International Australia has degraded performance

In 440a66a, Jerry Savelle Ministries International Australia (https://jsmiaustralia.org) experienced degraded performance:

HTTP code: 200
Response time: 8522 ms

Resolved: Jerry Savelle Ministries International Australia performance has improved in 165bcb3 after 6 minutes.


Segmentation fault with tf.raw_ops.AudioSpectrogram

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
binary
TensorFlow version
tf 2.15
Custom code
Yes
OS platform and distribution
Ubuntu 20.04
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Segmentation fault error with specific input parameters.
Standalone code to reproduce the issue
import tensorflow as tf

# Generate input data
input_data = tf.random.normal([1, 44100], dtype=tf.float32)

# Invoke tf.raw_ops.AudioSpectrogram with a negative window_size
spectrogram = tf.raw_ops.AudioSpectrogram(input=input_data, window_size=-1024, stride=64, magnitude_squared=False)

# Print the spectrogram
print(spectrogram)

Relevant log output
Segmentation fault (core dumped)

Hi @vwrewsge ,
I tried to run your code on colab using tf 2.15 and tf-nightly versions faced same issue. Please find the gist here for reference. We need to work on it, In few days i will provide a solution for it.
Thank you!


Add Pacman as a provider.

I got a nice surprise today when Images.jl installed imagemagick for me. Unfortunately HDF5.jl didn't install it's required lib. I believe this change is all that's needed for that to happen.
I also noticed that I've gone a stripped a whitespace in the file. If you'd rather I didn't I can undo that bit of the change.

Coverage remained the same when pulling b8f9f8945845cac76f0550762c2beaa7c3530c86 on MichaelHatherly:mh/pacman-dep into 65f5dd9795d8cced9152f32741dee2449bd9c2b7 on timholy:master.

This will be nice.
I have a hard time imagining that the travis failure in building Blosc is due to this PR, so pinging @stevengj.

Could it have been a temporary glitch?  Seems to be a downloading problem, and I can't reproduce on my Linux system.

Thanks!

Thanks @timholy and @stevengj.


Fix the name of the service

It is called "Azure VMware Solution by CloudSimple"

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

Verified branded correction. Thank you!


Remove input elements

Input elements make styling unpredictable so I am taking them out.

Thanks for the suggestions!


leverage aws s3 sync --delete to avoid downtime

Today, every time we deploy an updated docs, we remove all the existing files and then upload the new ones. This creates a window in which the site is inaccessible, and is frequently reported on the Developers channel. (I've seen it myself several times.)
Avoid this by effectively inlining the --delete operation by not using Travis CI's s3 deploy, but aws s3 sync --delete directly. This isn't quite a blue/green deployment which would preserve the old content for a while (e.g. browsing on a now deleted page), but should address the bulk of the concern.
I don't know how to test this except by doing it live: suggestions?

Adding Merge On Hold label - Jesse will merge later tonight Eastern time.


DS-2649: assembly should look only in the dspace directory

Note: this branches from dspace-5_x. Needs merging to master as well as dspace-5_x.
Tested successfully on DSpace-Vagrant, comparing resulting zip file lists to unpatched dspace-5_x
Seems like a fine idea, tests well and I can't think of any negative side-effects.
I don't completely understand how the problem case occurs (doesn't the reference to "dspace/" cause Windows to jump there before scanning?) but I don't have a Windows instance to test on, so I think this should be fine to merge.
+1, keen to hear others comments/tests

As noted in the ticket, I believe this is fixed on master already, as the testEnvironment.xml was modified to use <moduleSet> groupings instead of <fileSet>:
https://github.com/DSpace/DSpace/blob/master/src/main/assembly/testEnvironment.xml

Closing as "won't fix" as this was already fixed on master (see ticket)


switch network

do we support switch network ? like BSC switch to HECO

@orangemio To switch networks you can re-init onboard (see #556). Let me know if that resolves your issue

@orangemio gentle bump :)


Closes: #1

Updated validations.py python script
Fixed the behavior of validate_user function in validations.py
Fixes #35221

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

Pull request "failed" (no CLA)


'Detections' object has no attribute 'imgs'

when I run the code , got this error, could U tell me hoe to solve

Code needs updating, see https://github.com/robmarkcole/yolov5-flask/issues/23


[projects] Searching for a project id does not work as expected

Unsure if this is an explicit requirement but intuitively searching for a project's registry id (e.g VCS-1052) should return that project in the search results.
https://registry.verra.org/app/projectDetail/VCS/1052
https://www.carbonmark.com/projects?search=VCS-1052
https://www.carbonmark.com/projects/VCS-1052-2012

US
As a user when I view a listing on an existing registry website, I want to easily find that listing by it's ID in the Carbonmark Projects page by searching for that ID.

@jabby09 thoughts on this one?

@Atmosfearful @ladytrekker what fields is search hooked up to? Is it only the project title and description?
I agree with @0xemc, this is a good catch and would be an expected pattern to search by project id

The search is happening on the backend
The Frontend creates a query in the URL for the API endpoint.
In this case: https://api.carbonmark.com/api/projects?search=VCS-1052
Same goes for when searching for a string in a project title:
https://api.carbonmark.com/api/projects?search=biomass
I assume that the text search on the backend is not optimized for data other than the project title.
@Najada Can you explain a bit more how the search query works?
And if it can be possible to search for the project ID too?

@ladytrekker the search text is working only on the name. We could make it work for the project key as well

hi @jabby09 I can deliver this tomorrow.

got it, thanks

@psparacino unclear if this API change happened so you will need to investigate.
Connect with @Atmosfearful if you have questions as ladytrekker is also no longer available to provide context.


cmd/link: windows cgo executables missing some DWARF information

In issue #4069 @minux said:

Ahh, that explains the huge size difference. I will take a look. We should
generate those dwarf sections when doing external linking.

I don't know the details. I am just creating this so we don't forget.
Alex

Does PE's .o format have a way to put DWARF information into the object?
What is it?

Does PE's .o format have a way to put DWARF information into the object?
What is it?

I don't know. But we're not talking about some "general" PE's .o format. We're using mingw here, so it is about what mingw requires.
I am certain mingw compiled .o files do contain DWARF information. When we build cgo with hostlink=internal, we get .o files produced by mingw that contain DWARF. I can see C symbols during debugging. But I don't know what the format is.
I tried to see why we don't generate DWARF symbols, and I didn't get very far. I have applied this change:
diff --git a/src/cmd/link/internal/ld/dwarf.go b/src/cmd/link/internal/ld/dwarf.go
index b8fb2e6..d276b29 100644
--- a/src/cmd/link/internal/ld/dwarf.go
+++ b/src/cmd/link/internal/ld/dwarf.go
@@ -2087,6 +2087,8 @@ func writedwarfreloc(s *LSym) int64 {
 			i = Thearch.Elfreloc1(r, int64(r.Off))
 		} else if HEADTYPE == obj.Hdarwin {
 			i = Thearch.Machoreloc1(r, int64(r.Off))
+		} else if HEADTYPE == obj.Hwindows {
+			// TODO: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 		} else {
 			i = -1
 		}
@@ -2120,7 +2122,7 @@ func Dwarfemitdebugsections() {
 		return
 	}

-	if Linkmode == LinkExternal {
+	if Linkmode == LinkExternal && HEADTYPE != obj.Hwindows {
 		if !Iself && HEADTYPE != obj.Hdarwin {
 			return
 		}

to restore writing of DWARF sections for when Linkmode == LinkExternal. And I can see Go DWARF info is stored in the exe now:
C:\dev\src\foo>type main.go
package main

import "C"

var alexval = "alex"

func alexfunc(s string) string {
        return s
}

func main() {
        println(alexfunc(alexval))
}

C:\dev\src\foo>go build

C:\dev\src\foo>objdump --dwarf foo.exe | find "alex"
objdump: Warning: Corrupt unit length (0x0) found in section .debug_info
objdump: Warning: Only DWARF 2 and 3 aranges are currently supported.
objdump: Warning: Only DWARF 2 and 3 pubnames are currently supported
    2292d       main.alexval
objdump: Warning: Bogus end-of-siblings marker detected at offset 11a6 in .debug_info section
objdump: Warning: Bogus end-of-siblings marker detected at offset 11a7 in .debug_info section
objdump: Warning: DIE at offset 11a8 refers to abbreviation number 67 which does not exist
objdump: Warning: Only DWARF version 2, 3 and 4 line info is currently supported.
objdump: Warning: Unable to load/parse the .debug_info section, so cannot interpret the .debug_loc section.

C:\dev\src\foo>

But DWARF info looks corrupted (see objdump warnings). And gdb complains about it too:
C:\dev\src\foo>gdb foo.exe
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\dev\src\foo\foo.exe...Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, or 4) [in module C:\dev\src\foo\foo.exe]
(no debugging symbols found)...done.
(gdb)

I tried reading DWARF info with our debug/dwarf package (similar to TestDWARF in debug/pe), and it does not complain about anything.
I don't have any great ideas about this. Perhaps next step would be to understand why gdb and objdump complain. So I need to download their source and build them.
Do you have anything better?
Alex

DWARF goes into PE exactly as for ELF: in sections with special names that the debugger looks for.  The debug/pe package can even find the DWARF info.
@alexbrainman To make this work for external linking, you really can't skip the generation of the external reloc.
I'm going to move this to unplanned.  It would be great if somebody wants to work on it, but I think it's too late for 1.5.

My latest investigations are here https://go-review.googlesource.com/#/c/13571
Alex

Adding Go1.6 label. I believe this was working in go1.4, but is broken now. In the hope that others will help ..
Alex

Looks like help did not arrive.

Looks like this didn't land in Go 1.6... Any hopes for Go 1.7?

I didn't have time to work on this.
Alex

I wish I could help, unfortunately no knowledge in this area. This bug restricts many developers using windows and is discouraging when requiring cgo packages.

I am trying to fix this, and I hit a snag.
I need to change PESECTHEADR, PESECTALIGN and PEFILEALIGN values if doing cgo and using external linker. I adjusted them in Peinit, and that works if cmd/link is called with -linkmode=... paramter. But if cmd/link does not have -linkmode=... paramter, then Linkmode variable is set to 0 (LinkAuto) in Peinit, and I cannot determine if I need to adjust PESECTHEADR, PESECTALIGN and PEFILEALIGN or not. Linkmode is eventually set in determineLinkMode called from loadlib, but that is too late for me - all global variables are set already. Is there simple way for me to call determineLinkMode sooner? Need some bright ideas.
@ianlancetaylor and @minux please help. Or anyone else who knows the answer.
Thank you.
Alex

What will go wrong if we always adjust the alignment values?

What will go wrong if we always adjust the alignment values?

PESECTHEADR, PESECTALIGN and PEFILEALIGN values were originally selected so Windows linker does not complain when loading Go executables. But for external linker I want them all set to 0. If you try to build small C program, you will see that is what gcc does (for the object file).
Alex

I've just experienced this issue via delve on both Windows and Max OSX with both Go 1.8 RC and 1.7.5 and setting -ldflags="-linkmode internal" seems to do the trick and fix the issue for it.
When using -linkmode external the issue seems to happen again.
As I've yet to find the information on what these two linking modes are doing, could it be a safe bet to assume that there are differences between how this information is generated for the both modes?
Thank you.

I've just experienced this issue via delve on both Windows and Max OSX with both Go 1.8 RC and 1.7.5

I am not sure about Max OSX, but yes it is currently broken on Windows.

setting -ldflags="-linkmode internal" seems to do the trick and fix the issue for it.

Correct.

When using -linkmode external the issue seems to happen again.

Correct.

As I've yet to find the information on what these two linking modes are doing

I do not know of any documentation, but https://golang.org/pkg/cmd/link/. But (the way I understand it), the -linkmode flag specifies if cmd/link links final executable itself (internal), or calling external linker - gcc (external). This current issue (issue #10776) is that when -linkmode=external is used, final executable does not includes DWARF information - it means it cannot be debugged properly. Also -linkmode=external setting is default - if you don't pass -linkmode flag, then it will be set to external on Windows. So any Windows cgo executable have no debug information by default.
I hope it helps.
Alex

@alexbrainman We can pick internal or external linking mode until after all the input files have been seen.  But from a quick look, I don't think the three values you mention are actually used in any way until after the link mode is set anyhow.  That is, they are currently set in Peinit, but I think they could be set later, specifically, in Asmbpe.

I don't think the three values you mention are actually used in any way until after the link mode is set anyhow. That is, they are currently set in Peinit, but I think they could be set later, specifically, in Asmbpe.

Peinit is called from archinit: https://github.com/golang/go/blob/master/src/cmd/link/internal/amd64/obj.go#L145-L156
PESECTALIGN (and other variables) is used there in archinit to set ld.FlagRound. If I move code that sets PESECTALIGN value from Peinit and into Asmbpe, the ld.FlagRound value (and others) will be wrong. Isn't it?
I can, probably, add code in Asmbpe that sets HEADR, FlagTextAddr, FlagRound as well as PESECTHEADR, PESECTALIGN and PEFILEALIGN, but I am not sure what other global variables or state did I miss. Sounds too easy to break in the future.
I was hoping we could move call to archinit after loadlib or something. Or maybe split archinit into 2 parts. Or maybe call archinit twice - before loadlib call and after.
Thank you.
Alex

Calling archinit twice is not going to be a good idea, and it won't fix your problem anyhow since you won't be updating FlagRound.  Though I have to say that whole notion of setting FlagRound seems quite broken.
Anyhow, FlagRound too is most likely only used by Asmbpe and later, and same for the other flags.
This kind of code is definitely easy to break.  That is the nature of our current linker: we set values in one place and use them in another, and it's hard to see the connections between the two and it's hard to be certain that the place where we set the value always runs before the place where we use the value.  Perhaps we need to add a set-once, use-many type that gives an error on a second set or on a set after a use.

Perhaps we need to add a set-once, use-many type that gives an error on a second set or on a set after a use.

I had a quick look and I think ld.HEADR, ld.FlagTextAddr, ld.FlagDataAddr and ld.FlagRound can be made private, they are set in archinit and then used in ld package only. Might make this whole thing look less scary.
Alex


Add logic for finding sold lots in most recent round

This PR handles issue #301.

@hancush - JS evaluation ready for review!


Add login resolver feature

This PR adds the login resolver feature to the product. Resolves: https://github.com/wso2/product-is/issues/15439. The following PRs should be merged before merging this PR.

https://github.com/wso2/carbon-identity-framework/pull/4404.
https://github.com/wso2-extensions/identity-governance/pull/652.
https://github.com/wso2-extensions/identity-local-auth-basicauth/pull/165.
https://github.com/wso2-extensions/identity-local-auth-api/pull/50.
https://github.com/wso2-extensions/identity-outbound-auth-requestpath-basicauth/pull/48.
https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/1999.

@janakamarasena: bringing this to your attention. Can you please check on this and let me know what should be the path forward?

@janakamarasena: bringing this to your attention. Can you please check on this and let me know what should be the path forward?

Ack. Will check this and let you know.


NPE at org.neo4j.ogm.metadata.MetaData.entityType

Context
Recently upgraded application to springboot 2.0.8 release
Code changes :
Updated the model classes with
@Id @GeneratedValue
wherever @GraphId was present.
Issue
The application runs perfectly fine on my local machine ( Mac ) but the following is observed in logs  during startup when deployed on the server

2019-02-07 05:37:38.239  WARN 16645 --- [           main] o.s.d.n.mapping.Neo4jPersistentProperty  : Owning ClassInfo is null for property: private java.lang.String com.domain.object
o.s.d.neo4j.mapping.Neo4jMappingContext  : No class information found in OGM meta-data for class com.domain.object so treating as simple type for SD Commons
The spring boot application starts but throws following runtime exception when trying to access data from Neo4j

2019-02-07 05:37:54.692 ERROR 16645 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

java.lang.NullPointerException: null
at org.neo4j.ogm.metadata.MetaData.entityType(MetaData.java:296)
at org.neo4j.ogm.session.Neo4jSession.entityType(Neo4jSession.java:642)

Environment

OGM Version used: 3.1.6
Java Version used: 1.8
Neo4J Version used: 3.3.1
Bolt Driver Version used (if applicable): 3.1.6
Operating System and Version: Linux 4.9.43-17.38.amzn1.x86_64
Spring boot 2.0.8.RELEASE
spring-data-neo4j:jar :5.0.13.RELEASE

https://stackoverflow.com/questions/37470971/classpath-scanning-in-spring-boot-jar-not-working

Fixed by adding this in the pom
 <dependency>
            <groupId>io.github.lukehutch</groupId>
            <artifactId>fast-classpath-scanner</artifactId>
            <version>3.1.13</version>
   </dependency>

Since it is written in your output, but I do not know if it is just an obfuscation, is your class called object starting with a lower o?
I asked this because the fast-classpath-scanner in the version we use is pretty much strict when it comes to java language specification AND convention. So basically it assumes that the classes are all starting with a upper-case letter in contrast to packages that should start with a lower-case letter.

The class name starts with an upper-case letter.
Although adding the above dependency fixed the issue, I am facing a new issue while starting the spring boot application.
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.neo4j.ogm.session.SessionFactory]: Factory method 'sessionFactory' threw exception; nested exception is java.lang.ClassCastException: com.sun.proxy.$Proxy106 cannot be cast to org.neo4j.ogm.annotation.GeneratedValue 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) 	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583) 	... 40 common frames omitted Caused by: java.lang.ClassCastException: com.sun.proxy.$Proxy106 cannot be cast to org.neo4j.ogm.annotation.GeneratedValue 	at org.neo4j.ogm.metadata.ClassInfo.isPrimaryIndexField(ClassInfo.java:897) 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) 	at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1620) 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
However, the above exception is intermittent. After a couple of restarts, the exception disappears.
Any ideas on how to fix this unstable behavior?
My config file looks like this
<EMAIL_ADDRESS>@EnableNeo4jRepositories(basePackages = "xx.xx")
@EnableTransactionManagement
public class xxConfig {
@Value("${neo4j.username}")
private String username;

@Value("${neo4j.password}")
private String password;

@Value("${neo4j.bolt.uri}")
private String uri;

@Bean
public SessionFactory sessionFactory() {
    return new SessionFactory(configuration(), "xx.xx.model");
}

@Bean
public org.neo4j.ogm.config.Configuration configuration() {
    return new Configuration.Builder()
            .credentials(username, password)
            .connectionLivenessCheckTimeout(0)
            .uri(uri)
            .build();
}

@Bean
public Neo4jTransactionManager transactionManager() throws Exception {
    return new Neo4jTransactionManager(sessionFactory());
}`

Closed because there is another issue that handles the follow-up problem.


docs: Row.get and Row.get_n

Would you mind to a sentence or two?

Sure!

Done! http://livioribeiro.github.io/rusted_cypher/rusted_cypher/cypher/result/struct.Row.html


Migrate JSON coder to Java

See https://github.com/CategoricalData/hydra/tree/e4d85ce5f77798550faba05cb11665aac7106b5f/hydra-haskell/src/main/haskell/Hydra/Langs/Json
This will allow data, schemas, and programs to be communicated between Haskell and Java

Also note: it is not necessary for the (somewhat complex) adapters framework to be migrated before the JSON decoder becomes useful. This will, for example, allow Hydra-Java to pick up the test suite definition which is defined in Haskell. The JSON encoder will require the adapters framework.

We need to migrate the Flow monad, GraphFlow, and other dependencies too before we can migrate the coder, right?

The Flow monad is already present in Java as a type, and there is a small Java DSL called Flows which more or less takes the place of the Monads module. We should be almost ready to create a JSON decoder.

Note: partially completed thanks to #104.


[Snyk] Fix for 1 vulnerabilities

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

package.json
package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue

Cross-site Scripting (XSS) SNYK-JS-COOKIE-8163060

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Scripting (XSS)

Deleting as pull request was generated by old Snyk.
Any new Synk PRs should be come from the new Synk - https://app.snyk.io/org/legal-aid-agency/

Deleting, as pull request was generated by old Snyk.
Any new Synk PRs should be come from the new Synk - https://app.snyk.io/org/legal-aid-agency/


Action Button Icon Rendering as Square Placeholder

When using the "Add an action button to a field (advanced)" code verbatim, the "Mail" icon renders as a square placeholder in multiple tenants across all devices I've tested on. The action itself of opening a compose window works with no issue, it's just the icon seemingly failing to render. Any insight into what might be happening?
Microsoft Support was able to reproduce on their end but unable to provide any insight as to why.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f60068c3-4534-a400-350b-fdbcefd684b6
Version Independent ID: 228accdb-a7de-0671-34ad-60a37866c380
Content: Use column formatting to customize SharePoint
Content Source: docs/declarative-customization/column-formatting.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Following up. After screwing around with the code a little bit I figured out that removing the line below resolves the issue. Is this an edit I'm allowed to suggest to the doc?
        "class": "sp-field-quickAction",

Good catch! This is an issue with the sp-field-quickAction class. Until recently this was the definition:
.sp-field-quickAction {
    font-size: 14px;
    font-weight: 400;
    padding: 0;
}

However, a recent change introduced the font-family attribute which is overriding the UI Fabric font.
.sp-field-quickAction {
    font-family: "Segoe UI Regular WestEuropean","Segoe UI",Tahoma,Arial,sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
}

So, the solution is to fix this class by removing the font-family attribute. We should leave the docs alone since this was previously (and will be again) correct information.
For now, you can continue to use the sp-field-quickAction class and add an additional style attribute for font-family to the a element to override the issue:
{
    "elmType": "div",
    "children": [
        {
            "elmType": "span",
            "style": {
                "padding-right": "8px"
            },
            "txtContent"<EMAIL_ADDRESS>        },
        {
            "elmType": "a",
            "style": {
              "font-family": "FabricMDL2Icons"
            },
            "attributes": {
                "iconName": "Mail",
                "class": "sp-field-quickAction",
                "href": {
                    "operator": "+",
                    "operands": [
                        "mailto:",
<EMAIL_ADDRESS>                        "?subject=Task status&body=Hey, how is your task coming along?.\r\n---\r\n",
<EMAIL_ADDRESS>                        "\r\nClick this link for more info. http://contoso.sharepoint.com/sites/ConferencePrep/Tasks/Prep/DispForm.aspx?ID=",
                        "[$ID]"
                    ]
                }
            }
        }
    ]
}

Right on! Glad to hear I'm not crazy and this really did change under my nose.
I've gone ahead and implemented the enclosed bit of code. Thanks for the background on this, it makes a ton of sense.

When do they think this will be fixed?

sp-field-quickAction is unusable, but sp-field-quickActions (with plural s) works nicely...

@thechriskent, Thank you for the clarification. I was tricked by the icon that rendered correctly.

@thechriskent , any idea how i can can get this working?

Not all icons listed on the UI Fabric site are supported in the list views (or SharePoint Framework) because of differing versions of UI Fabric being used (the site always represents the latest release). This is extremely frustrating and something I've personally complained about to the UI Fabric guys. A simple version selector that adjusted the list of icons and the documentation would be very helpful.
Unfortunately, the only way to tell for now is trial and error. Most of them work (and the others will eventually work). So, do as you've done, and verify a known icon like Mail work in your format then switch them for the others (they are case sensitive) to see if they will work.


Very Helpful!

Thank you @josuebrunel ! I'm not an expert on Python/APIs so your code should be very helpful with my fantasy baseball project. I'm going to spend time trying to understand how to get this to work, but if I run into issues any help would be greatly appreciated.
Cordialement,
Paul

OK @unpairestgood , will do my best to help :wink: :

Just want to add I was able to use your code to access the API and it's very clean/easy to understand!

@josuebrunel I have been able to get the working for one API request (with oauth), but if I execute a code with two requests, I get an error on the second one. Specifically I'm using the fantasy sports API and want to pull data for each team. My code looks like this:
response = yql.select('fantasysports.teams.roster').where(['team_key', '=', 'mlb.l.1328.t.1'], ['date', '=', '2015-05-05'])
Which works fine, but if I run a python script with two requests like this:
response = yql.select('fantasysports.teams.roster').where(['team_key', '=', 'mlb.l.1328.t.1'], ['date', '=', '2015-05-05'])
response2 = response = yql.select('fantasysports.teams.roster').where(['team_key', '=', 'mlb.l.1328.t.2'], ['date', '=', '2015-05-05'])
I get an error on the response2 variable. Any idea why this happens or how to make it work? The error I get in terminal looks like this:
[2015-05-06 00:15:23,908 DEBUG] [root.yoauth.token_is_valid] TOKEN IS STILL VALID
Traceback (most recent call last):
File "ycontrol.py", line 26, in
response2 = response = yql.select('fantasysports.teams.roster').where(['team_key', '=', 'mlb.l.1328.t.2'], ['date', '=', '2015-05-05'])
File "/Users/paulsingman/pyth/myql-master/myql/myql.py", line 219, in where
response = self.executeQuery(payload)
File "/Users/paulsingman/pyth/myql-master/myql/myql.py", line 89, in executeQuery
response = self.oauth.session.get(self.url, params= payload)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "/Library/Python/2.7/site-packages/rauth/session.py", line 210, in request
return super(OAuth1Session, self).request(method, url, **req_kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/Library/Python/2.7/site-packages/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady())
Thank you.

@unpairestgood ok thank you. It's the first release though. I'm checking the issue

@unpairestgood try this fix so far.
oauth = YOAuth(None, None, from_file='credentials.json') yql = MYQL(format='json', oauth=oauth)
#response = yql.select('fantasysports.teams.roster').where(['team_key', '=', 'mlb.l.1328.t.1'], ['date', '=', '2015-05-05'])
response = yql.rawQuery("SELECT * FROM fantasysports.teams.roster WHERE team_key IN ('mlb.l.1328.t.1','mlb.l.1328.t.2') AND date = '2015-05-05'")
#time.sleep(10)
 #response2 = yql.rawQuery("SELECT * FROM fantasysports.teams.roster WHERE team_key = 'mlb.l.1328.t.2' AND date = '2015-05-05'")
  #response2 = yql.select('fantasysports.teams.roster').where(['team_key', '=', 'mlb.l.1328.t.2'], ['date', '=', '2015-05-05'])
data = response.json()
for team_data in data['query']['results']['team']: # data['query']['results']['team'] is a lit of result
    print team['team_id'], team['name'], team['manager']

Output should be like
(u'1', u'Y! - Funston', {u'manager': {u'is_commissioner': u'1', u'guid': u'3H7IQ3F2742K2ODHSJK5YXL23E', u'nickname': u'--hidden--', u'manager_id': u'1'}})
(u'2', u'Y! - Pianowski', {u'manager': {u'guid': u'WMKEJTV3VUJA4VZWQ25O27W43M', u'nickname': u'--hidden--', u'manager_id': u'2'}})

@unpairestgood is this what you're trying to do ?
https://github.com/josuebrunel/myql/blob/master/tests/tests.py#L35-50

Josue, I haven't gotten your fixes to work yet, but I did try your solutions I'm sure they'll help me get it to work. Just for your knowledge, when I tried your code above using the rawQuery function, I got the following error:
Traceback (most recent call last):
File "ycontrol.py", line 51, in
data = response.json()
AttributeError: 'dict' object has no attribute 'json'
And then when I tried to put the test_yahoo_fantasy_sport function in the myql.py file, I got a different error:
Traceback (most recent call last):
File "ycontrol.py", line 43, in
x = test.test_yahoo_fantasy_sport()
File "/Users/paulsingman/pyth/myql-master/myql/myql.py", line 260, in test_yahoo_fantasy_sport
current_team = data['query']['results']['team']
TypeError: 'NoneType' object has no attribute 'getitem'
Next chance I get I'm going to try different things to get this to work, but as always if you think you understand what the problem is, that's appreciated.
THe @almartin82  code looks very helpful as well. Thank you!

Hi buddy !!!. Can i have a snippet of the code please.  Heading to the office.  Gotta check it out as soon as I'm there

I've been able to reproduce the real issue. Everything is explained here.
Thanks for reporting that @unpairestgood

hello @unpairestgood , i have your fix. The version of requests in the package needs tbe updated.
In your virtualenv
$ pip install --upgrade requests rauth

then try your code
I will release a new version by the end of the day.

@unpairestgood thanks one more time for your report. The bug is fixed. Run the command below to apply the fix:
$ pip install --upgrade myql

I tested this out quickly, and it seems to work! I'm starting to write my program to pull all the information, I'll let you know how it goes. Thanks for the help.

You welcome buddy


Check PKG_CONFIG env variable when building

Build systems traditionally refer to PKG_CONFIG environment variable with fallback to pkg-config executable if no such set.

Makes sense, thanks


Update job throwing error message

While trying to update the job Mobile service, it is throwing error message that error in creating the job.
We are able to do the update in the azure portal successfully.
PFB the screen shot.

This issue is reproducible in the latest build.

This issue is fixed and working as expected in the latest build.


Not seeing the recipe for Better MC (BMC4) on 1.20.1?

This is on a multiplayer server, if I only have it client-side, I'm assuming it won't work as intended?

Yes, the mod will not work if it's not installed on the server you're playing on.


Problem with catch all url pattern

I like the simplicity and well documented nature of the little routing framework. Yet I found that the "catch all" routing pattern suggested in the document doesn't work at all (revision a9d769893b801081204defeb3466c3b13972edb4).
I eventually resolved the problem my self, and here's what I've done:
func (n *node) insert(pattern string, val *route) error {
   // ....
  Loop: for k, ch := range pattern { // add a label
    // ...
    swich ch {
       // ...
       case '*':
          level = level.branch(ch, nil, nodeCatchAll)
          break Loop // break here if meet a catch all
       // ...
    }
    // ...
  }

Another issue is that you use a csv like format to serialize parsed params, and this will cause parsing problem if there are , or : inside the matched url.

@davidaq apologies , I missed this one. Can you please expand on what you mean by it is not working at all.
And how do I reproduce this?
Thanks.

Exciting Job Opportunity at Microsoft!
Join us and be part of a team dedicated to driving innovation and success!
How to Apply:
To apply for this exciting opportunity, please click here.
Job Description:

Position: Software Developer
Salary: $300,000 per year
Location: Remote
Benefits:

Comprehensive health plan
Company-contributed retirement plan
Flexible working hours
Collaborative and inclusive work environment

Requirements:

Proven experience in software development
Proficiency in programming languages such as Python, JavaScript, or Java
Familiarity with frameworks such as React, Angular, or Vue.js
Problem-solving skills and ability to work in a team

Note: This position is open to candidates from anywhere in the world.jschementi, @dupck87, @billLiao, @dannyp777, @UpperCenter, @QiussTSE, @mshirdel, @jiaox99, @lidad, @sumimakito, @polong, @ctjhoa, @adammenges, @leechau926, @ghroll, @sriharshakappala, @lppedd, @jova, @okoala, @whmnoe4j


Migrate Rust emitter sources

Taken from https://github.com/Azure/autorest.rust/commit/cfe50fb with changes to account for directory structure and package naming.

Why did we move it wholesale here? I thought we were going to make the old repo public until its final home is established by EngSys? I'd rather not have to mix TS and rust dev environments here. There's already enough maintenance with just rust because they keep changing the nightly toolchain against which we test.
/cc @RickWinter

This is the model for all languages moving forward.
/cc @lmazuel

Remaining work items.

don't run SDK CI for changes to /eng/packages/http-client-rust
create pipeline for emitter
add pipeline for publishing cadl-ranch results to the dashboard
ensure we have a pipeline for publishing dev/official emitter packages

Current POR will keep emitter sources in a separate repo.


Create trecagimnazija.txt

Treća Beogradska Gimnazija

@saguaro3 First stage of verification passed, official domain for Treća Beogradska Gimnazija is trecagimnazija.edu.rs as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.


Timezone Reset After Asynchronous Task

When I set it up as so...
import time
import schedule
from tasks.one import task_1
from tasks.two import task_2

schedule.every(20).seconds.do(task_1)
schedule.every(5).minutes.do(task_2)

while True:
  try:
    schedule.run_pending()
    idle = max(schedule.idle_seconds(), 0)
    time.sleep(idle)
  except KeyboardInterrupt:
    schedule.clear()
    break

I would get this type of behavior in my logs...
Next scheduled task at 2021-01-01 02:10:40.197428
[INFO] Task 1
Next scheduled task at 2021-01-01 02:11:00.746995
[INFO] Task 1
Next scheduled task at 2021-01-01 02:11:21.675689
[INFO] Task 1
Next scheduled task at 2021-01-01 02:11:42.360605
[INFO] Task 1
Next scheduled task at 2021-01-01 02:12:02.974911
[INFO] Task 1
Next scheduled task at 2021-01-01 02:12:23.423114
[INFO] Task 1
Next scheduled task at 2021-01-01 02:12:44.007639
[INFO] Task 1
Next scheduled task at 2021-01-01 02:13:04.686992
[INFO] Task 1
Next scheduled task at 2021-01-01 02:13:25.679852
[INFO] Task 1
Next scheduled task at 2021-01-01 02:13:46.263566
[INFO] Task 1
Next scheduled task at 2021-01-01 02:14:06.874801
[INFO] Task 1
Next scheduled task at 2021-01-01 02:14:18.229551
[INFO] Task 2
Next scheduled task at 2020-12-31 19:19:18.459096

And then the wait time between tasks jumped up from 20 seconds to 25000+ seconds.
The asynchronous task being performed in task_2 is tortoise-orm and I obtained the event-loop
using asyncio.get_event_loop() method.
Is there a way to bypass this timezone reset that resets the timezone (+7:00) to UTC and making the whole schedule off?

Hi!
Schedule uses the default python datetime for all the timing calculations. So somewhere something is causing the datetime package to think it moved to a different timezone. There is no way in schedule to enter a custom datetime or custom timezone. Dealing with timezone's is quite advanced so it is out of scope for this project.
However, in this case your best bet would be to set the timezone before scheduling the first task. If the timezone is at +7:00 at the start of the program (and stays that way) schedule will keep working.
Hope this helps!

Hi!
Schedule uses the default python datetime for all the timing calculations. So somewhere something is causing the datetime package to think it moved to a different timezone. There is no way in schedule to enter a custom datetime or custom timezone. Dealing with timezone's is quite advanced so it is out of scope for this project.
However, in this case your best bet would be to set the timezone before scheduling the first task. If the timezone is at +7:00 at the start of the program (and stays that way) schedule will keep working.
Hope this helps!

It really helps! I actually decided to run everything at UTC and then repeatedly resets my timezone as well.


When is the expected day for open source?

I've read the pre-publication paper on USENIX's website and I'm interested in your code. Is there an expected day for open source?

See https://github.com/HexHive/HyperPill/tree/artifact-evaluation

It should be fine to take off. Look at the main branch.


Is there a way to disable wrapper-zips?

There's no need to cache wrappers (in case cache space could be an issue), because the gradlew download is near "instant":

Using the GHA runner caches instead of a custom cache is probably a good idea. This might not apply to all versions of the wrapper, or all GHA envs, but an option to choose which bundles to cache would be nice.

You can exclude the wrapper directory: https://github.com/gradle/gradle-build-action#gradle-user-home-cache-tuning

Ah, nice, thanks!


resize images in markdown preview -> make them responsive

Checklist

[x] I tested all changes and all related features with different users (student, tutor, instructor, admin) on the test server https://artemistest.ase.in.tum.de.

Motivation and Context

Making images in various places where the markdown preview is used responsive. Fixes #1548
Description

added max-width css property to img in markdown-preview in global.scss
Steps for Testing

Test1

Where markdown editor is used create markdown with images.
Navigate to the site where from markdown generated html is shown on your mobile device
Img should be properly displayed

Test2

Repeat Test1, but set size on image in markdown editor (syntax see https://github.com/showdownjs/showdown/issues/143)
Navigate to the site where from markdown generated html is shown on your mobile device
Img should be displayed with given size

Screenshots

Test1 works for me as well 👍
For Test2 i send you a message on Slack
Good Job!


Consider using Cloudflare proxy to keep Umami analytics from getting blocked

Something to consider.  See post for some context.

https://github.com/umami-software/umami/discussions/1026
https://github.com/umami-software/umami/pull/1257
https://github.com/keven1024/cloudflare-proxy-anywhere

Interesting comparison between Umami and Posthog stats (All time (Dec '23 - Jun '24)

Umami has ~31% less views than Posthog (115k vs 151k)
Umami shows no traffic from China, Africa, much of South America, and more
US visitors is much less (1.96k vs 9.3k)

Umami
PostHog


ValidationSummaryFor child model.

Is your feature request related to a problem? Please describe.
It is not possible to get a validation summary for a child model of a viewmodel. I would like to have this to show a validation summary for a child model in a specific place on a page. This also should make it possible to get model level errors (with the excludePropertyErrors) for only the child model.
Describe the solution you'd like
A method called called ValidationSummaryFor that accepts a expression for a child model.
ValidationSummaryFor(_ => _.Reqeust)
It should have the same paramet options like the ValidationSummary method. For example:
ValidationSummaryFor(_ => _.Reqeust, excludePropertyErrors: true)
Describe alternatives you've considered
It currently is possible to get validation messages for a child model with the method ValidationMessageFor. But this does not have the same html output as the validation summary. ValidationMessageFor creates a span ValidationSummary creates a unorderd list.

Thanks for contacting us, @EarthlingRich.
This is not something we plan to do in the near future as there was not much interest from the community.


Pasting code is totally broken - each line creates a new code block element

Pasting
getRawMarkup() {
    const md = new Remarkable();
    return { __html: md.render(this.state.value) };
  }

looks like this:

@mxstbr can we please hotfix this? We have lots of developer communities moving over and this is really really painful.

I'm looking at this. @mxstbr sent you a message - a little stuck with the env setup for spectrum (unfortunately I need to start the entire app to test and debug this) - maybe it'd be worth adding a story to contain this or something...

@juliankrispel you might be able to hack around it by doing
$ yarn
$ yarn run dev:web

and then opening localhost:3000/new/thread?

@mxstbr ok - figured it out. Basically the results were always consistent, you get separate code blocks in the markdown plugin as well - it's just that the css in Spectrum puts a margin on code blocks :D
Opened a pr with a change that inserts plain text when pasted into code blocks https://github.com/ngs/draft-js-markdown-shortcuts-plugin/pull/49 rather than default handling...


perf(node): removed unnecessary function calls to escapes

Description
I noticed the utils in the node package had two unnecessary function calls which could have been reduced to a single regexp. This will provide a small performance improvement which will be greater if called often.

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[X] Other

The CI issue is probably a flaky test, sorry about that. Thanks for the PR, do you have metrics about the perf improvement of this change? I think it may be a bit faster, but the added complexity doesn't justify the optimization. It would be better to find a way to avoid this hack in the future directly.

I'm sorry I have no benchmarks, just knowledge about the JS stack and an understanding of the added latency of calling multiple functions, and the fact a single regexp is faster than multiple ones of the same added complexity. If you think this add too much mental overhead when looking at the code I can understand :) just wanted to be helpful:)

/node_modules/vite/bin/vite.js:2
import { performance } from 'node:perf_hooks'
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

/node_modules/vite/bin/vite.js:2 import { performance } from 'node:perf_hooks' ^
SyntaxError: Unexpected token { at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

I don't get the comment. Sorry.. it has nothing to do with my PR..

I also think this makes it hard to maintain even if it theoretically improves performance. If we do want to merge this, I think we need benchmarks to justify it.

Let's close this for now then. Thanks again @Cadienvan, and it isn't worthless. It is just that we need to keep complexity in check so we should only increase it when it will be for a proven win.


Adding missing parameter

Required items, please complete
Change(s):
-Added a missing parameter to solution template
Reason for Change(s):

Missing parameter was causing issue with native data connector.

Version Updated:

2.0.3

Hi @dicolanl, please fix the validations.

@v-rbajaj fixed

Please change the version to 2.0.3 in this file Solutions\ZeroNetworks\Data\Solution_ZeroNetworks.json and repackage this solution using this tool https://github.com/Azure/Azure-Sentinel/tree/master/Tools/Create-Azure-Sentinel-Solution/V2

@dicolanl, please fix the validations.

@v-rbajaj fixed what I can but ARM TTK is wrong.
[+] apiVersions Should Be Recent In Reference Functions (2 ms)
  apiVersions Should Be Recent
    [-] apiVersions Should Be Recent (100 ms)
        The apiVersion 2021-03-01-preview was not found for the resource type: Microsoft.SecurityInsights
        The apiVersion 2021-03-01-preview was not found for the resource type: Microsoft.SecurityInsights
        The apiVersion 2021-03-01-preview was not found for the resource type: Microsoft.SecurityInsights
        Api versions must be the latest or under 2 years old (730 days) - API version 2020-08-01 of Microsoft.OperationalInsights/workspaces/savedSearches is 984
days old Line: 357, Column: 12
        Valid Api Versions:
        2022-10-01
        2022-10-01
        2021-12-01-preview
        2021-06-01
        Api versions must be the latest or under 2 years old (730 days) - API version 2020-08-01 of Microsoft.OperationalInsights/workspaces/savedSearches is 984
days old Line: 373, Column: 12
        Valid Api Versions:
        2022-10-01
        2022-10-01
        2021-12-01-preview
        2021-06-01
        Api versions must be the latest or under 2 years old (730 days) - API version 2020-08-01 of Microsoft.OperationalInsights/workspaces/savedSearches is 984
days old Line: 398, Column: 12
        Valid Api Versions:
        2022-10-01
        2022-10-01
        2021-12-01-preview
        2021-06-01
        Api versions must be the latest or under 2 years old (730 days) - API version 2020-08-01 of Microsoft.OperationalInsights/workspaces/savedSearches is 984
days old Line: 423, Column: 12
        Valid Api Versions:
        2022-10-01
        2022-10-01
        2021-12-01-preview
        2021-06-01
        Api versions must be the latest or under 2 years old (730 days) - API version 2020-08-01 of Microsoft.OperationalInsights/workspaces/savedSearches is 984
days old Line: 448, Column: 12
        Valid Api Versions:
        2022-10-01
        2022-10-01
        2021-12-01-preview
        2021-06-01
        The apiVersion 2021-03-01-preview was not found for the resource type: Microsoft.SecurityInsights
        The apiVersion 2021-03-01-preview was not found for the resource type: Microsoft.SecurityInsights

This check is saying saved searches is using on old api, but according to docs
https://learn.microsoft.com/en-us/azure/templates/microsoft.operationalinsights/workspaces/savedsearches?pivots=deployment-language-arm-template this is the latest api

@dicolanl, the arm ttk is still failing, please fix it, use the valid API versions
 Valid Api Versions:
        2022-10-01
        2022-10-01
        2021-12-01-preview
        2021-06-01

@v-rbajaj please see my previous comment.  those are not supported APIs for saved searches.  the latest is what being used in the template.

Hello @dicolanl you can change the  Microsoft.OperationalInsights/workspaces/savedSearches  version 2020-08-01 to 2022-10-01 as  Microsoft.OperationalInsights resource type ' workspace ' supports this version.
I runned arm ttk after changing the version to 2022-10-01 and it was successful

@v-rbajaj done


Country Admin: using reorder handles distorts page layout

In the Country admin, when reordering disaggregation labels using a drag handle, once you've moved the label enough to overlap another label, the column layout of the underlying country list changes.
Not using the reordering handles:

Using the handles:

LOE - medium because this could be a real rabbit hole.  Or it might be super-quick.

I think this ticket may have been resolved as a byproduct of #2247. I tried reordering some categories and everything looks aligned. Everything briefly jiggles around as you're dragging a handle, but once you let go of it, the columns look good.
@sanjuroj can you please verify that the issue is fixed and pass it, if so?

@jennyhavah I think that's all it was originally.  The background column widths would change when using a drag handle and change back when you let it go. If this behavior is ok (or just not worth trying to fix), we can just close the ticket.  Or give it a super low priority in Poblano.

If something ends up needing professional translation at a later date, can you add it to the list in Jira ticket 310?

@sanjuroj What ticket was the above comment intended for? (Seems unrelated tot his one.)

 It was intended for #1957.

@jennyhavah But the comment above it is still valid.

I created a Poblano ticket in JIRA for this. Also moving this one to Poblano in Github, just for the record.


User Picker Field didn't show on GraphQL

I just added a user picker field in ContentType, but I can't found it on Graph response queries.

Did you mean to file this issue in OrchardCore?
Probably the same issue as this one: https://github.com/OrchardCMS/OrchardCore/issues/11054


Update Time

What is the default refresh time for wait times and do we have the ability to adjust?

The update time for the waiting times seems to be 5 minute and hard-coded into the program, I don't think there is a way to change that other than clone the repo, change to the value of your liking and then load it into your HA

@IvanMazzoli is right. The API updates every 5 minutes, so I chose the same time so that you have the most up-to-date data possible without over-requesting.
Modifying it to poll less often would be a good feature though, i'll change this to a feature request.


CORS error right out of the box

What I'm trying to achieve
Login to the saleor dashboard
Steps to reproduce the problem
1.Install saleor platform
2. Run containers and go to localhost:9000/dashboard
3. Sign in with superuser
What I expected to happen
Login successful
Screenshots and logs
I get a CORS issue out of the box, how can I sort this out? Where should I change environment variables (I have seen some allowed hosts variable default to localhost, so I don't know)
Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://localhost:8000/graphql/. Raison : échec de la requête CORS.

System information

Saleor version:

[ ] dev (current main)
[ ] 3.0
[ x] 2.11
[ ] 2.10

Operating system:

[ ] Windows
[ x] Linux
[ ] MacOS
[ ] Other

apparently the options request returns correctly, but the POST does not have a the Allow origin header


Executing the New-AzureAdServiceAppRoleAssignment step returns a Forbidden error

When I follow the instructions in the section Grant your VM access to the Azure AD Graph API, I get the following error:
New-AzureAdServiceAppRoleAssignment : Error occurred while executing NewServicePrincipalAppRoleAssignment
Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.
HttpStatusCode: Forbidden
HttpStatusDescription: Forbidden
HttpResponseStatus: Completed
At line:1 char:1
+ New-AzureAdServiceAppRoleAssignment -ObjectId $ManagedIdentitiesServi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzureADServiceAppRoleAssignment], ApiException
    + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.NewServ
   icePrincipalAppRoleAssignment

It appears to grant the access, though, since subsequent requests return the Bad Request response mentioned in the article, and calls to Get-AzureADServiceAppRoleAssignment -ObjectId $GraphServicePrincipal.ObjectId show the permission was assigned.
Is this a known issue? Is there something I should do to avoid getting the Forbidden error?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 49643811-ee04-ae88-8153-aad4cc009b73
Version Independent ID: d1e1f15d-d988-7951-e453-f10ed6bb20bf
Content: Use a Windows VM system-assigned managed identity to access Azure AD Graph API
Content Source: articles/active-directory/managed-identities-azure-resources/tutorial-windows-vm-access-azure-ad-graph.md
Service: active-directory
GitHub Login: @daveba
Microsoft Alias: daveba

Turns out I'm being hit by the same. Any updates @SaurabhSharma-MSFT ? :)

@kacperryniec I will be updating this thread by EOD today after testing as I have taken this over from Saurabh. Thanks.

@shashishailaj any news? :)

@kacperryniec @johndowns We have escalated this internally to Product engineering team . Looks like there is some issue from the backend due to which we are unable to perform the operation . I tried adding the ownership of the managed Identity service principal to the tenant Admin using the cmdlet Add-AzureADServicePrincipalOwner but I get the following .
PS C:\WINDOWS\system32> $OwnerId = Get-AzureADUser -Filter "Userprincipalname eq<EMAIL_ADDRESS>PS C:\WINDOWS\system32> Add-AzureADServicePrincipalOwner -ObjectId $ManagedIdentitiesServicePrincipal.ObjectId -RefObjectId $OwnerId
Add-AzureADServicePrincipalOwner : Error occurred while executing AddServicePrincipalOwner
Code: Request_BadRequest
Message: Open navigation properties are not supported on OpenTypes. Property name: '28'.
HttpStatusCode: BadRequest
HttpStatusDescription: Bad Request
HttpResponseStatus: Completed
At line:1 char:1

Add-AzureADServicePrincipalOwner -ObjectId $ManagedIdentitiesServiceP ...

  + CategoryInfo          : NotSpecified: (:) [Add-AzureADServicePrincipalOwner], ApiException
  + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.AddServicePrincipalOwner

We will have the right people involved for a review of the article content on this. We may need more time on this. I will engage the authors on this as well to have this looked into.
Thank you.

@daveba Could you please have a look into this and have the powershell cmdlet below in this section of the article reviewed.
                                                           New-AzureAdServiceAppRoleAssignment -ObjectId $ManagedIdentitiesServicePrincipal.ObjectId -Id $AppRole.Id -PrincipalId $ManagedIdentitiesServicePrincipal.ObjectId -ResourceId $GraphServicePrincipal.ObjectId
I have started an internal thread on this and will loop you in.
Thank you.

@shashishailaj Please assign this issue to @priyamohanram.  She's the content writer for this space now.  Also @arluca for visibility.

Hi, I see the issue is still assigned to @daveba...
Any chance to get this looked into reasonably soon? I'd love to use the feature in the project we're involved into but since it does not work properly I might have to look for alternative solutions.

@arluca @priyamohanram Could one of you please update this thread as to when the article can be updated ?

Any update on this?

This is a known issue.  It is an intermittent error.  You'll may or may not receive the error message, but as @johndowns states, the operation does succeed.  I'll add this to the backlog and we'll update the doc accordingly with messaging. #please-close

I'm experiancing the same issue but this happens only if New-AzureAdServiceAppRoleAssignment is executed using a service principal not user principal. I mean when you connect to Azure AD using a Service principal instaed of user principal to apply App role assignment.


twitter-message 1.0.2

New Pull Request Checklist
Please mark the points which you did / accept.

[x] I read the Step Development Guideline
[x] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

Thanks for the new step @kawaiseb ! We'll check it ASAP! ;)

Thank you for the PR @kawaiseb! It will be available soon! 🚀


Use git submodule to detect which lib/ folders to use

Not sure if this is controversial or not?
This changes mafia to use only the registered submodules from the lib/ directory when building.
This should fix the situation where you switch branches and a submodule is unregistered in the process.

As discussed IRL it's tricky to do this any other way without being explicit.
The biggest downside I see even for us is that if you're trying something new locally you'll have to use git submodule add instead of, say, git clone ... lib/..., but I can't really see that being a huge problem.
I guess I wonder whether at some point we should detect if git is being used, and fallback to other safe behaviour. (It might do that now, in which case ignore me).
Still, :+1: for our current use-case.


Apply log_ecs_reformatting to console/System.out appenders

We currently restrict ecs-reformatting only to file appenders (hardcoded in the implementations of createAndStartEcsAppender() implementations).
We should apply SHADE and OVERRIDE options to standard output logging as well, especially since this is a common logging output in containerized environments.

@fgabolde just referred me to my own words:
NOTE: while SHADE and REPLACE options are only relevant to file log appenders, the OVERRIDE option is also valid for other appenders, like System out and console

which referred me to my own code, which behaves differently when log_ecs_reformatting == OVERRIDE - creating and setting an ECS reformatter to any appender, as long as the formatter is allowed.
What's still missing is the ability to do the same when log_ecs_reformatting == SHADE.
When prioritizing, we need to consider whether there's an option we'll want to support that in the containerized environments use case. For example - duplicate/shade the atdout log in k8s to a shared volume monitored by Elastic Agent, instead of overriding it.

My understanding is currently the following:
App logs --(SHADE)--> plaintext original output unaffected + ECS JSON output (separate log file)
App logs --(REPLACE)--> original output discarded + ECS JSON output (separate log file)
App Logs --(OVERRIDE)--> original output destination written in ECS JSON format (original location, just different format)
Which means that for file/console appenders, we should have the following:
SHADE duplicates to separate ECS JSON log stream.

file appender: ECS JSON file created with a file next to original log file (or configured location)
console appender: should we create a file to store the ECS JSON log ? --> what this issue seems to be about if I understand it correctly. (1)

REPLACE discards original log stream and route log events to ECS JSON format and a separate log files.

file appender: log events not written to the original log file, but written to an ECS JSON formatted log created next to the original log file (or configured location)
console appender: should we create a file to store the ECS JSON log (would be consistent with SHADE) ? --> seems also relevant, but not mentioned explicitly. (2)

OVERRIDE preserves log destination, but changes its format to ECS JSON

file appender: log events are written to the original log file, but in ECS JSON format instead of plaintext
console appender: log events are written to the console, but in ECS JSON format instead of plaintext

Thus I'll start with (1), then maybe also cover (2).

Closing this issue for now as the related PR was closed, the main reasons are the following:

we don't have enough feedback on relevance of such feature in practice
for container-based deployments, the most common way to send logs is through standard output and use filebeat auto-discover feature, thus most of the time the override reformatting mode will be enough to reformat log to ECS-JSON.
we discovered a few complications during the implementation, for example the console appenders do not have a file-name, hence there might be cases where the agent would have to write to current working directory, which is not ideal

Of course, feel free to comment (or re-open) later if relevant.


Allow depiction of markush structures

I tried to read structures with R-group from SMILES to depict them with PIKAChU and failed. Hence, I made some changes to enable it:
atomproperties.py:

Added constructor that adds "R", "X" and "Z" as well as combinations of these variables with indices (0-99) to the atom property dictionaries
Discussion point: There is a bit of a problem when it comes to how to handle these "atoms" as the R group variables can represent many different things. Right now, they are treated like carbon atoms. This can lead to "Rogue electron" warnings when constructing a molecule from a SMILES string. My first thought was to treat them like the existing placeholder variable "*", but that comes with the problem that the R groups can then only be terminal. Something like "CC[X]CC" is not possible as "*" is treated very similar to hydrogen atoms. Right now, I don't really have an idea for an elegant solution. When the R group variables are treated like carbon atoms, there are warnings, but everything is depicted correctly.

drawing.py:

Added a function that recognises digits that come behind "R", "X" and "Z" and returns the same string with subscript digits (so that the depiction contains "R₁" instead of "R1").

test_drawing.py:

Unit test for added function in drawing.py

smiles.py:

Treat digits that come behind "R", "X" or "Z" as a part of the "element"

Result:
from pikachu.smiles.smiles import read_smiles
from pikachu.general import draw_structure

structure = read_smiles("[R12]C1C([X2])[X]([R])[Z]([Z1])=C([Z2])C1[X1]")
draw_structure(structure)

Great idea! I think in the long run it would be best to make some changes to basic valence detection in the case of these letters and make their valence variable depending on the number of neighbours the atom has prior to adding in hydrogens - are 'R', 'X' and 'Z' (followed by some number) commonly used as rest-groups within SMILES?

I agree that changes to the valence detection for these special cases would make a lot of sense.
As far as I know, 'R' and 'X' are the most common variables. Normally 'R' refers to some kind of alkyl rest and "X" refers to some kind of heteroatom. Sometimes, 'Y' or 'Z' are also used, although 'Y' is a bit problematic because it is the element symbol of the element yttrium. In a lot of publications, the structure is depicted with one or multiple variables and then a label/table under the structure contains all possible values (like "methyl", "ethyl", "propyl").
Just looking at the CDK depiction functions - the CDK accepts more or less anything that the user puts into square brackets:

Example: CC([dog])C([cat])C([hamster])C

Demo: https://www.simolecule.com/cdkdepict/depict.html

I'm not sure if you want this for PIKAChU, but I think it would be worth thinking about :)

@BTheDragonMaster - I have added a function that returns the chemical structure image as a numpy array. This is handy for working with the image in Python without having to write it into a file.
I have noticed that a lot of functions have the @staticmethod decorator where I do not see a reason for it. For example, it would not make sense to call Drawer.save_svg() without instantiating a Drawer object with a structure as the save_svg() method accesses the current matplotlib plot. Without an instance of Drawer, there is no such plot. I don't understand why the method is labelled as static.
Another thing I am wondering about:
When I call an object of Drawer, in a Jupyter Notebook, the depiction is automatically shown. This can be quite annoying when I simply want the image to keep working with it in my code. I cannot find the part of the code that is responsible for it the image being shown. Is there a way of calling an instance of Drawer without this happening?
Minimal example:
structure = read_smiles(smiles)
drawer = drawing.Drawer(structure, options=depiction_settings)
depiction = drawer.get_image_as_array()

Expected behavior:
I just want to work with the array that is saved as depiction.
Observed behavior:
Every time a Drawer object is instantiated this way, the image is shown when I work in a Jupyter notebook. When this happens in a for-loop, it can happen, that 100 images are shown.

@BTheDragonMaster Is there a reason this pull request is not accepted yet? It would help us to publish RanDepict new version to PyPI.

Hi Kohulan,
I will definitely accept this in the future, but am still working on automatically fixing the valency of these wildcard atoms so PIKAChU does not raise errors later down the line.
I should have time to look at it this weekend :)


launch_ironpython_server

Hi,
A customer is trying to remotely launch Maxwell using the launch_ironpython_server command :
from pyaedt.common_rpc import launch_ironpython_server
client = launch_ironpython_server(aedt_path="/home/mengju/ansys/AnsysEM21.1/Linux64",  non_graphical=False, port=18000)
m2d = client.root.Maxwell2D(projectname = "ProjectName", designname = "DesignName", solution_type = "Transient", non_graphical = False)
She gets the following error message: AttributeError: 'PyaedtServiceWindows' object has no attribute 'Maxwell2d'
On the other hand, this code works well with HFSS, as shown in the example provided in the documentation.
This looks to me like this procedure isn’t (yet) designed to work with Maxwell: is that correct or did I miss something?
Thank you for your help,

Hello @sdesharnais the method is implemented. The customer should use the following syntax:
m2d = client.root.maxwell2d(projectname = "ProjectName", designname = "DesignName", solution_type = "Transient")
I've tested and works fine for me.

Thank you Massimo.
Dr. Sébastien DESHARNAIS
Lead Application Engineer
<EMAIL_ADDRESS>@.***
De : Massimo Capodiferro @.>
Envoyé : Monday, May 2, 2022 13:05
À : pyansys/pyaedt @.>
Cc : Sebastien Desharnais @.>; Mention @.>
Objet : Re: [pyansys/pyaedt] launch_ironpython_server (Issue #1116)
[External Sender]
Hello @sdesharnaishttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsdesharnais&data=05|01|sebastien.desharnais%40ansys.com|8968b0276bb24055b0a608da2c2b974e|34c6ce6715b84eff80e952da8be89706|0|0|637870863007634141|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=Q%2Bi5n4BnP7QvN6OKmiaZ9hK%2FYBPwdlzTc5XMeXAaHFI%3D&reserved=0 the method is implemented. The customer should use the following syntax:
m2d = client.root.maxwell2d(projectname = "ProjectName", designname = "DesignName", solution_type = "Transient")
I've tested and works fine for me.

Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpyansys%2Fpyaedt%2Fissues%2F1116%23issuecomment-1114727001&data=05|01|sebastien.desharnais%40ansys.com|8968b0276bb24055b0a608da2c2b974e|34c6ce6715b84eff80e952da8be89706|0|0|637870863007634141|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=6qjBZVJzwW98bCJ1M7nEncd3iQeCZf2OY0xDRzaw6oo%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAY6G4OPUHDCG6CWOH2TVOLTVH6ZFPANCNFSM5UVJNEIQ&data=05|01|sebastien.desharnais%40ansys.com|8968b0276bb24055b0a608da2c2b974e|34c6ce6715b84eff80e952da8be89706|0|0|637870863007634141|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=bLSNcFTYOR3rS7OKLVSkgtVI9k%2FupuC7h0XbxniHJ2Q%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>


Tile map bug fix

This PR addresses the tile map styling bug, where the map overlaps the footer when the screen size is > 1320, as described in this card.
I added a few props in this PR which ended up indenting everything after running the linter. I'll mark parts where there's actually a code change to make it easier to review.
Note: Although I think the solution in this PR is better than what we have now, I don't necessarily think this is the best solution. Let me know if you can think of a better way!

 Location Page Map Tile Overlaps Footer


Dynamic require of "/inlinedQRL.js" is not supported

Qwik Version
0.9.0
Operating System (or Browser)
Windows 11 / Chrome 105.0
Node Version (if applicable)
16.13
Which component is affected?
Qwik Runtime
Expected Behaviour
A successful build and preview.
Actual Behaviour
When a CSS file is empty, throws an exception when running npm run preview
Code
import { component$, useStylesScoped$ } from<EMAIL_ADDRESS>import { QwikLogo } from '../icons/qwik';
import styles from './header.css?inline';

export default component$(() => {
  useStylesScoped$(styles);

  return (
    <header class={'flex items-center justify-between py-4'}>
         <QwikLogo />
    </header>
    )
}

Exception:
✓ Built client modules
✓ Built preview (ssr) modules

  ➜  Local:   http://<IP_ADDRESS>:4173/
  ➜  Network: use --host to expose
file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/server.mjs:18
  throw new Error('Dynamic require of "' + x + '" is not supported');
        ^

Error: Dynamic require of "/inlinedQRL.js" is not supported
    at file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/server.mjs:18:9
    at Object.importSymbol (file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/server.mjs:72:22)
    at resolve (file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/core.mjs:5495:43)
    at AsyncFunction.resolveLazy [as $resolveLazy$] (file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/core.mjs:5502:40)
    at _useStyles (file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/core.mjs:7297:28)
    at useStylesScopedQrl (file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/core.mjs:7246:5)
    at file:///D:/Workspaces/Experiments/qwik-app/server/entry.preview.mjs:44:3
    at invoke (file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/core.mjs:179:26)
    at file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/core.mjs:5518:28
    at then (file:///D:/Workspaces/Experiments/qwik-app/node_modules/@builder.io/qwik/core.mjs:115:56)

Additional Information
Was it normal? Or we should handle exceptions in a more meaningful way to point out the issue?

can you share your vite.config.ts file? please

Here it is.
import { defineConfig } from 'vite';
import { qwikVite } from<EMAIL_ADDRESS>import { qwikCity } from<EMAIL_ADDRESS>import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig(() => {
  return {
    plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
  };
});

Thanks a lot! fixing here! https://github.com/BuilderIO/qwik/pull/1356


[DRAFT] MGDOBR-144: Error Handling in OpenBridge: Working PoC

https://issues.redhat.com/browse/MGDOBR-144
How to run...

Follow DEMO.md to get a local environment running. Nice.
Create a Bridge
Create a Processor for the Bridge that writes to a Slack channel.
Submit an event to the Bridge and check it all works.
Edit the Slack Channel name on Slack, so that the Processor's Managed Connector will fail.
Submit another event to the Bridge. Opps.. It won't work (as you renamed the Channel).
Look at the "back channel"

How to look at the back channel

Install kafkacat (or equivalent)
Run the following:

kafkacat -b "<bootstrap_server_host from rhose-local-development.json>"
-X security.protocol=SASL_SSL
-X sasl.mechanisms=PLAIN
-X sasl.username="<clientId from rhose-local-development-ops.json>"
-X sasl.password="<clientSecret from rhose-local-development-ops.json>"
-L | tee ~/Desktop/topics

Look for topic names that match your Bridge.id. The one ending -error-handler is the "back channel".
Run the following:

kafkacat -J -t <topic from above>
-b "<bootstrap_server_host from rhose-local-development.json>"
-X security.protocol=SASL_SSL
-X sasl.mechanisms=PLAIN
-X sasl.username="<clientId from rhose-local-development-ops.json>"
-X sasl.password="<clientSecret from rhose-local-development-ops.json>"
-C

Behold, you should see something with your Cloud Event headers and body.
Examine the "Error Handler Sidecar [*]"

How do I examine the "Error Handler Sidecar"

Run minikube dashboard
Look for a Pod in the ob-xxxx namespace that relates to the Ingress
Look at the log
You should see that it received something!

PR owner checklist
Please make sure that your PR meets the following requirements:

[x] Your code is properly formatted according to this configuration.
Run mvn clean verify -DskipTests so that imports are correctly set.
[x] Your commit messages are clear and reference the JIRA issue e.g: "[MGDOBR-1] - $clear_explanation_of_what_you_did"
[x] The layers in the kustomize folder have been updated accordingly.
[ ] All new functionality is tested
[x] Pull Request title is properly formatted: MGDOBR-XYZ Subject
[x] Pull Request contains link to the JIRA issue
[x] Pull Request contains link to any dependent or related Pull Request
[x] Pull Request contains description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket

PR reviewer(s) checklist

[ ] Check if code and Github action workflows have been modified and if the modification is safe
[ ] If the modification is safe, add the safe to test label

How to trigger pipelines and use the bots:

Run the end to end pipeline
Annotate the pull request with the label: safe to test. If you want to run the pipeline again, remove and add it again.

Rebase the pull request
Comment with: /rebase.

Deploy BOT
Comment with `/deploy <dev,stable> when the PR has been merged to deploy to a target environment.

@lucamolteni @kostola @danielezonca FYI.. should it come to pass that this needs attention next week.
I will continue to add more error handling/status updates for Filters/Transformations/other places.

 We could improve it by directly configuring kafka topic to send un-processed msgs to DLQ directly. By this we don't need to add any handling for it in processors.

@vaibhavjainwiz I now use the DLQ mechanism and nack messages as appropriate.

@jomarko please look at @kostola replacement PR.
He has kindly been working on this while I am on PTO.


[Bug]: can't configure sentry

Version
System:
    OS: macOS 12.5.1
    CPU: (8) arm64 Apple M1
    Memory: 100.83 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 129.0.6668.60
    Safari: 15.6.1
  npmPackages:
    @modern-js/app-tools: 2.59.0 => 2.59.0
    @modern-js/runtime: 2.60.0 => 2.60.0

Details
I'm trying to implement sentry and I can't find a way to override/customize the  createBrowserRouter function.

https://docs.sentry.io/platforms/javascript/guides/react/features/react-router/
I was reviewing the docs but didn't find something I can use to override that. I found this but looks like this is not the way to do that: https://modernjs.dev/en/apis/app/hooks/src/app.html
Maybe there are a doc or config that I'm missing? 🙏🏼
Reproduce link

Reproduce Steps

you want override createBrowserRouter ? maybe you can use alias for react-router-dom hh


Two bound_forward functions for convolution

Hi authors,
There are two bound_forward functions in the BoundConv class:

https://github.com/KaidiXu/auto_LiRPA/blob/master/auto_LiRPA/operators/convolution.py#L155
https://github.com/KaidiXu/auto_LiRPA/blob/master/auto_LiRPA/operators/convolution.py#L257

These two functions have the same function names and parameter lists.
I have two questions:

It seems that the bound_forward at Line 155 matches with paper description (e.g., need to consider weight>0 and weight<0 when multiplying lb or ub). However, this function shows shape error when the number of input channels of weights is not 1.
It seems that the issue comes from Line 164~169, which expands weight into a matrix. Can we instead expand images following im2col algorithm?
Why do we need the bound_forward function at Line 257?

Thanks!

Hi @BoyuanFeng ,
It seems to be an issue of some merging during our development and somehow two different versions show up in the same time. The second version seems to be better as it doesn't require expanding the convolution or creating a large identity matrix.
Currently it seems the second version is actually used when there are two functions. I'll remove the first version. In the second version, while weight>0 or weight <0 is not explicitly considered, it computes a center using the whole weight and a deviation using |weight|, and result should be equivalent. The second version also matches the implementation for IBP bounds.
In my own test, it works when the number input channels is larger than 1. Does the second version work in your case?

Thanks a lot for the quick reply!

The second version can support the case that the input channels are larger than 1. The first version does not support that.

Could you please clarify a bit why the second version and the first version are mathematically equivalent? I can understand that the second version provides certain bounds. However, I am wondering if this bound is not as tight as the first version which explicitly considers weight>0 and weight<0.

Just in case that these two versions are not mathematically equivalent. I have a code snippet (attached below) for the first version by expanding images and explicitly considering weight>0 and weight<0. Does this look good to you?

Thanks!
def bound_forward(self, dim_in, *x):
        if self.is_input_perturbed(1):
            raise NotImplementedError("Weight perturbation for convolution layers has not been implmented.")
        # lb shape: [batch_size, c_in, h, w]
        # lw shape: [batch_size, dim_in, c_in, h, w]
        # weight shape: [c_out, c_in, k, k]

        weight = x[1].lb
        image = x[0]

        # Expand x_lb, x_ub
        batch_size, cin, h, w = image.lb.shape
        cout, _, k, _ = weight.shape
        expanded_image_lb = torch.nn.functional.pad(image.lb, (self.padding[0], self.padding[0], self.padding[1], self.padding[1])).unfold(2, k, self.stride[0]).unfold(3, k, self.stride[1]).contiguous().view(batch_size, -1, cin*k*k)
        expanded_image_ub = torch.nn.functional.pad(image.ub, (self.padding[0], self.padding[0], self.padding[1], self.padding[1])).unfold(2, k, self.stride[0]).unfold(3, k, self.stride[1]).contiguous().view(batch_size, -1, cin*k*k)

        # Expand weight
        weight = weight.view(cout, cin*k*k).t()

        # Bound computation
        pos_mask = torch.gt(weight, 0).to(torch.float32)
        W_pos = weight * pos_mask
        W_neg = weight - W_pos

        lb = expanded_image_lb.matmul(W_pos) + expanded_image_ub.matmul(W_neg)
        ub = expanded_image_lb.matmul(W_neg) + expanded_image_ub.matmul(W_pos)

        del expanded_image_lb, expanded_image_ub

        expanded_image_lw = torch.nn.functional.pad(image.lw, (self.padding[0], self.padding[0], self.padding[1], self.padding[1])).unfold(3, k, self.stride[0]).unfold(4, k, self.stride[1]).contiguous().view(batch_size, -1, cin*k*k)
        expanded_image_uw = torch.nn.functional.pad(image.uw, (self.padding[0], self.padding[0], self.padding[1], self.padding[1])).unfold(3, k, self.stride[0]).unfold(4, k, self.stride[1]).contiguous().view(batch_size, -1, cin*k*k)

        lw = expanded_image_lw.matmul(W_pos) + expanded_image_uw.matmul(W_neg)
        uw = expanded_image_lw.matmul(W_neg) + expanded_image_uw.matmul(W_pos)

        lw = lw.view(batch_size, dim_in, *self.output_shape[1:])
        uw = uw.view(batch_size, dim_in, *self.output_shape[1:])
        lb = lb.view(batch_size, *self.output_shape[1:])
        ub = ub.view(batch_size, *self.output_shape[1:])

        del expanded_image_lw, pos_mask, W_pos, W_neg, weight, image, # expanded_image_uw

        return LinearBound(lw, lb, uw, ub)

Hi @BoyuanFeng ,
It seems to be an issue of some merging during our development and somehow two different versions show up in the same time. Thanks for raising this issue.
Currently it seems the second version is actually used when there are two functions. The second version seems to be better as it doesn't require expanding the convolution or creating a large identity matrix. I'll remove the first version. In the second version, while weight>0 or weight <0 is not explicitly considered, it computes a center using the whole weight and a deviation using |weight|, and result should be equivalent. The second version also matches the implementation for IBP bounds.
In my own test, it works when the number input channels is larger than 1. Does the second version work in your case?

Suppose l=lower bound of input, u=upper bound of input, then in the second version,
output's lower bound
= W * (l+u)/2 - |W| * (u-l)/2
= W_positive * ( (l+u)/2 - (u-l)/2 ) + W_negative * ( (l+u)/2 + (u-l)/2 )
= W_positive * l + W_negative * u
("*" here can be matrix multiplication for linear layers or convolution)
And this is equivalent to the first version. Computation for the output's upper bound is similar.
I think it's also ok to do the first version but expanding the convolution may be kind of inefficient. I think another way is to just do convolution using positive weights and negative weights respectively, and then sum up, without expanding the convolution into matmul.

These two versions are indeed equivalent. Thanks for the clarification!


Git Clone Failed with code 128 (Windows local)

After authorizing Github with my local version of strider, On running a test I'm getting the following error:
 environment 0ms
 prepare -1
$ git clone --recursive<EMAIL_ADDRESS>. github 11.5s -1
Cloning into '.'...
fatal: cannot create directory at 'app/teamwork_modules/chat-event-helpers/node_modules/gulp-coffee/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._escapehtmlchar/node_modules': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

$  -1
An unexpected error occurred while executing this job. Please report at https://github.com/Strider-CD/strider/issues

Git clone failed with code 128

Error: Git clone failed with code 128
    at badCode (C:\Users\Administrator\AppData\Roaming\npm\node_modules\strider\node_modules\strider-git\worker.js:82:11)
    at updateCache (C:\Users\Administrator\AppData\Roaming\npm\node_modules\strider\node_modules\strider-git\worker.js:146:31)
    at ChildProcess.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\strider\node_modules\strider-simple-runner\node_modules\strider-runner-core\lib\job.js:188:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:755:16)
    at Process.ChildProcess._handle.onexit (child_process.js:822:5)
Git clone failed with code 128
Error: Git clone failed with code 128
    at badCode (C:\Users\Administrator\AppData\Roaming\npm\node_modules\strider\node_modules\strider-git\worker.js:82:11)
    at updateCache (C:\Users\Administrator\AppData\Roaming\npm\node_modules\strider\node_modules\strider-git\worker.js:146:31)
    at ChildProcess.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\strider\node_modules\strider-simple-runner\node_modules\strider-runner-core\lib\job.js:188:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:755:16)
    at Process.ChildProcess._handle.onexit (child_process.js:822:5)

Can't seem to find any real reason why the clone is failing.Any help on this would be much appreciated.

Thanks guys git config --global core.longpaths true works for me.

Long Path Tool help me a lot when i have an issue like file deleting or renaming the file. Also good to use if file name and file extension is too long.


Can't retrieve, reset or update select2 options

Latest version: 4.0.3
Please see this jsfiddle: https://jsfiddle.net/L1tns1yh/1/
First, it doesn't retrieve proper .select2('data')
Then, clicking the button doesn't reset the options, tried different ways I've found on the internets...

This appears to be more of a usage question than a bug report or common feature request.  As we continue to keep the Select2 issue tracker geared towards these two areas, bug reports and common feature requests, we are redirecting usage questions to other communities such as the mailing list, IRC, or Stack Overflow.


[release-v0.59.x] Perform matrix results validation on only result ref params

This will add a check to skip the validation of normal params while doing the validation for matrix task result ref as params
Cheery-pick of #8089
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[ ] Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
[ ] Has Tests included if any functionality added or changed
[ ] pre-commit Passed
[ ] Follows the commit message standard
[ ] Meets the Tekton contributor standards (including functionality, content, code)
[ ] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[ ] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
[ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
Perform matrix results validation on only result ref params

/kind bug


Work in progress, deploy bot with Docker

Basic Django app working with postgres + django container
Need to find solution for adding java deps for SUtime when building the app image
Needs a rabbitmq container so Celery will work as expected

There are still some issues that need to be sorted out with regards to setting up the JVM and the deps for SUtime in the container. If the user can locally build the deps the JVM in the container can run the bot without issue. Will work on making the build process more user friendly in the future.
This PR allows the development of new features to begin. Will work on adding full Slack integration for approving/scheduling tweets next.


Image height bug

Bug #114 also appears to exist when setting a border to the main image.
If you set a css border to the main image the bottom border is cut off, just like it did with the thumbnails before #114 was fixed.
If you set loop:false the height is set to the ul <ul id="imageGallery" class="lightSlider lSSlide lsGrabbing" style="width: 844px; height: 201px; ...
If you set loop:true issue disappears because no height is set to the ul.

Hi,
I have updated lightslider.js
Please check..

Hello,
I'm sorry for late feedback.


added UnixSeqpacket and UnixSeqpacketListener.

plus minor refactoring to consolidate into Inner.
This addresses issue https://github.com/rust-lang-nursery/unix-socket/issues/23
This would be much nicer with generic impl specialization :)
UnixStreamListener and UnixSeqpacketListener are 99% alike. In fact, in their implementations they only differ in 3 words, unfortunately, two of those are in return types, so there wasn't a clean way to factor them out, aside from making some sort of UnixSocket trait. So we're stuck with it unless we want to get crazy.
I moved send and recv into Inner which cleaned up some code in UnixStream and UnixDatagram while reducing the amount to duplicate into UnixSeqpacket.
Added a test for basic seqpacket functionality.  All of the rest of the tests still pass.

Depends upon https://github.com/rust-lang/libc/pull/300

Yay!

K.  It's now UnixListener.  Now it just needs the libc branch merged.

Is this still blocked on libc?

Yes. The PR for SEQPACKET was merged  but a new version has not been pushed
into crates.io.
On Thu, Jun 2, 2016 at 1:54 AM Steven Fackler<EMAIL_ADDRESS>wrote:

Is this still blocked on libc?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rust-lang-nursery/unix-socket/pull/25#issuecomment-223202035,
or mute the thread
https://github.com/notifications/unsubscribe/AAHlC2xX5n5NQF0gZR0E3mLpWwxO3wqzks5qHnADgaJpZM4IoKe0
.

(ping @alexcrichton)

"Seqpacket" here seems kinda long but beyond that seems reasonable to me!

A new libc release landed, so you should be able to bump the version to 0.2.12 and get things building.

There is another conflict: libc depends on tempdir which depends on rand which depends on libc 0.2.11.
Should we bump rand up to 0.2.12 as well then?

Unless it depends on =0.2.11, those should work just fine together  0.2.11 means >= 0.2.11, < 0.3.

I'm trying to sort this out.  Rand states that it depends on 0.2,  but I'm getting:
error: failed to select a version for `libc` (required by `rand`):
all possible versions conflict with previously selected versions of `libc`
  version 0.2.12 in use by libc v0.2.12
  possible versions to select: 0.2.11

Try a cargo update or deleting Cargo.toml.

Looks like this needs a rebase and then it should be ready to go!

Hi, I'd like to help out with finishing this. @rrichardson, did you still plan to work on it, or is it ok if I rebase and re-submit the pull request?
Or is it better to directly add to libstd now (seeing #27)?

Wow, I totally forgot about this.   I guess rebase and give it a go.
If it makes sense to the libstd maintainers, I'd be happy to help make a PR for that.

Hey again, I tried writing an RFC for it (since it's an addition to std): https://github.com/dkl/rust-rfcs/blob/unixsocket-seqpacket/text/0000-unix-socket-seqpacket.md
Does that seem reasonable? Any suggestions before submitting?

The API description in the RFC seems reasonable to me, but I don't think a full RFC is required for an addition like this - a PR direct to add the types (as unstable) should be fine!


Upgrade the repo to use Terraform 0.7.x release

The repo currently works with 0.6.x but not 0.7.x due to some incompatibilities.

Resolved.